/* ==========================================================================
   13-glassmorphism | layout.css
   Architecture-specific LAYOUT ONLY — no colors, fonts, or visual decoration.
   Glass-effect panels with backdrop-filter blur layering.
   ========================================================================== */

/* ---------- Glass Background ---------- */
.glass-body {
  position: relative;
}

/* Page hero banner background — image only sits behind the page title,
   not behind the rest of the page. */
.glass-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  max-height: none;
  z-index: 0;
  overflow: hidden;
}

/* Inner pages: bg covers only header + breadcrumb + page-hero text */
.glass-body:not(:has(.glass-section--hero)) > .glass-bg {
  height: 85vh;
}

.glass-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.glass-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
}

/* Page-hero (banner) section sits over the .glass-bg image */
.glass-section--page-hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 5rem;
}

/* Page hero on inner pages — shift text up */
.glass-main > .glass-section:first-of-type {
  margin-top: -5cm;
  padding-top: 8rem;
}

.glass-section--page-hero .glass-panel--hero,
.glass-section--hero .glass-panel--hero {
  background: rgba(10, 15, 25, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  color: #fff;
}

.glass-section--page-hero .glass-panel--hero h1,
.glass-section--page-hero .glass-panel--hero p,
.glass-section--page-hero .glass-panel--hero a,
.glass-section--hero .glass-panel--hero h1,
.glass-section--hero .glass-panel--hero p,
.glass-section--hero .glass-panel--hero a,
.glass-panel--hero h1,
.glass-panel--hero p,
.glass-panel--hero .hero-sub {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ---------- Glass Main (above background) ---------- */
.glass-main {
  position: relative;
  z-index: 1;
}

/* ---------- Glass Header ---------- */
.glass-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.5rem 2rem;
  background: var(--color-bg, #ffffff);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.glass-header .nav-list {
  display: flex;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.glass-header .nav-list a {
  white-space: nowrap;
  font-size: 0.82rem;
  padding: 0.5rem 0.4rem;
}
.glass-header .logo { flex-shrink: 0; margin-right: 1.5rem; }
.glass-header .header-cta { flex-shrink: 0; margin-left: 1rem; }

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

/* ---------- Glass Panel (core layout) ---------- */
.glass-panel {
  position: relative;
  z-index: 2;
  padding: 2rem;
  overflow: hidden;
}

.glass-panel--nav {
  padding: 0.75rem 1.5rem;
}

/* ---------- Glass Panel Variants ---------- */
.glass-panel--hero {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2.5rem;
}

.glass-panel--centered {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
}

.glass-panel--cta {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 3rem;
}

.glass-panel--prose {
  max-width: 800px;
  margin: 0 auto;
}

.glass-panel--footer {
  max-width: 100%;
  padding: 0;
}

.glass-panel--wide {
  flex: 2;
}

.glass-panel--image {
  flex: 1;
  padding: 0;
  overflow: hidden;
}

.glass-panel--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glass-panel--full-image {
  max-width: 1200px;
  margin: 0 auto;
  flex: none;
}

/* ---------- Glass Panel Row (side by side) ---------- */
.glass-panel-row {
  display: flex;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Glass Panel Grid ---------- */
.glass-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.glass-panel-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

.glass-panel--card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.glass-panel--card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.glass-panel--card h3,
.glass-panel--card p,
.glass-panel--card a {
  padding: 0 1.5rem;
}

.glass-panel--card h3 {
  padding-top: 1.5rem;
}

.glass-panel--card a:last-child {
  padding-bottom: 1.5rem;
}

/* ---------- Glass Section ---------- */
.glass-section {
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
}

.glass-section--hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.glass-section--cta {
  padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

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

.glass-panel--hero .glass-actions,
.glass-panel--cta .glass-actions {
  justify-content: center;
}

/* ---------- 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: 2;
}

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

/* ---------- Footer Layout ---------- */
.glass-footer {
  position: relative;
  z-index: 1;
}

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

.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) {
  .glass-panel-row {
    flex-direction: column;
  }

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

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

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

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

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

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

  .glass-section {
    padding: 2rem 1rem;
  }

  .glass-panel--hero,
  .glass-panel--cta {
    padding: 2.5rem 1.5rem;
  }

  .glass-panel-grid {
    grid-template-columns: 1fr;
  }

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

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

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

/* ---------- Heading Spacing ---------- */
.glass-content h3, .col-text h3, .content-section h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.glass-content p, .col-text p, .content-section p {
  margin-bottom: 1rem;
}

/* ---------- Page Hero Text ---------- */
.glass-section--page-hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.glass-section--page-hero p {
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ---------- Blog Layout ---------- */
.blog-listing, .blog-list, .blog-card-grid, .glass-blog-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 12px;
  overflow: hidden;
}
.blog-card-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
}
.blog-card {
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
.blog-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  padding: 1.5rem;
}
.blog-card-body h3 { font-size: 1.15rem; margin: 0.5rem 0 0.75rem; }
.blog-category {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- FAQ Accordion ---------- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 2rem auto 0;
}
.faq-item {
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 8px;
  overflow: hidden;
}
.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 1.5rem 1.25rem; line-height: 1.7; }

/* ---------- Footer Spacing ---------- */
.footer-nav h3, .footer-brand h3 { margin-bottom: 1rem; font-size: 1rem; }
.footer-brand p { margin-top: 0.75rem; line-height: 1.6; }

/* ---------- Contact word break ---------- */
.contact-card, .sidebar-widget, .glass-card {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ---------- No scroll animations ---------- */
.animate-in, [data-animate] {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
