/*
  CarterGarden marketing site — shared styles.
  Warm, organic, botanical: cream grounds, deep botanical green, gold/brown accent.

  TODO: align exact hex values + fonts with the app's design tokens
  (src/theme/palettes.ts + tokens.ts). These are on-brand approximations using
  web-safe fonts only (no Google Fonts / third-party requests, to keep the
  privacy story clean — no cookie banner needed).
*/

:root {
  --cream: #fbf7ef; /* warm off-white ground */
  --cream-2: #f3ecdd; /* cards / placeholder fills */
  --green: #2e5a1e; /* deep botanical green */
  --green-soft: #5e7e4f;
  --gold: #b07d3a; /* gold / brown accent */
  --gold-deep: #8f6630;
  --ink: #2a2620; /* primary text */
  --muted: #6b635a; /* secondary text */
  --border: #e4dac4;

  --maxw: 1000px;
  --radius: 14px;
  --font-serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif; /* display feel */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  color: var(--green);
  line-height: 1.15;
  margin: 0 0 0.4em;
}

a {
  color: var(--gold-deep);
}

a:hover {
  color: var(--green);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(251, 247, 239, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(1.1) blur(6px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
}

/* Clearly-marked logo placeholder slot */
.logo-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1.5px dashed var(--gold);
  border-radius: 9px;
  color: var(--gold-deep);
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  background: var(--cream-2);
}

nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  margin-left: 18px;
  font-size: 0.98rem;
}

nav a[aria-current='page'] {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 36px;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 0 0 8px;
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.2rem);
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38ch;
}

.availability {
  display: inline-block;
  margin-top: 18px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--green);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Placeholder slots (logo/screenshots) ---------- */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--gold-deep);
  background: var(--cream-2);
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.ph-phone {
  aspect-ratio: 9 / 16;
  max-width: 280px;
  margin: 0 auto;
  width: 100%;
}

.ph-feature {
  aspect-ratio: 4 / 3;
  width: 100%;
  margin-bottom: 14px;
  font-size: 0.82rem;
}

/* ---------- Features ---------- */
.features {
  padding: 28px 0 56px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  text-align: center;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

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

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Doc pages (privacy / support) ---------- */
.doc {
  padding: 40px 20px 64px;
  max-width: 760px;
}

.doc h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
}

.doc h2 {
  font-size: 1.3rem;
  margin-top: 1.6em;
}

.doc-meta {
  color: var(--muted);
  font-style: italic;
  margin-top: -0.2em;
}

.contact-cta {
  margin: 18px 0 8px;
}

.button {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 10px;
}

.button:hover {
  background: var(--gold-deep);
  color: #fff;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: #fff;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--green);
}

.faq details p {
  margin: 10px 0 2px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--cream-2);
  padding: 22px 0;
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer nav a {
  margin-left: 0;
  margin-right: 18px;
  font-size: 0.92rem;
  color: var(--gold-deep);
}

/* ---------- Responsive (tablet/desktop) ---------- */
@media (min-width: 720px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .header-inner {
    justify-content: center;
  }
  nav a {
    margin: 0 9px;
  }
}
