/* ==========================================================================
   Groundwork — stylesheet
   Palette: Terracotta & Sand (warm, muted, international, minimal)
   ========================================================================== */

:root {
  /* Colours */
  --color-bg: #FAF6F1;
  --color-bg-alt: #F1E9DE;
  --color-terracotta: #C1633D;
  --color-terracotta-dark: #A34B2A;
  --color-olive: #7C8368;
  --color-charcoal: #2E2A26;
  --color-charcoal-soft: #5C5650;
  --color-line: #E4D9C9;
  --color-white: #FFFFFF;

  /* Type */
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1120px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 12px 32px rgba(46, 42, 38, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-charcoal);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-terracotta-dark);
  font-weight: 600;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--color-terracotta);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-terracotta-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-charcoal);
  color: var(--color-charcoal);
}
.btn-outline:hover {
  background: var(--color-charcoal);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 241, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--color-line);
  box-shadow: 0 6px 20px rgba(46, 42, 38, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a { color: var(--color-charcoal-soft); transition: color 0.2s ease; }
.main-nav a:hover { color: var(--color-terracotta-dark); }

.nav-cta {
  background: var(--color-charcoal);
  color: var(--color-white) !important;
  padding: 9px 20px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--color-terracotta-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-charcoal);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 60px;
  overflow: hidden;
}

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

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--color-charcoal-soft);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stats dt {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--color-terracotta-dark);
}
.hero-stats dd {
  font-size: 0.85rem;
  color: var(--color-charcoal-soft);
}

.hero-art {
  display: flex;
  justify-content: center;
}
.hero-art svg { width: 100%; max-width: 400px; height: auto; }
.hero-dots circle {
  animation: pulse 3.5s ease-in-out infinite;
}
.hero-dots circle:nth-child(2) { animation-delay: 0.4s; }
.hero-dots circle:nth-child(3) { animation-delay: 0.8s; }
.hero-dots circle:nth-child(4) { animation-delay: 1.2s; }
.hero-dots circle:nth-child(5) { animation-delay: 1.6s; }
.hero-dots circle:nth-child(6) { animation-delay: 2s; }
.hero-dots circle:nth-child(7) { animation-delay: 2.4s; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Global focus band ---------- */
.focus-band {
  background: var(--color-bg-alt);
  padding: 72px 0;
  text-align: center;
}
.focus-band h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  max-width: 30ch;
  margin: 0 auto 16px;
}
.focus-sub {
  color: var(--color-charcoal-soft);
  max-width: 56ch;
  margin: 0 auto 36px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.chip-list li {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-charcoal-soft);
}

/* ---------- About ---------- */
.about { padding: 96px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #F1E4D4, #E7CBB4);
  object-fit: cover;
  object-position: center 25%;
  box-shadow: var(--shadow-soft);
}

.about-copy h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 18px; }
.about-copy p { color: var(--color-charcoal-soft); max-width: 58ch; margin-bottom: 22px; }

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.badge-list li {
  background: var(--color-bg-alt);
  color: var(--color-charcoal);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-terracotta-dark);
}

/* ---------- Stories ---------- */
.stories { padding: 96px 0; }

.section-heading { text-align: center; max-width: 60ch; margin: 0 auto 56px; }
.section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section-sub { color: var(--color-charcoal-soft); }

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.story-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.story-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.story-image {
  aspect-ratio: 16 / 10;
  background-size: cover;
}
.story-image--1 { background: linear-gradient(135deg, #E7A97C, #C1633D); }
.story-image--2 { background: linear-gradient(135deg, #A9B396, #7C8368); }
.story-image--3 { background: linear-gradient(135deg, #E4C9A6, #B5876C); }
.story-image--4 { background: linear-gradient(135deg, #D8B08A, #A34B2A); }
.story-image--5 { background: linear-gradient(135deg, #C6CBB4, #8C9270); }
.story-image--6 { background: linear-gradient(135deg, #EDCBA6, #D18F5C); }

.story-body { padding: 24px 24px 26px; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-terracotta-dark);
  margin-bottom: 12px;
}

.story-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.story-body p:not(.meta) {
  color: var(--color-charcoal-soft);
  font-size: 0.94rem;
  margin-bottom: 14px;
}

.meta {
  font-size: 0.8rem;
  color: #9C9187;
}

.stories-footer { text-align: center; margin-top: 52px; }

/* ---------- Quote band ---------- */
.quote-band {
  background: var(--color-terracotta-dark);
  color: var(--color-white);
  padding: 96px 0;
  text-align: center;
}
.quote-band blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  max-width: 46ch;
  margin: 0 auto 24px;
  line-height: 1.4;
}
.quote-attribution {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ---------- Newsletter ---------- */
.newsletter { padding: 96px 0; }

.newsletter-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.newsletter-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: 12px; }
.newsletter-copy p { color: var(--color-charcoal-soft); max-width: 48ch; margin: 0 auto 32px; }

.newsletter-form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1 1 240px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--color-line);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--color-white);
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-terracotta);
}

.newsletter-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--color-charcoal-soft);
  transition: color 0.2s ease;
}
.newsletter-note.success {
  color: var(--color-olive);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-charcoal);
  color: #D9D2C8;
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo { color: var(--color-white); margin-bottom: 10px; }
.footer-brand p { color: #B0A99D; max-width: 32ch; }

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8A8378;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: #D9D2C8;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--color-terracotta); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  font-size: 0.82rem;
  color: #8A8378;
}

.back-to-top {
  background: none;
  border: none;
  color: #D9D2C8;
  font-size: 0.82rem;
  cursor: pointer;
  font-weight: 600;
}
.back-to-top:hover { color: var(--color-terracotta); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 280px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; margin: 0 auto; }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { padding: 0 22px; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 22px 20px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; width: 100%; }
  .nav-cta { margin-top: 8px; text-align: center; }

  .nav-toggle { display: flex; }

  .hero { padding: 48px 0 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats { gap: 24px; }

  .story-grid { grid-template-columns: 1fr; }

  .newsletter-card { padding: 36px 24px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
