/* ==========================================================================
   15-layered-depth | layout.css
   Architecture-specific LAYOUT ONLY — no colors, fonts, or visual decoration.
   Z-axis layered design with parallax depth planes and overlapping sections.
   ========================================================================== */

/* ---------- Header Layout (highest z-index, floating) ---------- */
.depth-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

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

.depth-header .logo {
  flex-shrink: 0;
  margin-right: 2rem;
}

.depth-header .nav-list {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-right: 2rem;
}

.depth-header .nav-list a {
  white-space: nowrap;
  font-size: 0.8rem;
}

.depth-header .header-cta,
.depth-header .phone-cta,
.depth-header .header-phone {
  flex-shrink: 0;
  white-space: nowrap;
}

.depth-header .mobile-toggle {
  display: none;
}

/* ---------- Depth Main ---------- */
.depth-main {
  padding-top: 80px; /* Account for fixed header */
  overflow-x: hidden;
}

/* ---------- Depth Section ---------- */
.depth-section {
  position: relative;
  overflow: visible;
  padding: 4rem 0;
}

/* Alternating section backgrounds */
.depth-section:nth-child(even) {
  background: var(--color-bg-alt);
}

/* Hero — dark gradient with subtle radial ornament */
.depth-section--hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(78,205,196,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,230,109,0.08) 0%, transparent 50%),
    linear-gradient(160deg, var(--color-bg-dark) 0%, var(--color-bg) 100%);
}

/* Page hero — subtle gradient */
.depth-section--page-hero {
  padding: 8rem 0 4rem;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(78,205,196,0.1) 0%, transparent 60%),
    var(--color-bg-dark);
}

/* CTA — accent gradient */
.depth-section--cta {
  padding: 4rem 0;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(78,205,196,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(255,230,109,0.1) 0%, transparent 50%),
    var(--color-bg-dark);
}

/* Overlapping disabled for vertical layout */
.depth-section--overlap {
  position: relative;
}

/* Subtle dot pattern ornament for feature sections */
.depth-section--overlap::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: radial-gradient(rgba(78,205,196,0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Depth Layers ---------- */
/* Depth layers — parallax disabled for clean vertical layout */
.depth-layer {
  position: relative;
}

/* depth-layer--bg removed — using CSS gradients instead */

.depth-layer--mid {
  position: relative;
}

.depth-layer--fg {
  position: relative;
  z-index: 2;
}

/* ---------- Depth Planes (elevated content containers) ---------- */
.depth-plane {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  position: relative;
}

.depth-plane--elevated {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem;
}

.depth-plane--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ---------- Depth Content ---------- */
.depth-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  position: relative;
  z-index: 10;
}

.depth-content--centered {
  text-align: center;
  max-width: 800px;
}

/* ---------- Depth Split (side by side) ---------- */
.depth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.depth-split__media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ---------- Depth Grid ---------- */
.depth-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.depth-grid--2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* ---------- Depth Card ---------- */
.depth-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.depth-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.depth-card__body {
  padding: 1.5rem;
  flex: 1;
}

/* ---------- Depth Actions ---------- */
.depth-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.depth-content--centered .depth-actions {
  justify-content: center;
}

/* ---------- Section Title ---------- */
.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

/* ---------- Map ---------- */
.map-embed {
  width: 100%;
  min-height: 400px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  position: relative;
  z-index: 20;
}

.breadcrumb ol {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Footer Layout ---------- */
.site-footer {
  position: relative;
  z-index: 50;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.footer-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

.social-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1rem;
}

/* ---------- Skip Nav ---------- */
/* Defined in base.css — no override needed */

/* .sr-only — defined in base.css */

/* ---------- Responsive: Tablet ---------- */

/* ---------- Mobile Menu Toggle ---------- */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span,
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1024px) {
  .depth-split {
    grid-template-columns: 1fr;
  }

  .depth-grid--2col {
    grid-template-columns: 1fr;
  }

  .depth-section--overlap {
    margin-top: -2rem;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 640px) {
  .depth-header .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
  }

  .depth-header .main-nav.is-open {
    display: block;
  }

  .depth-header .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 1rem;
  }

  .depth-header .mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
  }

  .depth-main {
    padding-top: 60px;
  }

  .depth-section--hero {
    min-height: 70vh;
  }

  .depth-section--overlap {
    margin-top: -1rem;
  }

  .depth-plane,
  .depth-plane--elevated {
    padding: 2rem 1rem;
  }

  .depth-content {
    padding: 2rem 1rem;
  }

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

  .depth-actions {
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .depth-layer--bg,
  .depth-layer--mid {
    will-change: auto;
  }
}
