/* ===================================================================
   STRATUS GLASS PRO — Design System
=================================================================== */

:root {
  --navy: #071A2B;
  --navy-soft: #0d2843;
  --gold: #D7B55B;
  --gold-soft: #E9D6A5;
  --white: #FFFFFF;
  --ivory: #F7F5F1;
  --stone: #EFECE5;
  --ink: #14202b;
  --ink-60: rgba(20, 32, 43, 0.62);
  --ink-40: rgba(20, 32, 43, 0.4);

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --section-pad: clamp(5rem, 10vw, 9rem);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .9s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; background: none; border: none; }
input, select, textarea { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--navy); color: var(--white); padding: 1rem 1.5rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 2.1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #AC9149; transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-outline-dark { background: transparent; color: var(--navy); border-color: rgba(7,26,43,0.3); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.btn-block { width: 100%; padding: 1.1rem 2rem; }

/* ===================================================================
   HEADER / NAV
=================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(7, 26, 43, 0.94);
  backdrop-filter: blur(10px);
  padding: 0.85rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { display: flex; align-items: baseline; gap: .5rem; }
.brand-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--white);
}
.brand-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.main-nav ul { display: flex; gap: 2.2rem; }
.main-nav a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.86);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--gold);
  transition: right .4s var(--ease);
}
.main-nav a:hover::after { right: 0; }
.main-nav a:hover { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 1.4rem; }
.header-cta { padding: 0.8rem 1.6rem; font-size: 0.68rem; }

.nav-toggle {
  display: none;
  width: 30px; height: 22px;
  flex-direction: column; justify-content: space-between;
  position: relative; z-index: 210;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: var(--white);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; background: rgba(7,26,43,0.55);
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
  z-index: 150;
}
.nav-scrim.is-active { opacity: 1; pointer-events: auto; }

/* ===================================================================
   HERO
=================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; background: var(--navy); }
.hero-video, .hero-image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-video { z-index: 1; }
.hero-image { z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(7,26,43,0.55) 0%, rgba(7,26,43,0.18) 32%, rgba(7,26,43,0.35) 68%, rgba(7,26,43,0.92) 100%);
}

.hero-content {
  position: relative; z-index: 3;
  width: 100%;
  padding: 0 var(--gutter) clamp(3.5rem, 8vw, 6rem);
  max-width: var(--container);
  margin: 0 auto;
}
.hero-title {
  display: block;
  margin: 0.6rem 0 2rem;
}
.hero-title > span:first-child {
  display: block;
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 0.98;
}
.hero-title-sub {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.35;
  color: rgba(255,255,255,0.92);
  max-width: 28ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 3; width: 26px; height: 42px; border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px;
  background: var(--gold); border-radius: 2px; transform: translateX(-50%);
  animation: scrollcue 2.2s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; }
}

/* ===================================================================
   INTRO
=================================================================== */
.intro { padding: var(--section-pad) 0; background: var(--white); }
.intro-grid { max-width: 780px; }
.intro h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin-bottom: 1.6rem; color: var(--navy); }
.intro-text { font-size: 1.15rem; line-height: 1.75; color: var(--ink-60); font-weight: 300; }

/* ===================================================================
   SECTION HEAD (shared)
=================================================================== */
.section-head { max-width: 640px; margin: 0 0 3.5rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); }

/* ===================================================================
   SERVICES
=================================================================== */
.services { padding: var(--section-pad) 0; background: var(--ivory); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(7,26,43,0.08);
}
.service-card {
  background: var(--ivory);
  display: flex; flex-direction: column;
}
.service-media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.service-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.service-card:hover .service-media img { transform: scale(1.06); }
.service-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,26,43,0) 55%, rgba(7,26,43,0.55) 100%);
}
.service-body { padding: 1.8rem 1.8rem 2.2rem; }
.service-body h3 {
  font-size: 1.15rem; color: var(--navy); margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}
.service-body p { font-size: 0.95rem; line-height: 1.6; color: var(--ink-60); margin: 0 0 1.2rem; font-weight: 300; }
.link-explore {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy);
  display: inline-flex; align-items: center; gap: .5rem;
}
.link-explore span { transition: transform .35s var(--ease); color: var(--gold); }
.service-card:hover .link-explore span { transform: translateX(6px); }

/* ===================================================================
   FEATURED PROJECT
=================================================================== */
.featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 640px;
  background: var(--navy);
  color: var(--white);
}
.featured-media { position: relative; overflow: hidden; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.featured-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2.5rem, 5vw, 5rem);
}
.featured-content h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 1.4rem; }
.featured-content p:not(.eyebrow) { font-size: 1.05rem; line-height: 1.75; color: rgba(255,255,255,0.72); font-weight: 300; margin-bottom: 2rem; max-width: 40ch; }
.featured-content .btn-outline-dark { color: var(--white); border-color: rgba(255,255,255,0.35); }
.featured-content .btn-outline-dark:hover { background: var(--white); color: var(--navy); }

/* ===================================================================
   GALLERY
=================================================================== */
.gallery { padding: var(--section-pad) 0; background: var(--white); }

.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 3rem; }
.filter-btn {
  padding: 0.65rem 1.3rem;
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-60);
  border: 1px solid rgba(7,26,43,0.18);
  border-radius: 30px;
  transition: all .35s var(--ease);
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 1.4rem;
}
.g-item {
  position: relative;
  margin: 0;
  grid-column: span 1;
  grid-row: span 1;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
}
.g-item.g-wide { grid-column: span 2; }
.g-item.g-tall { grid-row: span 2; }

.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.g-item:hover img { transform: scale(1.08); }

.g-item figcaption {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(7,26,43,0) 45%, rgba(7,26,43,0.82) 100%);
  color: var(--white);
}
.g-type {
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  opacity: 0; transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.g-loc {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft);
  margin-top: 0.2rem;
}
.g-view {
  margin-top: 0.6rem;
  font-family: var(--font-display); font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--white);
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s var(--ease) .05s, transform .45s var(--ease) .05s;
}
.g-item:hover .g-type, .g-item:hover .g-view { opacity: 1; transform: translateY(0); }
.g-item.is-hidden { display: none; }

/* ===================================================================
   WHY STRATUS
=================================================================== */
.why { padding: var(--section-pad) 0; background: var(--stone); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}
.why-card { border-top: 1px solid rgba(7,26,43,0.15); padding-top: 1.6rem; }
.why-index { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; color: var(--gold); letter-spacing: 0.1em; }
.why-card h3 { font-size: 1.25rem; color: var(--navy); margin: 1rem 0 0.7rem; }
.why-card p { font-size: 0.95rem; line-height: 1.65; color: var(--ink-60); font-weight: 300; margin: 0; }

/* ===================================================================
   PROCESS
=================================================================== */
.process { padding: var(--section-pad) 0; background: var(--navy); color: var(--white); }
.process .section-head h2 { color: var(--white); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}
.process-step { position: relative; padding-left: 0; }
.process-num {
  display: block;
  font-family: var(--font-display); font-weight: 900;
  font-size: 2.6rem; color: rgba(255,255,255,0.14);
  margin-bottom: 0.6rem;
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.process-step p { font-size: 0.95rem; line-height: 1.6; color: rgba(255,255,255,0.62); font-weight: 300; margin: 0; }

/* ===================================================================
   ESTIMATE / FORM
=================================================================== */
.estimate { padding: var(--section-pad) 0; background: var(--ivory); }
.estimate-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.estimate-grid-solo {
  grid-template-columns: 1fr;
  justify-items: center;
}
.estimate-grid-solo .estimate-form { width: 100%; max-width: 640px; }

.estimate-form {
  background: var(--white);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 30px 70px rgba(7,26,43,0.08);
  border-top: 3px solid var(--gold);
}
.estimate-form h3 {
  font-size: 1.3rem; color: var(--navy); margin-bottom: 1.8rem;
  letter-spacing: 0.01em;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin-bottom: 1.2rem; }
.field label {
  display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-60); margin-bottom: 0.5rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(7,26,43,0.18);
  background: var(--white);
  color: var(--ink);
  border-radius: 2px;
  transition: border-color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
}
.field textarea { resize: vertical; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 1rem 0 0; font-size: 0.9rem; min-height: 1.2em; }
.form-status.is-success { color: #1a7a4c; }
.form-status.is-error { color: #b23a3a; }

/* ===================================================================
   FINAL CTA
=================================================================== */
.final-cta {
  padding: var(--section-pad) 0;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.final-cta h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1rem; }
.final-cta > .container > p:not(.eyebrow) { font-size: 1.15rem; color: rgba(255,255,255,0.72); font-weight: 300; margin-bottom: 2.5rem; }
.final-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 3rem; }
.final-cta-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem; }
.final-cta-info a { font-size: 1rem; color: rgba(255,255,255,0.6); transition: color .3s; }
.final-cta-info a:hover { color: var(--gold); }

/* ===================================================================
   FOOTER
=================================================================== */
.site-footer { background: #051422; color: rgba(255,255,255,0.75); padding: 4rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { margin: 0.9rem 0 0; font-size: 0.9rem; color: rgba(255,255,255,0.5); }
.footer-nav { display: flex; flex-direction: column; gap: 0.85rem; }
.footer-nav a, .footer-contact a { font-size: 0.9rem; color: rgba(255,255,255,0.65); transition: color .3s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact { display: flex; flex-direction: column; gap: 0.85rem; }
.footer-bottom { padding: 1.6rem var(--gutter); text-align: center; }
.footer-bottom p { margin: 0; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ===================================================================
   LIGHTBOX
=================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(7,26,43,0.96);
  display: flex; align-items: center; justify-content: center;
  padding: 3vw;
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 2rem; right: 2rem; color: var(--white); font-size: 2.2rem;
  line-height: 1; width: 44px; height: 44px;
}

/* ===================================================================
   REVEAL ANIMATION
=================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .05s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .35s; }
/* defensive: never let a caching/JS issue hide real content */
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ===================================================================
   RESPONSIVE
=================================================================== */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .process-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
  .featured { grid-template-columns: 1fr; }
  .featured-media img { min-height: 340px; }
  .estimate-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .main-nav {
    display: flex;
    position: fixed; top: 0; right: 0; height: 100vh; width: min(360px, 84vw);
    background: var(--navy);
    padding: 7rem 2.5rem 2.5rem;
    transform: translateX(100%);
    transition: transform .5s var(--ease);
    z-index: 200;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 1.8rem; }
  .main-nav a { font-size: 0.95rem; }

  .header-actions { gap: 0.6rem; }
  .header-cta { padding: 0.65rem 0.9rem; font-size: 0.58rem; letter-spacing: 0.08em; }
  .header-inner { gap: 0.75rem; }
}

@media (max-width: 400px) {
  .header-cta { padding: 0.6rem 0.7rem; font-size: 0.55rem; }
  .brand-mark { font-size: 1rem; }
  .brand-sub { font-size: 0.55rem; }
}

@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid, .process-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .g-item.g-wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-content { padding-bottom: 4rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .final-cta-actions { flex-direction: column; width: 100%; }
  .final-cta-actions .btn { width: 100%; }
}
