/* ============================================
   Katie's Collective — base styles
   ============================================ */

:root {
  --color-cream: #faf5ef;
  --color-cream-dark: #f1e6d8;
  --color-blush: #eccfc6;
  --color-blush-dark: #dba99c;
  --color-gold: #c9a24b;
  --color-gold-light: #e4c886;
  --color-sage: #92a17e;
  --color-text: #3a2e2a;
  --color-text-light: #6b5d55;
  --color-white: #ffffff;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1100px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(58, 46, 42, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
}

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

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-cream-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-text);
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--color-blush) 0%, var(--color-cream) 100%);
  padding: 72px 0 56px;
  text-align: center;
}

.hero-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin: 0 auto 28px;
  object-fit: cover;
  border: 6px solid var(--color-white);
  box-shadow: var(--shadow);
  background: var(--color-blush-dark);
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 8px;
}

.hero .dates {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.hero p.lead {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--color-text-light);
}

.hero-cta {
  margin-top: 28px;
}

/* ---------- Sections ---------- */

section {
  padding: 64px 0;
}

section.alt {
  background: var(--color-white);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ---------- Card grid (home teasers, charities) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 20px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card .icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.card a.card-link {
  font-weight: 700;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #b6903f;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-text);
}

.btn-outline:hover {
  background: var(--color-text);
  color: var(--color-white);
}

/* ---------- Story page ---------- */

.story-text {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.08rem;
}

.story-text p {
  margin-bottom: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.gallery img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: scale-down; 
  width: 100%;
  background: var(--color-blush);
}

.placeholder-photo {
  aspect-ratio: 4 / 3; 
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--color-blush);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
  text-align: center;
  padding: 12px;
}

/* ---------- News / events ---------- */

.event-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.event-date {
  flex-shrink: 0;
  background: var(--color-gold-light);
  color: var(--color-text);
  border-radius: 10px;
  padding: 10px 16px;
  text-align: center;
  font-weight: 700;
  min-width: 84px;
}

.event-date .month {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-date .day {
  display: block;
  font-size: 1.5rem;
  font-family: var(--font-heading);
}

.event-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.event-card p {
  color: var(--color-text-light);
}

.event-empty {
  text-align: center;
  color: var(--color-text-light);
  padding: 40px 20px;
  font-style: italic;
}

/* ---------- Calendar embed ---------- */

.calendar-embed {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-white);
}

.calendar-embed iframe {
  width: 100%;
  height: 600px;
  display: block;
}

@media (max-width: 600px) {
  .calendar-embed iframe {
    height: 480px;
  }
}

/* ---------- Charities ---------- */

.charity-card {
  text-align: left;
}

.charity-card h3 {
  color: var(--color-text);
}

/* ---------- Shop / business ---------- */

.shop-section {
  text-align: center;
}

.shop-section .btn-primary {
  margin-top: 8px;
}

.product-note {
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
  color: var(--color-text-light);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-text);
  color: var(--color-cream);
  padding: 40px 0;
  text-align: center;
}

.site-footer p {
  color: var(--color-cream-dark);
  font-size: 0.95rem;
}

.site-footer .footer-tagline {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--color-white);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 18px;
}

.social-links a {
  color: var(--color-cream-dark);
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--color-gold-light);
}

.social-links svg {
  width: 24px;
  height: 24px;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    gap: 0;
    display: none;
    border-bottom: 1px solid var(--color-cream-dark);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-top: 1px solid var(--color-cream-dark);
  }

  .nav-links a {
    display: block;
    padding: 16px 24px;
  }

  .nav-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .event-card {
    flex-direction: column;
  }
}
