/* ===== Base & Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #f7f9fc;
  --color-surface: #ffffff;
  --color-text: #1a202c;
  --color-text-muted: #4a5568;
  --color-primary: #1a365d;
  --color-primary-hover: #2a4a7a;
  --color-accent: #2b6cb0;
  --color-border: #e2e8f0;
  --color-alt: #edf2f7;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --radius: 6px;
  --shadow: 0 4px 12px rgba(26, 54, 93, 0.08);
  --max-width: 1100px;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-primary);
}

h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  margin-bottom: var(--space-sm);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
}

p {
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: var(--space-xl) 0;
}

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  gap: var(--space-sm);
}

.logo {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
  line-height: 1.2;
  text-decoration: none;
}

.logo span {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.nav ul {
  display: flex;
  gap: 1.25rem;
}

.nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

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

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  background: var(--color-primary-hover);
  text-decoration: none;
  color: #fff;
}

.phone-icon {
  font-size: 1.1rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--color-primary);
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 55%, #2b6cb0 100%);
  color: #fff;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  text-align: center;
}

.hero-content {
  width: min(100% - 2rem, 720px);
  margin-inline: auto;
}

.hero h1 {
  color: #fff;
}

.hero-lead {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: var(--space-md);
  max-width: 36em;
  margin-inline: auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

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

.btn-primary:hover {
  background: #edf2f7;
  text-decoration: none;
  color: var(--color-primary);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
  margin-top: var(--space-sm);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

.btn-large {
  padding: 1rem 1.75rem;
  font-size: 1.1rem;
}

/* ===== Grids & Cards ===== */
.grid-2 {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.check-list {
  margin-top: var(--space-sm);
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--color-accent);
  border-radius: 50%;
}

.card-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--color-surface);
  padding: var(--space-md);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.card h3 {
  color: var(--color-primary);
}

/* ===== Process Steps ===== */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.steps li {
  position: relative;
  padding-left: 3.2rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.steps strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-primary);
}

.note {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: var(--space-md);
  padding: var(--space-sm);
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
}

/* ===== Address ===== */
.address-block {
  font-style: normal;
  margin: var(--space-sm) 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: inline-block;
}

.address-block.light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ===== FAQ ===== */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--color-accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.25rem 1.15rem;
  color: var(--color-text-muted);
}

.faq-answer p {
  margin: 0;
}

/* ===== CTA Band ===== */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: var(--space-xl) 0;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  opacity: 0.95;
  margin-bottom: var(--space-md);
}

.cta-band .btn-primary {
  margin-bottom: var(--space-sm);
}

.hours {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ===== Footer ===== */
.site-footer {
  background: #0f1c2e;
  color: #cbd5e0;
  padding: var(--space-lg) 0 0;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1.5fr 1fr;
  }
}

.site-footer a {
  color: #90cdf4;
}

.site-footer strong {
  color: #fff;
  display: block;
  margin-bottom: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-sm) 0;
  text-align: center;
  font-size: 0.85rem;
  color: #a0aec0;
}

/* ===== Mobile Call CTA ===== */
.mobile-call {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 90;
  background: var(--color-primary);
  color: #fff;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(26, 54, 93, 0.35);
  text-decoration: none;
}

.mobile-call:hover {
  background: var(--color-primary-hover);
  color: #fff;
  text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-sm);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
  }

  .nav a {
    display: block;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
  }

  .menu-toggle {
    display: flex;
  }

  .header-phone .phone-text {
    display: none;
  }

  .header-phone {
    padding: 0.55rem 0.75rem;
  }

  .mobile-call {
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
