/* ============================================================
   Curious Cathy Co. — styles  (V5: brand palette + 2026.08 copy)
   Cathy's brand spec: gray azure #4b8496 + orange #d16117;
   Comfortaa (Century Gothic fallback) for "curious"/"co",
   Meow Script for "Cathy". Cool paper base, question-mark motif
   carried as line-art graphics across sections, smaller display
   type than v2–v4 (per Cathy's feedback), work examples open on
   click instead of adding scroll.
   ============================================================ */

:root {
  --paper:      #F7FAFA;  /* cool paper white */
  --tint:       #E7F0F2;  /* pale azure wash (bands, cards) */
  --ink:        #22424D;  /* deep sea — text */
  --muted:      #5B7680;  /* secondary text */
  --line:       #D7E4E8;  /* hairlines / borders */

  --azure:      #4B8496;  /* brand gray azure */
  --azure-deep: #24444F;  /* dark bands (contact/footer) */
  --orange:     #D16117;  /* brand orange — accent/CTA */
  --orange-deep:#AC4E10;  /* accent hover */
  --orange-tint:#FAEADD;  /* soft orange wash */

  --maxw: 1120px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --display: "Comfortaa", "Century Gothic", "CenturyGothic", "AppleGothic", sans-serif;
  --script:  "Meow Script", "Snell Roundhand", cursive;
  --sans:    "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- wordmark ---------- */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  text-decoration: none;
  line-height: 1;
}
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 2.1rem; width: auto; display: block; }
.wm-curious, .wm-co {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--azure);
}
.wm-cathy {
  font-family: var(--script);
  font-weight: 400;
  font-size: 1.9rem;
  color: var(--orange);
  transform: translateY(0.12em);
}
.wordmark-light .wm-curious,
.wordmark-light .wm-co { color: #BFD8DF; }
.wordmark-light .wm-cathy { color: #E89A5F; }

/* ---------- typography helpers ---------- */
.eyebrow,
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azure);
  margin: 0 0 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before,
.section-eyebrow::before {
  content: "";
  width: 1.75rem; height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* Display type deliberately smaller than v2–v4 (Cathy: "header font
   seemed too big"). */
.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -0.005em;
  margin: 0 0 1.5rem;
  max-width: 24ch;
}

.script-title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.9rem + 2vw, 3.4rem);
  line-height: 1.1;
  color: var(--azure);
  margin: 0 0 1.5rem;
}

.section {
  padding-block: clamp(2.75rem, 2rem + 3.5vw, 5rem);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(209, 97, 23, 0.7);
}
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--azure);
  color: var(--azure);
}
.btn-ghost:hover { background: var(--azure); color: #fff; transform: translateY(-2px); }

/* ============================================================
   NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 250, 0.85);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:not(.nav-cta):hover { color: var(--azure); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--orange);
  color: #fff !important;
  padding: 0.55em 1.2em;
  border-radius: 999px;
  transition: background 0.25s var(--ease);
}
.nav-cta:hover { background: var(--orange-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

/* ============================================================
   HERO — copy left, ringed portrait right
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(640px 420px at 92% 0%, rgba(75, 132, 150, 0.14), transparent 70%),
    radial-gradient(420px 320px at 70% 95%, rgba(209, 97, 23, 0.08), transparent 70%);
  padding-block: clamp(2.5rem, 2rem + 3.5vw, 5rem);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
}
.hero-title {
  font-family: var(--display);
  font-weight: 700;
  /* markedly smaller than v2–v4's clamp(2.6rem … 5rem); tightened further per feedback */
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
  max-width: 18ch;
}
.hero-sub {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  line-height: 1.6;
  margin: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero-media { justify-self: center; }
.portrait-wrap {
  position: relative;
  width: min(21rem, 72vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.portrait {
  width: 86%;
  height: 86%;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 50%;
  box-shadow: 0 26px 50px -30px rgba(34, 66, 77, 0.55);
}
.portrait-ring {
  position: absolute;
  inset: 0;
  color: var(--azure);
  animation: ring-turn 80s linear infinite;
}
@keyframes ring-turn {
  to { transform: rotate(1turn); }
}
.portrait-badge {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: 3.4rem; height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 12px 24px -10px rgba(209, 97, 23, 0.6);
}
.portrait-badge img { width: 46%; height: auto; display: block; }

/* ============================================================
   INTRO — copy + silos-to-insight diagram
   ============================================================ */
.intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
  border-top: 2px solid var(--line);
  padding-top: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
}
.intro-copy p { margin: 0 0 1.4rem; color: var(--muted); max-width: 60ch; }
.intro-copy p:last-child { margin-bottom: 0; }
.intro .section-title { margin-bottom: 1.1rem; }
.intro-photo {
  width: 100%;
  height: auto;
  max-width: 26rem;
  justify-self: center;
  display: block;
  border-radius: 18px;
  box-shadow: 0 24px 50px -28px rgba(34, 66, 77, 0.55);
}

/* ============================================================
   HOW I WORK — icon cards on azure wash
   ============================================================ */
.approach {
  background: var(--tint);
  border-block: 1px solid var(--line);
}
.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  margin-top: 1.5rem;
}
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.75rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(34, 66, 77, 0.5);
}
.service-icon {
  display: inline-grid;
  place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 14px;
  background: var(--tint);
  color: var(--azure);
  margin-bottom: 1.1rem;
}
.service-icon svg { width: 2.1rem; height: 2.1rem; }
.service h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.3;
  margin: 0 0 0.6rem;
}
.service p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ============================================================
   CONTACT — deep azure band, ghost question mark
   ============================================================ */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--azure-deep);
  color: #EAF2F4;
}
.contact-mark {
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%) rotate(12deg);
  height: 130%;
  color: rgba(234, 242, 244, 0.07);
  pointer-events: none;
}
.contact .section-eyebrow { color: #9CC4CF; }
.contact .section-eyebrow::before { background: var(--orange); }
.contact .section-title { color: #EAF2F4; }
.contact-inner { position: relative; max-width: 56rem; }
.contact-body {
  max-width: 60ch;
  color: rgba(234, 242, 244, 0.8);
  font-size: 1.05rem;
  margin: 0 0 2.25rem;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.contact .btn-ghost { border-color: rgba(234, 242, 244, 0.55); color: #EAF2F4; }
.contact .btn-ghost:hover { background: #EAF2F4; color: var(--azure-deep); border-color: #EAF2F4; }

/* ---- Netlify contact form ---- */
.contact-form {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(234, 242, 244, 0.18);
  max-width: 38rem;
}
.form-intro {
  font-family: var(--script);
  font-size: 1.7rem;
  color: #9CC4CF;
  margin: 0 0 1.4rem;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin: 0 0 1.5rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.4rem; margin: 0; }
.form-row-wide { grid-column: 1 / -1; }
.form-row label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9CC4CF;
}
.form-row input,
.form-row textarea {
  font: inherit;
  color: #EAF2F4;
  background: rgba(234, 242, 244, 0.08);
  border: 1px solid rgba(234, 242, 244, 0.3);
  border-radius: 12px;
  padding: 0.7em 0.9em;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form-row textarea { resize: vertical; min-height: 6.5rem; }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(234, 242, 244, 0.12);
}
.contact-form .btn { cursor: pointer; }

/* ============================================================
   PROOF — click-to-open work examples + testimonials
   ============================================================ */
.proof-summary {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 2rem;
}

.work-details {
  margin: 0 0 clamp(2.5rem, 2rem + 2.5vw, 4rem);
}
.work-details summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--azure);
  border: 2px solid var(--azure);
  border-radius: 999px;
  padding: 0.8em 1.5em;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
  user-select: none;
}
.work-details summary::-webkit-details-marker { display: none; }
.work-details summary:hover { background: var(--azure); color: #fff; }
.summary-icon {
  position: relative;
  width: 0.9rem; height: 0.9rem;
}
.summary-icon::before,
.summary-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.summary-icon::before { width: 100%; height: 2px; }
.summary-icon::after  { width: 2px; height: 100%; }
.work-details[open] .summary-icon::after { transform: scaleY(0); }
.work-details[open] .summary-label::after { content: " less"; }

.work-examples {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.work-details[open] .work-examples { animation: examples-in 0.45s var(--ease); }
@keyframes examples-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.work-examples li {
  position: relative;
  background: var(--tint);
  border-radius: 14px;
  padding: 1.1rem 1.3rem 1.1rem 2.6rem;
  font-size: 0.96rem;
  line-height: 1.55;
}
.work-examples li::before {
  content: "";
  position: absolute;
  left: 1.15rem; top: 1.55rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--azure);
}
.work-examples li:nth-child(2n)::before { background: var(--orange); }

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}
.testimonial {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.5rem, 1.25rem + 0.8vw, 2rem);
  display: flex;
  flex-direction: column;
}
.testimonial::before {
  content: "\201C";
  font-family: var(--script);
  font-size: 3rem;
  line-height: 0.6;
  color: var(--orange);
  display: block;
  margin-bottom: 0.9rem;
}
.testimonial:nth-child(2)::before { color: var(--azure); }
.testimonial blockquote {
  margin: 0 0 1.4rem;
  font-size: 0.98rem;
  line-height: 1.6;
  flex: 1;
}
.testimonial figcaption { display: flex; flex-direction: column; gap: 0.15rem; }
.cite-name { font-weight: 700; }
.cite-role { color: var(--muted); font-size: 0.88rem; }

/* ============================================================
   ABOUT — headshot + script headline
   ============================================================ */
.about { background: var(--tint); border-top: 1px solid var(--line); }
.about-inner {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: clamp(2rem, 1rem + 5vw, 5rem);
  align-items: start;
}
.about-media { position: sticky; top: 6rem; }
.headshot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 24px 50px -28px rgba(34, 66, 77, 0.55);
  border: 4px solid #fff;
}
.about-body p { margin: 0 0 1.3rem; color: var(--muted); }
.about-body strong { color: var(--ink); }
.about-belief {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--orange) !important;
  margin-top: 1.6rem !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--azure-deep);
  color: rgba(234, 242, 244, 0.65);
  padding-block: 2.5rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
  font-size: 0.9rem;
}
.footer-tag { flex: 1; }

/* ============================================================
   SCROLL REVEAL — hidden state only when JS is running
   (script.js adds .js to <html>), so content is never invisible
   without JavaScript.
   ============================================================ */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service, .work-details summary { transition: none; }
  .portrait-ring { animation: none; }
  .work-details[open] .work-examples { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .portrait-wrap { width: min(15rem, 62vw); }
  .intro-inner { grid-template-columns: 1fr; }
  .intro-photo { justify-self: stretch; max-width: none; }
  .service-list { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .work-examples { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-media { position: static; max-width: 20rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 4.25rem; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(34, 66, 77, 0.45);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.85rem 0; width: 100%; }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 0.6rem; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
