:root {
  --sunshine: #F4A62A;
  --meadow: #5BA567;
  --sky: #4A9BD9;
  --berry: #E0607E;
  --ink: #2E2A3B;
  --ink-soft: #5c5770;
  --cream: #FFF9F0;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 6px 20px rgba(46, 42, 59, 0.08);
  --max: 1100px;
  --font-head: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--sky); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.3rem; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: 64px 0; }
.section--white { background: var(--white); }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 640px; }
.center .lead { margin-inline: auto; }

/* Header */
.site-header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; width: min(1400px, 100% - 32px); }
.logo { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.logo span { color: var(--sunshine); }
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--berry); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px; border: 0;
  background: var(--sunshine); color: var(--ink); font-weight: 800; text-decoration: none;
  font-family: var(--font-body); font-size: 1rem; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline { background: transparent; border: 2px solid var(--ink); }
.nav .btn { padding: 8px 18px; }

/* Hero */
.hero { padding: 80px 0 72px; background: linear-gradient(160deg, #FFF1D6 0%, var(--cream) 60%); }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.center .hero-actions { justify-content: center; }
.hero-art {
  aspect-ratio: 1; border-radius: 50%; background: var(--sky);
  display: grid; place-items: center; font-size: 8rem; box-shadow: var(--shadow);
}
.page-hero { padding: 56px 0; background: #FFF1D6; text-align: center; }

/* Cards */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card .icon { font-size: 2.4rem; margin-bottom: 8px; }
.card--sun { border-top: 6px solid var(--sunshine); }
.card--meadow { border-top: 6px solid var(--meadow); }
.card--sky { border-top: 6px solid var(--sky); }
.card--berry { border-top: 6px solid var(--berry); }
.meta { color: var(--ink-soft); font-weight: 700; font-size: .95rem; }

/* Testimonial */
.quote { font-size: 1.25rem; font-style: italic; max-width: 720px; margin: 0 auto; }
.quote cite { display: block; margin-top: 12px; font-style: normal; font-weight: 700; color: var(--ink-soft); }

/* Reviews */
.reviews { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 32px; }
.review { flex: 1 1 300px; max-width: 520px; margin: 0; display: flex; flex-direction: column; border-top: 6px solid var(--sunshine); }
.review blockquote { margin: 12px 0 18px; font-size: 1.1rem; font-style: italic; flex: 1; }
.review blockquote::before { content: "“"; }
.review blockquote::after { content: "”"; }
.review figcaption { display: grid; gap: 2px; }
.review figcaption span { color: var(--ink-soft); font-size: .95rem; }
.stars { color: var(--sunshine); font-size: 1.3rem; letter-spacing: 2px; }
.stars .off { color: #e8dfcf; }

/* CTA band */
.cta { background: var(--meadow); color: var(--white); text-align: center; border-radius: var(--radius); padding: 48px 24px; }
.cta .btn { background: var(--white); }

/* Tables */
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #f0e8da; }
th { background: var(--sunshine); font-family: var(--font-head); }
.table-wrap { overflow-x: auto; }

/* Forms */
form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
label { font-weight: 700; display: grid; gap: 6px; }
input, select, textarea {
  font: inherit; padding: 12px 14px; border-radius: 12px;
  border: 2px solid #e8dfcf; background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); }
[hidden] { display: none !important; }
/* While the next page loads in the background (see js/main.js). */
.site-navigating, .site-navigating a { cursor: progress; }
main:focus { outline: none; }
.notice { background: var(--sunshine); color: var(--ink); text-align: center; border-radius: var(--radius); padding: 32px 24px; }
.notice .btn { background: var(--white); }
.form-success, .form-error { display: none; } /* wording for the popup below */

/* Popup shown after a form is sent (see js/main.js). */
.popup {
  border: 0; border-radius: var(--radius); padding: 32px 28px 28px; width: min(420px, 100% - 32px);
  text-align: center; color: var(--ink); background: var(--white); box-shadow: 0 20px 60px rgba(46, 42, 59, 0.25);
  border-top: 8px solid var(--meadow);
}
.popup--error { border-top-color: var(--berry); }
.popup::backdrop { background: rgba(46, 42, 59, 0.45); }
.popup[open] { animation: popup-in .2s ease-out; }
@keyframes popup-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.popup-icon { font-size: 2.6rem; line-height: 1; }
.popup-text { font-weight: 700; font-size: 1.1rem; margin: 14px 0 22px; }

/* Pictures */
.art--sun { background: var(--sunshine); }
.art--meadow { background: var(--meadow); }
.art--sky { background: var(--sky); }
.art--berry { background: var(--berry); }
.hero-art { overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.prose > :first-child { margin-top: 0; }

/* Two-column */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.map { aspect-ratio: 4/3; width: 100%; border: 0; border-radius: var(--radius); }

/* Footer */
.site-footer { background: var(--ink); color: #d8d4e3; padding: 40px 0; margin-top: 64px; }
.site-footer a { color: var(--white); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer small { display: block; width: 100%; opacity: .7; }

/* Mobile */
@media (max-width: 800px) {
  .hero .container, .split, .form-row { grid-template-columns: 1fr; }
  .hero-art { max-width: 260px; margin: 0 auto; font-size: 6rem; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 16px; gap: 14px; }
}
