/* Design carried over from the Lovable "Garden Wisdom" site. */
:root {
  --background: #faf9f5;
  --foreground: #212c26;
  --card: #ffffff;
  --forest: #235c45;
  --forest-foreground: #faf9f5;
  --sage: #97b894;
  --sage-foreground: #212c26;
  --terracotta: #f08c47;
  --earth: #cdbfa8;
  --muted: #e6f0e6;
  --muted-foreground: #64756d;
  --border: #d9e8d9;
  --gradient-nature: linear-gradient(135deg, var(--sage) 0%, var(--forest) 100%);
  --shadow-garden: 0 10px 30px -10px rgba(35, 92, 69, 0.2);
  --shadow-soft: 0 4px 20px -8px rgba(35, 92, 69, 0.15);
  --radius: 8px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); }
a:hover { color: #1a4735; }
h1, h2 { font-family: var(--serif); font-weight: 700; color: var(--forest); margin: 0; }
h3 { color: var(--forest); margin: 0; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .wrap { padding: 0 32px; } }

/* Nav */
.nav { border-bottom: 1px solid var(--border); background: rgba(250, 249, 245, 0.92); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--forest); text-decoration: none; white-space: nowrap; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; }
.nav a.link { color: var(--muted-foreground); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a.link:hover, .nav a.link[aria-current] { color: var(--forest); }
.nav a.link[aria-current] { font-weight: 600; }

/* Sections */
section { padding: 80px 0; }
section.tight { padding: 64px 0; }
section.tint { background: rgba(151, 184, 148, 0.05); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: 30px; line-height: 1.2; margin-bottom: 12px; }
.section-head p { color: var(--muted-foreground); font-size: 18px; margin: 0; }
@media (min-width: 768px) { .section-head h2 { font-size: 36px; } }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--gradient-nature); opacity: 0.1; }
.hero .grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero .grid { grid-template-columns: 1fr 1fr; } }
.hero h1 { font-size: 36px; line-height: 1.1; margin: 16px 0 24px; }
@media (min-width: 768px) { .hero h1 { font-size: 48px; } }
@media (min-width: 1024px) { .hero h1 { font-size: 60px; } }
.hero p.lead { font-size: 18px; line-height: 1.6; color: var(--muted-foreground); margin: 0 0 32px; max-width: 42rem; }
@media (min-width: 768px) { .hero p.lead { font-size: 20px; } }
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; inset: -8px; transform: rotate(-2deg); background: linear-gradient(135deg, var(--terracotta), var(--earth)); opacity: 0.2; border-radius: 16px; }
.hero-art img, .hero-art .placeholder { position: relative; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-garden); }
.hero-art.portrait { max-width: 440px; width: 100%; margin: 0 auto; }
.hero-art.portrait img { aspect-ratio: 4 / 5; object-position: center 35%; }
.hero-art .placeholder { background: var(--gradient-nature); display: flex; align-items: center; justify-content: center; font-size: 72px; }
.page-hero { padding: 64px 0 48px; }
.page-hero h1 { font-size: 36px; line-height: 1.15; margin: 12px 0 16px; }
@media (min-width: 768px) { .page-hero h1 { font-size: 48px; } }
.page-hero p.lead { font-size: 18px; color: var(--muted-foreground); max-width: 46rem; margin: 0; line-height: 1.6; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 32px; border-radius: 6px; font-size: 14px; font-weight: 500; text-decoration: none; transition: background 0.2s, box-shadow 0.2s; }
.btn-primary { background: var(--forest); color: var(--forest-foreground); box-shadow: var(--shadow-garden); }
.btn-primary:hover { background: rgba(35, 92, 69, 0.9); color: var(--forest-foreground); }
.btn-outline { background: var(--background); color: var(--foreground); border: 1px solid var(--sage); }
.btn-outline:hover { background: var(--muted); color: var(--foreground); }

/* Pills */
.pill { display: inline-flex; align-items: center; border-radius: 9999px; padding: 2px 10px; font-size: 12px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.pill-badge, .pill-level { background: var(--sage); color: var(--sage-foreground); }
.pill-outline { border-color: rgba(151, 184, 148, 0.3); color: #547b51; }
.pill-orange { background: var(--terracotta); color: var(--foreground); }
.pill-earth { background: var(--earth); color: var(--foreground); }

/* Grids and cards */
.grid-4, .grid-3, .grid-2 { display: grid; gap: 24px; }
@media (min-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.feature { display: block; text-align: center; padding: 24px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-soft); transition: box-shadow 0.3s; text-decoration: none; color: inherit; }
a.feature:hover { box-shadow: var(--shadow-garden); color: inherit; }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius); background: var(--gradient-nature); color: var(--forest-foreground); margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature p { color: var(--muted-foreground); margin: 0; }

.card { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid rgba(151, 184, 148, 0.2); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); padding: 20px 20px 24px; transition: box-shadow 0.3s, border-color 0.3s; text-decoration: none; color: inherit; }
a.card:hover, .card:hover { box-shadow: var(--shadow-garden); border-color: rgba(151, 184, 148, 0.4); color: inherit; }
.card .pills { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.card h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.25; margin-bottom: 12px; }
a.card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card p { color: var(--muted-foreground); margin: 0 0 8px; font-size: 15px; line-height: 1.6; }
.card dl { margin: 4px 0 0; font-size: 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.card dt { color: var(--muted-foreground); font-weight: 500; }
.card dd { margin: 0; overflow-wrap: anywhere; }
.card .more { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 500; }

/* Prose blocks */
.prose { max-width: 46rem; }
.prose h2 { font-size: 28px; margin: 0 0 16px; }
.prose p, .prose li { color: #3d4a43; line-height: 1.7; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid rgba(151, 184, 148, 0.2); border-radius: var(--radius); padding: 12px 16px; }
.checklist li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 4px; border: 2px solid var(--sage); }
.empty { background: var(--card); border: 1px dashed var(--sage); border-radius: var(--radius); padding: 24px; color: var(--muted-foreground); text-align: center; }

/* Calendar */
.month { position: relative; }
.month.now { border-color: var(--forest); box-shadow: var(--shadow-garden); }
.month h4 { margin: 12px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-foreground); }
.month p { color: var(--foreground); }
.facts { display: grid; gap: 16px; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 20px; }
.fact strong { display: block; font-family: var(--serif); font-size: 22px; color: var(--forest); margin-bottom: 4px; }
.fact span { color: var(--muted-foreground); font-size: 14px; }

/* Table */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); border: 1px solid rgba(151, 184, 148, 0.2); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; color: var(--forest); background: rgba(151, 184, 148, 0.08); }
tr:last-child td { border-bottom: 0; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted-foreground); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: var(--muted-foreground); }
footer a:hover { color: var(--forest); }

:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

/* Photo gallery */
.gallery-title { font-family: var(--serif); font-size: 22px; margin: 0 0 16px; }
.gallery { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); justify-content: center; }
.gallery figcaption { margin-top: 8px; font-size: 14px; color: var(--muted-foreground); text-align: center; }
.gallery figure { margin: 0; }
.gallery { align-items: start; }
.gallery img, .gallery video { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
footer .copyright { flex-basis: 100%; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; }
.page-hero .grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .page-hero .grid { grid-template-columns: 1.4fr 1fr; } }
.hero-art.portrait.small { max-width: 340px; }
.grid-2.narrow { max-width: 760px; margin: 0 auto; }
.prose .note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted-foreground); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.3fr 1fr; } }
.stack { display: grid; gap: 16px; margin: 24px 0; }
.split .gallery { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.prose.centered { margin: 0 auto 32px; }
.callout { background: #fdf3ea; border-left: 4px solid var(--terracotta); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; color: var(--foreground) !important; }

/* Phone menu: collapsed behind a button when JavaScript is available */
.menu-toggle { display: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--forest); background: var(--card); border: 1px solid var(--sage); border-radius: 6px; padding: 6px 14px; cursor: pointer; }
@media (max-width: 767px) {
  .js .menu-toggle { display: inline-flex; }
  .js .nav nav { display: none; flex-basis: 100%; }
  .js .nav.open nav { display: block; }
  .js .nav ul { flex-direction: column; gap: 0; padding: 4px 0 8px; }
  .js .nav a.link { display: block; padding: 10px 0; font-size: 16px; border-top: 1px solid var(--border); }
}

/* Orchid cards */
.card.orchid { padding: 16px 16px 20px; }
.orchid-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 16px; }
.orchid-media figure { margin: 0; }
.orchid-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; display: block; }
.orchid-media figcaption { margin-top: 6px; font-size: 13px; color: var(--muted-foreground); text-align: center; }
.orchid-media figure:only-child img { aspect-ratio: 4 / 3; }
@media (max-width: 480px) { .brand { font-size: 16px; } .menu-toggle { padding: 5px 10px; } }
.centered-note { max-width: 46rem; margin-left: auto; margin-right: auto; text-align: center; }
.gallery-title.centered-note { margin-top: 40px; }
.faq h3 { font-family: var(--serif); font-size: 20px; margin: 28px 0 8px; }
.faq:first-child h3 { margin-top: 0; }
