:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --color-background: oklch(0.98 0.01 85);
  --color-foreground: oklch(0.28 0.04 260);
  --color-primary: oklch(0.28 0.06 260);
  --color-primary-foreground: oklch(0.98 0.01 85);
  --color-secondary: oklch(0.95 0.015 85);
  --color-muted-foreground: oklch(0.52 0.02 260);
  --color-accent: oklch(0.78 0.14 75);
  --color-accent-foreground: oklch(0.45 0.1 75);
  --color-border: oklch(0.9 0.02 85);
  --color-card: oklch(1 0 0);
  --shadow-soft: 0 2px 16px oklch(0.28 0.06 260 / 0.06);
  --shadow-card: 0 8px 32px oklch(0.28 0.06 260 / 0.1);
  --max-width: 72rem;
  --section-padding: 6rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  margin: 0;
}

p {
  margin: 0;
}

.font-display {
  font-family: var(--font-display);
}

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

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--color-accent-foreground) 70%, transparent);
}

.section-title {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-primary);
}

.section-intro {
  margin-top: 1rem;
  color: var(--color-muted-foreground);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.site-header.is-solid {
  border-bottom: 1px solid var(--color-border);
  background: color-mix(in oklab, var(--color-background) 95%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-width);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.brand img {
  width: 4.6875rem;
  height: 4.6875rem;
  object-fit: contain;
}

.brand-text {
  display: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: var(--color-primary);
}

.brand-text span {
  font-weight: 400;
  color: var(--color-muted-foreground);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--color-foreground) 75%, transparent);
  transition: color 0.15s;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.15s, background 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background: var(--color-secondary);
}

.btn-nav {
  display: none;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--color-foreground);
  cursor: pointer;
}

/* Some browsers don't honor the hidden attribute on inline SVG —
   enforce it so the menu and close icons never show together. */
.menu-toggle svg[hidden] {
  display: none;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-background);
  padding: 1rem 1.5rem;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu a {
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--color-foreground) 75%, transparent);
}

.mobile-menu .btn-primary {
  border-radius: 9999px;
  width: fit-content;
  color: var(--color-primary-foreground);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 8rem 0 6rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    60% 50% at 50% 0%,
    oklch(0.78 0.14 75 / 0.08),
    transparent 70%
  );
}

.hero-inner {
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
  text-align: center;
}

.hero-logo {
  width: 13rem;
  margin-inline: auto;
  object-fit: contain;
}

.hero-tagline {
  margin-top: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--color-accent-foreground) 80%, transparent);
}

.hero h1 {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-primary);
}

.hero-copy {
  margin-top: 2rem;
  max-width: 42rem;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--color-muted-foreground);
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding-block: var(--section-padding);
}

.section-muted {
  background: color-mix(in oklab, var(--color-secondary) 40%, transparent);
}

/* About */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-photo-wrap {
  position: relative;
  max-width: 24rem;
  margin-inline: auto;
}

.about-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -1rem;
  z-index: -1;
  border-radius: 1.5rem;
  background: color-mix(in oklab, var(--color-accent) 20%, transparent);
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.about-subtitle {
  margin-top: 0.75rem;
  font-style: italic;
  color: var(--color-muted-foreground);
}

.about-credential {
  font-size: 0.65em;
  font-weight: 400;
  color: var(--color-muted-foreground);
}

.about-body {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  line-height: 1.625;
  color: color-mix(in oklab, var(--color-foreground) 85%, transparent);
}

.about-note {
  margin-top: 2rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-muted-foreground);
}

/* Services */
.services-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

.service-card {
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: var(--color-card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s, box-shadow 0.15s;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: color-mix(in oklab, var(--color-accent) 15%, transparent);
  color: var(--color-primary);
}

.service-card h3 {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-primary);
}

.service-card p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--color-muted-foreground);
}

/* Testimonials */
.testimonials-header {
  text-align: center;
}

.marquee-wrap {
  position: relative;
  margin-top: 3.5rem;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 45s linear infinite;
}

.testimonial-card {
  flex-shrink: 0;
  width: 340px;
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: var(--color-card);
  box-shadow: var(--shadow-soft);
}

.stars {
  display: flex;
  gap: 0.125rem;
  color: var(--color-accent);
}

.testimonial-card blockquote {
  margin: 1rem 0 0;
  line-height: 1.625;
  color: color-mix(in oklab, var(--color-foreground) 90%, transparent);
}

.testimonial-card figcaption {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

/* Contact */
.contact-header {
  text-align: center;
}

.contact-header img {
  width: 4rem;
  height: 4rem;
  margin-inline: auto;
  object-fit: contain;
}

.contact-header p {
  margin-top: 1rem;
  max-width: 36rem;
  margin-inline: auto;
  color: var(--color-muted-foreground);
}

.contact-panel,
.contact-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  padding: 2rem;
  border-radius: 1rem;
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}

.contact-card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-primary);
}

.contact-panel h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-primary);
}

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

.contact-list dt {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.contact-list dd {
  margin: 0.375rem 0 0;
}

.contact-list a {
  font-size: 0.9375rem;
  color: var(--color-primary);
  transition: opacity 0.15s;
}

.contact-list a:hover {
  opacity: 0.8;
}

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

.btn-full {
  width: 100%;
  margin-top: 0.25rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-card);
  font: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-primary);
}

.form-field textarea {
  resize: none;
  min-height: 8rem;
}

/* Honeypot: invisible to humans, but present in the DOM so spam bots
   fill it in and give themselves away. */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 0.875rem;
  color: var(--color-accent-foreground);
}

.form-status[hidden] {
  display: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: color-mix(in oklab, var(--color-secondary) 40%, transparent);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.footer-links a {
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--color-primary);
}

/* Legal pages */
.legal-page {
  padding: 7rem 0 4rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--color-primary);
}

.legal-page .updated {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

.legal-subtitle {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--color-muted-foreground);
}

.footer-separator {
  color: var(--color-muted-foreground);
}

.legal-content {
  margin-top: 2.5rem;
  max-width: 48rem;
  display: grid;
  gap: 1.25rem;
  line-height: 1.625;
  color: color-mix(in oklab, var(--color-foreground) 85%, transparent);
}

.legal-content h2 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-primary);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (min-width: 40rem) {
  .brand-text {
    display: block;
  }

  .hero-actions {
    flex-direction: row;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.desktop-break {
  display: none;
}

@media (min-width: 48rem) {
  .desktop-break {
    display: inline;
  }

  .brand img {
    width: 2.25rem;
    height: 2.25rem;
  }

  .btn-nav {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .hero {
    padding: 10rem 0 8rem;
  }

  .hero-inner {
    max-width: 64rem;
  }

  .hero-logo {
    width: 16rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-copy {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .about-grid {
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
  }

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

  .testimonial-card {
    width: 420px;
  }

  .contact-panel,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .contact-card {
    padding: 2.5rem;
  }
}
