/* ============================================================
   A Dose of Joy — landing page
   Built against Brand Standards v1.0 (Logo/A-Dose-of-Joy-Brand-Guidelines).

   Palette, type and logo minimums all come from that document.
   Read the CONTRAST note below before changing any color.
   ============================================================ */

:root{
  /* ── Established palette ── */
  --navy:#172F44;          /* Midnight Navy      primary, text and anchor */
  --coral:#E55E4D;         /* Celebration Coral  signature, decorative only */
  --peach:#F6A974;         /* Peach Sorbet       secondary, warmth */
  --teal:#3A8882;          /* Joyful Teal        accent, supporting */

  /* ── Proposed neutrals ── */
  --paper:#FAF5EF;         /* Warm Paper */
  --sand:#E8DED5;          /* Soft Sand */
  --white:#FFFFFF;

  /* ── Accessible derivatives ────────────────────────────────
     The guidelines say coral, peach and teal are decorative and not small
     body-text colors, and the measured ratios agree. On Warm Paper, coral
     reaches 4.4:1 and peach only 1.8:1, both under the 4.5:1 AA floor, and
     Soft Sand is darker still. These darkened tints carry anything that is
     actually text or an icon. The brand hexes above stay for decoration,
     large display type and fills. */
  --coral-ui:#C8462F;      /* button fills: white on this is 4.8:1 */
  --coral-ink:#A93A27;     /* coral text and links: 5.8:1 paper, 4.8:1 sand */
  --amber-ink:#9A5823;     /* stands in for peach as text: 5.1:1 on paper */
  --navy-70:#4A5E71;       /* secondary text: 6.2:1 paper, 5.1:1 sand */

  --line:#DDD0C2;

  --maxw:1180px;
  --pad:clamp(20px,5vw,40px);
  --r-sm:12px;
  --r:18px;
  --r-lg:26px;
  --shadow:0 1px 2px rgba(23,47,68,.04), 0 12px 32px -14px rgba(23,47,68,.16);
  --shadow-lg:0 2px 4px rgba(23,47,68,.05), 0 28px 60px -26px rgba(23,47,68,.26);

  /* ── Type system ──
     Lato is the primary family (700 headings and CTAs, 400 body, and 700 for
     labels and navigation since Lato ships no 600). Noto Serif is secondary,
     reserved for short editorial headlines and personal notes. */
  --f-primary:"Lato", "Helvetica Neue", Arial, sans-serif;
  --f-editorial:"Noto Serif", Georgia, serif;

  /* Scale from the guidelines: display 32-48, section heading 22-28,
     body 16-18, caption 14. */
  --t-display:clamp(33px,5vw,48px);
  --t-h2:clamp(24px,3vw,28px);
  --t-h3:19px;
  --t-body:17px;
  --t-caption:14px;
}

*,*::before,*::after{box-sizing:border-box}
/* `overflow-x:clip` (not `hidden`) keeps html the scroll container.
   `hidden` on html/body breaks anchor scrolling and scroll-padding-top. */
html{
  scroll-behavior:smooth;
  scroll-padding-top:120px;
  -webkit-text-size-adjust:100%;
  overflow-x:clip;
}
body{
  margin:0;
  background:var(--paper);
  color:var(--navy);
  font-family:var(--f-primary);
  font-size:var(--t-body);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:clip;
}
img{max-width:100%; height:auto; display:block}
a{color:inherit}
h1,h2,h3,h4{margin:0; line-height:1.15; font-family:var(--f-primary); font-weight:700}
p{margin:0}
ul,ol{margin:0; padding:0; list-style:none}

.wrap{width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--pad)}
.wrap.narrow{max-width:780px}

.skip{position:absolute; left:-9999px; top:0; background:var(--navy); color:#fff; padding:12px 18px; z-index:200; border-radius:0 0 8px 0}
.skip:focus{left:0}
:focus-visible{outline:3px solid var(--teal); outline-offset:3px; border-radius:6px}

/* ───────── Buttons ───────── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  font-family:var(--f-primary); font-weight:700; font-size:16px;
  padding:15px 28px; border-radius:999px; border:1.5px solid transparent;
  text-decoration:none; cursor:pointer; white-space:nowrap;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary{background:var(--coral-ui); color:#fff; box-shadow:0 10px 24px -14px rgba(200,70,47,.9)}
.btn-primary:hover{background:var(--coral-ink); transform:translateY(-2px); box-shadow:0 16px 30px -16px rgba(200,70,47,.95)}
.btn-ghost{background:transparent; color:var(--navy); border-color:rgba(23,47,68,.24)}
.btn-ghost:hover{background:rgba(23,47,68,.05); border-color:rgba(23,47,68,.42); transform:translateY(-2px)}
.btn-sm{padding:11px 20px; font-size:15px}
.btn-wide{width:100%; padding:17px 28px}

/* ───────── Header ─────────
   Sized by the brand minimum, not by taste. The horizontal lockup needs 240px
   of VISIBLE artwork; its ink is 91.2% of the SVG canvas, so the canvas has to
   render at 264px wide (88px tall). The canvas padding already exceeds the
   H/8 clear-space rule on all four sides, so no extra margin is needed. */
.nav{
  position:sticky; top:0; z-index:100;
  background:rgba(250,245,239,.88);
  backdrop-filter:saturate(1.4) blur(14px);
  -webkit-backdrop-filter:saturate(1.4) blur(14px);
  border-bottom:1px solid transparent;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.nav.is-stuck{border-bottom-color:var(--line); box-shadow:0 10px 30px -24px rgba(23,47,68,.55)}
.nav-inner{display:flex; align-items:center; gap:24px; min-height:104px}
.brand{flex:0 0 auto; display:block}
.brand img{width:264px; height:88px}
.nav-links{display:flex; gap:26px; margin-left:auto}
.nav-links a{
  text-decoration:none; font-size:15px; font-weight:700; color:var(--navy-70);
  padding:6px 0; position:relative; transition:color .18s ease;
}
.nav-links a::after{
  content:""; position:absolute; left:0; right:100%; bottom:0; height:2px;
  background:var(--coral); border-radius:2px; transition:right .22s ease;
}
.nav-links a:hover{color:var(--navy)}
.nav-links a:hover::after{right:0}
.nav-cta{flex:0 0 auto}

.menu-btn{
  display:none; margin-left:auto; width:44px; height:44px; border:0; background:transparent;
  cursor:pointer; padding:10px; flex-direction:column; justify-content:space-between;
}
.menu-btn span{display:block; height:2px; width:100%; background:var(--navy); border-radius:2px; transition:transform .22s ease, opacity .18s ease}
.menu-btn.is-open span:nth-child(1){transform:translateY(10px) rotate(45deg)}
.menu-btn.is-open span:nth-child(2){opacity:0}
.menu-btn.is-open span:nth-child(3){transform:translateY(-10px) rotate(-45deg)}

.mobile-nav{display:none; flex-direction:column; padding:8px var(--pad) 22px; border-top:1px solid var(--line); background:var(--paper)}
.mobile-nav a{padding:14px 0; text-decoration:none; font-weight:700; border-bottom:1px solid var(--line)}
.mobile-nav a:last-child{border-bottom:0}
.mobile-cta{color:var(--coral-ink)}

/* ───────── Section furniture ───────── */
.section{padding:clamp(60px,7.5vw,100px) 0}
.section-sand{background:var(--sand)}
.section-head{max-width:640px; margin-bottom:clamp(34px,5vw,54px)}
.section-head.center{margin-inline:auto; text-align:center}
.section-head h2{font-size:var(--t-h2)}
.section-sub{margin-top:14px; color:var(--navy-70); font-size:18px}

.eyebrow{
  font-size:12.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--coral-ink); margin-bottom:14px;
}

/* ───────── Hero ───────── */
.hero{position:relative; padding:clamp(48px,6.5vw,88px) 0 clamp(52px,6.5vw,84px); overflow:hidden}
.blob{position:absolute; border-radius:50%; filter:blur(72px); opacity:.45; pointer-events:none}
.blob-1{width:470px; height:470px; background:var(--peach); top:-170px; right:-130px}
.blob-2{width:410px; height:410px; background:var(--teal); bottom:-210px; left:-160px; opacity:.22}

.hero-grid{position:relative; display:grid; grid-template-columns:1.08fr .92fr; gap:clamp(32px,5vw,64px); align-items:center}

/* The one editorial moment on the page. Noto Serif is the secondary family and
   the guidelines reserve it for short headlines, so it appears here and
   nowhere else. */
.hero-copy h1{
  font-family:var(--f-editorial); font-weight:400;
  font-size:var(--t-display); line-height:1.12; letter-spacing:-.01em;
}
.hero-copy h1 em{font-style:italic; color:var(--coral)}
.lede{margin-top:20px; font-size:18px; color:var(--navy-70); max-width:34em}
.hero-actions{display:flex; flex-wrap:wrap; gap:14px; margin-top:30px}
.hero-points{display:flex; flex-wrap:wrap; gap:10px 26px; margin-top:32px; font-size:15px; color:var(--navy-70)}
.hero-points li{display:flex; align-items:center; gap:9px}
.dot{width:9px; height:9px; border-radius:50%; flex:0 0 auto}
.dot-coral{background:var(--coral)} .dot-teal{background:var(--teal)} .dot-peach{background:var(--peach)}

.hero-art{position:relative}
.hero-frame{
  margin:0; border-radius:var(--r-lg); overflow:hidden;
  border:1px solid var(--line); box-shadow:var(--shadow-lg);
  background:var(--sand);
}
.hero-frame img{width:100%; height:auto; display:block}

/* ───────── Marquee ───────── */
.marquee{background:var(--navy); color:var(--paper); overflow:hidden; padding:15px 0; font-size:16px; font-weight:400}
.marquee-track{display:flex; gap:22px; white-space:nowrap; width:max-content; animation:slide 44s linear infinite}
.marquee-track i{color:var(--peach); font-style:normal}
@keyframes slide{from{transform:translateX(0)} to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){ .marquee-track{animation:none} }

/* ───────── Service cards ───────── */
.cards{display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(18px,2.2vw,26px)}
.card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:clamp(26px,3vw,34px); box-shadow:var(--shadow);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover{transform:translateY(-5px); box-shadow:var(--shadow-lg); border-color:#CFBCA8}
.card h3{font-size:var(--t-h3); margin-bottom:12px}
.card > p{color:var(--navy-70); font-size:16px}
.card-ico{width:52px; height:52px; border-radius:15px; display:grid; place-items:center; margin-bottom:20px}
.card-ico svg{width:27px; height:27px}
.ico-coral{background:#FBE4DF; color:var(--coral-ui)}
.ico-peach{background:#FBE8D7; color:var(--amber-ink)}
.ico-teal{background:#DAEBE9; color:var(--teal)}
.tick{margin-top:20px; display:grid; gap:9px; font-size:15px; color:var(--navy-70)}
.tick li{position:relative; padding-left:24px}
.tick li::before{
  content:""; position:absolute; left:0; top:.55em; width:12px; height:7px;
  border-left:2px solid var(--teal); border-bottom:2px solid var(--teal);
  transform:rotate(-45deg);
}

/* ───────── Gallery ───────── */
.gallery{display:grid; grid-template-columns:1fr 1fr; gap:clamp(14px,1.8vw,20px)}
.shot{margin:0; display:flex; flex-direction:column; gap:10px; min-height:0}
.shot picture{display:flex; flex:1; min-height:0}
.shot img{
  width:100%; border-radius:var(--r); border:1px solid var(--line);
  object-fit:cover; display:block; background:var(--white);
  transition:transform .25s ease, box-shadow .25s ease;
}
.shot-land img{aspect-ratio:3/2}
.shot-tall{grid-row:span 2}
.shot-tall img{flex:1; min-height:0; height:100%}
.shot:hover img{transform:translateY(-4px); box-shadow:var(--shadow-lg)}
.shot figcaption{font-size:var(--t-caption); color:var(--navy-70)}
.gallery-note{margin-top:26px; color:var(--navy-70); font-size:16px}
.gallery-note a{color:var(--coral-ink); font-weight:700; text-underline-offset:3px}

/* ───────── Process ───────── */
.steps{display:grid; grid-template-columns:repeat(4,1fr); gap:clamp(20px,2.4vw,30px)}
.steps li{position:relative; padding-top:26px; border-top:2px solid var(--line)}
.steps li::before{content:""; position:absolute; top:-6px; left:0; width:10px; height:10px; border-radius:50%; background:var(--coral)}
.step-n{font-size:13px; font-weight:700; letter-spacing:.1em; color:var(--amber-ink); display:block; margin-bottom:10px}
.steps h3{font-size:17px; margin-bottom:10px}
.steps p{color:var(--navy-70); font-size:15.5px}

/* ───────── About ─────────
   Single centred column. There is no portrait of the founders yet, and an empty
   frame reads as unfinished, so the image column was removed rather than faked.
   website/README.md has the markup for putting it back. */
.about-wrap{text-align:center}
.about-copy h2{font-size:var(--t-h2); margin-bottom:18px}
/* A personal note, which is the other use the guidelines allow Noto Serif. */
.about-lead{
  font-family:var(--f-editorial); font-style:italic; font-size:20px;
  line-height:1.5; color:var(--navy); margin-bottom:18px;
}
.about-copy p{color:var(--navy-70); margin-bottom:16px; font-size:16.5px}
.about-copy > p:last-of-type{margin-bottom:26px}
.about-copy .btn{margin-top:4px}

/* ───────── FAQ ───────── */
.faq{display:grid; gap:12px}
.faq details{background:var(--white); border:1px solid var(--line); border-radius:var(--r); padding:4px 22px; transition:border-color .2s ease, box-shadow .2s ease}
.faq details[open]{border-color:#CFBCA8; box-shadow:var(--shadow)}
.faq summary{cursor:pointer; list-style:none; padding:18px 34px 18px 0; position:relative; font-size:17px; font-weight:700}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:""; position:absolute; right:4px; top:50%; width:10px; height:10px;
  border-right:2px solid var(--coral-ui); border-bottom:2px solid var(--coral-ui);
  transform:translateY(-70%) rotate(45deg); transition:transform .22s ease;
}
.faq details[open] summary::after{transform:translateY(-30%) rotate(225deg)}
.faq details p{padding:0 0 20px; color:var(--navy-70); font-size:16px}

/* ───────── Form ───────── */
.form{
  margin-top:8px; background:var(--white); border:1px solid var(--line);
  border-radius:var(--r-lg); padding:clamp(24px,3.6vw,42px); box-shadow:var(--shadow-lg);
  display:grid; gap:18px;
}
.form .row{display:grid; grid-template-columns:1fr 1fr; gap:18px}
.form label{display:grid; gap:7px}
.form label > span{font-size:var(--t-caption); font-weight:700; color:var(--navy)}
.form label > span i{font-style:normal; font-weight:400; color:var(--navy-70)}
.form input,.form select,.form textarea{
  font-family:var(--f-primary); font-size:16px; color:var(--navy);
  padding:13px 15px; border:1.5px solid var(--line); border-radius:var(--r-sm);
  background:var(--paper); width:100%; transition:border-color .18s ease, background .18s ease;
}
.form textarea{resize:vertical; min-height:110px}
.form input:focus,.form select:focus,.form textarea:focus{outline:none; border-color:var(--teal); background:var(--white)}
.form input::placeholder,.form textarea::placeholder{color:var(--navy-70); opacity:.8}
.hp{position:absolute; left:-9999px; width:1px; height:1px; opacity:0}
.form-alt{text-align:center; font-size:15px; color:var(--navy-70)}
.form-alt a{color:var(--coral-ink); font-weight:700}
.form-status{text-align:center; font-size:15px; min-height:1.4em}
.form-status.ok{color:#2C6B66; font-weight:700}
.form-status.err{color:var(--coral-ink); font-weight:700}

/* ───────── Footer ───────── */
.footer{background:var(--navy); color:#D8E0E8; padding:clamp(48px,6vw,70px) 0 26px}
.footer-inner{display:grid; grid-template-columns:2fr 1fr 1fr; gap:clamp(28px,4vw,54px)}
.footer-brand img{width:280px; height:93px}
.footer-brand p{margin-top:16px; font-size:15px; color:#A3B3C2; max-width:36ch}
.footer-col h4{font-size:12.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--peach); margin-bottom:16px}
.footer-col a{display:block; text-decoration:none; font-size:15px; padding:5px 0; color:#D8E0E8; transition:color .18s ease}
.footer-col a:hover{color:var(--peach)}
.footer-bar{
  margin-top:clamp(34px,5vw,52px); padding-top:22px; border-top:1px solid rgba(255,255,255,.12);
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  font-size:var(--t-caption); color:#8EA2B4;
}

/* ───────── Reveal animation ─────────
   Gated on html.js so the page is fully readable without JavaScript.
   The transition lives on .in only, so entering the hidden state never animates. */
.js .reveal{opacity:0; transform:translateY(18px); will-change:opacity, transform}
.js .reveal.in{
  opacity:1; transform:none; will-change:auto;
  transition:opacity .6s ease, transform .6s cubic-bezier(.22,.8,.3,1);
}
@media (prefers-reduced-motion:reduce){
  .js .reveal,.js .reveal.in{opacity:1; transform:none; transition:none}
  html{scroll-behavior:auto}
}

/* ───────── Responsive ───────── */
@media (max-width:980px){
  .hero-grid{grid-template-columns:1fr; gap:40px}
  .hero-art{max-width:450px; width:100%}
  .cards{grid-template-columns:1fr}
  .steps{grid-template-columns:repeat(2,1fr)}
  .footer-inner{grid-template-columns:1fr 1fr}
  .footer-brand{grid-column:1 / -1}
}

@media (max-width:860px){
  .nav-links,.nav-cta{display:none}
  .menu-btn{display:flex}
  .mobile-nav{display:flex}
  .mobile-nav[hidden]{display:none}
  .form .row{grid-template-columns:1fr}
  .footer-inner{grid-template-columns:1fr}
  .gallery{grid-template-columns:1fr}
  .shot-tall{grid-row:auto}
  .shot-tall img{flex:none; height:auto; aspect-ratio:3/4}
}

@media (max-width:460px){
  .btn{width:100%}
  .hero-actions{flex-direction:column; align-items:stretch}
  .marquee{font-size:15px}
}

/* Below ~360px the 264px lockup plus the menu button no longer fits the row.
   Scaling it to a 232px canvas (212px visible) undershoots the 240px brand
   minimum, which beats letting the header overflow the screen. Revisit if a
   dedicated small-screen lockup is ever produced. */
@media (max-width:360px){
  .brand img{width:232px; height:77px}
  .nav-inner{min-height:92px; gap:12px}
}
