/* =========================================================
   Site Container
   ========================================================= */
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* =========================================================
   Site Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .75rem;
  max-width: none;
  padding-inline: 2rem;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: .03em;
}
.site-logo:hover { text-decoration: none; }

/* Primary nav */
.primary-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.primary-nav a {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color .2s;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: var(--color-accent); text-decoration: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.25rem;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 1rem; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 1;
}

/* Dark gradient over bottom third so white text stays legible */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0)   55%,
    rgba(0,0,0,0.55) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 4rem 1.25rem;
  margin-bottom: 8%;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-content h1 { color: #fff; margin-bottom: 1rem; font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 700; }
.hero-content p   { font-size: 1.35rem; margin-bottom: 2rem; color: #fff; opacity: .92; font-weight: 700; }

.hero-content .btn {
  margin-top: 1.5rem;
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
  text-shadow: none;
}
.hero-content .btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* =========================================================
   Page Sections
   ========================================================= */
.section { padding-block: 5rem; }
.section--alt { background: #F2EDE8; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: .5rem; }
.section-header p  { color: var(--color-muted); font-size: 1.2rem; font-weight: 700; }

/* =========================================================
   Inner Page Header
   ========================================================= */
.page-header {
  background: #F2EDE8;
  padding: 5rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: .5rem;
}

.page-header p {
  color: var(--color-muted);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: .75rem;
}

/* =========================================================
   Grid Helpers
   ========================================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* =========================================================
   Site Footer
   ========================================================= */
.site-footer {
  background: var(--color-primary);
  color: #C8BEB6;
  padding-block: 3rem;
  text-align: center;
}

.site-footer a { color: var(--color-gold); }
.site-footer a:hover { color: #fff; }

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: .5rem;
}

.footer-tagline { font-size: .9rem; opacity: .7; margin-bottom: 1.5rem; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  list-style: none;
  margin-bottom: 2rem;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.footer-copy { font-size: .8rem; opacity: .55; }
