/* =============================================================
   LAYOUT.CSS
   Navigation · Hero · Section Wrappers · Page Section Layouts
   ============================================================= */


/* ─── NAVIGATION ─── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 39, 68, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184, 146, 42, 0.25);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.01em;
  font-weight: 500;
}

.nav-brand span {
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
  font-weight: 400;
}

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


/* ─── SECTION COMMONS ─── */

section {
  position: relative;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-pad {
  padding: 5.5rem 0;
}


/* ─── HERO ─── */

.hero {
  min-height: 100vh;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 2rem 5rem;
}

/* Subtle grid texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(36, 51, 88, 0.6) 0%, transparent 70%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(255, 255, 255, 0.012) 60px,
      rgba(255, 255, 255, 0.012) 61px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(255, 255, 255, 0.012) 60px,
      rgba(255, 255, 255, 0.012) 61px
    );
  pointer-events: none;
}

/* Top-left gold glow */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 0% 0%, rgba(184, 146, 42, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Bottom-right gold glow (separate element) */
.hero-corner-br {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 100% 100%, rgba(184, 146, 42, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  border: 1px solid rgba(184, 146, 42, 0.2);
  border-radius: 4px;
  overflow: hidden;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stat {
  flex: 1;
  min-width: 140px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  border-right: 1px solid rgba(184, 146, 42, 0.15);
}

.hero-stat:last-child {
  border-right: none;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* ─── OPPORTUNITY SECTION ─── */

.opportunity {
  background: var(--cream);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.opportunity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}


/* ─── PORTFOLIO HIGHLIGHTS ─── */

.portfolio {
  background: var(--white);
}

.portfolio-header {
  text-align: center;
  margin-bottom: 4rem;
}

.portfolio-header .section-lead {
  margin: 0 auto;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}


/* ─── GALLERY ─── */

.gallery {
  background: var(--navy-deep);
  padding: 5.5rem 0;
}

.gallery-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.gallery-header .section-title { color: var(--white); }
.gallery-header .section-eyebrow { color: var(--gold-light); }
.gallery-header .section-lead {
  color: rgba(255, 255, 255, 0.55);
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 260px 260px 260px;
  gap: 12px;
}


/* ─── DIFFERENTIATORS ─── */

.differentiators {
  background: var(--cream);
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.diff-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.diff-point {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}


/* ─── BUYER PROFILES ─── */

.buyers {
  background: var(--white);
}

.buyers-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.buyers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}


/* ─── SPECIFICATIONS TABLE ─── */

.specs {
  background: var(--gray-50);
}

.specs-header {
  text-align: center;
  margin-bottom: 3rem;
}

.specs-table-wrap {
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}


/* ─── INQUIRY FORM ─── */

.inquiry {
  background: var(--navy-deep);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

/* Top gold accent line */
.inquiry::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%);
  opacity: 0.6;
}

/* Bottom-right ambient glow */
.inquiry::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184, 146, 42, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.inquiry-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.inquiry-header {
  text-align: center;
  margin-bottom: 3rem;
}

.inquiry-header .section-title  { color: var(--white); }
.inquiry-header .section-eyebrow { color: var(--gold-light); }
.inquiry-header .section-lead {
  color: rgba(255, 255, 255, 0.55);
  margin: 0 auto;
}


/* ─── URGENCY STRIP ─── */

.urgency-strip {
  background: var(--gold);
  padding: 1.25rem 2rem;
  text-align: center;
}

.urgency-strip p {
  color: var(--navy-deep);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.urgency-strip a {
  color: var(--navy-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ─── FOOTER ─── */

footer {
  background: var(--navy);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

.footer-brand span {
  color: var(--gold-light);
}

.footer-text {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  max-width: 440px;
  line-height: 1.6;
  text-align: right;
}


/* ─── RESPONSIVE BREAKPOINTS ─── */

@media (max-width: 900px) {

  .nav-inner {
    padding: 0 1.25rem;
  }

  .opportunity-grid,
  .diff-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .buyers-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-item.large {
    grid-row: span 1;
  }

}

.buyers-header .section-lead {
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 768px) {

  .nav-inner {
    height: 64px;
  }

  .nav-brand {
    font-size: 1rem;
    line-height: 1.1;
  }

  .nav-toggle {
    display: flex;
    flex: 0 0 auto;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(15, 26, 46, 0.98);
    border-bottom: 1px solid rgba(184, 146, 42, 0.25);
    box-shadow: var(--shadow-md);
    transition: max-height 0.25s ease, opacity 0.2s ease, visibility 0.2s ease;
  }

  .nav.nav-open .nav-links {
    max-height: calc(100vh - 64px);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
  }

  .nav-links li {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 0.78rem;
  }

  .nav-links .nav-cta {
    border-radius: 0;
    padding: 1rem 1.25rem;
  }

}

@media (max-width: 600px) {

  .hero-stats {
    flex-direction: column;
    max-width: 280px;
  }

  .hero-stat {
    border-right: none;
    border-bottom: 1px solid rgba(184, 146, 42, 0.15);
  }

  .hero-stat:last-child {
    border-bottom: none;
  }

  .buyers-grid {
    grid-template-columns: 1fr;
  }

  .highlights-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-text {
    text-align: left;
  }
}
