/* Dovecote — "Pigeon" style, matching the portfolio site */

:root {
  --cream: oklch(92% 0.004 90);        /* --bg-page */
  --cream-alt: oklch(96.5% 0.004 90);  /* --bg-subtle */
  --ink: oklch(20% 0.01 90);
  --ink-soft: oklch(30% 0.006 90);
  --terracotta: oklch(55% 0.09 190);       /* --accent (teal) */
  --terracotta-dark: #1F6E68;              /* --accent-solid (teal), darkened from #2E8F87 so white text passes AA */
  --teal-deep: #16524D;                    /* hover state for solid teal */
  --sage: #1F6E68;                          /* filled tags/labels reuse --accent-solid */
  --sticky: #E9DDEB;                        /* lilac sticky note / tape */
  --gold: oklch(72% 0.1 322);               /* --lilac, decorative light accent */
  --border: oklch(88% 0.005 90);
  --max-width: 1100px;
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, .logo {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em 0;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em 0; }

a { color: var(--terracotta-dark); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo .dot {
  color: var(--terracotta);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  border-bottom-color: var(--terracotta);
  color: var(--terracotta-dark);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--terracotta-dark);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--terracotta);
  color: var(--terracotta-dark);
}

/* Hero */

.hero {
  padding: 80px 0 70px;
}

.hero .eyebrow {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero p.lead {
  font-size: 1.15rem;
  max-width: 46ch;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-art {
  background: var(--cream-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  color: var(--ink-soft);
  text-align: center;
  padding: 24px;
}

/* Sections */

section { padding: 64px 0; }

.section-alt {
  background: var(--cream-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 60ch;
  margin-bottom: 40px;
}

.section-head p { color: var(--ink); opacity: 0.85; }

/* Cards / grid */

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card .icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: inline-block;
}

/* Service list (services page) */

.service-block {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child { border-bottom: none; }

.service-block h3 { margin-bottom: 10px; }

.service-block ul {
  margin: 14px 0 0 0;
  padding-left: 20px;
}

.service-block li { margin-bottom: 6px; }

.tag {
  display: inline-block;
  background: var(--sage);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* Pricing note */

.pricing-note {
  background: #fff;
  border: 1px dashed var(--terracotta);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 48px;
}

.pricing-note h3 { color: var(--terracotta-dark); }

/* Testimonial / case studies */

.case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-card .client-type {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
  font-weight: 600;
}

.case-card .result {
  margin-top: auto;
  font-weight: 600;
  color: var(--terracotta-dark);
}

blockquote {
  font-family: 'Space Mono', monospace;
  font-size: 1.3rem;
  font-style: italic;
  border-left: 4px solid var(--terracotta);
  padding-left: 24px;
  margin: 0;
}

blockquote cite {
  display: block;
  margin-top: 14px;
  font-family: 'Work Sans', sans-serif;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}

.field textarea { resize: vertical; min-height: 130px; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 1px;
}

.contact-side .card { margin-bottom: 20px; }

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

/* Checkbox group (multi-select "what do you need help with") */

fieldset { border: none; padding: 0; margin: 0; }
legend { padding: 0; width: 100%; }

.checkbox-group-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.checkbox-group-label .form-note {
  display: inline;
  margin-top: 0;
  font-weight: 400;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 400;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.checkbox-item:hover { border-color: var(--terracotta); }

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--terracotta);
  flex-shrink: 0;
}

.checkbox-item:has(input:checked) {
  border-color: var(--terracotta);
  background: var(--cream-alt);
}

/* Inline "Help me out with this!" expandable forms (Services page) */

details.inline-help {
  margin-top: 24px;
}

details.inline-help summary {
  list-style: none;
  cursor: pointer;
  width: fit-content;
}

details.inline-help summary::-webkit-details-marker {
  display: none;
}

details.inline-help[open] summary {
  margin-bottom: 24px;
}

.inline-contact-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.inline-contact-wrap .contact-form { gap: 16px; }

/* FAQ (services page) */

.faq { margin-top: 72px; }

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 75ch;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: 'Space Mono', monospace;
  font-size: 1.2rem;
  color: var(--terracotta-dark);
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item summary:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
  border-radius: 14px;
}

.faq-item p {
  margin: 0;
  padding: 0 22px 18px;
}

/* Personal touches: handwriting, polaroid, sticky note, hats list */

.handwritten {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  color: var(--terracotta-dark);
  line-height: 1;
}

.hero .hello {
  font-size: 2.5rem;
  margin: 0 0 6px;
}

.hero-grid.photo-left { grid-template-columns: 0.8fr 1.2fr; }

.polaroid {
  position: relative;
  background: #fff;
  padding: 16px 16px 60px;
  max-width: 400px;
  margin: 0 auto;
  transform: rotate(-2.5deg);
  box-shadow: 0 10px 30px rgba(26, 25, 23, 0.12);
}

.polaroid::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 120px;
  height: 30px;
  margin-left: -60px;
  background: color-mix(in oklch, var(--gold) 70%, transparent);
  transform: rotate(3deg);
}

.polaroid .hero-art {
  border: none;
  border-radius: 0;
  aspect-ratio: 4 / 5;
  background: oklch(86% 0.006 90);
}

.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.polaroid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  text-align: center;
  font-size: 1.9rem;
  color: var(--ink-soft);
}

.sticky-note {
  background: var(--sticky);
  padding: 22px 24px;
  max-width: 300px;
  margin-top: 32px;
  transform: rotate(1.5deg);
  font-size: 1.75rem;
  color: oklch(30% 0.04 322);
  line-height: 1.2;
}

.plate-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

.hat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
}

.hat-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 1.05rem;
  line-height: 1.45;
}

.hat-list svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  stroke: var(--terracotta-dark);
}

.cta-band .handwritten {
  color: var(--gold);
  font-size: 2.1rem;
  margin-bottom: 4px;
}

/* CTA band */

.cta-band {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  margin: 0 24px;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: #E9E1D3; max-width: 55ch; margin-left: auto; margin-right: auto; }

/* Footer */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}

footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

footer.site-footer a { color: var(--ink-soft); }

/* Responsive */

@media (max-width: 780px) {
  .hero-grid,
  .contact-grid,
  .service-block {
    grid-template-columns: 1fr;
  }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-grid.photo-left,
  .plate-grid,
  .hat-list { grid-template-columns: 1fr; }
  .polaroid { max-width: 300px; }
  nav.main-nav ul { gap: 16px; }
  .cta-band { margin: 0; border-radius: 0; }
}
