/* Best Los Angeles Flowers — shared design system
   Palette: warm cream, deep botanical green, muted rose. */

:root {
  --bg: #FBF7F1;
  --surface: #FFFFFF;
  --ink: #2B2723;
  --muted: #6E655B;
  --line: #E7DFD4;
  --green: #3F5E48;
  --green-dark: #2E4735;
  --green-soft: #E4EBE3;
  --rose: #B3576B;
  --rose-soft: #F5E3E6;
  --gold-soft: #F3EAD7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(43, 39, 35, 0.06), 0 8px 24px rgba(43, 39, 35, 0.07);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 0.5rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }

p { margin: 0 0 1rem; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

/* ---------- Top navigation ---------- */

.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-dark);
  text-decoration: none;
}

.wordmark:hover { color: var(--green); }

.site-nav nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.site-nav nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav nav a:hover { color: var(--ink); }

.site-nav nav a[aria-current="page"] {
  color: var(--green-dark);
  border-bottom-color: var(--rose);
}

/* ---------- Page header ---------- */

.tool-header {
  padding: 3rem 0 1.5rem;
  max-width: 46rem;
}

.tool-header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rose);
  margin-bottom: 0.75rem;
}

.tool-header .lede {
  font-size: 1.15rem;
  color: var(--muted);
}

/* ---------- Cards & surfaces ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card + .card { margin-top: 1.25rem; }

.card h2:first-child, .card h3:first-child { margin-top: 0; }

.panel-soft {
  background: var(--green-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

/* ---------- Forms ---------- */

label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}

.field-hint {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
}

input[type="number"],
input[type="search"],
input[type="text"],
select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
}

input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 1rem 1.25rem;
}

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

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:hover { background: var(--gold-soft); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn-primary:hover { background: var(--green-dark); color: #fff; }

/* ---------- Tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

th, td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

tbody tr:last-child td { border-bottom: none; }

/* ---------- Badges ---------- */

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  background: var(--green-soft);
  color: var(--green-dark);
  white-space: nowrap;
}

.badge-rose { background: var(--rose-soft); color: var(--rose); }
.badge-gold { background: var(--gold-soft); color: #8A6D1F; }

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

.site-footer {
  margin-top: 4rem;
  background: var(--green-dark);
  color: #EDF1EC;
  padding: 2.5rem 1.25rem 2.75rem;
  text-align: center;
  font-size: 0.97rem;
}

.site-footer a { color: #fff; }

.site-footer .footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.site-footer p { margin: 0.25rem 0; }

/* ---------- Utilities ---------- */

.muted { color: var(--muted); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

@media print {
  .site-nav, .site-footer, .no-print { display: none; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
}
