/* ==========================================================================
   Sevenday Studio — styles
   Edit the colour tokens below to rebrand the whole site.
   ========================================================================== */
:root {
  --ink: #0f1b2d;
  --ink-soft: #3b4658;
  --muted: #6b7486;
  --paper: #f7f4ee;
  --paper-2: #efe9df;
  --white: #ffffff;
  --accent: #e4572e;      /* pohutukawa red */
  --accent-dark: #c4431d;
  --sea: #1f6f78;         /* harbour teal */
  --sea-soft: #d8ebe9;
  --line: rgba(15, 27, 45, 0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(15, 27, 45, 0.35);
  --wrap: 1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sea); margin-bottom: 14px;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 640px; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .97rem; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: #fff; padding: 11px 20px; }
.menu-toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px;
}
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 120px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 0; color: var(--ink-soft); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.tick { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--sea-soft); color: var(--sea); display: grid; place-items: center; font-size: 12px; font-weight: 700; }

/* Browser mock-up in hero */
.mock { position: relative; }
.browser {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; border: 1px solid var(--line); transform: rotate(1.5deg);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9d2c5; display: block; }
.browser-bar .url { margin-left: 12px; flex: 1; background: var(--white); border-radius: 6px; font-size: .72rem; color: var(--muted); padding: 4px 10px; font-style: normal; }
.browser-body { padding: 22px; }
.m-hero { border-radius: 12px; padding: 26px 22px; color: #fff; background: linear-gradient(135deg, var(--sea) 0%, #164d55 100%); margin-bottom: 16px; position: relative; overflow: hidden; }
.m-hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.12); }
.m-line { height: 10px; border-radius: 6px; background: rgba(255,255,255,.85); margin-bottom: 10px; }
.m-line.w60 { width: 60%; height: 16px; }
.m-line.w40 { width: 40%; opacity: .6; }
.m-pill { display: inline-block; margin-top: 10px; width: 92px; height: 26px; border-radius: 999px; background: var(--accent); }
.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-card { border-radius: 10px; background: var(--paper); padding: 12px; }
.m-card b { display: block; height: 46px; border-radius: 8px; background: var(--paper-2); margin-bottom: 8px; }
.m-card s { display: block; height: 7px; border-radius: 4px; background: #ddd5c8; margin-bottom: 6px; }
.m-card s:last-child { width: 60%; }
.float-card {
  position: absolute; background: var(--white); border-radius: 14px; box-shadow: var(--shadow);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-size: .88rem; border: 1px solid var(--line);
}
.float-card strong { display: block; font-size: 1.05rem; }
.float-card small { color: var(--muted); }
.float-a { left: -34px; bottom: 34px; animation: bob 6s ease-in-out infinite; }
.float-b { right: -18px; top: -22px; animation: bob 7s ease-in-out infinite reverse; }
.score { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #0f7a44; border: 3px solid #29b36b; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Stats strip */
.strip { background: var(--ink); color: var(--paper); padding: 46px 0; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat strong { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); display: block; line-height: 1; margin-bottom: 8px; color: #fff; }
.stat span { color: #b9c0cc; font-size: .95rem; }
.stat a { color: #b9c0cc; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: var(--white); border-radius: var(--radius); padding: 32px; border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--sea-soft); color: var(--sea); display: grid; place-items: center; margin-bottom: 22px; }
.service p { color: var(--ink-soft); margin: 0; }

/* Work */
.work { background: var(--paper-2); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.work-visual { aspect-ratio: 4 / 3; position: relative; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.work-visual .tag { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,.92); color: var(--ink); font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; letter-spacing: .04em; }
.work-visual .wv-title { font-family: var(--serif); font-size: 1.7rem; line-height: 1.05; margin-bottom: 8px; }
.work-visual .wv-btn { width: 96px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.95); }
.wv-cafe { background: radial-gradient(circle at 80% 20%, #f2b880 0, transparent 45%), linear-gradient(160deg, #6b3f2a, #2e1a12); }
.wv-trade { background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px), linear-gradient(160deg, #1d3b5c, #0d1b2a); }
.wv-trade .wv-btn { background: #ffc531; }
.wv-yoga { background: radial-gradient(circle at 25% 30%, #f6d7c3 0, transparent 50%), linear-gradient(160deg, #8fa98e, #4f6b55); }
.work-info { padding: 22px 24px 26px; }
.work-info h3 { margin-bottom: 6px; }
.work-info p { color: var(--ink-soft); margin: 0; font-size: .95rem; }
.note { font-size: .88rem; color: var(--muted); margin-top: 26px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
  display: flex; flex-direction: column; position: relative;
}
.plan.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-12px); box-shadow: var(--shadow); }
.plan.featured .plan-desc, .plan.featured li { color: #c9cfd9; }
.plan .badge { position: absolute; top: -13px; left: 30px; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; letter-spacing: .04em; }
.plan h3 { margin-bottom: 6px; }
.plan-desc { color: var(--ink-soft); font-size: .95rem; min-height: 3em; }
.price { font-family: var(--serif); font-size: 2.8rem; line-height: 1; margin: 18px 0 4px; }
.price small { font-family: var(--sans); font-size: .9rem; font-weight: 500; opacity: .7; }
.price-sub { font-size: .85rem; opacity: .7; margin-bottom: 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan li { padding: 9px 0 9px 28px; position: relative; color: var(--ink-soft); font-size: .96rem; border-bottom: 1px dashed var(--line); }
.plan.featured li { border-bottom-color: rgba(255,255,255,.12); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--sea); font-weight: 700; }
.plan.featured li::before { color: #7fd1c7; }
.plan .btn { width: 100%; }
.care {
  margin-top: 30px; background: var(--sea-soft); border-radius: var(--radius); padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.care h3 { margin-bottom: 4px; }
.care p { margin: 0; color: var(--ink-soft); }
.care .price { font-size: 2rem; margin: 0; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { padding-top: 26px; border-top: 2px solid var(--ink); position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--serif); font-size: 1rem; color: var(--accent); font-weight: 600; display: block; margin-bottom: 12px; }
.step p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.step .when { display: inline-block; margin-top: 12px; font-size: .8rem; font-weight: 600; color: var(--sea); }

/* FAQ */
.faq { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.08rem; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.6rem; font-weight: 400; color: var(--accent); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-soft); padding-right: 40px; margin-bottom: 20px; }

/* Contact */
.contact { background: var(--ink); color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact .eyebrow { color: #7fd1c7; }
.contact .lead { color: #c9cfd9; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); display: flex; gap: 14px; color: #c9cfd9; }
.contact-list strong { color: #fff; min-width: 90px; font-weight: 600; }
.contact-list a { color: #fff; }
form.card { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 34px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1.5px solid #d6cfc2; background: var(--white); color: var(--ink); transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sea); }
.field textarea { min-height: 120px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin-top: 14px; font-weight: 600; color: var(--sea); }

/* Footer */
.site-footer { background: #0a1320; color: #9aa3b2; padding: 40px 0; font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: #c9cfd9; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 22px; }

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

/* Legal page */
.legal { max-width: 760px; padding: 64px 0 96px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-soft); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .mock { max-width: 560px; margin: 0 auto; width: 100%; }
  .services-grid, .work-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .plan.featured { transform: none; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 36px 22px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 16px 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s ease; box-shadow: 0 20px 30px -20px rgba(0,0,0,.2);
    z-index: -1;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li a { display: block; padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { margin-top: 16px; border: 0; text-align: center; }
  .services-grid, .work-grid, .pricing-grid, .strip-grid, .process-grid { grid-template-columns: 1fr; }
  .strip-grid { gap: 26px; }
  .float-a { left: -6px; bottom: -18px; }
  .float-b { right: -4px; top: -26px; }
  .browser { transform: none; }
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  form.card { padding: 24px; }
  .care { padding: 24px; }
  .hero-ctas .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Clickable demo cards */
a.work-card { text-decoration: none; color: inherit; display: block; transition: transform .25s ease, box-shadow .25s ease; }
a.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
a.work-card:hover .work-visual { filter: saturate(1.15); }
.work-visual { transition: filter .3s ease; }
.demo-link { display: inline-flex; gap: 6px; margin-top: 14px; font-weight: 600; color: var(--accent); font-size: .95rem; }
a.work-card:hover .demo-link span { transform: translateX(4px); }
.demo-link span { transition: transform .2s ease; }
.wv-barber { background: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 2px, transparent 2px 40px), radial-gradient(circle at 75% 25%, #6b5233, #111 65%); }
.wv-barber .wv-btn { background: #d4a35a; }
.wv-physio { background: radial-gradient(circle at 75% 25%, #bfe6e9, transparent 45%), linear-gradient(160deg, #0e7c86, #0a4f57); }
.wv-land { background: radial-gradient(circle at 75% 20%, #c9dfa8, transparent 40%), linear-gradient(160deg, #6c9a5a, #2f5a35); }
.work .section-head .lead { margin-top: 6px; }

/* Card photos */
.wv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.7)); }
.work-visual .wv-title, .work-visual .wv-btn { position: relative; z-index: 1; }
.work-visual .tag { z-index: 2; }

/* Easy editing section */
#admin { background: var(--white); }
.admin-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.admin-points { list-style: none; padding: 0; margin: 8px 0 34px; display: grid; gap: 16px; }
.admin-points li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-soft); }
.admin-points li .tick { margin-top: 3px; }
.admin-points b { display: block; color: var(--ink); }
.admin-mock { display: block; text-decoration: none; color: var(--ink); background: #f4f5f7; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); position: relative; transition: transform .25s ease; font-family: var(--sans); }
.admin-mock:hover { transform: translateY(-4px); }
.am-top { background: var(--ink); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-weight: 600; font-size: .85rem; }
.am-top i { font-style: normal; background: #14894e; padding: 5px 10px; border-radius: 6px; font-size: .78rem; }
.am-top em { font-style: normal; background: rgba(255,255,255,.25); border-radius: 999px; padding: 0 6px; margin-left: 4px; }
.am-body { display: grid; grid-template-columns: 1fr 1.2fr 1.1fr; gap: 10px; padding: 12px; min-height: 280px; }
.am-list, .am-fields { background: #fff; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 7px; font-size: .74rem; }
.am-blk { border: 1px solid #e3e6eb; border-radius: 7px; padding: 7px 8px; font-weight: 600; }
.am-blk.on { border-color: #2f5bea; background: #eaf0ff; }
.am-add { border: 1.5px dashed #c7cdd6; border-radius: 7px; padding: 7px; text-align: center; color: #2f5bea; font-weight: 600; }
.am-fields small { color: #5b6472; font-weight: 600; font-size: .68rem; margin-bottom: -3px; }
.am-in { border: 1.5px solid #e3e6eb; border-radius: 7px; padding: 7px 8px; display: flex; justify-content: space-between; gap: 6px; }
.am-in b { color: #c0682f; }
.am-in.typing { border-color: #2f5bea; }
.am-in.typing::after { content: ""; width: 1.5px; background: #2f5bea; animation: caret 1s steps(1) infinite; margin-left: -4px; }
@keyframes caret { 50% { opacity: 0; } }
.am-prev { background: #f6efe6; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.am-ph { height: 70px; border-radius: 8px; background: url("https://images.unsplash.com/photo-1541167760496-1628856ab772?auto=format&fit=crop&w=400&q=60") center/cover, #d9b48f; }
.am-l { height: 7px; border-radius: 4px; background: #d9cbb9; }
.am-l.w70 { width: 70%; height: 11px; background: #2b1d14; opacity: .8; }
.am-l.w50 { width: 50%; }
.am-pr { display: flex; justify-content: space-between; border-bottom: 1px dashed #d9cbb9; padding: 5px 0; }
.am-pr span { width: 55%; height: 7px; border-radius: 4px; background: #2b1d14; opacity: .6; }
.am-pr b { width: 18%; height: 7px; border-radius: 4px; background: #c0682f; }
.am-cta { position: absolute; right: 14px; bottom: 12px; background: var(--accent); color: #fff; font-weight: 600; font-size: .8rem; padding: 7px 12px; border-radius: 999px; }
@media (max-width: 980px) { .admin-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) { .am-body { grid-template-columns: 1fr 1.2fr; } .am-prev { display: none; } }
