/* ============ Omelette's Promise ============ */

:root {
  --cream: #fdf8f0;
  --cream-dark: #f6ecdc;
  --brown: #4a3527;
  --brown-soft: #6e574515;
  --amber: #c47a2b;
  --amber-dark: #a35f17;
  --green: #4e6e4e;
  --green-dark: #3d573d;
  --ink: #33271d;
  --muted: #7d6e5f;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(74, 53, 39, 0.10);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brown);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin: 1.5rem 0 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }

p + p { margin-top: 1rem; }

a { color: var(--amber-dark); }

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber-dark);
  margin-bottom: 0.75rem;
}

/* ============ Buttons ============ */

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary { background: var(--amber); color: var(--white); }
.btn-primary:hover { background: var(--amber-dark); }

.btn-secondary { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn-secondary:hover { background: var(--green); color: var(--white); }

.btn-small { padding: 0.45rem 1.1rem; font-size: 0.9rem; }
.btn-block { display: block; text-align: center; width: 100%; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.brand-logo { height: 32px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brown);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}
.nav-links a {
  white-space: nowrap;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--brown);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:not(.btn):hover { color: var(--amber-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--brown);
  border-radius: 2px;
}

/* ============ Hero ============ */

.hero {
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-dark) 100%);
  padding: 4.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-lead { margin: 1.25rem 0 1.75rem; font-size: 1.1rem; }

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-photo {
  position: relative;
  margin: 0;
}
.hero-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(74, 53, 39, 0.25);
  transform: rotate(1.5deg);
  border: 8px solid var(--white);
}
.hero-photo figcaption {
  text-align: center;
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

/* Fallback if assets/omelette.jpg is missing */
.photo-fallback { display: none; }
.hero-photo.photo-missing img { display: none; }
.hero-photo.photo-missing .photo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--brown-soft);
  border: 2px dashed var(--muted);
  color: var(--muted);
}
.photo-fallback span { font-size: 3rem; }

/* ============ Sections ============ */

.section { padding: 4.5rem 0; }
.section-alt { background: var(--cream-dark); }

.promise-vow {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--green-dark);
  margin: 1rem 0;
}

.footnote-ref {
  font-size: 0.75rem;
  vertical-align: super;
  text-decoration: none;
}

/* ============ Stats ============ */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber-dark);
}
.stat-label { font-size: 0.88rem; color: var(--muted); }

/* ============ Cards ============ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow);
}
.card p { font-size: 0.95rem; color: var(--muted); }

.card-icon { font-size: 2rem; margin-bottom: 0.8rem; }

.badge {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: var(--brown-soft);
  color: var(--brown);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.funding-note { margin-top: 3rem; }

/* ============ Get Involved ============ */

.involve-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
  margin-top: 2.5rem;
  align-items: start;
}

.involve-stack { display: grid; gap: 1.4rem; }

.involve-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
}
.involve-card h3 { margin-top: 0; }
.involve-card > p { font-size: 0.97rem; color: var(--muted); margin-bottom: 1.25rem; }

.involve-pledge { border-top: 5px solid var(--amber); }
.involve-donate { border-top: 5px solid var(--green); }

/* ============ Forms ============ */

.form { display: grid; gap: 0.9rem; }

.form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brown);
}

.form input,
.form select,
.form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid #ddd0bd;
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--amber);
}

.form-status { font-size: 0.9rem; font-weight: 600; color: var(--green-dark); min-height: 1.2em; }

/* ============ Signers & Wishlists ============ */

.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.org-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  text-decoration: none;
}
.org-card h4 { margin: 0.9rem 0 0; color: var(--brown); }

.org-logo {
  height: 72px;
  width: 72px;
  margin: 0 auto;
  object-fit: contain;
}
.org-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-radius: 50%;
  background: var(--brown-soft);
}

.org-card-cta {
  border: 2px dashed var(--amber);
  background: transparent;
  box-shadow: none;
}
.org-card-cta:hover { background: var(--white); box-shadow: var(--shadow); }
.org-card-cta p { margin-top: 0.3rem; }

.wishlist-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.wishlist-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  box-shadow: var(--shadow);
}
.wishlist-card h4 { margin: 0; }
.wishlist-card .btn { white-space: nowrap; }

.wishlist-note { margin-top: 2rem; text-align: center; }

/* ============ Contact ============ */

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 1.6rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--brown);
  font-weight: 600;
}
.contact-item:hover { outline: 2px solid var(--amber); }

.contact-icon { font-size: 1.6rem; }

.contact-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.site-footer {
  background: var(--brown);
  color: var(--cream);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}
.site-footer .brand-name { color: var(--cream); }
.site-footer a { color: #e8c08a; }
.site-footer .muted { color: #c9b8a8; }
.site-footer hr { border: none; border-top: 1px solid #5f4936; margin: 2rem 0 1.2rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 2.5rem;
}
.footer-heading { font-weight: 700; margin-bottom: 0.6rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a { text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { text-decoration: underline; }

.footnote { font-size: 0.85rem; color: #c9b8a8; margin-bottom: 1rem; }

/* ============ Responsive ============ */

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-photo { max-width: 420px; margin: 0 auto; }
  .involve-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 1040px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-dark);
    padding: 0.5rem 24px 1rem;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: block; padding: 0.7rem 0; }
  .nav-links .btn { margin-top: 0.6rem; }
}

@media (max-width: 720px) {
  .stat-row { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
}
