/* Dylan Todd consulting site */

:root {
  --bg: #f6f5f2;
  --bg-alt: #eceee9;
  --surface: #ffffff;
  --text: #1a1f1c;
  --text-muted: #5c6560;
  --accent: #0d4f3c;
  --accent-hover: #0a3d2e;
  --accent-soft: #e4f0eb;
  --border: #d5dad6;
  --radius: 12px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --shadow: 0 2px 8px rgba(26, 31, 28, 0.07);
  --shadow-lg: 0 12px 40px rgba(26, 31, 28, 0.1);
  --max: 68rem;
  --space: clamp(1rem, 4vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--surface);
  color: var(--text);
}

.skip-link:focus {
  left: var(--space);
  top: var(--space);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 242, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.875rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: 8px;
  font-size: 0.875rem;
  text-decoration: none !important;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

/* Section shells: full-width bands */
.section-shell {
  padding: clamp(2.75rem, 7vw, 4.5rem) 0;
  position: relative;
}

.section-shell--warm {
  background: linear-gradient(165deg, #faf9f6 0%, #f0ebe3 100%);
  border-bottom: 1px solid var(--border);
}

.section-shell--paper {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.section-shell--muted {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.section-shell--accent-line {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 4px 0 var(--accent);
}

.section-shell--deep {
  background: linear-gradient(180deg, #0c4334 0%, #0a3428 100%);
  color: #f2f7f5;
  border-bottom: none;
}

.section-shell--deep h2,
.section-shell--deep .section-label {
  color: #fff;
}

.section-shell--deep .section-label {
  color: #9dd4c4;
}

.section-shell--deep .prose {
  color: rgba(242, 247, 245, 0.88);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.section-head {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.hero {
  padding-top: clamp(1rem, 4vw, 2rem);
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: 3rem;
  }
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.35rem, 5.2vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 16ch;
}

.hero .lede {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 0 1rem;
  line-height: 1.45;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-lg);
}

.hero-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.65rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.hero-card li + li {
  margin-top: 0.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid currentColor;
}

.btn-ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.section-shell--deep .btn-primary {
  background: #fff;
  color: var(--accent);
}

.section-shell--deep .btn-primary:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.section-shell--deep .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.section-shell--deep .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.65rem, 3.5vw, 2.05rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.prose {
  color: var(--text-muted);
  max-width: 65ch;
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .card-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.section-shell--muted .card,
.section-shell--warm .card {
  background: var(--surface);
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.list-check {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.list-check li {
  margin-bottom: 0.35rem;
}

/* CTA strip between ideas */
.cta-strip {
  margin-top: clamp(2rem, 5vw, 2.75rem);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: var(--accent-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-strip--inline {
  margin-top: 1.5rem;
}

.cta-strip p {
  margin: 0;
  font-weight: 600;
  color: var(--text);
  max-width: 28ch;
}

.cta-strip .btn-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.section-shell--muted .cta-strip {
  background: var(--surface);
  border-style: solid;
}

.section-shell--deep .cta-strip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.section-shell--deep .cta-strip p {
  color: #fff;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.testimonial-card--wide {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .testimonial-card--wide {
    grid-column: span 2;
  }
}

.testimonial-quote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.58;
  color: var(--text);
}

.testimonial-card cite {
  display: block;
  margin-top: 1.15rem;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--text-muted);
}

.testimonial-card cite strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.haiku {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
  white-space: pre-line;
}

.testimonial-note {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.contact-layout {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (min-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.about-layout {
  display: grid;
  gap: 2rem;
  margin-top: 0.5rem;
  align-items: start;
}

@media (min-width: 760px) {
  .about-layout {
    grid-template-columns: minmax(0, 16rem) 1fr;
    gap: 2.75rem;
  }
}

.portrait {
  margin: 0;
  max-width: 18rem;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.portrait figcaption {
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row:last-of-type {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

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

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9375rem;
  padding: 0.75rem;
  border-radius: 8px;
  display: none;
}

.form-status.visible {
  display: block;
}

.form-status.success {
  background: #e8f5ef;
  color: #0d4f3c;
}

.form-status.error {
  background: #fdeef0;
  color: #8b2942;
}

.booking-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 620px;
}

.booking-panel iframe {
  width: 100%;
  min-height: 620px;
  border: 0;
  display: block;
}

.booking-fallback {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--space) 3rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer--inverse {
  max-width: none;
  margin: 0;
  background: #1e2622;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(220, 229, 225, 0.78);
  padding: 2rem var(--space) 2.75rem;
}

.site-footer--inverse .footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-footer--inverse .footer-links a {
  color: rgba(220, 229, 225, 0.88);
  text-decoration: none;
}

.site-footer--inverse .footer-links a:hover {
  color: #fff;
}
