/* ==========================================================================
   Coolbreeze — Commission Site
   Design tokens: paper cream / ink black / fern green / moss / amber wash
   Type: Space Grotesk (display) + Karla (body)
   Signature motif: hand-drawn ink brushstroke, torn-paper art frames
   ========================================================================== */

:root {
  /* Color tokens */
  --paper:        #F3EDE0;
  --paper-dim:    #EAE2D1;
  --ink:          #1E1B16;
  --ink-soft:     #4A443C;
  --fern:         #3F6B4E;
  --fern-dark:    #24402F;
  --amber:        #D98F3D;
  --amber-dark:   #B36F26;
  --sage-tint:    #E4E9DE;
  --line:         rgba(30, 27, 22, 0.14);
  --shadow:       rgba(36, 64, 47, 0.16);

  /* Type */
  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body:    'Karla', 'Segoe UI', sans-serif;

  /* Rhythm */
  --radius: 10px;
  --max-width: 1080px;
  --gutter: clamp(20px, 5vw, 56px);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

a { color: var(--fern-dark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--amber-dark); }

img { max-width: 100%; display: block; }

ul { padding-left: 1.2em; color: var(--ink-soft); }
li { margin-bottom: 0.4em; }

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2.5px solid var(--fern-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--tight { padding: clamp(28px, 5vw, 56px) 0; }
.section--sage { background: var(--sage-tint); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fern-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber);
  display: inline-block;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 237, 224, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.wordmark:hover { color: var(--fern-dark); }
.wordmark .mark { width: 26px; height: 26px; color: var(--fern); flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--fern-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle span::before { content:""; position:absolute; top:-6px; }
.nav-toggle span::after { content:""; position:absolute; top:6px; }

/* ---------- Status pill ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--sage-tint);
  border: 1px solid var(--line);
  color: var(--fern-dark);
  white-space: nowrap;
}
.status-pill .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--fern);
  box-shadow: 0 0 0 3px rgba(63,107,78,0.18);
}
.status-pill[data-status="closed"] { color: var(--amber-dark); }
.status-pill[data-status="closed"] .dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(217,143,61,0.2); }
.status-pill[data-status="waitlist"] { color: #8a6a1e; }
.status-pill[data-status="waitlist"] .dot { background: #C9A227; box-shadow: 0 0 0 3px rgba(201,162,39,0.2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 8px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--primary {
  background: var(--fern-dark);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--fern);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow);
}
.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--fern-dark);
  color: var(--fern-dark);
  transform: translateY(-2px);
}
.btn--amber {
  background: var(--amber);
  color: var(--ink);
}
.btn--amber:hover {
  background: var(--amber-dark);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow);
}
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(56px, 10vw, 108px) 0 clamp(40px, 6vw, 72px);
  text-align: center;
}
.hero .eyebrow { justify-content: center; }
.hero-top {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}
.hero h1 {
  margin-bottom: 0;
}
.brushstroke-underline {
  display: block;
  width: min(360px, 70%);
  height: 22px;
  margin: 6px auto 22px;
  color: var(--amber);
}
.hero-tagline {
  max-width: 52ch;
  margin: 0 auto 30px;
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.social-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: all 0.15s ease;
}
.social-link:hover {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}
.social-link svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Divider ---------- */
.divider {
  width: 100%;
  height: 14px;
  color: var(--line);
  margin: 0 auto;
}

/* ---------- Bio ---------- */
.bio {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.bio p { margin-left: auto; margin-right: auto; }

/* ---------- Hub cards (homepage doors) ---------- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 640px) {
  .hub-grid { grid-template-columns: 1fr; }
}

.hub-card {
  position: relative;
  display: block;
  text-decoration: none;
  background: #fff;
  background: color-mix(in srgb, var(--paper) 40%, white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}
.hub-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 5px; height: 100%;
  background: var(--fern);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}
.hub-card:hover, .hub-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px var(--shadow);
  border-color: var(--fern);
}
.hub-card:hover::before, .hub-card:focus-visible::before { transform: scaleY(1); }

.hub-card .icon {
  width: 34px; height: 34px;
  color: var(--fern-dark);
  margin-bottom: 14px;
}
.hub-card h3 { margin-bottom: 8px; }
.hub-card p { margin-bottom: 0; font-size: 0.96rem; }
.hub-card .go {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--amber-dark);
}

/* ---------- Pricing tiers ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}
@media (max-width: 720px) {
  .tier-grid { grid-template-columns: 1fr; }
}

.tier-card {
  background: #fff;
  background: color-mix(in srgb, var(--paper) 30%, white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
}

.art-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--sage-tint);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(
    1% 3%, 14% 0%, 30% 1.5%, 47% 0%, 63% 1.2%, 79% 0%, 92% 1.8%, 100% 4%,
    99% 18%, 100% 34%, 98.5% 50%, 100% 66%, 99% 82%, 100% 96%,
    86% 100%, 70% 98.5%, 53% 100%, 37% 98.7%, 20% 100%, 6% 98.2%, 0% 96%,
    1.5% 80%, 0% 63%, 1.3% 47%, 0% 31%, 1.6% 15%
  );
}
.art-frame .placeholder-icon {
  width: 30%;
  color: var(--ink-soft);
  opacity: 0.55;
}
.art-frame figcaption {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  text-align: center;
  font-size: 0.72rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.tier-card h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.tier-price {
  font-family: var(--font-display);
  color: var(--amber-dark);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}
.tier-card .turnaround {
  font-size: 0.85rem;
  color: var(--fern-dark);
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 10px;
}
.tier-card ul { margin-bottom: 0; font-size: 0.94rem; }

/* ---------- Add-ons / info blocks ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 780px) {
  .info-grid { grid-template-columns: 1fr; }
}
.info-block {
  background: var(--sage-tint);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.info-block h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--fern-dark);
}
.info-block p, .info-block ul { font-size: 0.94rem; margin-bottom: 0; }

/* ---------- Process steps (real sequence -> numbered) ---------- */
.steps {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}
.steps li {
  counter-increment: step;
  background: #fff;
  background: color-mix(in srgb, var(--paper) 30%, white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 0;
}
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--fern-dark);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.steps h4 { font-size: 0.98rem; margin-bottom: 6px; font-family: var(--font-display); }
.steps p { font-size: 0.9rem; margin-bottom: 0; }

/* ---------- TOS content ---------- */
.tos-section { margin-bottom: 44px; }
.tos-section h2 {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tos-section h2 .divider-mark { width: 30px; height: 12px; color: var(--amber); flex-shrink: 0; }

/* ---------- Contact form ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.field .hint { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--fern);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.checkbox-field input { margin-top: 4px; }
.checkbox-field label { font-family: var(--font-body); font-weight: 400; font-size: 0.94rem; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 16px;
}

.side-card {
  background: var(--sage-tint);
  border-radius: var(--radius);
  padding: 26px;
}
.side-card h3 { margin-bottom: 10px; }
.side-card .social-link { border-color: rgba(30,27,22,0.16); background: transparent; }

.form-success {
  display: none;
  background: var(--sage-tint);
  border: 1.5px solid var(--fern);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.form-success.is-visible { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.footer-inner nav a {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-inner nav a:hover { color: var(--fern-dark); }
.footer-copy { font-size: 0.84rem; color: var(--ink-soft); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Mobile nav ---------- */
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px var(--gutter) 26px;
    display: none;
    gap: 16px;
  }
  .nav-links.is-open { display: flex; }
}
