/* ==========================================
   FILE: layout.css
   PURPOSE: Header, footer, navigation, drop-downs, containers, grids, and common structural layouts.

   Author: Shweta Studio
========================================== */

/* ==========================================
   SHELL & STACK
========================================== */
.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 38px;
}

.page-stack {
  display: grid;
  gap: 26px;
  padding-top: 28px;
}

/* ==========================================
   HEADER & BRAND
========================================== */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand .header-logo {
  height: 85px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--chalk);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-text span {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================
   NAVIGATION
========================================== */
.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav a.is-active {
  color: var(--charcoal);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--charcoal);
}

/* ==========================================
   COLLECTIONS DROPDOWN
========================================== */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 0;
  min-width: 150px;
  box-shadow: var(--shadow);
  z-index: 100;
}

.nav-dropdown a {
  display: block;
  padding: 8px 20px;
  font-size: 0.82rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted) !important;
  transition: color 0.24s, background-color 0.24s;
  text-align: center;
}

.nav-dropdown a:hover {
  color: var(--charcoal) !important;
  background: #fafafa;
}

.nav-dropdown-wrapper:hover .nav-dropdown,
.nav-dropdown-wrapper.touch-active .nav-dropdown {
  display: block;
}

/* ==========================================
   CONTAINERS & GRIDS
========================================== */
.page-stage,
.page-intro,
.page-boundary,
.bounded-grid {
  border: 1px solid rgba(255, 253, 247, 0.86);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.page-stage {
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: stretch;
  padding: clamp(22px, 3vw, 42px);
}

.page-intro {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 54px);
}

.page-intro h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.25rem, 7vw, 7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.page-intro p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.bounded-grid {
  padding: clamp(18px, 2.4vw, 28px);
}

.page-boundary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.page-boundary a,
.page-boundary article {
  display: grid;
  gap: 12px;
  min-height: 240px;
  padding: clamp(20px, 3vw, 32px);
  background: rgba(255, 253, 247, 0.9);
  color: inherit;
  text-decoration: none;
}

.page-boundary span {
  color: var(--clay-dark);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-boundary strong {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1;
}

.page-boundary p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.split-stage {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.split-stage > img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
}

.editorial-layout,
.contact-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.editorial-copy,
.contact-copy {
  grid-column: span 6;
}

.editorial-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.engagements-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* ==========================================
   FOOTER
========================================== */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px 0;
  color: var(--muted);
}

.site-footer p,
.site-footer span {
  margin: 0;
}
.page-stage > *,
.editorial-layout > *,
.contact-layout > *,
.hero-product-grid > *,
.collection-grid > * {
    min-width: 0;
}