*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #222222;
  line-height: 1.6;
  font-size: 16px;
}

:root {
  --blue: #1c3f94;
  --yellow: #ffc82e;
  --black: #111111;
  --light-gray: #f4f6fb;
  --border-gray: #d8dde6;
  --muted: #666666;
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 1rem;
  margin: 0 auto;
}

/* Header */

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-gray);
  position: sticky;
  top: 0;
  z-index: 20;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
}

.logo-area {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  border-radius: 12px;
  margin-right: 0.75rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  color: var(--blue);
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Top phone */

.top-phone {
  display: none;
  text-decoration: none;
  color: #ffffff;
  background-color: var(--blue);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Navigation */

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--black);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background-color: var(--blue);
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Burger button (mobile) */

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.2rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background-color: var(--black);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  height: 600px; /* matches 1440x600 banner ratio */
  overflow: hidden;
}

.hero-small {
  height: 320px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.4), rgba(28, 63, 148, 0.35));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}

.hero p {
  max-width: 540px;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

.btn-primary:hover {
  filter: brightness(0.93);
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

/* Decorative HR and mountains */

.decor-wrap {
  position: relative;
  margin-top: -1px;
}

.decor-hr {
  border: 0;
  border-top: 1px solid var(--border-gray);
  margin: 0;
}

.decor-mountains {
  display: block;
  width: 100%;
  height: 40px;
  fill: var(--light-gray);
}

/* Sections */

main {
  background-color: var(--light-gray);
  padding-bottom: 2.5rem;
}

.content-section,
.services-section,
.map-section,
.schedule-section {
  padding: 2.25rem 0;
}

.content-section h2,
.services-section h2,
.map-section h2,
.schedule-section h2 {
  color: var(--blue);
  margin-bottom: 1rem;
}

/* Services grid */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-gray);
  padding: 1.25rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.service-card h3 {
  color: var(--blue);
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

/* Map section */

.map-wrapper {
  margin-top: 1rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-gray);
  background-color: #ffffff;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

/* Schedule form */

.schedule-form {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-gray);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
  max-width: 640px;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-row label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--black);
}

.required {
  color: #c53030;
  margin-left: 0.2rem;
}

.optional {
  color: var(--muted);
  font-size: 0.85rem;
}

.schedule-form input,
.schedule-form select,
.schedule-form textarea {
  font: inherit;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border-gray);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.schedule-form input:focus,
.schedule-form select:focus,
.schedule-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(28, 63, 148, 0.15);
}

/* Floating phone */

.floating-phone {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
}

.floating-phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--blue);
  color: #ffffff;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
}

/* Footer */

.site-footer {
  background-color: #0b1220;
  color: #e2e8f0;
  padding-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
  padding-bottom: 1.5rem;
}

.footer-col h2 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.9rem;
  color: #f9fafb;
}

.footer-links,
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-links a,
.footer-col a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-col a:hover {
  color: var(--yellow);
}

.footer-contact p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.footer-contact a {
  color: #e2e8f0;
}

.footer-contact a:hover {
  color: var(--yellow);
}

/* Social icons */

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0 0.75rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: #e2e8f0;
}

.social-icon:hover {
  background-color: var(--yellow);
}

.social-icon:hover svg {
  fill: #111827;
}

.hours {
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 0.75rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Responsive styles */

@media (max-width: 960px) {
  .hero {
    height: 420px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .top-bar {
    align-items: center;
  }

  .top-phone {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-gray);
    transform: translateY(-200%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .main-nav.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1rem 0.75rem;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    display: block;
    padding: 0.4rem 0;
  }

  .hero {
    height: 360px;
  }

  .hero p {
    max-width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .floating-phone-link {
    font-size: 0.85rem;
    padding: 0.55rem 0.9rem;
  }
}
