/* =========================================================================
   Saltwater Scraps — stylesheet
   Palette taken from the brand logo: seafoam mint, deep teal, slate blue,
   navy design-ink and warm cream/sand from the NZ coastline photos.
   ========================================================================= */

:root {
  --teal-900: #0e4239;
  --teal-700: #14514a;
  --teal-600: #1c6b5f;
  --teal-500: #2a8778;
  --seafoam:  #a6dad0;
  --seafoam-300: #c3e7df;
  --seafoam-100: #e2f3ef;
  --seafoam-50:  #eff8f5;
  --slate:    #7e9bb3;
  --slate-dark:#5a7891;
  --navy:     #22309a;
  --sand:     #efe7d3;
  --cream:    #faf7ef;
  --ink:      #16302b;
  --muted:    #5b6f6a;
  --white:    #ffffff;

  --shadow-sm: 0 2px 8px rgba(20, 81, 74, 0.08);
  --shadow-md: 0 10px 30px rgba(20, 81, 74, 0.12);
  --shadow-lg: 0 24px 60px rgba(14, 66, 57, 0.20);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;

  --font-body: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Quicksand', var(--font-body);
  --font-script: 'Dancing Script', 'Segoe Script', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--teal-700); }
h2.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); text-align: center; }
p { margin: 0 0 1rem; }
a { color: var(--teal-600); }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; margin-inline: auto; }
.script { font-family: var(--font-script); color: var(--teal-500); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; font-weight: 700;
  color: var(--slate-dark); margin-bottom: .6rem; display: block; text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-700); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.9); color: var(--teal-700); border-color: var(--seafoam); }
.btn-ghost:hover { background: #fff; border-color: var(--teal-500); }
.btn-lg { font-size: 1.1rem; padding: 1.05rem 2.2rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 239, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(126,155,179,.18);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: .6rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand-name { font-family: var(--font-head); font-weight: 700; color: var(--teal-700); font-size: 1.15rem; letter-spacing: .02em; }
.brand-name span { font-family: var(--font-script); font-weight: 700; color: var(--teal-500); font-size: 1.35rem; }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--teal-700); font-weight: 600; font-size: .98rem; }
.nav-links a:hover { color: var(--teal-500); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--teal-700); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  color: #fff; text-align: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,66,57,.35) 0%, rgba(14,66,57,.15) 40%, rgba(14,66,57,.55) 100%),
    radial-gradient(120% 80% at 50% 30%, rgba(42,135,120,.15), rgba(14,66,57,.55));
}
.hero-inner { width: min(100% - 2.5rem, 860px); margin-inline: auto; padding: 6rem 0 8rem; }
.hero-logo { width: 128px; height: 128px; object-fit: contain; margin-bottom: .5rem; filter: drop-shadow(0 8px 24px rgba(0,0,0,.35)); background: rgba(255,255,255,.9); border-radius: 50%; padding: 6px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6.5vw, 4.6rem); margin-bottom: .3rem; text-shadow: 0 3px 24px rgba(0,0,0,.35); }
.hero h1 .script { color: var(--seafoam); font-size: 1.15em; }
.hero-tag { font-size: clamp(1.05rem, 2.4vw, 1.5rem); font-weight: 500; max-width: 34ch; margin: .4rem auto 2rem; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: #fff; font-size: 1.6rem; animation: bob 2s ease-in-out infinite; opacity: .9; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0);} 50% { transform: translate(-50%, 10px);} }

/* ---------- Wave dividers ---------- */
.wave { display: block; width: 100%; height: auto; margin-bottom: -6px; }
.wave-top { margin-top: -6px; margin-bottom: 0; }

/* ---------- Impact stats band ---------- */
.impact-band { background: var(--teal-700); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat .num { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; color: var(--seafoam); }
.stat .lbl { font-size: .95rem; opacity: .92; }
.impact-band h2 { color: #fff; }

/* ---------- Story / values ---------- */
.story { background: var(--seafoam-50); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; margin-top: 2.5rem; }
.value-card {
  background: #fff; border-radius: var(--radius); padding: 1.8rem 1.5rem; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(126,155,179,.15); transition: transform .2s, box-shadow .2s;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.value-card .icon { font-size: 2.2rem; margin-bottom: .5rem; display: block; }
.value-card h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.value-card p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- Designs gallery ---------- */
.gallery-intro { max-width: 60ch; margin: 0 auto 2.5rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }
.design-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 2px solid transparent; transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative; display: flex; flex-direction: column;
}
.design-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.design-card.picked { border-color: var(--teal-500); }
.design-thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--sand); }
.design-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.design-card:hover .design-thumb img { transform: scale(1.06); }
.rank-badge {
  position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal-600); color: #fff; display: none; align-items: center; justify-content: center;
  font-weight: 700; box-shadow: var(--shadow-sm); font-family: var(--font-head);
}
.design-card.picked .rank-badge { display: flex; }
.design-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.design-name { font-family: var(--font-head); font-weight: 700; color: var(--teal-700); font-size: 1.08rem; }
.design-tag { font-size: .82rem; color: var(--muted); margin-top: -.4rem; }
.pick-btn {
  margin-top: auto; border: 2px solid var(--seafoam); background: var(--seafoam-50); color: var(--teal-700);
  border-radius: 999px; padding: .55rem 1rem; font-weight: 700; font-family: var(--font-head); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .4rem; transition: background .15s, border-color .15s, color .15s;
}
.pick-btn:hover { border-color: var(--teal-500); background: #fff; }
.design-card.picked .pick-btn { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }

/* placeholder ("photo coming soon") tiles */
.design-card.is-placeholder { border-style: dashed; border-color: var(--seafoam); }
.design-card.is-placeholder:hover { transform: none; box-shadow: var(--shadow-sm); }
.design-card.is-placeholder .design-thumb img { filter: grayscale(1) opacity(.22); }
.design-card.is-placeholder .design-thumb { display: flex; align-items: center; justify-content: center; }
.coming-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--seafoam-50); color: var(--teal-700); border: 1px solid var(--seafoam);
  border-radius: 999px; padding: .5rem 1rem; font-weight: 700; font-family: var(--font-head);
  font-size: .9rem; box-shadow: var(--shadow-sm); text-align: center; white-space: nowrap;
}
.design-card.is-placeholder .design-name { color: var(--muted); }

/* ---------- Floating picks pill ---------- */
.picks-pill {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 60;
  background: var(--teal-600); color: #fff; border: 0; border-radius: 999px;
  padding: .9rem 1.4rem; font-weight: 700; font-family: var(--font-head); font-size: 1rem;
  box-shadow: var(--shadow-lg); cursor: pointer; display: none; align-items: center; gap: .5rem;
  transition: transform .15s, background .2s;
}
.picks-pill:hover { transform: translateY(-3px); background: var(--teal-700); }
.picks-pill.show { display: inline-flex; animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Survey ---------- */
.survey { background: linear-gradient(180deg, var(--seafoam-50), #fff); }
.survey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.survey-card {
  background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-md);
  border: 1px solid rgba(126,155,179,.15);
}
.survey-card h3 { display: flex; align-items: center; gap: .55rem; font-size: 1.25rem; }
.step-num {
  display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--seafoam);
  color: var(--teal-700); align-items: center; justify-content: center; font-size: .95rem; flex: none;
}

/* ranking list */
.ranking-empty { color: var(--muted); background: var(--seafoam-50); border: 2px dashed var(--seafoam); border-radius: var(--radius-sm); padding: 1.6rem; text-align: center; }
.ranking-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.ranking-item {
  display: flex; align-items: center; gap: .8rem; background: var(--seafoam-50);
  border: 1px solid rgba(126,155,179,.2); border-radius: var(--radius-sm); padding: .5rem .7rem; cursor: grab;
}
.ranking-item.dragging { opacity: .5; }
.ranking-item .r-num { font-weight: 700; color: var(--teal-600); width: 1.4rem; text-align: center; font-family: var(--font-head); }
.ranking-item img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }
.ranking-item .r-name { flex: 1; font-weight: 600; font-size: .95rem; }
.ranking-item .r-controls { display: flex; gap: .2rem; }
.icon-btn { border: 0; background: #fff; border: 1px solid rgba(126,155,179,.3); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; color: var(--teal-700); font-size: 1rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--seafoam-100); }
.icon-btn:disabled { opacity: .3; cursor: default; }

/* fields */
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-weight: 700; color: var(--teal-700); margin-bottom: .5rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
input[type="text"], input[type="email"], input[type="number"], textarea, select {
  width: 100%; padding: .75rem .9rem; border: 2px solid rgba(126,155,179,.3); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal-500); }
textarea { resize: vertical; min-height: 110px; }

/* price slider */
.price-display { text-align: center; font-family: var(--font-head); font-weight: 700; color: var(--teal-600); font-size: 2.6rem; margin: .3rem 0; }
.price-display small { font-size: 1.1rem; color: var(--muted); font-weight: 500; }
input[type="range"] { width: 100%; accent-color: var(--teal-600); height: 6px; }
.range-scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: .3rem; }

.consent-note { font-size: .88rem; color: var(--muted); background: var(--seafoam-50); border-left: 3px solid var(--seafoam); border-radius: 8px; padding: .7rem .9rem; margin: 0; }

.form-msg { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--radius-sm); font-weight: 600; display: none; }
.form-msg.error { display: block; background: #fdecea; color: #a12c1f; border: 1px solid #f3c0b8; }
.form-msg.info  { display: block; background: var(--seafoam-100); color: var(--teal-700); border: 1px solid var(--seafoam); }

/* success state */
.thanks { display: none; text-align: center; padding: 2rem 1rem; }
.thanks.show { display: block; animation: pop .4s ease; }
.thanks .big { font-size: 3.5rem; }
.thanks h3 { font-size: 1.8rem; }

/* ---------- Charity / impact ---------- */
.charity { background: var(--teal-700); color: #fff; }
.charity h2 { color: #fff; }
.charity-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.charity-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.charity .lead { color: rgba(255,255,255,.9); margin-inline: 0; }
.donation-chip { display: inline-block; background: var(--seafoam); color: var(--teal-900); font-weight: 700; padding: .4rem 1rem; border-radius: 999px; margin-bottom: 1rem; }

/* ---------- Gallery of coast photos strip ---------- */
.coast-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.coast-strip img { width: 100%; height: 260px; object-fit: cover; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: rgba(255,255,255,.85); padding: 3rem 0 2rem; text-align: center; }
.site-footer .brand-name, .site-footer .brand-name span { color: #fff; }
.site-footer p { font-size: .92rem; margin: .3rem 0; }
.site-footer .foot-brand { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: 1rem; }
.site-footer img { height: 54px; background: #fff; border-radius: 50%; padding: 4px; }
.site-footer a { color: var(--seafoam); }
.foot-note { font-size: .8rem; opacity: .6; margin-top: 1.5rem; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 62px 0 auto 0; background: var(--cream); flex-direction: column; padding: 1.2rem; gap: 1rem; box-shadow: var(--shadow-md); transform: translateY(-140%); transition: transform .3s; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .survey-grid { grid-template-columns: 1fr; }
  .charity-inner { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1rem; }
  .coast-strip img { height: 180px; }
}
@media (max-width: 480px) {
  .coast-strip { grid-template-columns: 1fr 1fr; }
  .coast-strip img:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
