/* =====================================================================
   AREA DETAIL PAGES (coimbatore-interior-designers.php and the rest)
   Markup: includes/area-page.php.
   Type (h2, h3, p) comes from the global rules in main.css; this file only
   adds layout, colour accents and hover states from the site tokens.
   Note: .fade-top elements get an inline transform from GSAP, so hover
   effects here use colour, shadow and pseudo-elements, never a transform
   on the card itself.
   ===================================================================== */

.ad-section {
  background-color: var(--tl-color-common-white);
}
.ad-section--band {
  padding: clamp(70px, 8vw, 110px) 0;
}
.ad-section--tint {
  background-color: var(--navbar-color);
}

/* ---- small numbered label above every heading ---- */
.ad-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-family: var(--tl-ff-p);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tl-color-theme-primary);
}
.ad-eyebrow::after {
  content: "";
  width: 44px;
  height: 1px;
  background-color: currentColor;
  opacity: 0.45;
}

.ad-section .ad-title {
  margin: 0;
  font-weight: 400;
  line-height: 1.1;
}
/* only the intro heading is an h2 (global 60px); every other section heading is an h3 */
.ad-section h3.ad-title,
.ad-section h3.ad-cta__heading {
  font-size: clamp(30px, 4vw, 40px);
}

/* ---- head row: heading left, text right ---- */
.ad-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}
.ad-intro__text p {
  margin-bottom: 15px;
}
.ad-intro__text p:last-child {
  margin-bottom: 0;
}

/* ---- split row: heading column + content column ---- */
.ad-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.ad-prose {
  padding-left: clamp(24px, 3.5vw, 48px);
  border-left: 1px solid var(--tl-color-border-1);
}
.ad-prose p:last-child {
  margin-bottom: 0;
}

/* ---- intro images: big + smaller, bottoms aligned ---- */
.ad-duo {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 30px;
  align-items: end;
  margin-top: 60px;
}
.ad-fig {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
}
.ad-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.ad-fig:hover img {
  transform: scale(1.05);
}
.ad-fig--main {
  height: 480px;
}
.ad-fig--side {
  height: 360px;
}
.ad-chip {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 10px 20px;
  border-radius: 100px;
  background-color: var(--tl-color-common-white);
  font-family: var(--tl-ff-p);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--tl-color-heading-primary);
}

/* ---- facts strip under the images ---- */
.ad-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 50px;
  border-top: 1px solid var(--tl-color-border-1);
  border-bottom: 1px solid var(--tl-color-border-1);
}
.ad-fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 30px 30px 30px 0;
}
.ad-fact + .ad-fact {
  padding-left: 30px;
  border-left: 1px solid var(--tl-color-border-1);
}
.ad-fact__value {
  font-family: var(--bs-font-sans-serif);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--tl-color-theme-primary);
}
.ad-fact__label {
  color: var(--tl-color-text-body);
}

/* ---- card grids ---- */
.ad-grid {
  display: grid;
  gap: 30px;
  margin-top: 60px;
}
.ad-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ad-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ad-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* a lone card on the last row stretches across the free columns */
.ad-grid--3 > :last-child:nth-child(3n + 2),
.ad-grid--2 > :last-child:nth-child(odd) {
  grid-column: span 2;
}

.ad-box {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 36px;
  border: 1px solid var(--tl-color-border-1);
  border-radius: 24px;
  background-color: var(--navbar-color);
  color: inherit;
  transition: border-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}
.ad-section--tint .ad-box {
  background-color: var(--tl-color-common-white);
}
.ad-box > * {
  position: relative;
  z-index: 1;
}
.ad-section .ad-box__title {
  margin: 0 0 16px;
  font-size: 30px;
  transition: color 0.4s ease-in-out;
}
.ad-box p {
  margin: 0 0 15px;
  transition: color 0.4s ease-in-out;
}
.ad-box p:last-child {
  margin-bottom: 0;
}
.ad-box__num {
  display: block;
  margin-bottom: 22px;
  font-family: var(--tl-ff-p);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--tl-color-theme-primary);
}

/* Card base */
.ad-box {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #fff;
    transition:
        color 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.6s ease,
        box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Animated background layer */
.ad-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--tl-color-theme-primary);
    z-index: -1;

    transform: translateY(101%);
    transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
    will-change: transform;
}

/* Hover reveal */
.ad-box:hover::before {
    transform: translateY(0);
}

/* Card hover (shared by text cards and link cards) */
.ad-box:hover {
    color: #fff;
    border-color: var(--tl-color-theme-primary);
    box-shadow: 0 25px 60px -25px rgba(25, 25, 25, 0.25);
}
.ad-box:hover .ad-box__title,
.ad-box:hover p,
.ad-box:hover .ad-box__num {
    color: var(--tl-color-common-white);
}

/* Heading animation */
.ad-box__title {
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                color 0.5s ease;
}

.ad-box:hover .ad-box__title {
    transform: translateY(-4px);
}

/* Description */
.ad-box p {
    transition:
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.5s ease;
}

.ad-box:hover p {
    transform: translateY(-4px);
}

/* Arrow interaction */
.ad-box__more i {
    display: inline-block;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.ad-box:hover .ad-box__more i {
    transform: translateX(7px);
}


/* hover card transition css end */

.ad-grid--3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ad-grid--3 > * {
    grid-column: auto !important;
    width: 100%;
}


/* link cards: layout only, the hover is shared with every .ad-box */
a.ad-box {
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.ad-box__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: 46px;
  height: 46px;
  margin-top: auto;
  border: 1px solid var(--tl-color-theme-primary);
  border-radius: 50%;
  color: var(--tl-color-theme-primary);
  transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out,
    border-color 0.4s ease-in-out;
}
.ad-box__title + .ad-box__more,
.ad-box p + .ad-box__more {
  margin-top: 28px;
}
.ad-box__more i {
  font-size: 14px;
  transition: transform 0.4s ease-in-out;
}
a.ad-box:hover .ad-box__more {
  border-color: var(--tl-color-common-white);
  background-color: var(--tl-color-common-white);
  color: var(--tl-color-theme-primary);
}

/* paragraphs under a card grid */
.ad-after {
  max-width: 900px;
  margin-top: 40px;
}
.ad-after p:last-child {
  margin-bottom: 0;
}

/* ---- process timeline ---- */
.ad-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ad-step {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 44px;
}
.ad-step:last-child {
  padding-bottom: 0;
}
.ad-step::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 64px;
  bottom: 0;
  width: 1px;
  background-color: var(--tl-color-border-1);
}
.ad-step:last-child::before {
  display: none;
}
.ad-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--tl-color-theme-primary);
  border-radius: 50%;
  background-color: var(--tl-color-common-white);
  font-family: var(--tl-ff-p);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--tl-color-theme-primary);
  transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out;
}
.ad-step:hover .ad-step__num {
  background-color: var(--tl-color-theme-primary);
  color: var(--tl-color-common-white);
}
.ad-section .ad-step__title {
  margin: 12px 0 8px;
  font-size: 30px;
}
.ad-step p {
  margin: 0;
}

/* ---- FAQ: the site accordion (.faq-content), flush with its column ---- */
.ad-faq .faq-content {
  padding-left: 0;
}
.ad-faq .faq-content .faq-accordion .accordion-item .accordion-body {
  max-width: none;
}

/* ---- closing call to action: photo band with a primary wash ---- */
.ad-cta {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 60px;
  align-items: center;
  margin-top: 90px;
  padding: clamp(36px, 5vw, 70px);
  border-radius: 24px;
  background: linear-gradient(115deg, rgb(113 29 58 / 33%) 0%, rgba(28, 28, 29, 0.9) 100%), url(../img/bg-img/slider-img-1.webp) center / cover no-repeat;
  color: var(--tl-color-common-white);
}
.ad-cta--solo {
  grid-template-columns: minmax(0, 1fr);
}
.ad-cta h3,
.ad-cta p {
  color: var(--tl-color-common-white);
}
.ad-cta__heading {
  margin: 0 0 20px;
}
.ad-cta__main p:last-child {
  margin-bottom: 0;
}
.ad-cta__side {
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ad-cta--solo .ad-cta__side {
  max-width: 720px;
}
.ad-section .ad-cta__title {
  margin: 0 0 12px;
  font-size: 30px;
}
.ad-cta__side p {
  margin-bottom: 24px;
}
/* white button, dark wipe: the primary-coloured button would vanish on this card */
.ad-cta__btn {
  padding: 19px 30px;
  border-color: var(--tl-color-common-white);
  background-color: var(--tl-color-common-white);
  color: var(--tl-color-heading-primary);
}
.ad-cta__btn:before {
  background-color: var(--tl-color-bg-1);
}
.ad-cta__btn:hover {
  border-color: var(--tl-color-bg-1);
  color: var(--tl-color-common-white);
}

/* ---- responsive ---- */
@media (max-width: 991px) {
  .ad-intro,
  .ad-split,
  .ad-cta {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .ad-prose {
    padding-left: 0;
    border-left: 0;
  }
  .ad-grid {
    margin-top: 40px;
  }
  .ad-grid--3,
  .ad-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ad-grid--3 > :last-child:nth-child(3n + 2) {
    grid-column: auto;
  }
  .ad-grid--3 > :last-child:nth-child(odd),
  .ad-grid--4 > :last-child:nth-child(odd) {
    grid-column: span 2;
  }
  .ad-duo {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 40px;
  }
  .ad-fig--main {
    height: 360px;
  }
  .ad-fig--side {
    height: 280px;
  }
  .ad-cta {
    margin-top: 60px;
  }
}

@media (max-width: 767px) {
  .ad-grid--2,
  .ad-grid--3,
  .ad-grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .ad-grid > :last-child {
    grid-column: auto !important;
  }
  .ad-box {
    padding: 28px;
  }
  .ad-facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .ad-fact,
  .ad-fact + .ad-fact {
    padding: 22px 0;
    border-left: 0;
  }
  .ad-fact + .ad-fact {
    border-top: 1px solid var(--tl-color-border-1);
  }
  .ad-step {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 20px;
  }
  .ad-step__num {
    width: 52px;
    height: 52px;
  }
  .ad-step::before {
    left: 25px;
    top: 52px;
  }
}

/* =====================================================================
   AREAS WE SERVE — card grid (areas-we-serve.php)
   Full-image cards; the title and link rise in on hover (always visible
   on touch screens). Type comes from the global h3 / p rules in main.css.
   ===================================================================== */
.ad-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 60px;
}

.ad-card {
  position: relative;
  display: block;
  flex: 0 0 calc((100% - 60px) / 3);
  height: 480px;
  overflow: hidden;
  border-radius: 24px;
  background-color: var(--tl-color-bg-1);
}
.ad-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.ad-card:hover img,
.ad-card:focus-visible img {
  transform: scale(1.08);
}

/* dark veil so the title reads on any photo */
.ad-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 65%);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
.ad-card:hover::after,
.ad-card:focus-visible::after {
  opacity: 1;
}

.ad-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 30px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-in-out, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.ad-card:hover .ad-card__body,
.ad-card:focus-visible .ad-card__body {
  opacity: 1;
  transform: translateY(0);
}
.ad-card .ad-card__title {
  margin: 0 0 12px;
  font-size: 30px;
  color: var(--tl-color-common-white);
}
.ad-card__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--tl-ff-p);
  color: var(--tl-color-common-white);
}
.ad-card__more i {
  font-size: 14px;
  transition: transform 0.3s ease-in-out;
}
.ad-card:hover .ad-card__more i {
  transform: translateX(5px);
}

@media (max-width: 991px) {
  .ad-card {
    flex-basis: calc((100% - 30px) / 2);
    height: 420px;
  }
}
@media (max-width: 575px) {
  .ad-card {
    flex-basis: 100%;
    height: 380px;
  }
}
/* touch screens have no hover: keep the title visible */
@media (hover: none) {
  .ad-card::after,
  .ad-card__body {
    opacity: 1;
    transform: none;
  }
}
