/* ==========================================================================
   Vanderscape Build Group — Site Styles
   Hand-built. Palette grounded in the company's own shoreline photography:
   lake teal, armour stone, warm sand, foliage green.
   ========================================================================== */

/* ----- Design tokens ---------------------------------------------------- */
:root {
  /* Brand — sampled directly from the Vanderscape logo */
  --navy-900:   #102545;   /* darkest — dark sections, footer */
  --navy-800:   #14305A;
  --navy:       #1E427C;   /* logo navy (text + break-wall mark) */
  --blue:       #0D76B8;   /* logo sky-blue — primary action colour */
  --blue-700:   #0B5E93;   /* darker blue — hovers */
  --blue-300:   #2E97D6;   /* bright blue */
  --gold:       #F7B500;   /* logo sun */
  --gold-soft:  #FBCB4B;
  --gold-deep:  #D99A06;

  /* Semantic aliases (used throughout) */
  --ink:        var(--navy-900);  /* darkest brand background */
  --deep:       #0E3E73;          /* rich mid-navy background */
  --teal:       var(--blue);      /* primary accent */
  --teal-700:   var(--blue-700);
  --teal-bright:var(--blue-300);
  --ember:      var(--gold);      /* warm secondary accent */
  --ember-soft: var(--gold-soft);

  /* Neutrals (cool, to sit under the blue brand) */
  --paper:      #F6F8FB;   /* page background */
  --sand:       #EAF0F7;   /* light section background */
  --sand-deep:  #DCE6F0;   /* card / inset background */
  --stone:      #8294A6;   /* muted slate */
  --line:       rgba(16, 37, 69, .12);
  --line-strong:rgba(16, 37, 69, .22);
  --white:      #ffffff;

  /* Text */
  --text:       #16243D;
  --muted:      #59697D;
  --on-dark:    rgba(255,255,255,.90);
  --on-dark-dim:rgba(255,255,255,.64);

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing / shape */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 3px;
  --radius-lg: 6px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(16,37,69,.06), 0 2px 8px rgba(16,37,69,.06);
  --shadow-md: 0 10px 30px -12px rgba(16,37,69,.26);
  --shadow-lg: 0 28px 60px -24px rgba(14,48,90,.42);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ----- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; }

/* ----- Typography ------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-optical-sizing: auto;
}
.h-display { font-size: clamp(2.7rem, 6.4vw, 5.2rem); font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.12rem, 1.7vw, 1.35rem); line-height: 1.55; color: var(--muted); }

.eyebrow {
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: .8;
}
.eyebrow.center::before { display: none; }
.on-dark .eyebrow { color: var(--ember-soft); }

/* ----- Layout ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1480px; }
.container-narrow { max-width: 820px; }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section-sm { padding-block: clamp(48px, 6vw, 84px); }
.section.tint { background: var(--sand); }
.section.dark { background: var(--ink); color: var(--on-dark); }
.section.deep { background: var(--deep); color: var(--on-dark); }
.section.dark h1,.section.dark h2,.section.dark h3,
.section.deep h1,.section.deep h2,.section.deep h3 { color: #fff; }

.stack > * + * { margin-top: 1.1rem; }
.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 1.1rem; }
.measure { max-width: 62ch; }

.grid { display: grid; gap: clamp(20px, 2.4vw, 34px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.7em;
  font-family: var(--body); font-weight: 600; font-size: .95rem;
  letter-spacing: .02em;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-700); }
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.on-dark .btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-lg { padding: 1.1em 2.1em; font-size: 1rem; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; color: var(--teal);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.link-arrow:hover { border-color: currentColor; gap: .75em; }
.link-arrow svg { width: 1.15em; height: 1.15em; flex: none; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.on-dark .link-arrow { color: var(--ember-soft); }

/* ----- Header / Nav ----------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; height: 84px;
}
.brand { display: flex; align-items: center; gap: .7rem; z-index: 2; }
.brand img { height: 40px; width: auto; display: block; transition: height .35s var(--ease); }
.brand .logo-on-light { display: none; }
.site-header.scrolled .brand img { height: 36px; }
.site-header.scrolled .brand .logo-on-dark,
.theme-light .brand .logo-on-dark { display: none; }
.site-header.scrolled .brand .logo-on-light,
.theme-light .brand .logo-on-light { display: block; }
.nav-open .brand .logo-on-dark { display: block; }
.nav-open .brand .logo-on-light { display: none; }
.brand .wordmark {
  font-family: var(--display); font-weight: 600; font-size: 1.42rem;
  letter-spacing: -.01em; color: #fff; line-height: 1;
}
.brand .wordmark span { color: var(--ember-soft); }

.site-header.scrolled .brand .wordmark,
.theme-light .brand .wordmark { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav a {
  font-size: .95rem; font-weight: 500; color: var(--on-dark);
  position: relative; padding-block: .3rem; transition: color .25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--ember); transition: width .3s var(--ease);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.site-header.scrolled .nav a, .theme-light .nav a { color: var(--text); }
.nav a:hover { color: #fff; }
.site-header.scrolled .nav a:hover, .theme-light .nav a:hover { color: var(--teal); }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; color: var(--on-dark); }
.header-phone svg { width: 17px; height: 17px; flex: none; }
.site-header.scrolled .header-phone, .theme-light .header-phone { color: var(--text); }

.site-header.scrolled, .theme-light .site-header {
  background: rgba(246,248,251,.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(16,37,69,.05);
}

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; z-index: 2; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.site-header { color: #fff; }
.site-header.scrolled, .theme-light .site-header { color: var(--ink); }

@media (max-width: 940px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-open .nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: fixed; inset: 84px 0 0 0; background: var(--ink); padding: 2rem var(--gutter);
  }
  .nav-open .nav a { color: #fff; font-size: 1.5rem; font-family: var(--display); padding: .8rem 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-open .header-cta { display: flex; position: fixed; inset: auto 0 0 0; background: var(--ink); padding: 1.5rem var(--gutter) 2.4rem; flex-direction: column; align-items: stretch; }
  .nav-open .header-phone { color: #fff; justify-content: center; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
  .nav-open .site-header { color: #fff; background: var(--ink); }
}

/* ----- Hero ------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(95deg, rgba(8,22,40,.74) 0%, rgba(8,22,40,.38) 50%, rgba(8,22,40,.06) 84%),
    linear-gradient(180deg, rgba(8,22,40,.55) 0%, rgba(8,22,40,.14) 26%, rgba(8,22,40,.44) 60%, rgba(7,18,34,.92) 100%);
}
.hero-inner { padding-block: clamp(120px, 16vh, 220px) clamp(56px, 8vh, 96px); max-width: 960px; }
.hero .eyebrow { text-shadow: 0 1px 10px rgba(6,16,30,.6); }
.hero h1 { color: #fff; text-shadow: 0 2px 28px rgba(6,16,30,.5), 0 1px 3px rgba(6,16,30,.35); }
.hero .lead { color: rgba(255,255,255,.92); max-width: 620px; margin-top: 1.4rem; text-shadow: 0 1px 14px rgba(6,16,30,.6); }
.hero-stat .num, .hero-stat .label { text-shadow: 0 1px 10px rgba(6,16,30,.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.6rem, 5vw, 4rem); margin-top: clamp(2.4rem,5vh,4rem); padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.18); }
.hero-stat .num { font-family: var(--display); font-size: clamp(2rem,3.4vw,2.9rem); font-weight: 500; color: #fff; line-height: 1; }
.hero-stat .label { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.66); margin-top: .5rem; }
.scroll-hint { position: absolute; bottom: 1.6rem; right: var(--gutter); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: .6rem; }
.scroll-hint::after { content: ""; width: 1px; height: 38px; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: scrollpulse 2.2s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100%{ transform: scaleY(.4); opacity:.4; transform-origin: top; } 50%{ transform: scaleY(1); opacity:1; transform-origin: top; } }

/* page hero (interior pages) */
.page-hero { position: relative; padding-block: clamp(150px, 22vh, 280px) clamp(50px, 8vw, 96px); color: #fff; overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content:""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,34,36,.62), rgba(11,30,32,.78)); }
.page-hero h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 22px rgba(6,16,30,.5); }
.page-hero .lead { color: rgba(255,255,255,.9); max-width: 60ch; margin-top: 1.1rem; text-shadow: 0 1px 12px rgba(6,16,30,.55); }
.crumbs { display:flex; gap:.6rem; align-items:center; font-size:.82rem; letter-spacing:.06em; color: rgba(255,255,255,.66); margin-bottom: 1.4rem; }
.crumbs a:hover { color:#fff; }
.crumbs .sep { opacity:.5; }

/* ----- Cards ------------------------------------------------------------ */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

/* Service card */
.service-card { padding: clamp(1.6rem, 2.4vw, 2.3rem); display: flex; flex-direction: column; gap: 1rem; height: 100%; position: relative; }
.service-card .idx { font-family: var(--display); font-size: 1rem; color: var(--stone); letter-spacing: .04em; }
.service-card h3 { color: var(--ink); }
.service-card p { color: var(--muted); font-size: .98rem; }
.service-card .icon { width: 46px; height: 46px; color: var(--teal); }
.service-card .icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.4; }
.service-card .more { margin-top: auto; }

/* Project card */
.project-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; color: #fff; }
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(8,22,38,0) 28%, rgba(8,22,38,.45) 56%, rgba(7,18,32,.92) 100%); transition: opacity .4s var(--ease); }
.project-card:hover img { transform: scale(1.06); }
.project-card .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem; z-index: 2; }
.project-card .place { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); text-shadow: 0 1px 8px rgba(6,16,28,.55); }
.project-card h3 { color: #fff; margin-top: .35rem; font-size: 1.45rem; text-shadow: 0 2px 16px rgba(6,16,28,.6), 0 1px 2px rgba(6,16,28,.4); }
.project-card .tag { display:inline-block; margin-top:.7rem; font-size:.82rem; color: rgba(255,255,255,.9); text-shadow: 0 1px 8px rgba(6,16,28,.55); opacity:0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.project-card:hover .tag { opacity:1; transform: translateY(0); }
.project-card.wide { aspect-ratio: 16/10; }
@media (max-width:640px){ .project-card, .project-card.wide { aspect-ratio: 4/3; } }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 80px); }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 5/4; object-fit: cover; box-shadow: var(--shadow-md); }
.split-media .badge { position: absolute; background: var(--gold); color: var(--navy-900); padding: 1.1rem 1.3rem; border-radius: var(--radius); bottom: -18px; left: -18px; box-shadow: var(--shadow-md); max-width: 220px; }
.split-media .badge .big { font-family: var(--display); font-size: 1.7rem; line-height: 1; display:block; }
.split-media .badge .small { font-size: .82rem; letter-spacing: .04em; opacity: .9; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }

/* ----- Stats strip ------------------------------------------------------ */
.statbar { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.statbar .cell { background: var(--paper); padding: clamp(1.4rem,2.6vw,2.4rem); text-align: center; }
.section.dark .statbar, .section.deep .statbar { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.14); }
.section.dark .statbar .cell, .section.deep .statbar .cell { background: var(--ink); }
.section.deep .statbar .cell { background: var(--deep); }
.statbar .num { font-family: var(--display); font-size: clamp(2rem,3.4vw,2.9rem); color: var(--ink); line-height: 1; }
.section.dark .statbar .num, .section.deep .statbar .num { color:#fff; }
.statbar .num em { font-style: normal; color: var(--blue); }
.section.dark .statbar .num em, .section.deep .statbar .num em { color: var(--gold); }
.statbar .label { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .6rem; }
.section.dark .statbar .label, .section.deep .statbar .label { color: var(--on-dark-dim); }
@media (max-width:640px){ .statbar { grid-template-columns: repeat(2,1fr); } }

/* ----- Process steps ---------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: clamp(20px,2.4vw,30px); grid-template-columns: repeat(4,1fr); }
@media (max-width:900px){ .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width:520px){ .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 2.6rem; }
.step::before { counter-increment: step; content: "0" counter(step); position:absolute; top:0; left:0; font-family: var(--display); font-size: 1.5rem; color: var(--blue); }
.on-dark .step::before { color: var(--gold); }
.step::after { content:""; position:absolute; top: .9rem; left: 3rem; right: 0; height:1px; background: var(--line); }
.steps .step:last-child::after { display:none; }
.on-dark .step::after { background: rgba(255,255,255,.16); }
.step h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .96rem; }
.on-dark .step p { color: var(--on-dark-dim); }

/* ----- Testimonials ----------------------------------------------------- */
.quote-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.8rem,3vw,2.6rem); display:flex; flex-direction:column; gap:1.2rem; height:100%; }
.quote-card .stars { color: var(--ember); letter-spacing: .15em; font-size: .95rem; }
.quote-card blockquote { font-family: var(--display); font-size: clamp(1.15rem,1.6vw,1.4rem); line-height: 1.45; color: var(--ink); font-weight: 400; }
.quote-card .who { margin-top: auto; display:flex; align-items:center; gap:.9rem; }
.quote-card .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color:#fff; display:grid; place-items:center; font-family: var(--display); font-size: 1.1rem; }
.quote-card .who .name { font-weight: 600; color: var(--ink); }
.quote-card .who .loc { font-size: .85rem; color: var(--muted); }

/* big featured quote */
.feature-quote { text-align:center; max-width: 980px; margin-inline:auto; }
.feature-quote blockquote { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem,3.4vw,2.7rem); line-height: 1.25; color: #fff; letter-spacing: -.01em; }
.feature-quote .who { margin-top: 1.8rem; color: var(--on-dark-dim); letter-spacing:.05em; }

/* ----- CTA banner ------------------------------------------------------- */
.cta-banner { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2.6rem,6vw,5rem); color:#fff; }
.cta-banner .cta-media { position:absolute; inset:0; z-index:-2; }
.cta-banner .cta-media img { width:100%; height:100%; object-fit:cover; }
.cta-banner::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(110deg, rgba(13,38,72,.95), rgba(13,55,98,.66)); }
.cta-banner h2 { color:#fff; max-width: 18ch; }
.cta-banner .lead { color: rgba(255,255,255,.85); max-width: 52ch; }
.cta-banner .actions { margin-top: 2rem; display:flex; flex-wrap:wrap; gap:1rem; }

/* ----- Gallery / lightbox ---------------------------------------------- */
.gallery-grid { columns: 3; column-gap: clamp(14px,1.6vw,22px); }
@media (max-width: 900px){ .gallery-grid { columns: 2; } }
@media (max-width: 540px){ .gallery-grid { columns: 1; } }
.gallery-grid .gitem { break-inside: avoid; margin-bottom: clamp(14px,1.6vw,22px); border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; position: relative; }
.gallery-grid .gitem img { width: 100%; transition: transform .6s var(--ease), filter .4s var(--ease); }
.gallery-grid .gitem:hover img { transform: scale(1.04); }
.gallery-grid .gitem::after { content:"⤢"; position:absolute; right:12px; bottom:10px; color:#fff; opacity:0; transition: opacity .3s var(--ease); text-shadow: 0 1px 4px rgba(0,0,0,.5); font-size:1.1rem; }
.gallery-grid .gitem:hover::after { opacity:.95; }

.filterbar { display:flex; flex-wrap:wrap; gap:.6rem; margin-bottom: 2.4rem; }
.filterbar button { background: transparent; border: 1px solid var(--line-strong); border-radius: 100px; padding: .55em 1.2em; font-size:.9rem; font-weight:500; cursor:pointer; color: var(--muted); transition: all .25s var(--ease); }
.filterbar button:hover { border-color: var(--ink); color: var(--ink); }
.filterbar button.active { background: var(--ink); border-color: var(--ink); color:#fff; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(9,20,21,.94); display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition: opacity .35s var(--ease), visibility .35s; padding: 4vw; }
.lightbox.open { opacity:1; visibility:visible; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox .lb-close, .lightbox .lb-nav { position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color:#fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display:grid; place-items:center; font-size: 1.4rem; transition: background .25s var(--ease); }
.lightbox .lb-close:hover, .lightbox .lb-nav:hover { background: rgba(255,255,255,.22); }
.lightbox .lb-close { top: 4vw; right: 4vw; }
.lightbox .lb-prev { left: 2vw; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 2vw; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position:absolute; bottom: 3vw; left:0; right:0; text-align:center; color: rgba(255,255,255,.7); letter-spacing:.1em; font-size:.85rem; }
@media (max-width:640px){ .lightbox .lb-nav { width:44px; height:44px; } }

/* ----- Forms ------------------------------------------------------------ */
.form-grid { display:grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width:600px){ .form-grid { grid-template-columns: 1fr; } }
.field label { display:block; font-size:.82rem; font-weight:600; letter-spacing:.06em; text-transform: uppercase; color: var(--muted); margin-bottom:.5rem; }
.field input, .field textarea, .field select {
  width:100%; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: .85em 1em; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline:none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(13,118,184,.18); }
.form-note { font-size:.85rem; color: var(--muted); }
.form-status { font-size:.95rem; padding:.8rem 1rem; border-radius: var(--radius); display:none; }
.form-status.show { display:block; }
.form-status.ok { background: rgba(13,118,184,.1); color: var(--blue-700); }

/* contact info list */
.info-list { display:grid; gap: 1.6rem; }
.info-item { display:flex; gap: 1.1rem; align-items:flex-start; }
.info-item .ico { flex:none; width:46px; height:46px; border-radius:50%; background: var(--sand); color: var(--teal); display:grid; place-items:center; }
.info-item .ico svg { width:22px; height:22px; stroke: currentColor; fill:none; stroke-width:1.6; }
.info-item .k { font-size:.78rem; letter-spacing:.14em; text-transform:uppercase; color: var(--muted); }
.info-item .v { font-size:1.1rem; font-weight:600; color: var(--ink); }
.info-item .v a:hover { color: var(--teal); }
.info-item .sub { font-size:.92rem; color: var(--muted); }

/* ----- Footer ----------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark-dim); padding-top: clamp(56px,7vw,96px); }
.footer-top { display:grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: clamp(24px,3vw,48px); padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width:860px){ .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width:520px){ .footer-top { grid-template-columns: 1fr; } }
.footer-brand .wordmark { font-family: var(--display); font-size: 1.6rem; color:#fff; }
.footer-brand .wordmark span { color: var(--ember-soft); }
.footer-brand p { margin-top: 1rem; max-width: 34ch; color: var(--on-dark-dim); font-size:.96rem; }
.footer-col h4 { font-family: var(--body); font-size:.8rem; letter-spacing:.16em; text-transform:uppercase; color: rgba(255,255,255,.5); margin-bottom: 1.1rem; font-weight:600; }
.footer-col ul { display:grid; gap:.7rem; }
.footer-col a { color: var(--on-dark-dim); transition: color .25s var(--ease); font-size:.97rem; }
.footer-col a:hover { color:#fff; }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap; padding-block: 1.6rem 2.2rem; font-size:.85rem; color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color:#fff; }
.social { display:flex; gap:.7rem; }
.social a { width:40px; height:40px; border-radius:50%; border:1px solid rgba(255,255,255,.18); display:grid; place-items:center; transition: all .25s var(--ease); }
.social a:hover { background:#fff; color: var(--ink); border-color:#fff; }
.social svg { width:18px; height:18px; }

/* WhatsApp float */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display:grid; place-items:center; box-shadow: var(--shadow-md); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill:#fff; }

/* ----- Scroll reveal ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1 !important; transform:none !important; }
  * { scroll-behavior: auto !important; }
  .scroll-hint::after { animation: none; }
}

/* ----- Services list (services page) ------------------------------------ */
.svc-list { display: grid; gap: 0; }
.svc-row {
  display: grid; grid-template-columns: 64px 70px 1fr; gap: clamp(1rem,2.4vw,2.4rem);
  align-items: start; padding: clamp(2rem,3.6vw,3.2rem) 0; border-top: 1px solid var(--line);
}
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-icon { width: 56px; height: 56px; color: var(--blue); }
.svc-icon svg { width: 100%; height: 100%; }
.svc-num { font-family: var(--display); font-size: clamp(2rem,4vw,3rem); color: var(--sand-deep); line-height: .9; }
.svc-main { max-width: 760px; }
.svc-main h3 { font-size: clamp(1.45rem,2.4vw,2rem); margin-bottom: .7rem; }
.svc-main > p { color: var(--muted); font-size: 1.06rem; max-width: 64ch; }
@media (max-width: 720px) {
  .svc-row { grid-template-columns: 48px 1fr; }
  .svc-num { display: none; }
  .svc-icon { width: 48px; height: 48px; }
}
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.6rem; margin-top: 1.4rem; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; font-size: .98rem; color: var(--text); }
.ticks svg { width: 19px; height: 19px; color: var(--blue); flex: none; margin-top: .2rem; }
@media (max-width: 540px) { .ticks { grid-template-columns: 1fr; } }

/* project filter grid cell */
.proj-cell { display: block; transition: opacity .4s var(--ease); }
.proj-cell.hide { display: none; }

/* skip link (a11y) */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color:#fff; padding: .8rem 1.2rem; z-index: 300; border-radius: 0 0 var(--radius) 0; }
.skip-link:focus { left: 0; }

/* ----- Misc ------------------------------------------------------------- */
.divider { height:1px; background: var(--line); border:0; }
.text-center { text-align:center; }
.mt-0{margin-top:0}.mt-1{margin-top:1rem}.mt-2{margin-top:2rem}.mt-3{margin-top:3rem}
.muted { color: var(--muted); }
.pill { display:inline-block; font-size:.76rem; letter-spacing:.12em; text-transform:uppercase; font-weight:600; color: var(--blue); background: rgba(13,118,184,.1); padding:.4em .9em; border-radius: 100px; }
.overline-rule { border-top: 1px solid var(--line); padding-top: 2.4rem; }

/* ===== Chat widget (scripted lead-capture) ============================== */
.vs-chat { position: fixed; right: 22px; bottom: 22px; z-index: 120; font-family: var(--body); }

/* launcher */
.vs-launcher {
  position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; box-shadow: var(--shadow-md);
  display: grid; place-items: center; transition: transform .25s var(--ease), background .25s var(--ease);
}
.vs-launcher:hover { transform: scale(1.06); background: var(--blue-700); }
.vs-launcher svg { width: 28px; height: 28px; position: absolute; transition: opacity .25s var(--ease), transform .3s var(--ease); }
.vs-launcher .ic-x { opacity: 0; transform: rotate(-45deg) scale(.6); }
.vs-chat.open .vs-launcher .ic-chat { opacity: 0; transform: rotate(45deg) scale(.6); }
.vs-chat.open .vs-launcher .ic-x { opacity: 1; transform: none; }
.vs-launcher .vs-badge {
  position: absolute; top: -2px; right: -2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold); color: var(--navy-900); font-size: .72rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--paper);
}
.vs-chat.open .vs-badge { display: none; }

/* proactive nudge */
.vs-proactive {
  position: absolute; right: 0; bottom: 74px; width: 250px; background: #fff; color: var(--text);
  border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; padding: .85rem 2.2rem .85rem 1rem;
  box-shadow: var(--shadow-md); font-size: .92rem; line-height: 1.4; cursor: pointer;
  opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.vs-proactive.show { opacity: 1; transform: none; pointer-events: auto; }
.vs-proactive strong { color: var(--blue); }
.vs-proactive .vs-prox { position: absolute; top: 6px; right: 8px; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 1.1rem; line-height: 1; }
.vs-chat.open .vs-proactive { display: none; }

/* panel */
.vs-panel {
  position: absolute; right: 0; bottom: 78px; width: 380px; max-width: calc(100vw - 28px);
  height: 580px; max-height: calc(100vh - 120px); background: var(--paper);
  border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.98); transform-origin: bottom right;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.vs-chat.open .vs-panel { opacity: 1; visibility: visible; transform: none; }

.vs-head { background: var(--ink); color: #fff; padding: 1.1rem 1.2rem; display: flex; align-items: center; gap: .8rem; }
.vs-head img { height: 30px; width: auto; }
.vs-head .vs-status { font-size: .78rem; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: .4rem; margin-top: .15rem; }
.vs-head .vs-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #38d39f; box-shadow: 0 0 0 3px rgba(56,211,159,.25); }
.vs-head .vs-title { font-weight: 600; font-size: .98rem; line-height: 1.1; }
.vs-head .vs-min { margin-left: auto; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1; transition: background .2s var(--ease); }
.vs-head .vs-min:hover { background: rgba(255,255,255,.24); }

.vs-body { flex: 1; overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: .7rem; scroll-behavior: smooth; background:
  linear-gradient(180deg, var(--sand) 0%, var(--paper) 120px); }
.vs-body::-webkit-scrollbar { width: 7px; }
.vs-body::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }

.vs-msg { max-width: 84%; padding: .7rem .95rem; font-size: .94rem; line-height: 1.45; border-radius: 14px; animation: vsIn .35s var(--ease) both; }
@keyframes vsIn { from { opacity: 0; transform: translateY(8px); } }
.vs-msg.bot { align-self: flex-start; background: #fff; color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.vs-msg.user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.vs-msg.bot a { color: var(--blue); font-weight: 600; }

.vs-typing { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; border-bottom-left-radius: 4px; padding: .8rem 1rem; display: inline-flex; gap: 5px; }
.vs-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--stone); animation: vsBounce 1.2s infinite; }
.vs-typing span:nth-child(2) { animation-delay: .15s; }
.vs-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes vsBounce { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* interactive zone */
.vs-chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: .2rem 0 .4rem; align-self: stretch; animation: vsIn .35s var(--ease) both; }
.vs-chip { background: #fff; border: 1px solid var(--blue); color: var(--blue); border-radius: 100px; padding: .55em 1em; font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .2s var(--ease); }
.vs-chip:hover { background: var(--blue); color: #fff; }
.vs-chip.ghost { border-color: var(--line-strong); color: var(--muted); }
.vs-chip.ghost:hover { background: var(--stone); border-color: var(--stone); color: #fff; }

.vs-form { align-self: stretch; display: grid; gap: .6rem; animation: vsIn .35s var(--ease) both; }
.vs-form input, .vs-form textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: .7em .9em; font-size: .92rem; background: #fff; }
.vs-form input:focus, .vs-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(13,118,184,.15); }
.vs-form .vs-row { display: flex; gap: .5rem; }
.vs-form button { background: var(--blue); color: #fff; border: 0; border-radius: 10px; padding: .8em 1em; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; transition: background .2s var(--ease); }
.vs-form button:hover { background: var(--blue-700); }
.vs-form button svg { width: 1.05em; height: 1.05em; }
.vs-send { display: flex; gap: .5rem; align-self: stretch; animation: vsIn .35s var(--ease) both; }
.vs-send input { flex: 1; border: 1px solid var(--line-strong); border-radius: 10px; padding: .7em .9em; font-size: .92rem; }
.vs-send input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(13,118,184,.15); }
.vs-send button { background: var(--blue); border: 0; color: #fff; width: 44px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; flex: none; }
.vs-send button:hover { background: var(--blue-700); }
.vs-send button svg { width: 18px; height: 18px; }
.vs-consent { font-size: .76rem; color: var(--muted); line-height: 1.4; }
.vs-consent a { color: var(--blue); }

/* quick actions / footer */
.vs-quick { display: flex; gap: .5rem; padding: .7rem 1rem; border-top: 1px solid var(--line); background: var(--paper); }
.vs-quick a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6em; border-radius: 10px; font-size: .85rem; font-weight: 600; border: 1px solid var(--line-strong); color: var(--text); transition: all .2s var(--ease); }
.vs-quick a:hover { border-color: var(--ink); }
.vs-quick a.wa { background: #25D366; border-color: #25D366; color: #fff; }
.vs-quick a.wa:hover { background: #1eb858; }
.vs-quick svg { width: 16px; height: 16px; flex: none; }

@media (max-width: 480px) {
  .vs-chat { right: 14px; bottom: 14px; }
  .vs-panel { width: calc(100vw - 20px); height: calc(100vh - 96px); right: -6px; }
}
@media (prefers-reduced-motion: reduce) { .vs-msg, .vs-chips, .vs-form, .vs-send { animation: none; } }
