/* Vaasi Foundation: base styles */

:root {
  --ink: #2a2c1f;
  --ink-soft: #565a44;
  --bg: #faf7ef;
  --panel: #f1ece0;
  --olive: #4a5a34;
  --olive-dark: #333d24;
  --gold: #b9863a;
  --gold-soft: #e8d3ab;
  --white: #ffffff;
  --border: #e3ddcb;
  --shadow: 0 12px 32px -18px rgba(42, 44, 31, 0.35);
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--olive-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; }

img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.9em;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--olive);
  color: var(--white);
}
.btn-primary:hover { background: var(--olive-dark); transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: #9c7130; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--olive-dark);
}
.btn-outline:hover { border-color: var(--olive); background: var(--panel); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

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

.brand svg { width: 34px; height: 34px; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  color: var(--olive-dark);
  font-weight: 700;
}

.brand-text span {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:not(.btn):hover,
.main-nav a[aria-current="page"] {
  color: var(--olive-dark);
  border-bottom-color: var(--gold);
}

.main-nav a.btn {
  margin-left: 4px;
}

@media (max-width: 680px) {
  .main-nav a.btn {
    margin-left: 0;
    margin-top: 6px;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* Photo grids */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.photo-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.photo-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.photo-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: var(--panel);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.photo-card:hover img { transform: scale(1.05); }
.photo-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(0deg, rgba(42,44,31,0.78), transparent);
}
.photo-card.portrait { aspect-ratio: 3 / 4; }
.chapter-block { margin-bottom: 46px; }
.chapter-block h3 { margin-bottom: 14px; }

.blog-post {
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}
.blog-post:first-child { padding-top: 0; }
.blog-post:last-child { border-bottom: none; }
.blog-post-media .photo-card { border-radius: var(--radius); }
.blog-post-media .photo-grid.cols-2 { gap: 10px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 90px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy p.lead {
  font-size: 1.12rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 1.6em;
}

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.1rem;
  color: var(--olive);
}
.stat span { font-size: 0.82rem; color: var(--ink-soft); }

/* Sections */
section { padding: 78px 0; }
.section-tight { padding: 56px 0; }
.bg-panel { background: var(--panel); }
.bg-olive { background: var(--olive); color: #f4f1e6; }
.bg-olive h2, .bg-olive h3 { color: #f4f1e6; }
.bg-olive p { color: #d8dcc7; }

.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin: 0 0 44px; text-align: left; }

/* Cards / grids */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.card .icon {
  width: 46px;
  height: 46px;
  color: var(--gold);
  margin-bottom: 16px;
}

.quote-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  break-inside: avoid;
  margin-bottom: 26px;
}

.quote-card p { color: var(--ink); font-size: 0.96rem; }
.quote-card cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
}

.masonry { columns: 3; column-gap: 26px; }

/* Divider */
.wave-divider { display: block; width: 100%; height: 48px; color: var(--panel); }

/* Timeline / events */
.event-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.event-row:last-child { border-bottom: none; }
.event-date {
  font-family: "Cormorant Garamond", serif;
  color: var(--olive);
}
.event-date strong { display: block; font-size: 1.7rem; }
.event-date span { font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }

/* Footer */
.site-footer {
  background: var(--olive-dark);
  color: #d9dcc7;
  padding: 60px 0 26px;
}
.site-footer h4 { color: #f4f1e6; font-family: "Inter", sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1em; }
.site-footer a { color: #d9dcc7; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #b7bba3;
}

/* Page hero (interior pages) */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-hero p.lead { max-width: 60ch; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-list li {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.cta-banner {
  border-radius: 20px;
  padding: 54px 44px;
  background: var(--olive);
  color: #f4f1e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #f4f1e6; margin-bottom: 0.2em; }
.cta-banner p { color: #d8dcc7; margin: 0; }

.note-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

table.info-table { width: 100%; border-collapse: collapse; }
table.info-table td { padding: 12px 0; border-bottom: 1px solid var(--border); }
table.info-table td:first-child { color: var(--ink-soft); width: 40%; }
table.info-table td:last-child { font-weight: 600; color: var(--olive-dark); }

/* Floating contact */
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 60;
}
.floating-actions a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--olive);
  color: #fff;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.floating-actions a svg { width: 22px; height: 22px; }
.floating-actions a.gold { background: var(--gold); }

/* Responsive */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 340px; margin: 0 auto; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 2; }
  .photo-grid, .photo-grid.cols-3, .photo-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 78px; left: 0; right: 0;
    height: calc(100vh - 78px);
    height: calc(100dvh - 78px);
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 680px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 34px 26px; }
  .event-row { grid-template-columns: 80px 1fr; }
  .photo-grid, .photo-grid.cols-3, .photo-grid.cols-6 { grid-template-columns: repeat(2, 1fr); }
}
