:root {
  color-scheme: light;
  --bg: #f4efe8;
  --bg-2: #ece3d7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --text: #18211d;
  --muted: #5f6a63;
  --accent: #0f5b49;
  --accent-2: #0b4336;
  --line: rgba(24, 33, 29, 0.12);
  --shadow: 0 24px 80px rgba(39, 34, 26, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 91, 73, 0.14), transparent 32%),
    radial-gradient(circle at bottom right, rgba(168, 134, 74, 0.15), transparent 30%),
    linear-gradient(180deg, #f8f4ee 0%, #efe7db 100%);
}

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

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

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero,
.card,
.photo-card,
.info-card {
  backdrop-filter: blur(18px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  padding: 28px;
  border-radius: 32px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__visual {
  display: grid;
  gap: 16px;
  align-content: start;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  max-width: 9ch;
}

h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}

h3 {
  font-size: 1.1rem;
}

.lead,
.note,
.service p,
.info-card p {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: 1.08rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chips span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 91, 73, 0.08);
  border: 1px solid rgba(15, 91, 73, 0.15);
  color: var(--accent-2);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 18px 40px rgba(15, 91, 73, 0.22);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(15, 91, 73, 0.18);
}

.note {
  margin: 18px 0 0;
}

.photo-card {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.photo-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.info-card {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(15, 91, 73, 0.1);
  border: 1px solid rgba(15, 91, 73, 0.12);
}

.info-card h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.card {
  border-radius: 28px;
  padding: 24px;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.service {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
}

.service p {
  margin: 10px 0 0;
}

.contact {
  display: flex;
  flex-direction: column;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.contact-row:last-of-type {
  border-bottom: 1px solid var(--line);
}

.contact-row span {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.contact-row strong {
  font-size: 1.08rem;
}

.doc-image {
  margin-top: 18px;
  border-radius: 20px;
  border: 1px solid rgba(24, 33, 29, 0.1);
  background: #fff;
  object-fit: cover;
}

.grid--certs .doc-image {
  aspect-ratio: 4 / 5;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(18px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(24, 33, 29, 0.92);
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 920px) {
  .hero,
  .grid,
  .services {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 22px;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 1180px);
    padding: 12px 0 28px;
  }

  .hero,
  .card {
    border-radius: 22px;
  }

  .actions,
  .chips {
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .services {
    gap: 12px;
  }

  .service,
  .contact-row {
    padding-left: 0;
    padding-right: 0;
  }
}