/* ===========================================================
   Viridity Incorporated — design system
   Warm editorial · forest green · photo-forward
   =========================================================== */

:root {
  /* Brand greens */
  --forest-900: #13241b;
  --forest-800: #1b3a2b;
  --forest-700: #235741;
  --green-600:  #2f7d52;
  --green-500:  #3e9a63;
  --lime:       #8dc63f;

  /* Warm neutrals */
  --sand-50:  #f8f5ee;
  --sand-100: #f1ebdd;
  --sand-200: #e6ddcb;
  --sand-300: #d8cdb6;

  /* Ink / text */
  --ink:       #17211b;
  --ink-soft:  #2c352e;
  --stone:     #69706a;
  --white:     #ffffff;

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1200px;
  --maxw-wide: 1500px;

  --shadow-sm: 0 1px 2px rgba(19, 36, 27, .06), 0 4px 14px rgba(19, 36, 27, .06);
  --shadow-md: 0 10px 30px rgba(19, 36, 27, .12);
  --shadow-lg: 0 30px 70px rgba(19, 36, 27, .22);

  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand-50);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.container-wide { width: 100%; max-width: var(--maxw-wide); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 1.1rem;
}
.eyebrow-light { color: var(--lime); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 480; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); }

.section { padding: clamp(4.5rem, 9vw, 8.5rem) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-title { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.section-sub { margin-top: 1.25rem; font-size: 1.15rem; color: var(--stone); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
}
.btn-lg { padding: 1.05rem 2rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green-600); color: var(--white); box-shadow: 0 8px 22px rgba(47, 125, 82, .28); }
.btn-primary:hover { background: var(--forest-700); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(35, 87, 65, .34); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--white); border: 1.5px solid rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--forest-800); box-shadow: var(--shadow-sm); }
.btn-light:hover { background: var(--sand-100); transform: translateY(-2px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; color: var(--green-600);
  margin-top: .35rem;
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  background: linear-gradient(to bottom, rgba(19,36,27,.55), rgba(19,36,27,0));
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(248, 245, 238, .88);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(19,36,27,.06), 0 12px 30px rgba(19,36,27,.07);
  border-bottom-color: rgba(19,36,27,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand-logo { height: 34px; width: auto; transition: filter .35s var(--ease); filter: brightness(0) invert(1); }
.site-header.scrolled .brand-logo { filter: none; }

.nav-desktop { display: flex; gap: 2.1rem; }
.nav-desktop a {
  font-size: .96rem; font-weight: 500; color: var(--white);
  position: relative; padding: .25rem 0; transition: color .3s var(--ease);
}
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--lime); transition: width .3s var(--ease);
}
.nav-desktop a:hover::after { width: 100%; }
.site-header.scrolled .nav-desktop a { color: var(--ink-soft); }

.header-cta { display: flex; align-items: center; gap: 1.25rem; }
.phone-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .96rem; color: var(--white);
  transition: color .3s var(--ease);
}
.site-header.scrolled .phone-link { color: var(--forest-800); }
.phone-link svg { opacity: .85; }

/* Hamburger */
.nav-toggle { display: none; width: 30px; height: 22px; position: relative; }
.nav-toggle span {
  position: absolute; left: 0; height: 2px; width: 100%; background: var(--white);
  border-radius: 2px; transition: transform .35s var(--ease), opacity .25s var(--ease), background .35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }
body.nav-open .nav-toggle span { background: var(--white); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  background: var(--forest-800);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 2rem 2rem;
  transform: translateY(-100%);
  transition: transform .45s var(--ease);
  visibility: hidden;
}
body.nav-open .mobile-nav { transform: translateY(0); visibility: visible; }
.mobile-nav nav { display: flex; flex-direction: column; gap: .4rem; }
.mobile-nav nav a {
  font-family: var(--font-display); font-size: 2rem; color: var(--white);
  padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-nav-foot { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.mobile-nav-foot .phone-link { color: var(--lime); font-size: 1.2rem; }

/* ===========================================================
   HERO
   =========================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(19,36,27,.86) 0%, rgba(19,36,27,.55) 50%, rgba(19,36,27,.26) 100%),
    linear-gradient(to top, rgba(19,36,27,.66) 0%, rgba(19,36,27,0) 52%);
}
.hero-content { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 60px; max-width: 760px; }
.hero-title { color: var(--white); font-size: clamp(2.8rem, 7vw, 5.7rem); font-weight: 470; line-height: 1.0; }
.hero-lead { color: rgba(255,255,255,.9); font-size: clamp(1.1rem, 1.6vw, 1.35rem); margin-top: 1.6rem; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; border-radius: 2px; background: var(--white); animation: scrollDot 1.7s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 35% { opacity: 1; } 70% { opacity: 0; transform: translate(-50%, 14px); } 100% { opacity: 0; } }

/* ===========================================================
   TRUST STRIP
   =========================================================== */
.trust { background: var(--forest-800); color: var(--white); padding: clamp(2.2rem, 4vw, 3rem) 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.trust-item { display: flex; flex-direction: column; gap: .25rem; position: relative; padding-left: 1.4rem; }
.trust-item::before { content: ""; position: absolute; left: 0; top: .2rem; width: 4px; height: calc(100% - .4rem); border-radius: 3px; background: var(--lime); }
.trust-k { font-family: var(--font-display); font-size: 1.25rem; color: var(--white); }
.trust-v { font-size: .9rem; color: rgba(255,255,255,.65); }

/* ===========================================================
   SERVICES
   =========================================================== */
.services { background: var(--sand-50); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-feature { grid-column: span 2; grid-row: span 2; }
.service-media { overflow: hidden; aspect-ratio: 4 / 3; }
.service-feature .service-media { aspect-ratio: 16 / 11; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-body { padding: 1.6rem 1.6rem 1.9rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.service-body h3 { font-size: 1.4rem; }
.service-feature .service-body h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.service-body p { color: var(--stone); font-size: .98rem; }
.service-feature .service-body p { font-size: 1.1rem; }

/* Commercial band */
.commercial {
  margin-top: 1.5rem; display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--forest-800); border-radius: var(--radius); overflow: hidden; color: var(--white);
}
.commercial-media { overflow: hidden; min-height: 320px; }
.commercial-media img { width: 100%; height: 100%; object-fit: cover; }
.commercial-body { padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; gap: .85rem; }
.commercial-body h3 { color: var(--white); font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.commercial-body p { color: rgba(255,255,255,.78); }
.commercial-body .eyebrow { color: var(--lime); margin-bottom: .2rem; }
.commercial-body .link-arrow { color: var(--lime); }

/* ===========================================================
   SIGNATURE FEATURE
   =========================================================== */
.feature { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; }
.feature-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(19,36,27,.85) 0%, rgba(19,36,27,.55) 55%, rgba(19,36,27,.25) 100%); }
.feature-content { position: relative; z-index: 2; max-width: 620px; color: var(--white); }
.feature-content h2 { color: var(--white); font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin-bottom: 1.3rem; }
.feature-content p { color: rgba(255,255,255,.85); font-size: 1.15rem; margin-bottom: 2rem; }

/* ===========================================================
   WORK / GALLERY
   =========================================================== */
.work { background: var(--sand-100); }
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 1rem;
}
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--sand-200); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: rgba(19,36,27,0); transition: background .35s var(--ease); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after { background: rgba(19,36,27,.12); }
.gi-tall { grid-row: span 2; }
.gi-wide { grid-column: span 2; }

/* ===========================================================
   PROCESS
   =========================================================== */
.process { background: var(--sand-50); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.process-step { padding-top: 1.8rem; border-top: 2px solid var(--sand-300); }
.process-num { font-family: var(--font-display); font-size: 2.6rem; color: var(--green-500); display: block; margin-bottom: .6rem; }
.process-step h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.process-step p { color: var(--stone); }

/* ===========================================================
   ABOUT
   =========================================================== */
.about { background: var(--sand-100); }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-body h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 1.2rem; }
.about-body p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.about-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--sand-300); }
.about-stats > div { display: flex; flex-direction: column; }
.stat-n { font-family: var(--font-display); font-size: 1.7rem; color: var(--forest-700); }
.stat-l { font-size: .9rem; color: var(--stone); }

/* ===========================================================
   FINANCING
   =========================================================== */
.financing { background: var(--forest-800); color: var(--white); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.financing-inner { display: grid; grid-template-columns: 1.6fr auto; gap: 2.5rem; align-items: center; }
.financing h2 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 1rem; }
.financing p { color: rgba(255,255,255,.82); max-width: 640px; }

/* ===========================================================
   CONTACT
   =========================================================== */
.contact { background: var(--sand-50); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.contact-intro .section-title { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.contact-details { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1.3rem; }
.contact-details li { display: grid; grid-template-columns: 70px 1fr; gap: 1rem; align-items: baseline; padding-bottom: 1.3rem; border-bottom: 1px solid var(--sand-200); }
.cd-label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green-600); }
.contact-details a:hover { color: var(--green-600); }
.contact-social { margin-top: 1.8rem; display: flex; gap: .9rem; }
.contact-social a { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--sand-300); color: var(--forest-700); transition: all .3s var(--ease); }
.contact-social a:hover { background: var(--forest-800); color: var(--white); border-color: var(--forest-800); transform: translateY(-3px); }

/* Form */
.contact-form-wrap { background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius); padding: clamp(1.8rem, 3vw, 2.8rem); box-shadow: var(--shadow-md); }
.contact-form { display: flex; flex-direction: column; gap: 1.15rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field label { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--sand-300); border-radius: var(--radius-sm);
  background: var(--sand-50); color: var(--ink); transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-500); background: var(--white); box-shadow: 0 0 0 4px rgba(62,154,99,.12); }
.field textarea { resize: vertical; }
.form-note { font-size: .92rem; color: var(--green-600); min-height: 1.2rem; text-align: center; }
.form-note.error { color: #c0392b; }

.map-wrap { margin-top: clamp(2.5rem, 5vw, 4rem); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--sand-200); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(.2) contrast(1.02); }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--forest-900); color: rgba(255,255,255,.72); padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 2.5rem; }
.footer-logo { height: 36px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 1.2rem; }
.footer-brand p { font-size: .96rem; max-width: 320px; }
.footer-social { display: flex; gap: 1.2rem; margin-top: 1.3rem; }
.footer-social a { font-size: .9rem; color: var(--lime); }
.footer-social a:hover { text-decoration: underline; }
.footer-col h4 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 1.1rem; }
.footer-col a, .footer-col span { display: block; font-size: .95rem; color: rgba(255,255,255,.68); margin-bottom: .6rem; transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--lime); }
.footer-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.back-top:hover { color: var(--lime); }

/* ===========================================================
   LIGHTBOX
   =========================================================== */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(11,20,15,.94); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease); }
.lightbox.open { opacity: 1; visibility: visible; }
.lb-img { max-width: 90vw; max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow-lg); transform: scale(.96); transition: transform .35s var(--ease); }
.lightbox.open .lb-img { transform: scale(1); }
.lb-close { position: absolute; top: 1.2rem; right: 1.6rem; color: #fff; font-size: 2.6rem; line-height: 1; opacity: .8; transition: opacity .25s; }
.lb-close:hover { opacity: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 3rem; opacity: .65; padding: 1rem; transition: opacity .25s; }
.lb-nav:hover { opacity: 1; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

/* ===========================================================
   REVEAL ANIMATIONS
   =========================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-feature { grid-column: span 2; grid-row: auto; }
  .service-feature .service-media { aspect-ratio: 16 / 9; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
  .nav-desktop, .header-estimate, .phone-link { display: none; }
  .nav-toggle { display: block; }
  .header-cta { gap: 0; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; }
  .commercial { grid-template-columns: 1fr; }
  .commercial-media { min-height: 240px; aspect-ratio: 16/10; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; }
  .financing-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 0; }
  .process-step { border-top: none; border-left: 2px solid var(--sand-300); padding: .2rem 0 1.8rem 1.5rem; margin-bottom: .5rem; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .header-inner { height: 66px; }
  .brand-logo { height: 30px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .service-feature { grid-column: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: .6rem; }
  .gi-wide { grid-column: span 2; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: span 2; }
  .contact-details li { grid-template-columns: 1fr; gap: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-bg { animation: none; }
}
