@charset "utf-8";

/* =========================
   Theme & global settings
   ========================= */

:root {
  /* Backgrounds & surfaces */
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-muted: #f0eee8;

  /* Text colors */
  --text: #1f1d18;
  --text-muted: #5a6358;
  --text-soft: #878176;
  --text-inverse: #ffffff;

  /* Brand / accent */
  --accent: #b45f06;
  --accent-dark: #7f8f9f;
  --accent-soft: #7f8f9f;
  --heading-alt: #7f8f9f;
  --brand: var(--accent-dark);
  --brand-hover: #6f7f8f;

  /* Header & hero */
  --header-bg: rgba(255, 255, 255, 0.86);
  --header-border: rgba(20, 90, 50, 0.15);
  --hero-overlay: rgba(0, 0, 0, 0.45);
  --hero-text: #f8f5ef;
  --hero-text-soft: rgba(255, 255, 255, 0.88);
  --hero-eyebrow: rgba(255, 255, 255, 0.82);
  --hero-bg-soft: #e7e2d8; /* example warm neutral */

  /* Footer */
  --footer-bg: #3a434d;
  --footer-text: rgba(255, 255, 255, 0.78);
  --footer-text-soft: rgba(248, 249, 250, 0.82);

  /* Borders & shadows */
  --border: rgba(18, 24, 20, 0.12);
  --border-soft: rgba(31, 29, 24, 0.08);
  --shadow-sm: 0 10px 28px rgba(19, 24, 21, 0.07);
  --shadow-md: 0 20px 56px rgba(19, 24, 21, 0.16);
  --shadow-md-soft: 0 4px 12px rgba(19, 24, 21, 0.08);
  --shadow-lg: 0 8px 32px rgba(19, 24, 21, 0.12);
  --button-shadow: 0 10px 24px rgba(18, 26, 40, 0.18);

  /* Radii */
  --radius-sm: 0.2rem;
  --radius-md: 0.35rem;
  --radius-lg: 0.75rem;

  /* Spacing scale */
  --space-1: 0.35rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;

  /* Layout containers */
  --container-narrow: min(calc(100% - .7rem), 1180px);
  --container-wide: min(calc(100% - 1rem), 1200px);

  /* Timing & focus */
  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-med: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --focus-ring: 2px solid var(--accent-dark);

  /* Typography */
  --font-sans: 'Inter', Arial, sans-serif;
  --font-serif: 'Merriweather', Arial, sans-serif;
}

/* =========================
   Global reset & base
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.72;
}

.main {
  background: var(--hero-bg-soft);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 4px;
  border-radius: 6px;
}

/* =========================
   Accessibility
   ========================= */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 200;
  background: var(--surface);
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  box-shadow: var(--shadow-sm);
}

/* =========================
   Header
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
}

.header-inner {
  width: var(--container-narrow);
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.5rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.brand-text {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  position: relative;
  gap: var(--space-4);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Mobile menu toggle */

.menu-toggle {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0.6px solid var(--accent-dark);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: transparent;
}

.menu-toggle__bar {
  display: block;
  width: 16px;
  height: 2px;
  margin: 2px auto;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu */

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: min(24rem, calc(100vw - 2rem));
  z-index: 40;
  padding: 0.6rem;
  background: rgba(15, 23, 18, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--header-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.mobile-menu__link {
  display: block;
  padding: 0.55rem 1rem;
  border-radius: 0.5rem;
  color: #f9fafb;
  font-size: 0.98rem;
  font-weight: 600;
}

.mobile-menu__link + .mobile-menu__link {
  margin-top: 0.35rem;
}

.mobile-menu__link:hover,
.mobile-menu__link:focus-visible {
  background: rgba(248, 250, 252, 0.08);
  color: #ffffff;
}

/* =========================
   Page text
   ========================= */

.page-text {
  width: var(--container-narrow);
  margin: .5rem auto 0;
}

.page-text__inner {
  max-width: 760px;
}

.page-text__inner h2 {
  margin-top: 2rem;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem);
  line-height: 1.15;
}

.page-text__inner h2:first-child {
  margin-top: 0;
}

.page-text__inner p {
  max-width: 65ch;
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* =========================
   Hero (exact, with spacing lock)
   ========================= */

/* Base hero */
.hero {
  position: relative;
  background-color: var(--hero-overlay);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  color: var(--hero-text);
  display: flex;
  align-items: flex-start;
}

/* Variant: hero without background image */
.hero--no-image {
  background-image: none;
  background-color: var(--hero-bg-soft);
  background-blend-mode: normal;
  color: var(--text);
}

.hero--no-image .hero__eyebrow {
  color: var(--text-soft);
}

.hero--no-image .hero__title {
  text-shadow: none;
}

.hero--no-image .hero__text {
  color: var(--text-muted);
}

.hero__inner {
  width: var(--container-wide);
  margin: 0 auto;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero__content {
  max-width: 42rem;
}

/* Lock hero eyebrow/title spacing exactly */
.hero__eyebrow,
.hero__title {
  margin-top: 0;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;  /* controls gap above title */
  margin-left: 0.2rem;
  color: var(--hero-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 9ch;
  text-wrap: balance;
  margin-bottom: 1rem;  /* space below title, unchanged */
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.hero__text {
  max-width: 38rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--hero-text-soft);
}

/* Responsive hero adjustments */
@media (min-width: 768px) {
  .hero__title {
    font-size: 4rem;
  }

  .hero__text {
    font-size: 1.125rem;
  }
}

@media (max-width: 767px) {
  .hero__inner {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero__eyebrow {
    margin-bottom: 1rem;
  }
}

/* Alternative hero text block */
.hero-alt {
  margin-top: 0;
}

.hero-alt__title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 29ch;
  text-wrap: balance;
  margin: 0 0 1rem;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  color: var(--hero-text);        /* same as image hero title */
}

.hero-alt__text {
  max-width: 38rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--hero-text-soft);   /* same as image hero body copy */
}

/* Responsive adjustments (match hero__title and hero__text) */
@media (min-width: 768px) {
  .hero-alt__title {
    font-size: 4rem;
  }

  .hero-alt__text {
    font-size: 1.125rem;
  }
}

/* Section labels */
.label {
  margin-top: 0px;
}

.label__inner {
  width: var(--container-narrow);
  margin: 0 auto;
  padding-left: 0.25rem;
}

.label__title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--heading-alt);
  margin-top: .5rem;
  margin-bottom: .3rem;
}

@media (min-width: 981px) {
  .label__inner {
    padding-left: 0.75rem;
  }
}

/* =========================
   Page body container
   ========================= */

.page-body {
  width: var(--container-narrow);
  margin: 0 auto;
  margin-top: var(--space-2);    /* 1rem above footer */
  margin-bottom: var(--space-4); /* 1rem below hero */
}

/* =========================
   Footer
   ========================= */

.site-footer {
  margin-top: 0;                  /* remove extra gap */
  padding: 2.5rem 0;
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-inner {
  width: min(calc(100% - 2rem), 1180px);
  margin: 0 auto;
  text-align: center;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem 1rem;
  margin-bottom: 0.65rem;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.footer-bottom-links a:hover,
.footer-bottom-links a:focus-visible {
  color: #ffffff;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--footer-text-soft);
}

/* =========================
   Responsive (header/page)
   ========================= */

@media (max-width: 767px) {
  .header-inner {
    min-height: 64px;
  }

  .site-nav {
    margin-right: 0.5rem;
  }

  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .page-body {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
  }
}

/* Motion preferences */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}