/* Sketch Haven — shared styles */
:root {
  --paper: #f7f3ec;
  --paper-2: #efe8dc;
  --card: #ffffff;
  --ink: #1d1b19;
  --ink-soft: #55504a;
  --line: #ddd4c5;
  --accent: #1e7be0;
  --accent-dark: #1560b4;
  --accent-soft: #e4f0fd;
  --danger: #b3261e;
  --ok: #1b7a43;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(40, 30, 15, .10);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 200; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section.alt { background: var(--paper-2); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 243, 236, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand span { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-size: .95rem; font-weight: 500;
}
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav-links .nav-cta a { background: var(--accent); color: #fff; }
.nav-links .nav-cta a:hover { background: var(--accent-dark); color: #fff; }
.nav-links .nav-cta a[aria-current="page"] { background: var(--accent-dark); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s, background .25s;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; border-radius: 10px; }
  .nav-links .nav-cta { margin-top: 6px; }
  .nav-links .nav-cta a { text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  background: var(--accent); color: #fff; transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(30,123,224,.3); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.typing { color: var(--accent-dark); }
.typing::after { content: "|"; margin-left: 2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-art { position: relative; }
.hero-art img {
  width: 100%; border-radius: 6px; box-shadow: var(--shadow);
  border: 10px solid #fff; transform: rotate(2deg);
}
.hero-art .tag {
  position: absolute; left: -8px; bottom: 24px; background: var(--ink); color: #fff;
  padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 500;
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; margin: 0 auto; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.cols-3 { grid-template-columns: 1fr; } .grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 2px 0 rgba(0,0,0,.02);
}
.card .num {
  display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; margin-bottom: 14px;
}
.link-card { text-decoration: none; color: inherit; display: block; transition: transform .2s, box-shadow .2s, border-color .2s; }
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); color: inherit; }
.link-card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.link-card .more { color: var(--accent-dark); font-weight: 600; }

.price-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px 32px;
}
.price-box .amount { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.price-box small { display: block; opacity: .75; margin-top: 6px; }

/* ---------- Gallery ---------- */
.gallery-grid { columns: 3 260px; column-gap: 18px; }
.gallery-item {
  break-inside: avoid; margin: 0 0 18px; display: block; width: 100%; padding: 0;
  border: 0; background: #fff; border-radius: 10px; overflow: hidden; cursor: zoom-in;
  box-shadow: 0 4px 14px rgba(40,30,15,.12); position: relative; text-align: left;
}
.gallery-item img { width: 100%; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item figcaption, .gallery-item .cap {
  position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; color: #fff; font-size: .9rem;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transition: opacity .25s;
}
.gallery-item:hover .cap, .gallery-item:focus-visible .cap { opacity: 1; }
@media (hover: none) { .gallery-item .cap { opacity: 1; } }

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center;
  background: rgba(10, 8, 6, .92); padding: 24px;
}
.lightbox.open { display: flex; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(92vw, 900px); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-height: calc(100vh - 140px); width: auto; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.lightbox figcaption { color: #eee; text-align: center; font-size: .95rem; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.16); color: #fff; font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
}
.lb-btn:hover { background: rgba(255,255,255,.3); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev { left: 6px; } .lb-next { right: 6px; } }

/* ---------- Prose pages (about, terms) ---------- */
.page-title { padding-top: clamp(36px, 6vw, 64px); padding-bottom: 8px; }
.page-title p { color: var(--ink-soft); max-width: 40em; font-size: 1.1rem; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: #fff; font-size: .9rem; color: var(--ink); }
.toc a:hover { border-color: var(--accent); color: var(--accent-dark); }
.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 8px; margin: 1.2em 0; }
.about-grid { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.about-grid aside img { border-radius: 6px; border: 8px solid #fff; box-shadow: var(--shadow); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .about-grid aside { max-width: 320px; } }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
form.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: #fff;
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.error-msg { color: var(--danger); font-size: .85rem; margin-top: 5px; min-height: 1.2em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  border: 2px dashed var(--line); border-radius: 12px; padding: 24px; cursor: pointer; background: var(--paper);
  transition: border-color .2s, background .2s; min-height: 140px; color: var(--ink-soft);
}
.dropzone:hover, .dropzone.drag, .dropzone:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dropzone .dz-body { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dropzone .preview { max-height: 220px; width: auto; border-radius: 8px; }
.dropzone strong { color: var(--ink); }
.remove-file { margin-top: 8px; background: none; border: 0; color: var(--danger); cursor: pointer; font: inherit; text-decoration: underline; }

.side-card { background: var(--paper-2); border-radius: var(--radius); padding: 24px; }
.side-card h3 { margin-bottom: .6em; }
.side-card ul { padding-left: 1.1em; margin: 0; }
.side-card li { margin-bottom: .5em; }
.social-links { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social-links a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 500; }
.social-links a:hover { border-color: var(--accent); color: var(--accent-dark); }

.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; }
.notice.error { background: #fdecea; color: var(--danger); }
.thanks { text-align: center; padding: clamp(60px, 12vw, 140px) 0; }
.thanks .tick { width: 84px; height: 84px; border-radius: 50%; background: #e3f5ea; color: var(--ok); display: inline-flex; align-items: center; justify-content: center; font-size: 2.6rem; margin-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e8e2d8; margin-top: 40px; padding: 56px 0 28px; }
.site-footer a { color: #e8e2d8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; margin-bottom: .8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45em; }
.site-footer .brand-line { font-family: var(--font-head); font-size: 1.5rem; color: #fff; margin-bottom: .3em; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 20px; font-size: .9rem; opacity: .8; text-align: center; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

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