/* ===== SHARED TEMPLATE ===== */
/* Imported by all pages: variables, reset, header, responsive header */

:root {
  --black: #0a0a0a;
  --white: #f8f7f4;
  --warm-white: #f0ede6;
  --cream: #e8e4db;
  --mid: #9a9488;
  --accent: #2d6a4f;
  --accent-soft: rgba(45, 106, 79, 0.12);
  --green: #2d6a4f;
  --green-soft: rgba(45, 106, 79, 0.10);
  --coral: #e07a5f;
  --indigo: #22274e;
  --charcoal: #2d3436;
  --teal: #1a3a3a;
  --navy: #1a1a2e;
  --forest: #455649;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Source Serif 4', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px calc(max(24px, (100vw - 1100px) / 2));
  background: rgb(30 29 50 / 75%);
  transition: background 0.25s ease;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.45);
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
}

.header-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav li {
  padding: 0;
  margin: 0;
}

.header-nav li::before {
  display: none;
}

.header-nav a {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(243, 242, 231, 0.7);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.header-nav a:hover { color: #f3f2e7; }

.header-nav .nav-cta {
  color: var(--black);
  background: var(--white);
  padding: 0.45rem 1.2rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.2s;
}

.header-nav .nav-cta:hover { background: var(--cream); }

.header-nav .nav-active {
  color: #f3f2e7;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(243, 242, 231, 0.8);
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(42, 53, 35, 0.98);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(243, 242, 231, 0.8);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: #f3f2e7; }

.mobile-menu .nav-cta {
  color: var(--black);
  background: var(--white);
  padding: 0.6rem 1.8rem;
  border-radius: 2rem;
  font-weight: 500;
}

.site-logo {
  width: clamp(115px, 13.8vw, 207px);
  height: auto;
}

/* ===== RESPONSIVE: HEADER ===== */
@media (max-width: 768px) {
  .site-header { padding: 12px 16px; }
  .site-logo { width: clamp(92px, 28.75vw, 184px); }
  .header-nav { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 480px) {
  .site-header { padding: 10px 12px; }
  .site-logo { width: 138px; }
}
