/* ============================================================================
   Vision Touch Ltd — Premium Construction & Property Improvement
   Design system / global stylesheet
   Brand: charcoal base · warm stone · amber–copper accent (from logo)
   ========================================================================== */

/* ----------------------------------------------------------------- Tokens */
:root {
  /* Brand palette */
  --charcoal:      #16130F;   /* luxury near-black base */
  --charcoal-2:    #1F1B16;   /* raised dark surface */
  --charcoal-3:    #2A251E;   /* dark cards / footer panels */
  --stone:         #F6F2EB;   /* warm off-white page bg */
  --stone-2:       #EFE9DF;   /* alt section bg */
  --white:         #FFFFFF;
  --ink:           #1E1A15;   /* primary text on light */
  --ink-soft:      #5A524A;   /* muted text on light */
  --ink-faint:     #8C8378;
  --line:          #E4DCCF;   /* hairlines on light */

  /* Accent (logo amber → copper) */
  --amber:         #F7931E;
  --amber-bright:  #FBB040;
  --copper:        #E2620E;
  --accent-grad:   linear-gradient(135deg, #FBB040 0%, #F7931E 45%, #E2620E 100%);
  --accent-grad-soft: linear-gradient(135deg, rgba(251,176,64,.16), rgba(226,98,14,.10));

  /* On-dark text */
  --on-dark:       #F4EFE7;
  --on-dark-soft:  #B8AE9F;

  /* Typography */
  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body:    "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --container: 1240px;
  --container-narrow: 880px;
  --radius:  16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(22,19,15,.06);
  --shadow:    0 18px 50px -22px rgba(22,19,15,.28);
  --shadow-lg: 0 40px 90px -40px rgba(22,19,15,.45);
  --ring: 0 0 0 3px rgba(247,147,30,.35);

  --ease: cubic-bezier(.22,.61,.36,1);
  --t-fast: .22s var(--ease);
  --t: .4s var(--ease);

  --header-h: 84px;
}

/* ----------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--stone);
  color: var(--ink);
  line-height: 1.65;
  font-size: clamp(1rem, .96rem + .2vw, 1.08rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ----------------------------------------------------------- Typography */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.5rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 1.05rem + .9vw, 1.7rem); }
h4 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
p { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 700; }
.serif { font-family: var(--font-display); }

/* Brand motif: orange initial on major headings (echoes the logo's orange V/T) */
.section-head h2::first-letter,
.feature-row h2::first-letter,
.cta-banner h2::first-letter { color: var(--copper); }
.bg-dark .section-head h2::first-letter,
.bg-dark .feature-row h2::first-letter,
.cta-banner h2::first-letter { color: var(--amber-bright); }
/* keep a subtle orange tint on emphasised lead text */
.lead strong { color: var(--copper); }

/* Client-requested: more brand orange — warm subheadings & CTA banner */
.section-head .lead { color: var(--copper); }
.bg-dark .section-head .lead { color: var(--amber-bright); }
.cta-banner .lead, .cta-banner p { color: #F3CE9C; }

/* ----------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 3vw, 2.4rem); }
.narrow { max-width: var(--container-narrow); }
section { position: relative; }
.section { padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 2.4rem + 3vw, 5rem); }
.bg-stone { background: var(--stone); }
.bg-stone-2 { background: var(--stone-2); }
.bg-dark { background: var(--charcoal); color: var(--on-dark); }
.bg-dark h1,.bg-dark h2,.bg-dark h3 { color: var(--white); }
.bg-dark p { color: var(--on-dark-soft); }
.center { text-align: center; }
.center .eyebrow, .center .lead { margin-inline: auto; }

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--copper);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent-grad); border-radius: 2px; }
.bg-dark .eyebrow { color: var(--amber-bright); }
.center .eyebrow::before { display: none; }

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); }
.center.section-head { margin-inline: auto; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.28rem); color: var(--ink-soft); margin-top: 1rem; }
.bg-dark .lead { color: var(--on-dark-soft); }

/* ----------------------------------------------------------- Buttons */
.btn {
  --bg: var(--ink); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  background: var(--bg); color: var(--fg);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);
  will-change: transform; white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent-grad); color: #2a1602; box-shadow: 0 12px 30px -12px rgba(226,98,14,.6); }
.btn--primary:hover { box-shadow: 0 18px 40px -14px rgba(226,98,14,.7); }
.btn--ghost { background: transparent; color: currentColor; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.bg-dark .btn--ghost, .hero .btn--ghost { color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.btn--ghost-dark { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost-dark:hover { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--wa { background: #25D366; color: #06310f; }
.btn--sm { padding: .65rem 1.15rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Text link with arrow */
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--copper); }
.link-arrow svg { width: 1.05em; transition: transform var(--t-fast); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ----------------------------------------------------------- Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background var(--t), box-shadow var(--t), height var(--t);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.site-header.scrolled { background: rgba(22,19,15,.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); height: 72px; }
.brand { display: flex; align-items: center; gap: .62rem; z-index: 2; }
.brand__mark { height: 44px; width: auto; transition: height var(--t); flex: none; }
.site-header.scrolled .brand__mark { height: 38px; }
.brand__word { height: 21px; width: auto; transition: height var(--t); }
.site-header.scrolled .brand__word { height: 19px; }
.brand--footer { gap: .7rem; }
.brand--footer .brand__mark { height: 50px; }
.brand--footer .brand__word { height: 26px; }

/* -------- Animated 3D logo (toggle via SITE.logoMotion in build/site.mjs) -------- */
.logo-motion { perspective: 640px; }
.logo-motion .brand__mark {
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 6px 9px rgba(226, 98, 14, .32));
  animation: logoIn .9s var(--ease) both, logoFloat 7s ease-in-out .9s infinite;
  will-change: transform, filter;
}
.logo-motion .brand__word { animation: logoWordIn 1s var(--ease) both; backface-visibility: hidden; }
/* hover: satisfying 3D barrel-roll + lift (overrides the idle float) */
.logo-motion:hover .brand__mark {
  animation: logoSpin 1.05s var(--ease);
  filter: drop-shadow(0 11px 18px rgba(226, 98, 14, .55));
}
@keyframes logoIn {
  0%   { opacity: 0; transform: rotateY(-115deg) translateY(-5px) scale(.82); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: rotateY(0) translateY(0) scale(1); }
}
@keyframes logoWordIn {
  0%   { opacity: 0; transform: translateX(-10px); }
  40%  { opacity: 0; }
  100% { opacity: 1; transform: none; }
}
@keyframes logoFloat {
  0%   { transform: rotateY(-7deg) translateY(0); }
  50%  { transform: rotateY(7deg) translateY(-3px); }
  100% { transform: rotateY(-7deg) translateY(0); }
}
@keyframes logoSpin {
  0%   { transform: rotateY(0); }
  100% { transform: rotateY(360deg); }
}

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a { padding: .55rem .7rem; border-radius: 999px; font-weight: 600; font-size: .94rem; color: var(--on-dark); transition: color var(--t-fast), background var(--t-fast); white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: var(--amber-bright); }
.nav > .btn { display: none; } /* shown only inside mobile menu */

/* dropdown */
.has-sub { position: relative; }
.has-sub > button { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .7rem; border-radius: 999px; font-weight: 600; font-size: .94rem; color: var(--on-dark); white-space: nowrap; }
.has-sub > button:hover { color: var(--white); background: rgba(255,255,255,.08); }
.has-sub > button svg { width: .8em; transition: transform var(--t-fast); }
.submenu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .6rem; width: 460px; display: grid; grid-template-columns: 1fr 1fr; gap: .15rem;
  opacity: 0; visibility: hidden; transition: opacity var(--t-fast), transform var(--t-fast);
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.submenu a { color: var(--ink); font-size: .92rem; padding: .6rem .75rem; border-radius: 10px; display: flex; align-items: center; gap: .55rem; }
.submenu a:hover { background: var(--stone); color: var(--copper); }
.submenu a .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-grad); flex: none; }

.header-cta { display: flex; align-items: center; gap: .7rem; }
.header-phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--on-dark); }
.header-phone svg { width: 1.05em; color: var(--amber-bright); }
.header-phone span { font-size: .7rem; display: block; color: var(--on-dark-soft); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* Burger */
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; position: relative; z-index: 120; background: rgba(255,255,255,.08); }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); border-radius: 2px; transition: transform var(--t-fast), opacity var(--t-fast); }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ----------------------------------------------------------- Hero */
.hero { position: relative; min-height: clamp(620px, 92vh, 900px); display: flex; align-items: flex-end; color: var(--white); isolation: isolate; }
.hero--page { min-height: clamp(440px, 62vh, 600px); align-items: center; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--charcoal); }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,19,15,.55) 0%, rgba(22,19,15,.25) 35%, rgba(22,19,15,.78) 100%);
}
.hero__media--page::after { background: linear-gradient(180deg, rgba(22,19,15,.62), rgba(22,19,15,.72)); }
.hero__inner { padding-block: clamp(3rem, 6vw, 6rem); padding-top: calc(var(--header-h) + 2rem); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero--page h1 { max-width: 20ch; }
.hero .lead { color: rgba(255,255,255,.86); max-width: 56ch; }
.hero__cta { margin-top: 2rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.16); }
.hero__badge { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: rgba(255,255,255,.9); font-weight: 600; }
.hero__badge svg { width: 1.3em; color: var(--amber-bright); flex: none; }

/* breadcrumb */
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--amber-bright); }
.breadcrumb span { color: rgba(255,255,255,.45); }

/* ----------------------------------------------------------- Trust strip */
.trust-strip { background: var(--charcoal-2); color: var(--on-dark); }
.trust-strip .container { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; padding-block: 1.8rem; }
.trust-item { display: flex; align-items: center; gap: .7rem; font-size: .9rem; font-weight: 600; color: var(--on-dark); }
.trust-item svg { width: 1.6em; height: 1.6em; color: var(--amber-bright); flex: none; }
.trust-item small { display: block; font-weight: 500; color: var(--on-dark-soft); font-size: .78rem; }

/* ----------------------------------------------------------- Cards / grids */
.grid { display: grid; gap: clamp(1.1rem, 2vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Service card */
.card-service {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--charcoal);
  min-height: 340px; display: flex; align-items: flex-end; color: #fff; isolation: isolate;
  box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t);
}
.card-service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.card-service::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22,19,15,0) 30%, rgba(22,19,15,.45) 60%, rgba(22,19,15,.92) 100%); }
.card-service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-service:hover img { transform: scale(1.07); }
.card-service__body { padding: 1.6rem; width: 100%; }
.card-service h3 { color: #fff; margin-bottom: .35rem; }
.card-service p { color: rgba(255,255,255,.82); font-size: .92rem; }
.card-service .link-arrow { color: var(--amber-bright); margin-top: .9rem; }
.card-service__tag { position: absolute; top: 1.1rem; left: 1.1rem; z-index: 1; background: rgba(22,19,15,.55); backdrop-filter: blur(6px); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .4rem .75rem; border-radius: 999px; }

/* Feature card (light) */
.card {
  background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 1.5vw, 2.2rem);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon-badge { margin-bottom: 1.1rem; }
.icon-badge {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-grad-soft); color: var(--copper); box-shadow: inset 0 0 0 1px rgba(226,98,14,.18);
}
.icon-badge svg { width: 26px; height: 26px; }
.bg-dark .icon-badge { background: rgba(247,147,30,.14); color: var(--amber-bright); box-shadow: inset 0 0 0 1px rgba(247,147,30,.25); }
.card h3 { margin-bottom: .5rem; }
.card h4 { margin-bottom: .4rem; }
.card p { font-size: .96rem; }

/* Stat */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); font-weight: 600; line-height: 1; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-size: .9rem; color: var(--ink-soft); margin-top: .5rem; font-weight: 600; }
.bg-dark .stat__label { color: var(--on-dark-soft); }

/* ----------------------------------------------------------- Zig-zag feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 4.5rem); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(3rem, 5vw, 5.5rem); }
.feature-row--rev .feature-row__media { order: 2; }
.feature-row__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; position: relative; }
.feature-row__media img, .feature-row__media video { width: 100%; height: 100%; object-fit: cover; }
.feature-row h2 { margin-bottom: 1rem; }
.feature-list { margin-top: 1.4rem; display: grid; gap: .8rem; }
.feature-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-soft); }
.feature-list svg { width: 1.35em; height: 1.35em; color: var(--copper); flex: none; margin-top: .15rem; }
.bg-dark .feature-list li { color: var(--on-dark-soft); }
.bg-dark .feature-list svg { color: var(--amber-bright); }

/* ----------------------------------------------------------- Process steps */
.steps { counter-reset: step; display: grid; gap: 1.2rem; }
.steps--row { grid-template-columns: repeat(5, 1fr); }
.step { position: relative; padding: 1.6rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.bg-dark .step { background: var(--charcoal-2); border-color: rgba(255,255,255,.08); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: .5rem; }
.step h4 { margin-bottom: .35rem; }
.step p { font-size: .9rem; }

/* ----------------------------------------------------------- Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1rem,2vw,1.6rem); }
.project {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3.4;
  background: var(--charcoal); isolation: isolate; box-shadow: var(--shadow-sm);
  width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; padding: 0;
  transition: transform var(--t), box-shadow var(--t);
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.project picture { position: absolute; inset: 0; z-index: -2; }
.project::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22,19,15,0) 35%, rgba(22,19,15,.9) 100%); }
.project:hover img { transform: scale(1.08); }
.project__zoom { position: absolute; top: 1rem; right: 1rem; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: rgba(22,19,15,.5); backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.85); transition: opacity var(--t-fast), transform var(--t-fast), background var(--t-fast); }
.project__zoom svg { width: 1.15em; }
.project:hover .project__zoom, .project:focus-visible .project__zoom { opacity: 1; transform: scale(1); }
.project:hover .project__zoom { background: var(--accent-grad); color: #2a1602; }

/* ----------------------------------------------------------- Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem); }
.lightbox.open { display: flex; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(10,8,6,.88); backdrop-filter: blur(4px); animation: lbFade .25s var(--ease); }
.lightbox__inner { position: relative; z-index: 1; max-width: min(1100px, 94vw); display: flex; flex-direction: column; align-items: center; margin: 0; animation: lbIn .3s var(--ease); }
.lightbox__img { max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: 14px; box-shadow: var(--shadow-lg); background: var(--charcoal-2); }
.lightbox__cap { margin-top: 1rem; text-align: center; }
.lightbox__cap strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: #fff; }
.lightbox__cap span { color: var(--amber-bright); font-size: .9rem; }
.lightbox__close { position: absolute; top: -3.2rem; right: -.2rem; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 1.7rem; line-height: 1; display: grid; place-items: center; z-index: 2; transition: var(--t-fast); }
.lightbox__close:hover { background: var(--accent-grad); color: #2a1602; }
@keyframes lbIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.project__body { position: absolute; inset: auto 0 0 0; padding: 1.4rem; color: #fff; }
.project__cat { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-bright); font-weight: 700; }
.project__body h3 { color: #fff; font-size: 1.25rem; margin: .3rem 0; }
.project__loc { font-size: .85rem; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: .35rem; }
.project__loc svg { width: 1em; }

/* Before / After */
.ba-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(1.2rem,3vw,2.2rem); }
.ba-item--wide { grid-column: 1 / -1; }
/* homepage teaser: shorter sliders so both fit in one viewport */
.ba-grid--home .ba { aspect-ratio: auto !important; height: clamp(300px, 44vh, 440px); }
.ba-caption { margin-top: .9rem; display: flex; flex-direction: column; }
.ba-caption strong { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.ba-caption span { font-size: .82rem; color: var(--copper); font-weight: 600; letter-spacing: .02em; }
.ba {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: ew-resize; user-select: none; background: var(--charcoal-2);
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 50%); }
.ba__divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--amber-bright); transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.ba__handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: var(--white); display: grid; place-items: center; box-shadow: var(--shadow); pointer-events: none; color: var(--copper); }
.ba__handle svg { width: 24px; }
.ba__label { position: absolute; bottom: .8rem; padding: .3rem .7rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(22,19,15,.6); border-radius: 999px; pointer-events: none; }
.ba__label--b { left: .8rem; } .ba__label--a { right: .8rem; }

/* ----------------------------------------------------------- "See us at work" coverflow */
.work-section { overflow: hidden; padding-block: clamp(1.8rem, 1.3rem + 1.8vw, 3rem); }
.work-section .section-head { margin-bottom: clamp(1.2rem, .9rem + 1vw, 1.8rem); }
.cf { position: relative; }
.cf__viewport { position: relative; overflow: hidden; }
.cf__stage { position: relative; height: clamp(240px, 40vh, 360px); }
.cf__card {
  position: absolute; top: 50%; left: 50%;
  width: clamp(180px, 19vw, 260px); height: clamp(216px, 36vh, 320px);
  border-radius: 18px; overflow: hidden; background: var(--charcoal-2); box-shadow: var(--shadow);
  transition: transform .6s var(--ease), opacity .6s var(--ease), filter .6s var(--ease), box-shadow .6s var(--ease);
  will-change: transform, opacity; cursor: pointer;
}
.cf__card picture { display: block; height: 100%; }
.cf__card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; }
.cf__card:not(.is-active) { filter: saturate(.8) brightness(.82); }
.cf__card.is-active { box-shadow: var(--shadow-lg); cursor: default; }
.cf__controls { display: flex; align-items: center; justify-content: center; gap: .7rem; margin-top: 1.1rem; }
.cf__arrow { width: 36px; height: 36px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); box-shadow: var(--shadow-sm); transition: var(--t-fast); flex: none; }
.cf__arrow:hover { background: var(--accent-grad); color: #2a1602; border-color: transparent; }
.cf__arrow svg { width: 1.05em; }
.cf__arrow[data-cf-prev] svg { transform: rotate(180deg); }
.cf__dots { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; justify-content: center; max-width: min(60vw, 400px); }
.cf__dot { width: 7px; height: 7px; border-radius: 999px; background: rgba(22,19,15,.2); border: 0; padding: 0; cursor: pointer; transition: width var(--t-fast), background var(--t-fast); }
.cf__dot:hover { background: rgba(22,19,15,.42); }
.cf__dot.active { width: 20px; background: var(--accent-grad); }
.bg-dark .cf__dot { background: rgba(255,255,255,.25); }
.bg-dark .cf__arrow { background: var(--charcoal-2); border-color: rgba(255,255,255,.12); color: #fff; }

/* ----------------------------------------------------------- Reviews */
.reviews-track-wrap { overflow: hidden; }
.reviews-track { display: flex; gap: 1.4rem; transition: transform .6s var(--ease); }
.review {
  flex: 0 0 calc((100% - 2.8rem)/3); background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.bg-dark .review { background: var(--charcoal-2); border-color: rgba(255,255,255,.08); }
.stars { color: var(--amber); display: inline-flex; gap: 2px; margin-bottom: .9rem; }
.stars svg { width: 1.1em; height: 1.1em; }
.review p { color: var(--ink); font-size: 1.02rem; line-height: 1.6; flex: 1; }
.bg-dark .review p { color: var(--on-dark); }
.review__by { margin-top: 1.3rem; display: flex; align-items: center; gap: .8rem; }
.review__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-grad); color: #2a1602; display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); flex: none; }
.review__name { font-weight: 700; color: var(--ink); font-size: .95rem; }
.bg-dark .review__name { color: var(--white); }
.review__meta { font-size: .82rem; color: var(--ink-faint); }
.carousel-dots { display: flex; gap: .6rem; justify-content: center; margin-top: 2.2rem; }
.carousel-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.28); border: 0; padding: 0; cursor: pointer; transition: width var(--t-fast), background var(--t-fast); }
.carousel-dot:hover { background: rgba(255,255,255,.5); }
.carousel-dot.active { width: 30px; background: var(--accent-grad); }
/* dots on light sections */
.bg-stone .carousel-dot, .bg-stone-2 .carousel-dot { background: rgba(22,19,15,.18); }
.bg-stone .carousel-dot:hover, .bg-stone-2 .carousel-dot:hover { background: rgba(22,19,15,.35); }
.bg-stone .carousel-dot.active, .bg-stone-2 .carousel-dot.active { background: var(--accent-grad); }

/* ----------------------------------------------------------- FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.bg-dark .faq__item { border-color: rgba(255,255,255,.1); }
.faq__q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 0; font-weight: 700; font-size: 1.08rem; font-family: var(--font-display); color: var(--ink); }
.bg-dark .faq__q { color: var(--white); }
.faq__q .plus { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-grad-soft); color: var(--copper); display: grid; place-items: center; transition: transform var(--t-fast); }
.faq__item[open] .faq__q .plus { transform: rotate(45deg); }
.faq__q .plus svg { width: 1.1em; }
.faq__q::-webkit-details-marker { display: none; }
.faq__a { padding: 0 0 1.4rem; color: var(--ink-soft); max-width: 70ch; }
.bg-dark .faq__a { color: var(--on-dark-soft); }

/* ----------------------------------------------------------- CTA banner */
.cta-banner { position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: clamp(20px, 3vw, 36px); padding: clamp(2.5rem, 4vw, 4.5rem); background: var(--charcoal); }
.cta-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .35; }
.cta-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(22,19,15,.92), rgba(22,19,15,.6)); }
.cta-banner h2 { color: #fff; max-width: 22ch; }
.cta-banner p { color: rgba(255,255,255,.85); }
.cta-banner .btn-row { margin-top: 1.8rem; }

/* ----------------------------------------------------------- Forms */
.form-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.6rem, 1rem + 2vw, 3rem); border: 1px solid var(--line); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .45rem; color: var(--ink); }
.field .req { color: var(--copper); }
.field input, .field select, .field textarea {
  width: 100%; padding: .9rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--stone); color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); background: #fff; box-shadow: var(--ring); outline: none; }
.field textarea { min-height: 140px; resize: vertical; }
.field--error input, .field--error select, .field--error textarea { border-color: #d8412f; }
.field__err { color: #c8351f; font-size: .82rem; margin-top: .35rem; display: none; font-weight: 600; }
.field--error .field__err { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.checkbox { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.checkbox input { width: auto; margin-top: .25rem; accent-color: var(--copper); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-status { padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 1.2rem; display: none; }
.form-status--ok { display: block; background: #e7f6ec; color: #1d6b3a; border: 1px solid #bfe6cd; }
.form-status--err { display: block; background: #fdecea; color: #b5301d; border: 1px solid #f4c7c0; }

/* ----------------------------------------------------------- Contact tiles */
.contact-tile { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: var(--t-fast); }
.contact-tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.contact-tile .icon-badge { flex: none; }
.contact-tile h4 { margin-bottom: .2rem; }
.contact-tile a, .contact-tile p { color: var(--ink-soft); font-size: .95rem; }
.contact-tile a:hover { color: var(--copper); }

/* ----------------------------------------------------------- Footer */
.site-footer { background: var(--charcoal); color: var(--on-dark-soft); padding-top: clamp(3.5rem,5vw,5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.brand--footer .brand__mark { height: 50px; }
.brand--footer .brand__name { font-size: 1.3rem; }
.site-footer h4 { color: var(--amber-bright); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2rem; font-family: var(--font-body); }
.footer-links { display: grid; gap: .65rem; }
.footer-links a { font-size: .94rem; color: var(--on-dark-soft); transition: color var(--t-fast); }
.footer-links a:hover { color: var(--amber-bright); }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .85rem; font-size: .94rem; }
.footer-contact svg { width: 1.15em; color: var(--amber-bright); flex: none; margin-top: .25rem; }
.footer-contact a:hover { color: var(--amber-bright); }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a { width: 42px; height: 42px; border-radius: 12px; background: rgba(247,147,30,.12); display: grid; place-items: center; color: var(--amber-bright); transition: var(--t-fast); }
.socials a:hover { background: var(--accent-grad); color: #2a1602; transform: translateY(-3px); }
.socials svg { width: 1.2em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.6rem; display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between; align-items: center; font-size: .85rem; }
.footer-bottom a:hover { color: var(--amber-bright); }
.footer-credit { font-size: .78rem; color: var(--ink-faint); text-align: center; padding-bottom: 1.4rem; max-width: 760px; margin-inline: auto; line-height: 1.5; }
.footer-credit a { color: var(--on-dark-soft); text-decoration: underline; }
.footer-auztec { display: inline-block; margin-bottom: .7rem; opacity: .92; transition: opacity var(--t-fast), transform var(--t-fast); }
.footer-auztec:hover { opacity: 1; transform: translateY(-2px); }
.footer-auztec img { height: 46px; width: auto; }

/* ----------------------------------------------------------- Floating WhatsApp */
.wa-float { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 90; display: flex; align-items: center; gap: .7rem; }
.wa-float__btn { width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 34px -8px rgba(37,211,102,.6); transition: transform var(--t-fast), box-shadow var(--t-fast); animation: wa-pulse 2.6s infinite; }
.wa-float__btn svg { width: 32px; height: 32px; }
.wa-float__btn:hover { transform: scale(1.08); box-shadow: 0 18px 40px -8px rgba(37,211,102,.75); }
.wa-bubble { background: #fff; color: var(--ink); font-weight: 700; font-size: .9rem; padding: .6rem .95rem; border-radius: 999px 999px 4px 999px; box-shadow: var(--shadow); white-space: nowrap; }
@keyframes wa-pulse { 0% { box-shadow: 0 14px 34px -8px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,.4);} 70%{ box-shadow: 0 14px 34px -8px rgba(37,211,102,.6), 0 0 0 16px rgba(37,211,102,0);} 100%{box-shadow:0 14px 34px -8px rgba(37,211,102,.6),0 0 0 0 rgba(37,211,102,0);} }

/* ----------------------------------------------------------- Hammer cursor */
.hammer-cursor { position: fixed; top: 0; left: 0; width: 30px; height: 30px; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); transition: opacity .3s, scale .15s; opacity: 0; will-change: transform; }
.hammer-cursor.is-active { opacity: .9; }
.hammer-cursor.is-down { scale: .8; }

/* ----------------------------------------------------------- Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* Accent divider */
.divider-mark { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--ink-faint); }
.divider-mark::before, .divider-mark::after { content: ""; height: 1px; width: min(120px, 18vw); background: var(--line); }

/* prose for legal pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 1rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--copper); text-decoration: underline; }

/* Areas / map */
.map-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3.1; border: 1px solid var(--line); background: var(--stone); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.95); }
.areas-chips .chip { display: inline-flex; align-items: center; gap: .4rem; }
.areas-chips .chip svg { width: 1.05em; height: 1.05em; color: var(--copper); flex: none; }
.areas-chips .chip:hover svg { color: var(--amber-bright); }
@media (max-width: 820px) { .map-layout { grid-template-columns: 1fr; } .map-embed { aspect-ratio: 16 / 11; } }

/* tag chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { padding: .45rem .9rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink-soft); transition: var(--t-fast); }
.chip:hover, .chip.active { background: var(--accent-grad); color: #2a1602; border-color: transparent; }
.areas-chips .chip:hover svg, .chip.active svg { color: #2a1602; }

/* Text-selection highlight in brand orange */
::selection { background: var(--amber); color: #2a1602; }
::-moz-selection { background: var(--amber); color: #2a1602; }

/* ----------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .trust-strip .container { grid-template-columns: repeat(3,1fr); gap: 1.2rem 1rem; }
  .steps--row { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .nav, .header-phone { display: none; }
  .burger { display: block; }
  .header-cta .btn { display: none; }
  /* mobile nav panel */
  .nav {
    position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: .2rem; padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem; background: var(--charcoal);
    transform: translateX(100%); transition: transform var(--t); overflow-y: auto;
  }
  body.nav-open .nav { transform: none; }
  .nav a { font-size: 1.15rem; padding: .9rem 1rem; border-bottom: 1px solid rgba(255,255,255,.07); border-radius: 0; }
  .has-sub { width: 100%; }
  .has-sub > button { width: 100%; justify-content: space-between; font-size: 1.15rem; padding: .9rem 1rem; border-bottom: 1px solid rgba(255,255,255,.07); }
  .submenu { position: static; transform: none; opacity: 1; visibility: visible; width: 100%; display: none; grid-template-columns: 1fr; background: transparent; box-shadow: none; padding: .2rem 0 .6rem .6rem; }
  /* prevent the desktop hover/focus rule (translateX(-50%)) from shifting the panel off-screen on touch */
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { transform: none; left: auto; }
  .has-sub.open .submenu { display: block; }
  .submenu a { color: var(--on-dark-soft); font-size: 1rem; padding: .75rem 1rem; white-space: normal; }
  .submenu a:hover { background: rgba(255,255,255,.06); color: var(--amber-bright); }
  .nav .btn { display: inline-flex; margin-top: 1rem; }
}
@media (max-width: 820px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .portfolio-grid { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); gap: 2rem 1rem; }
  .feature-row { grid-template-columns: 1fr; gap: 1.6rem; }
  .feature-row--rev .feature-row__media { order: 0; }
  .review { flex-basis: calc((100% - 1.4rem)/2); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .portfolio-grid, .ba-grid { grid-template-columns: 1fr; }
  .trust-strip .container { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .review { flex-basis: 100%; }
  .steps--row { grid-template-columns: 1fr; }
  .hero__badges { gap: 1rem 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-bubble { display: none; }
  .btn { width: 100%; }
  .hero__cta .btn, .btn-row .btn { width: auto; }
}

/* ----------------------------------------------------------- Motion / a11y */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hammer-cursor { display: none !important; }
}
.skip-link { position: absolute; left: -999px; top: .5rem; z-index: 999; background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: 8px; }
.skip-link:focus { left: .5rem; }
