/* =============================================================================
   Base — reset, layout, typography, buttons, nav, footer, shared components.
   Self-contained (no CDN dependency) so the site renders anywhere, offline too.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.1; color: var(--color-ink); }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p { color: var(--color-ink-soft); }

/* Layout */
.container { width: min(1140px, 92vw); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
.section--cloud { background: var(--color-cloud); }
.section--cream { background: var(--color-cream); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(2rem, 5vw, 3.25rem); }
.section-head p { font-size: 1.1rem; margin-top: 0.75rem; }
.eyebrow {
  display: inline-block; font-family: var(--font-heading); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem;
  color: var(--color-sky-deep); background: #fff;
  padding: 0.35rem 0.9rem; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card); margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius-pill);
  border: none; cursor: pointer; transition: transform 0.25s var(--bounce), box-shadow 0.25s ease, background 0.2s ease;
  text-align: center; line-height: 1;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-cta { background: var(--color-coral); color: #fff; box-shadow: var(--shadow-cta); }
.btn-cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: var(--shadow-cta-h); background: var(--color-coral-deep); }
.btn-sun { background: var(--color-sunshine); color: var(--color-ink); box-shadow: var(--shadow-sun); }
.btn-sun:hover { transform: translateY(-3px) scale(1.03); }
.btn-sky { background: var(--color-sky); color: #fff; box-shadow: var(--shadow-card); }
.btn-sky:hover { transform: translateY(-3px) scale(1.03); background: var(--color-sky-deep); }
.btn-ghost { background: #fff; color: var(--color-ink); box-shadow: var(--shadow-card); }
.btn-ghost:hover { transform: translateY(-3px); }
.btn-lg { font-size: 1.18rem; padding: 1.05rem 2rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Chips / badges */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #fff; color: var(--color-ink); font-weight: 700; font-size: 0.9rem;
  padding: 0.4rem 0.9rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-card);
}
.chip--lime { background: var(--color-lime); color: #0a3d22; }

/* Cards */
.card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  overflow: hidden; transition: transform 0.3s var(--bounce), box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); }

/* Image placeholder tiles (until real photos are dropped in) */
.img-slot {
  position: relative; aspect-ratio: 4 / 3; background: var(--grad-pool);
  display: grid; place-items: center; color: #fff; overflow: hidden;
}
.img-slot img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: 1; }
/* gentle scrim so the unit name stays readable over any photo */
.img-slot::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,23,42,0.04) 0%, rgba(15,23,42,0.10) 55%, rgba(15,23,42,0.52) 100%); }
.img-slot__caption {
  position: relative; z-index: 3; margin: 0; color: #fff; text-align: center; padding: 0 1rem;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  text-shadow: 0 2px 14px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.45);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50; transition: background 0.3s ease, box-shadow 0.3s ease;
  padding: 0.75rem 0;
}
.nav.scrolled { background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(35,48,68,0.08); }
.nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.nav__inner .brand { justify-self: start; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; color: var(--color-ink); }
.brand__mark {
  width: 42px; height: 42px; border-radius: 14px; background: var(--grad-sun);
  display: grid; place-items: center; font-size: 1.4rem; box-shadow: var(--shadow-sun);
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 14px; }
.brand__logo { height: 150px; width: auto; display: block; }
.brand__logo--footer { height: 120px; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; justify-self: center; }
.nav__links a { font-weight: 700; color: var(--color-ink); transition: color 0.2s; }
.nav__links a:hover { color: var(--color-sky-deep); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.6rem; color: var(--color-ink); }

/* Footer */
.footer { background: var(--color-ink); color: #cfd8e6; padding: 3.5rem 0 2rem; }
.footer a { color: #cfd8e6; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.footer h4 { color: #fff; margin-bottom: 0.9rem; font-size: 1.1rem; }
.footer__brand { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* Demo banner */
.demo-banner {
  background: repeating-linear-gradient(45deg, #FFC93C, #FFC93C 16px, #FFD968 16px, #FFD968 32px);
  color: #4a3500; font-family: var(--font-heading); font-weight: 700;
  text-align: center; padding: 0.55rem 1rem; font-size: 0.92rem; position: relative; z-index: 60;
}
.demo-banner b { color: #7a2f00; }

/* Animations */
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes floatUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.bob { animation: bob 4s ease-in-out infinite; }
.reveal { opacity: 0; }
.reveal.in { animation: floatUp 0.7s var(--bounce) forwards; }
@media (prefers-reduced-motion: reduce) {
  .bob { animation: none; }
  .reveal { opacity: 1 !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Responsive nav */
@media (max-width: 820px) {
  .nav__inner { display: flex; justify-content: center; position: relative; }
  .nav__toggle { display: block; position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
  .brand__logo { height: 112px; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0.4rem;
    background: #fff; padding: 1rem 1.25rem 1.5rem; box-shadow: var(--shadow-pop);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all 0.25s ease;
  }
  .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { width: 100%; padding: 0.5rem 0; }
  .nav__links .btn { width: 100%; margin-top: 0.4rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
