/* ============================================================
   NVision Construction Inc. — shared site styles
   v2 — cross-device responsive
   ============================================================ */

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

:root {
  --navy: #0A1628;
  --navy-mid: #122040;
  --navy-light: #1E3A6E;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --white: #F8F7F4;
  --white-pure: #FFFFFF;
  --gray: #8A8F9A;
  --gray-light: #E8E8E8;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Barlow', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
}

a { color: inherit; }

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: var(--nav-h);
  background: rgba(10,22,40,0.97);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  backdrop-filter: blur(8px);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

.nav-logo .brand {
  font-family: var(--font-condensed);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white-pure);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-logo .sub {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248,247,244,0.75);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover { color: var(--gold); }

.nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--gold);
}

.nav-cta {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  border: none;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--gold-light); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  border: none;
  padding: 16px 36px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-outline {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-pure);
  background: transparent;
  border: 1px solid rgba(248,247,244,0.3);
  padding: 16px 36px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-dark {
  color: var(--white-pure);
  background: var(--navy);
}
.btn-dark:hover { background: var(--navy-light); }

/* ============================================================
   SHARED SECTION ELEMENTS
   ============================================================ */
section { padding: 100px 48px; }

.section-label {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
}

.section-title em { font-style: italic; color: var(--navy-light); }

/* ============================================================
   PAGE HEADER (interior page hero band)
   ============================================================ */
.page-header {
  background: var(--navy);
  padding: calc(var(--nav-h) + 80px) 48px 80px;
  position: relative;
  overflow: hidden;
}

.page-header .hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-header-inner { position: relative; max-width: 1100px; }

.page-header .section-label { color: var(--gold); }

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 700;
  line-height: 1.0;
  color: var(--white-pure);
  margin-bottom: 16px;
}
.page-header h1 em { font-style: italic; color: var(--gold); }

.page-header p {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(248,247,244,0.7);
  max-width: 520px;
  border-left: 2px solid var(--gold);
  padding-left: 20px;
  margin-top: 24px;
}

.breadcrumb {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248,247,244,0.4);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ============================================================
   HERO (home only)
   ============================================================ */
#hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 48px) 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-accent {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 50%;
}
.hero-accent::before {
  content: '';
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(201,168,76,0.08);
  border-radius: 50%;
}

/* Company logo emblem in hero (dark-mode, transparent background) */
.hero-logo {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) * 0.10));
  top: 50%;
  transform: translateY(-50%);
  width: min(540px, 42vw);
  height: auto;
  max-height: 68vh;
  object-fit: contain;
  opacity: 1;
  pointer-events: none;
}
@media (max-width: 1360px) {
  .hero-logo { display: none; }
}

/* Centered emblem shown on tablet / mobile where the large one is hidden */
.hero-logo-mobile {
  display: none;
  width: 240px;
  height: 240px;
  object-fit: contain;
  opacity: 1;
  margin-bottom: 24px;
  position: relative;
}
@media (max-width: 1360px) {
  .hero-logo-mobile { display: block; }
  #hero { justify-content: flex-start; }
}

.hero-eyebrow {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 700;
  line-height: 1.0;
  color: var(--white-pure);
  position: relative;
  max-width: 700px;
  margin-bottom: 16px;
}
.hero-headline em { font-style: italic; color: var(--gold); }

.hero-sub {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(248,247,244,0.55);
  text-transform: uppercase;
  margin-bottom: 32px;
  position: relative;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(248,247,244,0.8);
  max-width: 480px;
  margin-bottom: 48px;
  position: relative;
  border-left: 2px solid var(--gold);
  padding-left: 20px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  position: relative;
  flex-wrap: wrap;
}

.hero-stats {
  position: relative;
  margin-top: 80px;
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(201,168,76,0.15);
  padding-top: 40px;
  max-width: 560px;
}

.stat {
  flex: 1;
  padding-right: 32px;
  border-right: 1px solid rgba(201,168,76,0.15);
}
.stat:last-child { border-right: none; padding-left: 32px; padding-right: 0; }

.stat-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248,247,244,0.45);
  margin-top: 6px;
}

/* ============================================================
   HOME — intro / teaser strips
   ============================================================ */
.home-intro {
  background: var(--white-pure);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.home-services {
  background: var(--navy);
}
.home-services .section-title { color: var(--white-pure); }

.home-services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 60px;
}

.home-cta {
  background: var(--navy-mid);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.home-cta .section-label { justify-content: center; }
.home-cta h2 { color: var(--white-pure); }
.home-cta p {
  font-size: 17px; font-weight: 300; line-height: 1.7;
  color: rgba(248,247,244,0.65); max-width: 540px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-section {
  background: var(--white-pure);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual { position: relative; height: 480px; }

.about-box-main {
  position: absolute;
  inset: 0;
  background: var(--navy);
  display: flex;
  align-items: flex-end;
  padding: 32px;
}

.about-box-accent {
  position: absolute;
  bottom: -24px; right: -24px;
  width: 160px; height: 160px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.about-box-accent .years {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 700; color: var(--navy); line-height: 1;
}
.about-box-accent .years-label {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--navy);
  text-align: center; line-height: 1.3;
}

.about-quote {
  font-family: var(--font-display);
  font-size: 22px; font-style: italic; color: var(--white-pure); line-height: 1.4;
}

/* About box holding the brand banner image — show the FULL banner */
.about-box-main--img {
  position: relative;
  inset: auto;
  height: auto;
  padding: 0;
  overflow: hidden;
  background: transparent;
}
.about-banner {
  width: 100%;
  height: auto;
  display: block;
}
.about-visual:has(.about-box-main--img) { height: auto; }
.about-visual:has(.about-box-main--img) .about-box-accent { display: none; }

.about-content p {
  font-size: 16px; font-weight: 400; line-height: 1.8; color: #444; margin-bottom: 20px;
}

.about-badges {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px;
}

.badge {
  font-family: var(--font-condensed);
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--navy-light);
  border: 1px solid rgba(30,58,110,0.25); padding: 8px 16px;
}

/* Values grid */
.values {
  background: var(--white);
  border-top: 1px solid var(--gray-light);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
}
.value-card {
  border-top: 2px solid var(--gold);
  padding-top: 24px;
}
.value-card .vnum {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 700; color: var(--gold); line-height: 1;
}
.value-card h3 {
  font-family: var(--font-condensed);
  font-size: 20px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--navy);
  margin: 16px 0 12px;
}
.value-card p {
  font-size: 14px; font-weight: 400; line-height: 1.8; color: #666;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-section { background: var(--navy); }
.services-section .section-title { color: var(--white-pure); }

.services-intro {
  font-size: 16px; font-weight: 300; line-height: 1.8;
  color: rgba(248,247,244,0.6); max-width: 480px;
  margin-top: 20px; margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.12);
  padding: 48px 36px;
  transition: background 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.4s ease;
}
.service-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(201,168,76,0.3); }
.service-card:hover::after { width: 100%; }

.service-num {
  font-family: var(--font-display);
  font-size: 64px; font-weight: 700;
  color: rgba(201,168,76,0.14); line-height: 1; margin-bottom: 20px;
}

.service-title {
  font-family: var(--font-condensed);
  font-size: 22px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--white-pure); margin-bottom: 16px;
}

.service-desc {
  font-size: 14px; font-weight: 300; line-height: 1.8;
  color: rgba(248,247,244,0.55); margin-bottom: 28px;
}

.service-list {
  list-style: none;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-list li {
  font-size: 13px;
  color: rgba(248,247,244,0.7);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--gold);
}

.service-link {
  font-family: var(--font-condensed);
  font-size: 12px; font-weight: 600; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  margin-top: auto;
}
.service-link::after { content: '→'; transition: transform 0.2s; }
.service-card:hover .service-link::after { transform: translateX(4px); }

/* Service detail rows (services page) */
.service-detail {
  background: var(--white-pure);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.service-detail:nth-child(even) { background: var(--white); }
.service-detail.flip .sd-text { order: 2; }

.sd-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, rgba(10,22,40,0.04) 0 14px, rgba(10,22,40,0.07) 14px 28px);
  border: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sd-visual span {
  font-family: var(--font-condensed);
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray);
}
.sd-num {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700; color: var(--gold);
}
.sd-text h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 700; line-height: 1.1; color: var(--navy);
  margin: 8px 0 18px;
}
.sd-text p {
  font-size: 16px; line-height: 1.8; color: #444; margin-bottom: 24px;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-section { background: var(--white-pure); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.process-step { position: relative; }

.step-num {
  font-family: var(--font-display);
  font-size: 72px; font-weight: 700;
  color: var(--gray-light); line-height: 1; margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-condensed);
  font-size: 18px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--navy);
  margin-bottom: 12px; padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}

.step-desc {
  font-size: 14px; font-weight: 400; line-height: 1.8; color: #666;
}

/* Process detail list (process page) */
.process-detail {
  background: var(--white);
  border-top: 1px solid var(--gray-light);
}
.pd-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-light);
}
.pd-row:last-child { border-bottom: none; }
.pd-num {
  font-family: var(--font-display);
  font-size: 72px; font-weight: 700; color: var(--gold); line-height: 0.9;
}
.pd-body h3 {
  font-family: var(--font-condensed);
  font-size: 24px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 14px;
}
.pd-body p { font-size: 16px; line-height: 1.8; color: #555; max-width: 640px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-title { color: var(--white-pure); }

.contact-desc {
  font-size: 16px; font-weight: 300; line-height: 1.8;
  color: rgba(248,247,244,0.6); margin-top: 20px; margin-bottom: 48px;
}

.contact-detail {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px;
}

.contact-icon {
  width: 44px; height: 44px;
  border: 1px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 18px; flex-shrink: 0;
}

.contact-label {
  font-family: var(--font-condensed);
  font-size: 11px; font-weight: 600; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 4px;
}

.contact-value { font-size: 15px; color: rgba(248,247,244,0.8); }
.contact-value a { text-decoration: none; }
.contact-value a:hover { color: var(--gold-light); }

.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.15);
  padding: 48px;
}

.form-group { margin-bottom: 20px; }

.form-label {
  font-family: var(--font-condensed);
  font-size: 11px; font-weight: 600; letter-spacing: 0.25em;
  text-transform: uppercase; color: rgba(201,168,76,0.8);
  display: block; margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.15);
  color: var(--white-pure);
  font-family: var(--font-body);
  font-size: 15px; font-weight: 300;
  padding: 14px 16px; outline: none;
  transition: border-color 0.2s;
}
.form-input::placeholder { color: rgba(248,247,244,0.25); }
.form-input:focus { border-color: rgba(201,168,76,0.5); }
textarea.form-input { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 12px;
  color: rgba(248,247,244,0.4);
  margin-top: 14px;
  line-height: 1.6;
}

/* FAQ */
.faq { background: var(--white-pure); }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 64px;
  margin-top: 56px;
}
.faq-item h3 {
  font-family: var(--font-condensed);
  font-size: 18px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 12px;
}
.faq-item p { font-size: 15px; line-height: 1.8; color: #555; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy-mid);
  border-top: 1px solid rgba(201,168,76,0.12);
  padding: 56px 48px 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(201,168,76,0.12);
}
.footer-brand-block .footer-brand {
  font-family: var(--font-condensed);
  font-size: 22px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--white-pure);
}
.footer-brand-block .footer-sub {
  font-size: 14px; font-weight: 300; line-height: 1.7;
  color: rgba(248,247,244,0.5); margin-top: 16px; max-width: 320px;
}
.footer-col h4 {
  font-family: var(--font-condensed);
  font-size: 12px; font-weight: 600; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li {
  font-size: 14px; color: rgba(248,247,244,0.6);
  text-decoration: none; transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; padding-top: 28px;
}
.footer-copy { font-size: 12px; color: rgba(248,247,244,0.35); letter-spacing: 0.05em; }
.footer-lic {
  font-family: var(--font-condensed);
  font-size: 11px; font-weight: 600; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold); opacity: 0.6;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }
.delay-5 { animation-delay: 0.7s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .home-intro, .about-section, .contact-section { grid-template-columns: 1fr; gap: 56px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .values-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-detail, .service-detail.flip .sd-text { grid-template-columns: 1fr; gap: 32px; }
  .service-detail.flip .sd-text { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* Collapse nav to the hamburger early so the logo + links never crowd */
@media (max-width: 1040px) {
  nav { padding: 0 28px; }

  .nav-toggle { display: flex; }

  .nav-right {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10,22,40,0.99);
    border-bottom: 1px solid rgba(201,168,76,0.2);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-right.open { max-height: 520px; }

  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .nav-links li { border-bottom: 1px solid rgba(201,168,76,0.1); }
  .nav-links a {
    display: block;
    padding: 18px 28px;
    font-size: 13px;
  }
  .nav-links a.active::after { display: none; }

  .nav-cta {
    margin: 18px 28px 24px;
    text-align: center;
    padding: 14px 24px;
  }
}

@media (max-width: 760px) {
  nav { padding: 0 24px; }

  section { padding: 72px 28px; }
  .page-header { padding: calc(var(--nav-h) + 56px) 28px 56px; }
  #hero { padding: calc(var(--nav-h) + 40px) 28px 64px; }

  .hero-accent { width: 340px; height: 340px; right: -120px; opacity: 0.6; }

  .process-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { padding: 32px 24px; }
  .pd-row { grid-template-columns: 1fr; gap: 16px; padding: 36px 0; }
  .pd-num { font-size: 56px; }
  .about-box-accent { width: 120px; height: 120px; bottom: -16px; right: -16px; }
  .home-services-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary, .hero-actions .btn-outline { text-align: center; }
  .hero-stats { flex-wrap: wrap; }
}

/* ============================================================
   CROSS-DEVICE POLISH — final responsive pass
   ============================================================ */

/* Prevent horizontal scroll without breaking position:fixed nav */
body { overflow-x: clip; }

/* Global image safety — never let an image break its container */
img { max-width: 100%; }

/* Page-header: hide decorative watermark emblem on tablet & mobile
   so the heading text gets the full width it needs              */
@media (max-width: 900px) {
  .page-header-inner > img { display: none; }
}
/* Force block layout when display:flex is applied inline */
@media (max-width: 760px) {
  .page-header-inner { display: block !important; }
  /* Reduce page-header bottom padding so it doesn't feel cavernous */
  .page-header[style*="padding-bottom"] { padding-bottom: 64px !important; }
}

/* About: accent box causes 24px horizontal overflow at 1-col layout;
   pull section right padding out to compensate               */
@media (max-width: 980px) {
  .about-section { padding-right: 72px; }
  .about-visual { margin-bottom: 56px; }
}
@media (max-width: 760px) {
  .about-section { padding-right: 44px; }
}
@media (max-width: 480px) {
  .about-section { padding-right: 28px; }
  .about-box-accent { right: 0; }
}

/* Services detail: wider aspect ratio keeps images from being too tall
   when the two-column layout collapses to one column              */
@media (max-width: 980px) {
  .sd-visual { aspect-ratio: 16 / 9; }
}

/* Hero mobile emblem: keep it proportionate on small phones */
@media (max-width: 480px) {
  .hero-logo-mobile { width: 180px; height: 180px; }
}

/* Hero stats: compact on phones so they don't wrap awkwardly */
@media (max-width: 480px) {
  .stat { padding-right: 14px; }
  .stat:last-child { padding-left: 14px; }
  .stat-num { font-size: 30px; }
  .stat-label { font-size: 10px; }
}

/* CTA sections: stack buttons vertically on small phones */
@media (max-width: 480px) {
  .home-cta .hero-actions,
  .values + .home-cta .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .home-cta .hero-actions .btn-primary,
  .home-cta .hero-actions .btn-outline { text-align: center; }
}

/* Contact: inline padding-top style overrides the mobile section rule;
   force the correct value back                                  */
@media (max-width: 760px) {
  .contact-section {
    padding-top: calc(var(--nav-h) + 56px) !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
  }
}

/* Footer: tighter on small phones */
@media (max-width: 480px) {
  footer { padding-left: 20px; padding-right: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Nav brand: prevent overflow on very small screens */
@media (max-width: 380px) {
  .nav-logo .brand { font-size: 16px; letter-spacing: 0.06em; }
  .nav-logo .sub  { font-size: 9px; letter-spacing: 0.2em; }
}

/* ============================================================
   HERO LOGO — keep beside the text (right side) on tablet too
   Below 760px (phones) it falls back to the stacked emblem.
   ============================================================ */
@media (min-width: 760px) and (max-width: 1360px) {
  /* Show the right-anchored emblem next to the copy, not on top of it */
  .hero-logo {
    display: block;
    width: min(420px, 40vw);
    height: auto;
    right: clamp(20px, 3vw, 56px);
  }
  /* Hide the stacked version in this range */
  .hero-logo-mobile { display: none; }
  /* Re-center the hero vertically (mobile rule had pinned it to the top) */
  #hero { justify-content: center; }
  /* Keep the text column clear of the logo */
  #hero > .hero-eyebrow,
  #hero > .hero-headline,
  #hero > .hero-sub,
  #hero > .hero-tagline,
  #hero > .hero-actions,
  #hero > .hero-stats { max-width: 58%; }
  .hero-headline { font-size: clamp(46px, 6vw, 76px); }
}
