:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-border: #d2d2d7;
  --color-accent: #0071e3;
  --color-accent-hover: #0077ed;
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  margin-bottom: 0 !important;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

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

/* ---------- Top navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.site-nav .nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav .brand {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 17px;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.site-nav .brand img {
  height: 26px;
  width: auto;
  display: block;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.site-nav ul li a {
  font-size: 13px;
  color: var(--color-text);
  opacity: 0.85;
}

.site-nav ul li a:hover {
  opacity: 1;
}

/* ---------- Layout containers ---------- */
.section {
  padding: 96px 24px;
}

.section-alt {
  background: var(--color-bg-alt);
}

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

.section-eyebrow {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}

.section-subtitle {
  text-align: center;
  font-size: 19px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto 56px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 140px 24px 110px;
  text-align: center;
}

.hero h1 {
  font-size: 64px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero p.lede {
  font-size: 21px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
}

.hero .cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
  border: 1px solid transparent;
}

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

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

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

.btn-pill-secondary:hover {
  border-color: var(--color-accent);
}

/* ---------- iOS-style toggle switch ---------- */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #d2d2d7;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.switch .slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch input:checked + .slider {
  background-color: #34c759;
}

.switch input:checked + .slider::before {
  transform: translateX(18px);
}

/* ---------- Expertise cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card .card-icon {
  font-size: 28px;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-bg-alt);
}

.card h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ---------- About ---------- */
.about-copy {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 19px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ---------- Contact form ---------- */
.form-card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--font-family);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-alt);
  color: var(--color-text);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fff;
}

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

.field-validation-error {
  display: block;
  color: #d70015;
  font-size: 13px;
  margin-top: 6px;
}

.alert-success-apple {
  text-align: center;
  padding: 40px;
  max-width: 560px;
  margin: 0 auto;
}

.alert-success-apple .icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Legal pages ---------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
}

.legal-content h1 {
  font-size: 36px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.legal-updated {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 13px;
  margin-bottom: 48px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 28px 24px;
  background: var(--color-bg-alt);
}

.site-footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.site-footer a {
  color: var(--color-text-secondary);
}

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

.site-footer ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero p.lede {
    font-size: 17px;
  }

  .section {
    padding: 64px 20px;
  }

  .section-title {
    font-size: 30px;
  }
}
