/* Soul Brews — Main Styles */
:root {
  --cream: #fefae0;
  --ink: #181818;
  --stone: #3b3b3b;
  --amber: #dda15e;
  --amber-700: #bc6c25;
  --green: #3a5a40;
  --foam: #ffffff;
  --bg: #0f0e0a;
  --header-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-2: 0 20px 40px rgba(0, 0, 0, 0.18);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

.display {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--stone); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); overflow: hidden; }

.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--foam); padding: .5rem .75rem; border-radius: 8px; box-shadow: var(--shadow-1); }

.container { width: min(1120px, 92vw); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(254,250,224,0.95), rgba(254,250,224,0.8));
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .85rem 0; }
.header-inner { min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; }
.brand-name { font-weight: 700; letter-spacing: .2px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; align-items: center; }
.site-nav a { text-decoration: none; color: var(--ink); padding: .5rem .6rem; border-radius: 8px; }
.site-nav a:hover { background: rgba(0,0,0,0.06); }
/* Language toggle button */
.site-nav .lang-toggle { padding: .42rem .6rem; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; border-radius: 10px; }
.nav-toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 1px; }

/* Hero */
.section-hero {
  position: relative;
  background: radial-gradient(1200px 600px at 110% -10%, rgba(61, 94, 64, 0.18), transparent 60%),
              radial-gradient(800px 400px at -10% 0%, rgba(221, 161, 94, 0.26), transparent 60%),
              var(--cream);
  padding: 6rem 0 4rem;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 2.2rem; align-items: center; }
.hero-copy .hero-ctas { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.2rem 0 1rem; }
.hero-points { list-style: none; padding: 0; margin: 1rem 0 0; color: var(--stone); display: grid; gap: .4rem; }

.hero-visual { display: grid; place-items: center; }
.hero-card { background: var(--foam); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 1rem; position: relative; }
.hero-badge { position: absolute; right: -14px; bottom: -14px; background: var(--amber); color: #1b1205; font-weight: 700; padding: .45rem .7rem; border-radius: 999px; box-shadow: var(--shadow-1); font-size: .9rem; }

.mock-ui { width: min(520px, 80vw); background: #0f0e0a; color: #f6eddc; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.mock-ui-header { padding: .7rem .9rem; background: rgba(255,255,255,.04); font-size: .9rem; letter-spacing: .3px; }
.mock-ui-body { padding: 1rem .9rem 1.1rem; display: grid; gap: .75rem; }
.mock-ui-row { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: center; }
.mock-chip { background: #1b150c; border: 1px solid rgba(255,255,255,0.06); padding: .22rem .5rem; border-radius: 999px; font-size: .82rem; color: #e8d7b8; }
.mock-pill { background: #2d2316; border: 1px solid rgba(255,255,255,0.06); padding: .5rem .65rem; border-radius: 10px; font-size: .96rem; color: #f5e8cf; }
.mock-note { color: #e4d4b5; font-size: .95rem; }
.mock-checkbox { width: 16px; height: 16px; background: #2d2316; border-radius: 4px; border: 1px solid rgba(255,255,255,.2); }
.mock-text { color: #f2e3c3; font-size: .95rem; }

/* Sections */
.section { padding: 4.5rem 0; }
.section .section-intro { text-align: center; margin-bottom: 1.5rem; }
.section h2 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 0 0 .5rem; }
.section p { margin: 0.25rem 0; }

/* Offset anchor targets for sticky header */
#main, .section, .section-hero { scroll-margin-top: calc(var(--header-h) + 8px); }

.features .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.features.alt { background: #fff7ec; border-top: 1px solid rgba(0,0,0,0.06); border-bottom: 1px solid rgba(0,0,0,0.06); }

.card { background: var(--foam); border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius-sm); padding: 1rem; box-shadow: var(--shadow-1); }
.card .icon { font-size: 1.7rem; }
.card h3 { margin: .4rem 0 .25rem; font-size: 1.1rem; }
.card p { color: var(--stone); }

.grid-3 .card { transition: transform .2s ease, box-shadow .2s ease; }
.grid-3 .card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }

.cta { background: linear-gradient(180deg, rgba(58,90,64,.08), rgba(221,161,94,.08)); border-top: 1px solid rgba(0,0,0,0.06); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: center; }
.cta-copy p { color: var(--stone); }
.cta-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.cta-form input { flex: 1 1 260px; min-width: 220px; border: 1px solid rgba(0,0,0,.12); border-radius: 10px; padding: .7rem .8rem; font-size: 1rem; }
.cta-form .form-msg { margin: 0; font-size: .95rem; color: var(--green); }

/* Footer */
.site-footer { padding: 2rem 0 2.2rem; background: #fff; border-top: 1px solid rgba(0,0,0,0.06); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.2rem; align-items: start; }
.footer-brand img { width: 36px; height: 36px; }
.footer-brand p { margin-top: .4rem; color: var(--stone); font-size: .98rem; }
.footer-links, .footer-contact { display: grid; gap: .4rem; }
.footer-links a, .footer-contact a { color: var(--ink); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { text-decoration: underline; }
.footer-title { font-weight: 700; font-size: 1rem; margin-bottom: .2rem; }
.small { font-size: .9rem; color: var(--stone); margin-top: 1rem; }

/* Buttons */
.btn { --bg: var(--ink); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none; color: var(--fg); background: var(--bg); padding: .7rem .9rem; border-radius: 12px; border: 1px solid rgba(0,0,0,.1); font-weight: 600; letter-spacing: .2px; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0); }
.btn-amber { --bg: var(--amber); --fg: #1b1205; border-color: rgba(0,0,0,.08); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid rgba(0,0,0,.2); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Modal */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(2px); }
.modal-panel { position: relative; margin: 10vh auto; width: min(560px, 92vw); background: var(--foam); border-radius: 16px; padding: 1.2rem; box-shadow: var(--shadow-2); border: 1px solid rgba(0,0,0,.08); }
.modal-close { position: absolute; top: .4rem; right: .4rem; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; }
.stack { display: grid; gap: .6rem; }
.stack input { border: 1px solid rgba(0,0,0,.12); border-radius: 10px; padding: .7rem .8rem; font-size: 1rem; }

/* Back to Top — removed for simplicity */

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .features .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .site-nav { position: absolute; top: 64px; right: 0; background: var(--foam); border-left: 1px solid rgba(0,0,0,.08); border-bottom: 1px solid rgba(0,0,0,.08); border-radius: 0 0 0 14px; box-shadow: var(--shadow-2); padding: .6rem; width: min(80vw, 320px); transform-origin: top right; transform: scale(.98); opacity: 0; pointer-events: none; transition: transform .16s ease, opacity .16s ease; }
  .site-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: .7rem .8rem; }
  /* Extra bottom padding not needed without back-to-top */
  .site-footer { padding-bottom: 2.2rem; }
}

/* Desktop: fixed header + top padding */
@media (min-width: 761px) {
  body { padding-top: var(--header-h); }
  .site-header { position: fixed; left: 0; right: 0; top: 0; }
}
