/* ============================================================
   Andover Groundworks & Construction
   Revision overrides — May & June 2026 client changes
   (kept in a separate file so the core theme is untouched)
   ============================================================ */

/* ---------- About section: plain, sharp image + smaller heading ---------- */
.tj-about-section-three .about-images3 {
  padding-left: 0;
  max-width: 100%;
}
.tj-about-section-three .about-images3::before {     /* the orange square */
  display: none !important;
  content: none !important;
}
.tj-about-section-three .about-images3 img {
  border-radius: 0;          /* sharp edges */
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tj-about-section-three .tj-heading-area {
  margin-bottom: 45px;
}
.tj-about-section-three .tj-heading-area .title {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
}
@media (min-width: 992px) {
  .tj-about-section-three .tj-heading-area .title { font-size: 27px; }
}

/* ---------- Services: square, sharp-edged cards with Read More ---------- */
.agw-services .agw-service-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s ease, transform .3s ease;
}
.agw-services .agw-service-card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, .10);
  transform: translateY(-5px);
}
.agw-services .agw-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;       /* square picture */
  overflow: hidden;
}
.agw-services .agw-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.agw-services .agw-service-card:hover .agw-card-media img { transform: scale(1.06); }
.agw-services .agw-card-body {
  padding: 26px 24px 30px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  text-align: center;
}
.agw-services .agw-card-body h3 {
  font-family: var(--tj-ff-heading);
  font-size: 20px;
  margin: 0 0 12px;
}
.agw-services .agw-card-body h3 a { color: #1c1c1c; }
.agw-services .agw-card-body h3 a:hover { color: var(--tj-color-theme-primary); }
.agw-services .agw-card-body p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 22px;
  color: #5e5e5e;
}
.agw-services .agw-readmore { margin-top: auto; }
.agw-services .agw-readmore a {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid #cfcfcf;
  font-family: var(--tj-ff-heading);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1c1c1c;
  transition: all .3s ease;
}
.agw-services .agw-readmore a:hover {
  background: var(--tj-color-theme-primary);
  border-color: var(--tj-color-theme-primary);
  color: #fff;
}

/* ---------- Recent projects: bigger images (homepage only) ---------- */
.agw-projects-lg .gallery-item { margin-bottom: 24px; }
.agw-projects-lg .gallery-item .image-box { border-radius: 0; }
.agw-projects-lg .gallery-item .image-box img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 0;
}
@media (max-width: 991px) {
  .agw-projects-lg .gallery-item .image-box img { height: 320px; }
}
@media (max-width: 575px) {
  .agw-projects-lg .gallery-item .image-box img { height: 240px; }
}

/* ---------- Gallery page: transformation before/after tag ---------- */
.agw-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: var(--tj-color-theme-primary);
  color: #fff;
  font-family: var(--tj-ff-heading);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 13px;
}

/* ---------- Accreditations band: full width after FB feed removed ---------- */
.agw-accred .faq-section { padding-left: 0; }

/* ---------- Main nav: keep all 7 items on one line after adding About Us ---------- */
@media (min-width: 1400px) {
  .mainmenu ul { column-gap: 20px; }
  .mainmenu ul > li > a { font-size: 15px; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .mainmenu ul { column-gap: 12px; }
  .mainmenu ul > li > a { font-size: 14px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .mainmenu ul { column-gap: 8px; }
  .mainmenu ul > li > a { font-size: 12.5px; }
  .header-3 .tj-primary-btn { padding: 16px 12px; font-size: 13px; }
}
