:root {
  --background: #f5f3ee;
  --card: #ffffff;
  --text: #20231f;
  --muted: #686d66;
  --accent: #244b3a;
  --accent-dark: #19382b;
  --button-secondary: #ffffff;
  --border: #dedbd3;
  --toggle-bg: #eeeae0;
  --toggle-text: #3c413b;
  --photo-bg: #e8e5dc;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
  --radius: 24px;
}

:root[data-theme="dark"] {
  --background: #101613;
  --card: #18201c;
  --text: #f2f4ef;
  --muted: #b4bbb4;
  --accent: #79b79a;
  --accent-dark: #91c9aa;
  --button-secondary: #202b25;
  --border: #334038;
  --toggle-bg: #26312b;
  --toggle-text: #e2e8e2;
  --photo-bg: #27322c;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--accent) 12%, transparent), transparent 35%),
    var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.5;
  transition: background-color 220ms ease, color 220ms ease;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.card {
  position: relative;
  width: min(100%, 480px);
  padding: 62px 24px 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.theme-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--toggle-bg);
  color: var(--toggle-text);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  transition: transform 160ms ease, background-color 220ms ease;
}

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

.theme-toggle:focus-visible {
  outline: 4px solid color-mix(in srgb, var(--accent) 28%, transparent);
  outline-offset: 3px;
}

.theme-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.photo-wrap {
  width: 116px;
  height: 116px;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 5px solid var(--card);
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
  background: var(--photo-bg);
}

.agent-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 9vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.role {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
}

.divider {
  width: 48px;
  height: 3px;
  margin: 22px auto;
  border-radius: 99px;
  background: var(--accent);
}

h2 {
  max-width: 360px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 6vw, 1.8rem);
  line-height: 1.2;
}

.intro {
  max-width: 380px;
  margin: 12px auto 24px;
  color: var(--muted);
  font-size: 0.98rem;
}

.actions {
  display: grid;
  gap: 12px;
}

.button {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 18px;
  border: 2px solid var(--accent);
  border-radius: 14px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  transition: transform 160ms ease, background-color 220ms ease,
    color 220ms ease, box-shadow 220ms ease;
}

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

.button:focus-visible {
  outline: 4px solid color-mix(in srgb, var(--accent) 28%, transparent);
  outline-offset: 3px;
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--accent);
  color: #102018;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 24%, transparent);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  background: var(--button-secondary);
  color: var(--accent);
}

.button-secondary:hover {
  background: color-mix(in srgb, var(--button-secondary) 88%, var(--accent));
}

.service-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.location-icon {
  color: var(--accent);
  font-size: 1.05rem;
}

footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

@media (min-width: 600px) {
  .page {
    padding: 40px 20px;
  }

  .card {
    padding: 68px 38px 30px;
  }

  .actions {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body,
  .card,
  .theme-toggle,
  .button {
    transition: none;
  }
}
