:root {
  --brand-50: #f0f7ff;
  --brand-100: #e0effe;
  --brand-700: #0154a1;
  --brand-800: #064785;
  --brand-900: #0b3c6e;
  --slate-50: #f8fafc;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-950: #0d1117;
  --shadow: 0 4px 24px -4px rgba(7, 38, 73, 0.12);
  --shadow-lg: 0 12px 48px -12px rgba(7, 38, 73, 0.18);
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "DM Sans", system-ui, sans-serif;
  --page-gutter: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--slate-700);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--brand-100);
  color: var(--brand-900);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

@media (min-width: 640px) {
  :root {
    --page-gutter: 1.5rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --page-gutter: 2rem;
  }
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
  padding-block: 0.75rem;
}

.logo {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.logo.logo-brand {
  display: inline-flex;
  align-items: baseline;
  padding: 0.6rem 1rem;
  background: #ffffff;
  border: none;
  border-radius: 0;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  color: #000000;
}

.logo-brand-macro,
.logo-brand-smart {
  color: #000000;
}

.logo-brand-macro {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.logo-brand-smart {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  font-style: italic;
}

.site-footer .logo.logo-brand {
  background: #ffffff;
}

/* Align all page content to the same left edge as the header logo */
.hero .container,
.section .container,
.contact-section .container {
  display: block;
}

.hero .container > *,
.section .container > * {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

.nav-main {
  display: none;
  gap: 2rem;
  flex: 1 1 auto;
}

@media (min-width: 768px) {
  .nav-main {
    display: flex;
    justify-content: center;
  }
}

.nav-main a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: color 0.15s;
}

.nav-main a:hover {
  color: var(--brand-700);
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.lang-switch {
  display: flex;
  padding: 2px;
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  background: var(--slate-50);
  font-size: 0.75rem;
  font-weight: 500;
}

.lang-switch a,
.lang-switch span {
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  color: var(--slate-600);
}

.lang-switch a:hover {
  color: var(--brand-700);
}

.lang-switch .active {
  background: #fff;
  color: var(--brand-800);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--brand-800);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-900);
}

.btn-outline {
  background: #fff;
  color: var(--slate-800);
  border: 1px solid var(--slate-200);
}

.btn-outline:hover {
  border-color: #b9dffd;
  color: var(--brand-800);
}

.btn-header {
  display: none;
}

@media (min-width: 640px) {
  .btn-header {
    display: inline-flex;
  }
}

.menu-toggle {
  display: flex;
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: var(--slate-600);
  border-radius: 0.5rem;
  cursor: pointer;
}

.menu-toggle:hover {
  background: var(--slate-50);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--slate-200);
  background: #fff;
  padding: 1rem;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mobile li + li {
  margin-top: 0.75rem;
}

.nav-mobile a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
}

/* Hero */
.hero {
  padding: 7rem 0 5rem;
  background: linear-gradient(180deg, var(--slate-50) 0%, #fff 100%);
}

.hero-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-800);
  background: var(--brand-50);
  border: 1px solid #b9dffd;
  border-radius: 9999px;
}

.hero h1 {
  margin: 0;
  max-width: 48rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--slate-950);
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: clamp(1.6875rem, 3.75vw, 2.8125rem);
  }
}

.hero h1 .highlight {
  color: var(--brand-700);
}

.hero-lead {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: 1.125rem;
  color: var(--slate-600);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-actions .btn {
  padding: 0.75rem 1.5rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--slate-50);
}

.section-label {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--slate-950);
}

.section h2 {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--slate-600);
}

.section-intro {
  margin-top: 1.5rem;
  max-width: 48rem;
  font-size: 1.125rem;
  color: var(--slate-600);
}

.section-intro + .section-intro {
  margin-top: 1rem;
}

.about-list {
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
  max-width: 48rem;
  color: var(--slate-600);
}

.about-list li {
  margin-top: 0.5rem;
}

.about-list li::marker {
  color: var(--brand-700);
}

.mission-block {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-200);
  max-width: 48rem;
}

.mission-block h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--slate-950);
}

.mission-block p {
  margin: 0.75rem 0 0;
  font-size: 1.0625rem;
  color: var(--slate-600);
}

/* Cards */
.card-grid-3 {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-grid-2 {
  display: grid;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

@media (min-width: 640px) {
  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  background: rgba(248, 250, 252, 0.5);
  box-shadow: var(--shadow);
}

.card-white {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  transition: box-shadow 0.2s;
}

.card-white:hover {
  box-shadow: var(--shadow-lg);
}

.card-featured {
  border-color: #b9dffd;
  background: linear-gradient(180deg, #fff 0%, var(--brand-50) 100%);
}

.card-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-800);
  background: var(--brand-100);
  border-radius: 0.25rem;
}

.hero-lead strong {
  color: var(--brand-900);
  font-weight: 600;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--brand-50);
  color: var(--brand-800);
}

.card-white:hover .card-icon {
  background: var(--brand-800);
  color: #fff;
}

.card h3 {
  margin: 1.5rem 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--slate-950);
}

.card p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--brand-800);
  color: #fff;
}

.check-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Steps */
.steps {
  display: grid;
  gap: 2rem;
  margin-top: 3.5rem;
  list-style: none;
  padding: 0;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps.steps-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.steps li {
  padding: 1.5rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  background: rgba(248, 250, 252, 0.5);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: default;
}

.steps li:hover,
.steps li:focus-visible {
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-200);
  outline: none;
}

.steps li:hover .step-num,
.steps li:focus-visible .step-num {
  color: var(--brand-200);
}

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--brand-100);
  line-height: 1;
}

.steps h3 {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--slate-950);
}

.steps p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.stats-bar {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
  padding: 2rem;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  background: var(--slate-50);
}

@media (min-width: 640px) {
  .stats-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stats-bar strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--brand-900);
}

.stats-bar span {
  font-size: 0.875rem;
  color: var(--slate-600);
}

/* Contact */
.contact-section {
  background: var(--slate-950);
  color: var(--slate-400);
}

.contact-section .section-label {
  color: #fff;
}

.contact-section h2 {
  color: #94a3b8;
  font-weight: 500;
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-grid-embed {
  grid-template-columns: 1fr;
}

.contact-grid-embed .contact-embed-wrap {
  grid-column: 1;
  width: 100%;
}

.contact-embed-wrap {
  width: 100%;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .contact-grid-embed {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.contact-info a {
  color: #cbd5e1;
}

.contact-info a:hover {
  color: #fff;
}

.contact-form {
  padding: 2rem;
  border: 1px solid #1e293b;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.5);
}

.contact-form.contact-embed {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contact-embed-wrap {
  width: 100%;
  background: transparent;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.contact-embed-wrap:not(.is-sized) {
  min-height: 28rem;
}

.contact-embed {
  padding: 0;
  overflow: hidden;
  background: transparent;
  width: 100%;
  height: auto;
  min-height: 0;
}

.appointment-embed {
  display: block;
  width: 100%;
  height: 28rem;
  min-height: 0;
  max-height: none;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.contact-embed-wrap.is-sized .appointment-embed {
  height: auto;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-top: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
}

.form-group input,
.form-group textarea {
  width: 100%;
  margin-top: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: #fff;
  background: var(--slate-950);
  border: 1px solid #334155;
  border-radius: 0.5rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0c87e9;
  box-shadow: 0 0 0 1px #0c87e9;
}

.form-group textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-form .btn-primary {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #0069c7;
}

.contact-form .btn-primary:hover {
  background: #0c87e9;
}

.contact-form .btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.form-status.success {
  color: #34d399;
}

.form-status.error {
  color: #f87171;
}

@media (min-width: 640px) {
  .contact-form .btn-primary {
    width: auto;
    min-width: 10rem;
  }
}

/* Footer */
.site-footer {
  background: var(--slate-950);
  color: #94a3b8;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer .logo {
  display: inline-flex;
}

.footer-tagline {
  margin-top: 0.75rem;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.footer-links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.5rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  padding: 2rem 0;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Legal pages */
.legal-page {
  padding: 7rem 0 4rem;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--slate-950);
}

.legal-updated {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--slate-500);
}

.legal-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--slate-900);
}

.legal-content p,
.legal-content li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate-600);
}

.legal-content p {
  margin: 0 0 1rem;
}

.legal-content ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.legal-content li + li {
  margin-top: 0.35rem;
}

.legal-content a {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--brand-700);
}
