/* =========================================================
   Arul Sofa Lining Works and Service
   style.css  —  mobile-first, responsive, animated
   ========================================================= */

/* ---------- Design Tokens ---------- */
/* Light premium theme with gold brand accents (ASW gold-wings logo) */
:root {
  /* brand gold */
  --gold: #d4af37;          /* bright metallic gold — filled buttons/icons */
  --gold-deep: #9a771c;     /* deep gold — text accents on light, hovers   */
  --gold-light: #ecc75a;    /* light gold — borders/checks                 */

  /* semantic aliases kept so existing rules need no renaming */
  --teal: var(--gold-deep);     /* link/stat/text accents (readable on white) */
  --teal-dark: #7d5f14;
  --teal-light: #c9a227;
  --accent: var(--gold);        /* underline, stars */
  --accent-dark: var(--gold-deep); /* eyebrow text on light */

  /* light surfaces */
  --bg: #ffffff;            /* page background        */
  --cream: #f7f3ec;         /* alternate section bg   */
  --white: #ffffff;         /* cards / surfaces       */
  --line: #ece6da;          /* subtle warm border     */

  /* text (dark on light) */
  --ink: #1b160c;           /* headings (warm near-black) */
  --charcoal: #3a352c;      /* body text              */
  --slate: #5f5a4f;         /* secondary text         */
  --muted: #8a8475;         /* muted text             */

  --on-gold: #1a1505;       /* dark text/icons on gold surfaces */
  --whatsapp: #25d366;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(20, 16, 8, .06);
  --shadow-md: 0 12px 30px rgba(20, 16, 8, .10);
  --shadow-lg: 0 24px 60px rgba(20, 16, 8, .16);

  --container: 1400px;   /* max content width (incl. 4K) */
  --pad: 14px;           /* responsive side padding (mobile default) */
  --gap: clamp(1rem, 3vw, 2rem);

  --ff-body: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ff-head: 'Playfair Display', Georgia, serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;        /* kill any sideways scroll on mobile */
}

body {
  font-family: var(--ff-body);
  color: var(--charcoal);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Image placeholder (used when real photos are missing) */
.img-ph {
  background: linear-gradient(135deg, #ece6da 0%, #ddd4c3 50%, #cabfa9 100%);
  position: relative;
}
.img-ph::after {
  content: "\f03e"; /* fa-image */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: rgba(120, 100, 50, .4);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.container--narrow { max-width: 820px; }

/* Section padding (tightened vertical rhythm) */
.section { padding-block: clamp(38px, 6vw, 66px); position: relative; }

/* Offset anchored sections so the sticky nav never covers their headings */
section[id] { scroll-margin-top: 80px; }

/* Alternating section backgrounds with subtle gold corner glows (one after one) */
.section:nth-of-type(odd) {
  background:
    radial-gradient(circle at 0% 100%, rgba(212, 175, 55, .07), transparent 32%);
}
.section:nth-of-type(even) {
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 175, 55, .09), transparent 32%),
    var(--cream);
}

.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(1.4rem, 3.5vw, 2.3rem); }
.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: .6rem;
}
.section__title {
  font-family: var(--ff-head);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
}
.section__sub { color: var(--muted); margin-top: .75rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--on-gold);   /* dark text on gold for readable contrast */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  min-height: 48px;
  border: none;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(-1px); }
.btn--primary { --btn-bg: var(--gold); }
.btn--primary:hover { background: var(--gold-deep); }
.btn--whatsapp { --btn-bg: var(--whatsapp); --btn-fg: #fff; }
.btn--whatsapp:hover { background: #1ebe5b; }
/* outline button for secondary hero actions */
.btn--ghost {
  --btn-bg: transparent; --btn-fg: #fff;
  border: 2px solid rgba(255, 255, 255, .75);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.02rem; min-height: 54px; }
.btn--sm { padding: .55rem 1rem; min-height: 40px; font-size: .85rem; }
.btn--block { width: 100%; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, .22);
  transition: box-shadow .3s ease, background .3s ease, padding .3s ease;
  padding-block: .55rem;
}
.nav.scrolled { box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, .96); }

.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.nav__brand {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.15rem; font-weight: 600; color: var(--ink);
}
.nav__brand i { color: var(--teal); font-size: 1.4rem; }
.nav__brand strong { color: var(--teal); }
.nav__logo { height: 46px; width: auto; display: block; border-radius: 6px; }

.nav__menu { display: flex; align-items: center; gap: clamp(.7rem, 1.3vw, 1.15rem); }

/* Brand header shown only inside the mobile slide-out drawer */
.nav__menu-brand { display: none; }
.nav__link {
  position: relative;
  font-weight: 500;
  font-size: .95rem;
  color: var(--charcoal);
  padding-block: .3rem;
  transition: color .25s ease;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--accent);
  transition: width .3s ease;
}
.nav__link:hover, .nav__link.active { color: var(--teal); }
.nav__link.active::after, .nav__link:hover::after { width: 100%; }
.nav__cta { color: var(--on-gold); }
.nav__cta:hover { color: var(--on-gold); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
}
.nav__toggle span {
  display: block; width: 26px; height: 3px; border-radius: 3px;
  background: var(--ink); transition: transform .3s ease, opacity .3s ease;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;      /* vertical centre */
  justify-content: center;  /* horizontal centre */
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a, #1a1206);
}
/* Background image slider — each slide carries its own centred text */
.hero__slider { position: absolute; inset: 0; z-index: 1; }
.hero__slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0; visibility: hidden;
  transform: scale(1.08);
  transition: opacity 1.2s ease, visibility 1.2s ease;
}
.hero__slide.active {
  opacity: 1; visibility: visible;
  transform: scale(1);
  transition: opacity 1.2s ease, transform 6s ease;   /* slow background zoom */
}
/* dark overlay + centre vignette per slide for readable text on any image */
.hero__slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(0,0,0,.34) 0%, rgba(0,0,0,.64) 100%),
    linear-gradient(180deg, rgba(8,8,8,.5) 0%, rgba(8,8,8,.4) 45%, rgba(8,8,8,.62) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  max-width: 820px; margin-inline: auto; padding-block: 4.5rem;
}
/* Premium uppercase heading with multi-layer soft-black shadow */
.hero__title {
  font-family: var(--ff-head); font-weight: 800;
  text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(1.85rem, 6.5vw, 4.6rem); line-height: 1.08; margin-bottom: 1.1rem;
  overflow-wrap: break-word;
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, .55),
    0 4px 14px rgba(0, 0, 0, .6),
    0 10px 34px rgba(0, 0, 0, .5);
}
/* Sub-heading: clean, semi-bold white with a soft shadow */
.hero__tagline {
  font-family: var(--ff-body);
  font-size: clamp(1rem, 2.2vw, 1.25rem); font-weight: 500;
  color: #fff; max-width: 640px; margin: 0 auto 2rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Mobile: left-align the hero text & full-width buttons for easier reading */
@media (max-width: 767px) {
  .hero { text-align: left; }
  .hero__slide { justify-content: flex-start; }
  .hero__content { margin-inline: 0; padding-block: 5rem 6rem; }
  .hero__tagline { margin-left: 0; margin-right: 0; font-size: 1rem; }
  .hero__actions { justify-content: flex-start; width: 100%; gap: .8rem; }
  .hero__actions .btn { width: 100%; }     /* stacked full-width buttons */
  .hero__dots { bottom: 1.8rem; }
  .hero__scroll { display: none; }          /* hide scroll cue on phones */
}

/* per-slide text fade-up — re-runs each time a slide becomes active */
.hero__content > * { opacity: 1; }                         /* visible by default (failsafe) */
.hero__slide:not(.active) .hero__content > * { opacity: 0; } /* hide only inactive slides */
.hero__slide.active .hero__content > * { animation: heroUp .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero__slide.active .hero__content > :nth-child(1) { animation-delay: .15s; }
.hero__slide.active .hero__content > :nth-child(2) { animation-delay: .30s; }
.hero__slide.active .hero__content > :nth-child(3) { animation-delay: .45s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

/* Slider indicators */
.hero__dots {
  position: absolute; left: 50%; transform: translateX(-50%); z-index: 5;
  bottom: clamp(3.2rem, 8vh, 4.5rem);
  display: flex; gap: .55rem;
}
.hero__dots button {
  width: 12px; height: 12px; border-radius: 999px; padding: 0; cursor: pointer;
  background: transparent; border: 2px solid rgba(255, 255, 255, .85);
  transition: width .3s ease, background .3s ease, border-color .3s ease;
}
.hero__dots button.active { width: 30px; background: var(--gold); border-color: var(--gold); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  z-index: 5; color: #fff; font-size: 1.1rem; opacity: .85;
  animation: bounce 2s infinite;
}

@keyframes bounce { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* fade-up for hero text */
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp .8s ease forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__media { position: relative; }
.about__media img {
  width: 100%; height: 100%; min-height: 280px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.about__badge {
  position: absolute; right: -.5rem; bottom: -1rem;
  background: var(--gold); color: var(--on-gold);
  display: flex; align-items: center; gap: .6rem;
  padding: .9rem 1.2rem; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.about__badge-num { font-family: var(--ff-head); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.about__badge-txt { font-size: .8rem; line-height: 1.2; }

.about__body .section__title { margin-bottom: 1rem; }
.about__lead { font-size: 1.05rem; margin-bottom: 1rem; color: var(--slate); }
.about__body p { color: var(--slate); }

.about__features { margin: 1rem 0; display: grid; gap: .5rem; }
.about__features li { display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.about__features i { color: var(--teal-light); }

.about__stats { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1.1rem 0; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--ff-head); font-size: 1.8rem; font-weight: 800; color: var(--teal); }
.stat__lbl { font-size: .85rem; color: var(--muted); }

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.2rem, 3vw, 1.8rem);
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 16 / 11; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.08); }
.card__body { padding: 1.1rem 1.2rem 1.3rem; position: relative; }
.card__icon {
  position: absolute; top: -1.6rem; left: 1.3rem;
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--gold); color: var(--on-gold); font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.card__title { font-size: 1.15rem; font-weight: 600; margin: 1rem 0 .5rem; color: var(--ink); }
.card__body p { color: var(--muted); font-size: .95rem; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(.6rem, 2vw, 1rem);
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
  transition: transform .4s ease, box-shadow .4s ease;
}
.gallery__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.14); }
.gallery__zoom {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(to top, rgba(20,16,6,.6), rgba(212, 175, 55, .35));
  color: #fff; font-size: 1.4rem;
  opacity: 0; transition: opacity .4s ease;
}
.gallery__item:hover .gallery__zoom { opacity: 1; }
/* magnifier icon pops in */
.gallery__zoom i {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--on-gold);
  transform: scale(.4) rotate(-30deg); transition: transform .4s cubic-bezier(.2,.8,.2,1.4);
  box-shadow: var(--shadow-md);
}
.gallery__item:hover .gallery__zoom i { transform: scale(1) rotate(0); }
/* gold inset ring on hover */
.gallery__item::after {
  content: ""; position: absolute; inset: 9px; z-index: 2;
  border: 2px solid rgba(255, 255, 255, .85); border-radius: 8px;
  opacity: 0; transform: scale(1.04); transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.gallery__item:hover::after { opacity: 1; transform: scale(1); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: stretch; }
.contact__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.9rem);
  box-shadow: var(--shadow-sm);
}
.contact__details { background: linear-gradient(160deg, #ffffff 0%, var(--cream) 100%); }

.contact__info { display: grid; gap: 1.4rem; }
.contact__info li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__ic {
  flex: none; width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--gold); color: var(--on-gold); font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(212, 175, 55, .28);
}
.contact__info h4 { font-size: 1rem; color: var(--ink); margin-bottom: .2rem; }
.contact__info p, .contact__info a { color: var(--slate); }
.contact__info a:hover { color: var(--teal); }

.contact__formtitle {
  font-family: var(--ff-head); font-weight: 700;
  font-size: 1.4rem; color: var(--ink); margin-bottom: 1.2rem;
}
.contact__form { display: grid; gap: .9rem; }
.form__row { display: grid; gap: .9rem; }
.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem;
  background: var(--white); color: var(--charcoal);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.contact__form select { cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23d4af37' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.4rem;
}
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: var(--muted); }
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .18);
}
.contact__form textarea { resize: vertical; }
.contact__formbtns { display: grid; gap: .7rem; margin-top: .4rem; }

/* ============================================================
   GOOGLE MAP SECTION
   ============================================================ */
.map-section { padding-bottom: clamp(38px, 6vw, 66px); }
.map-frame {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  height: 350px;                /* mobile */
}
.map-frame iframe { width: 100%; height: 100%; display: block; border: 0; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 1.6rem);
}
.why__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.why__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--teal-light); }
.why__icon {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; margin-bottom: 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--on-gold); font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(212, 175, 55, .3);
}
.why__item h3 { font-size: 1.1rem; color: var(--ink); margin-bottom: .5rem; }
.why__item p { color: var(--muted); font-size: .95rem; }

/* ============================================================
   BEFORE & AFTER SHOWCASE (interactive comparison slider)
   ============================================================ */
.showcase__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.2rem, 3vw, 2rem);
}
.ba {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 0;
  user-select: none;
  touch-action: pan-y;          /* allow vertical scroll, capture horizontal drag */
}
.ba__img { position: absolute; inset: 0; }
.ba__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.ba:hover .ba__img img { transform: scale(1.05); }   /* hover zoom */
.ba__before {
  /* clip to show only the left portion up to --pos */
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.ba__tag {
  position: absolute; top: 12px; z-index: 3;
  padding: .3rem .8rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: #fff;
  background: rgba(15, 23, 42, .7); backdrop-filter: blur(4px);
}
.ba__tag--before { left: 12px; }
.ba__tag--after { right: 12px; background: rgba(212, 175, 55, .9); color: var(--on-gold); }
.ba__divider {
  position: absolute; top: 0; bottom: 0; z-index: 4;
  left: var(--pos, 50%);
  width: 3px; transform: translateX(-50%);
  background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.35);
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.ba__divider i {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--teal); font-size: .8rem;
  box-shadow: var(--shadow-sm);
}
.ba__range {
  position: absolute; inset: 0; z-index: 5;
  width: 100%; height: 100%; margin: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent; cursor: ew-resize; opacity: 0;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.ba__range::-moz-range-thumb { width: 44px; height: 400px; border: 0; background: transparent; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
/* Decorative gold-glow background */
.section.testimonials {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(212, 175, 55, .14), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(212, 175, 55, .12), transparent 42%),
    linear-gradient(180deg, var(--cream), #fff);
}
.section.testimonials::before,
.section.testimonials::after {
  content: ""; position: absolute; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(212, 175, 55, .20), transparent 70%);
  filter: blur(6px); pointer-events: none;
}
.section.testimonials::before { width: 220px; height: 220px; top: -50px; left: -60px; animation: orbFloat 9s ease-in-out infinite; }
.section.testimonials::after { width: 300px; height: 300px; bottom: -80px; right: -80px; animation: orbFloat 12s ease-in-out infinite reverse; }
@keyframes orbFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(22px, -18px); } }
.section.testimonials > .container { position: relative; z-index: 1; }

/* Multi-card carousel (shows 1 / 2 / 3 cards by viewport) */
.tslider { position: relative; }
.tslider__viewport { overflow: hidden; }
.tslider__track { display: flex; flex-wrap: nowrap; align-items: stretch; transition: transform .55s cubic-bezier(.4, .1, .2, 1); }

.tcard {
  flex: 0 0 100%;            /* mobile: 1 card */
  box-sizing: border-box;
  padding: .6rem;           /* gutter between cards */
}
.tcard__inner {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem 1.5rem 1.4rem;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.tcard__inner:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-light); }
/* faint decorative quote mark (top-right) */
.tcard__inner::after {
  content: "\201D"; position: absolute; top: .4rem; right: 1.1rem;
  font-family: var(--ff-head); font-size: 3.4rem; line-height: 1;
  color: rgba(212, 175, 55, .22); pointer-events: none;
}
.tcard__stars { color: var(--gold); font-size: .9rem; margin-bottom: .9rem; letter-spacing: .12em; }
.tcard blockquote {
  font-size: .98rem; line-height: 1.7; color: var(--slate); font-style: italic;
  margin-bottom: 1.2rem; flex: 1 1 auto;
}
.tcard__person {
  display: flex; align-items: center; gap: .8rem;
  padding-top: 1rem; border-top: 1px solid var(--line);
}
.tcard__avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--on-gold); font-family: var(--ff-head); font-weight: 700; font-size: 1.2rem;
  box-shadow: 0 6px 16px rgba(212, 175, 55, .35);
}
.tcard figcaption { display: flex; flex-direction: column; }
.tcard figcaption strong { color: var(--ink); font-size: 1rem; }
.tcard figcaption span { color: var(--muted); font-size: .85rem; }

@media (min-width: 700px) { .tcard { flex-basis: 50%; } }
@media (min-width: 1024px) { .tcard { flex-basis: 33.3333%; } }

.tslider__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.2rem; }
.tslider__dots { display: flex; justify-content: center; gap: .6rem; }
.tslider__arrow {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center;
  background: var(--gold); color: var(--on-gold); font-size: .9rem;
  box-shadow: 0 6px 16px rgba(212, 175, 55, .4);
  transition: transform .25s ease, background .25s ease;
}
.tslider__arrow:hover { background: var(--gold-deep); transform: scale(1.12); }
.tslider__arrow:active { transform: scale(.96); }
.tslider__dots button {
  width: 11px; height: 11px; border-radius: 50%;
  border: none; cursor: pointer; padding: 0;
  background: var(--line); transition: background .3s ease, transform .3s ease;
}
.tslider__dots button.active {
  background: var(--gold); transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, .22);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
/* Two-column layout: accordion (left) + image (right) */
.faq__grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }

.faq__list { display: grid; gap: .85rem; }
.faq__item {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
.faq__item:hover { border-color: var(--gold-light); transform: translateX(4px); }
.faq__item.open { box-shadow: var(--shadow-sm); border-color: var(--teal-light); }
/* gold accent bar that grows when an item opens */
.faq__item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(var(--gold), var(--gold-light));
  transform: scaleY(0); transform-origin: top; transition: transform .35s ease;
}
.faq__item.open::before { transform: scaleY(1); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 1.02rem; font-weight: 600; text-align: left;
  color: var(--ink);
  transition: color .25s ease;
}
.faq__q:hover { color: var(--gold-deep); }
.faq__sign {
  color: var(--on-gold); background: var(--gold);
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem;
  transition: transform .35s ease; flex: none;
}
.faq__item.open .faq__sign { transform: rotate(180deg); }
.faq__a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.faq__a p {
  padding: 0 1.3rem 1.2rem;
  color: var(--slate);
}

/* FAQ image (right column) with animated view */
.faq__media { position: relative; display: flex; flex-direction: column; }
.faq__media-inner {
  position: relative;
  flex: 1 1 auto;
  min-height: 260px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  animation: floaty 5.5s ease-in-out infinite;
}
.faq__media-inner img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.faq__media:hover .faq__media-inner img { transform: scale(1.07); }
/* soft gold glow behind the image */
.faq__media::before {
  content: ""; position: absolute; z-index: -1;
  right: -16px; bottom: -16px; width: 65%; height: 65%;
  background: radial-gradient(circle at 70% 70%, rgba(212, 175, 55, .28), transparent 70%);
  filter: blur(6px);
}
.faq__media-tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .9rem; border-radius: 999px;
  background: rgba(212, 175, 55, .92); color: var(--on-gold);
  font-size: .8rem; font-weight: 600; backdrop-filter: blur(4px);
}
.faq__help {
  display: flex; align-items: center; gap: .8rem;
  margin-top: 1rem; padding: .9rem 1.1rem;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.faq__help i { color: var(--gold); font-size: 1.5rem; }
.faq__help strong { display: block; color: var(--ink); font-size: .95rem; }
.faq__help a { color: var(--teal); font-weight: 600; }
.faq__help a:hover { color: var(--gold-deep); }

@media (min-width: 900px) {
  .faq__grid { grid-template-columns: 1.05fr .95fr; }
}
/* cap the image height on very large screens so it never gets oversized */
@media (min-width: 1400px) {
  .faq__media-inner { max-height: 520px; }
}

/* Directional scroll reveal (used by FAQ image, etc.) */
.reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.reveal-left { transform: translateX(-46px); }
.reveal-right { transform: translateX(46px); }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #070707; color: #cbc6b8; border-top: 1px solid rgba(212, 175, 55, .14); }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block: clamp(1.8rem, 4vw, 2.8rem);
}
.footer__brand { display: flex; align-items: center; gap: .7rem; color: #fff; font-weight: 700; font-size: 1.5rem; margin-bottom: 1rem; }
.footer__logo { height: 64px; width: auto; border-radius: 8px; }
.footer__brand i { color: var(--teal-light); }
.footer__about p { color: #b9b3a6; font-size: 1.05rem; line-height: 1.7; max-width: 360px; }
.footer__col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.footer__links { display: grid; gap: .55rem; }
.footer__links a { color: #cbd5e1; font-size: .93rem; transition: color .25s ease, padding-left .25s ease; }
.footer__links a:hover { color: var(--teal-light); padding-left: .25rem; }
.footer__col > p { font-size: .92rem; margin-bottom: .5rem; color: #cbd5e1; }
.footer__col > p i { color: var(--teal-light); width: 18px; }
.footer__col a { color: #cbd5e1; }
.footer__col a:hover { color: var(--teal-light); }
.footer__biz strong { color: #fff; }

.footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.2rem; text-align: center; }
.footer__bar p { font-size: .88rem; color: #94a3b8; }
.footer__bar strong { color: var(--accent); font-weight: 600; }
.footer__bar a { color: var(--accent); }
.footer__bar a:hover { color: var(--gold-light); text-decoration: underline; }

/* ============================================================
   FLOATING BUTTONS (WhatsApp + Call)
   ============================================================ */
.floats {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  display: flex; flex-direction: column; gap: .8rem;
}
.float-btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 1.6rem;
  transition: transform .25s ease;
}
.float-btn:hover { transform: scale(1.1); }
.float-btn--wa { background: var(--whatsapp); box-shadow: 0 8px 24px rgba(37, 211, 102, .45); animation: waPulse 2.2s infinite; }
.float-btn--call { background: var(--gold); color: var(--on-gold); box-shadow: 0 8px 24px rgba(212, 175, 55, .45); }
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(8, 12, 20, .92);
  padding: 1.5rem;
}
.lightbox.open { display: flex; animation: lbFade .3s ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 8px; box-shadow: var(--shadow-lg);
}
.lightbox__close {
  position: absolute; top: 1rem; right: 1.4rem;
  background: none; border: none; color: #fff; font-size: 2.4rem;
  line-height: 1; cursor: pointer;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.2rem;
  display: grid; place-items: center; transition: background .25s ease;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, .28); }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--rev-delay, 0s);   /* stagger set by JS */
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   ENHANCED ANIMATIONS & MICRO-INTERACTIONS
   ============================================================ */

/* Scroll progress bar (top of page) */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 101;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-light));
  box-shadow: 0 0 10px rgba(212, 175, 55, .6);
  transition: width .1s linear;
}

/* Animated gold underline under section titles */
.section__title::after {
  content: ""; display: block;
  width: 64px; height: 3px; margin-top: .85rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s ease .25s;
}
.section__head .section__title::after { margin-inline: auto; }
.reveal.visible .section__title::after,
.section__head.visible .section__title::after { transform: scaleX(1); }

/* Gold shine sweep across buttons on hover */
.btn { position: relative; overflow: hidden; }
.btn > i, .btn > span { position: relative; z-index: 1; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn:hover::after { left: 130%; }

/* Card icon pop on hover */
.card__icon { transition: transform .35s ease, box-shadow .35s ease; }
.card:hover .card__icon { transform: rotate(-6deg) scale(1.1); box-shadow: var(--shadow-md); }

/* Why-icon spin/scale on hover */
.why__icon { transition: transform .45s ease, box-shadow .35s ease; }
.why__item:hover .why__icon { transform: rotate(8deg) scale(1.1); }

/* Gentle float on testimonial avatar */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.tcard__avatar { animation: floaty 3.2s ease-in-out infinite; }

/* Soft pulse on the floating call button */
@keyframes callPulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, .5); }
  70% { box-shadow: 0 0 0 14px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}
.float-btn--call { animation: callPulse 2.6s infinite; }

/* Link underline grow already on nav; add to footer + contact links */
.footer__links a, .contact__info a { transition: color .25s ease, letter-spacing .25s ease; }

/* Reduced-motion: stop the looping/ambient animations too */
@media (prefers-reduced-motion: reduce) {
  .tcard__avatar, .float-btn--call, .scroll-progress { animation: none !important; }
  .section__title::after { transform: scaleX(1) !important; transition: none !important; }
  .reveal { --rev-delay: 0s !important; }
  .btn::after { display: none !important; }
}

/* ============================================================
   RESPONSIVE  —  mobile-first breakpoints
   ============================================================ */

/* ---- Mobile + tablet nav (below 1024px) ---- */
@media (max-width: 1023px) {
  /* IMPORTANT: drop backdrop-filter here so the fixed drawer is positioned
     against the viewport (a filtered ancestor would trap it inside the bar) */
  .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, .97);
  }
  .nav.scrolled { background: #fff; }
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 100;
    width: min(80vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    padding: 5.5rem 1.8rem 2rem;
    background: #fff;
    border-left: 1px solid rgba(212, 175, 55, .18);
    box-shadow: -10px 0 40px rgba(20, 16, 8, .18);
    transform: translateX(100%);
    transition: transform .35s ease;
    overflow-y: auto;
  }
  .nav__menu.open { transform: translateX(0); }
  .nav__link { font-size: 1.1rem; }
  .nav__cta { display: none; }   /* use floating call button on mobile */

  /* Logo + brand name pinned to the top of the drawer */
  .nav__menu-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    margin-bottom: .4rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(212, 175, 55, .22);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
  }
  .nav__menu-brand strong { color: var(--teal); }
  .nav__menu-logo { height: 42px; width: auto; border-radius: 6px; flex: none; }

  /* dim page backdrop behind the open drawer */
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 95;
    background: rgba(0, 0, 0, .45);
    opacity: 0; visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
  }
  .nav-backdrop.show { opacity: 1; visibility: visible; }

  /* lock page scroll while the drawer is open */
  body.nav-open { overflow: hidden; }
}

/* ---- Tablet: 768px – 1023px ---- */
@media (min-width: 768px) {
  :root { --pad: 28px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .showcase__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .about__grid { grid-template-columns: 1fr 1.1fr; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .contact__formbtns { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .map-frame { height: 400px; }
}

/* ---- Laptop / Desktop: 1024px – 1919px (contact 50/50) ---- */
@media (min-width: 1024px) {
  :root { --pad: 40px; }
  .services__grid { grid-template-columns: repeat(4, 1fr); }
  .why__grid { grid-template-columns: repeat(3, 1fr); }
  .gallery__grid { grid-template-columns: repeat(5, 1fr); }
  .about__grid { grid-template-columns: 1fr 1.15fr; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .map-frame { height: 450px; }
}

/* ---- Smart TV / 4K: 1920px and above (max 1400px) ---- */
@media (min-width: 1920px) {
  :root { --pad: 56px; }
  html { font-size: 19px; }
  .hero__content { max-width: 900px; }
  .float-btn { width: 64px; height: 64px; font-size: 1.9rem; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
  .faq__media-inner { animation: none !important; }
}
