@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  --primary: #f0544f;
  --primary-dark: #d94843;
  --navy: #1d2b53;
  --navy-light: #2a3d6e;
  --sky: #e1f1f6;
  --white: #ffffff;
  --text: #4a5568;
  --text-dark: #1a202c;
  --yellow: #f5b942;
  --green: #2d9f6f;
  --shadow: 0 12px 40px rgba(29, 43, 83, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --container: 1180px;
  --header-h: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Montserrat, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section--sky {
  background: var(--sky);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title .eyebrow {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  color: var(--navy);
  line-height: 1.25;
}

.section-title p {
  max-width: 640px;
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(29, 43, 83, 0.06);
}

.site-header .container {
  width: min(1320px, 98%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: clamp(0.5rem, 1vw, 1rem);
  min-height: var(--header-h);
}

.header-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: clamp(0.5rem, 1.2vw, 1.25rem);
  min-width: 0;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: clamp(0.4rem, 1vw, 1.1rem);
  min-width: 0;
}

.nav-desktop a {
  font-size: clamp(0.72rem, 0.75vw, 0.9rem);
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 0.5rem;
}

.site-header .header-actions .btn {
  white-space: nowrap;
  padding: 0.65rem clamp(0.85rem, 1.2vw, 1.35rem);
  font-size: clamp(0.72rem, 0.75vw, 0.88rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

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

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

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-light);
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline-light {
  background: var(--white);
  color: var(--navy);
}

.btn-link {
  padding: 0;
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem 4% 1.5rem;
  border-top: 1px solid #edf2f7;
  background: var(--white);
}

.mobile-nav a {
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid #f1f5f9;
}

.mobile-nav.open {
  display: flex;
}

/* Hero */
.hero {
  background: var(--sky);
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--navy);
}

.hero .lead {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  min-height: 380px;
}

/* Steps zigzag */
.step-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.step-row:last-child {
  margin-bottom: 0;
}

.step-row.reverse .step-media {
  order: 2;
}

.step-row.reverse .step-content {
  order: 1;
}

.step-media {
  position: relative;
}

.step-media img {
  border-radius: var(--radius-lg);
  width: 100%;
  min-height: 320px;
  object-fit: cover;
}

.step-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 8px 20px rgba(240, 84, 79, 0.35);
}

.step-content .step-num {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.step-content h3 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  color: var(--navy);
}

/* Quality care */
.quality-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.care-icons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.care-icon {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.care-icon .icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
}

.care-icon .icon-circle.red { background: var(--primary); }
.care-icon .icon-circle.navy { background: var(--navy); }
.care-icon .icon-circle.green { background: var(--green); }

.quality-visual {
  position: relative;
}

.quality-visual .bg-block {
  position: absolute;
  inset: 10% 0 0 15%;
  background: var(--sky);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.quality-visual img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  margin-left: auto;
  max-width: 92%;
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.price-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s;
}

.price-card:hover {
  transform: translateY(-6px);
}

.price-card .card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
}

.price-card h3 {
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.price-card .price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.price-card ul {
  text-align: left;
  margin-bottom: 1.5rem;
}

.price-card li {
  padding: 0.45rem 0;
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.92rem;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* Explore / blog cards */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.explore-card img {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 1rem;
}

.explore-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--navy);
}

/* Page banner */
.page-banner {
  background: linear-gradient(135deg, var(--sky) 0%, #cfe8f0 100%);
  padding: 3.5rem 0;
  text-align: center;
}

.page-banner h1 {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text);
}

.breadcrumb a {
  color: var(--primary);
}

/* Content blocks */
.content-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.prose h2,
.prose h3 {
  color: var(--navy);
}

.prose p {
  margin: 0 0 1rem;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-box {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}

.service-box h3 {
  margin: 0 0 0.75rem;
  color: var(--navy);
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.project-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.project-card .project-body {
  padding: 1.5rem;
}

.project-card h3 {
  margin: 0 0 0.5rem;
  color: var(--navy);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem 2rem;
  box-shadow: var(--shadow);
}

.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--sky);
}

.team-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.team-card .role {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.testimonial-card .quote {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--navy);
}

/* Forms */
.form-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #cbd5e0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(240, 84, 79, 0.15);
}

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

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #e53e3e;
}

.field-error {
  color: #e53e3e;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error .field-error {
  display: block;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.form-check input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-check label {
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
  color: var(--text);
}

.form-check.has-error label {
  color: #e53e3e;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  background: #f0fff4;
  border: 2px solid var(--green);
  border-radius: var(--radius-md);
  color: var(--navy);
  font-weight: 600;
  font-size: 1.1rem;
}

.form-success.visible {
  display: block;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-layout .full {
  grid-column: 1 / -1;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-grid h4 {
  color: var(--white);
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
}

.footer-about img {
  height: 42px;
  margin-bottom: 1rem;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-newsletter input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
  font-family: inherit;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s;
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
}

.legal-doc {
  max-width: 860px;
  margin: 0 auto;
}

.legal-doc h2 {
  color: var(--navy);
  margin-top: 2.5rem;
}

.legal-doc h3 {
  color: var(--navy);
  margin-top: 1.75rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.stat-box {
  text-align: center;
  padding: 1.5rem;
  background: var(--sky);
  border-radius: var(--radius-md);
}

.stat-box strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .quality-grid,
  .content-two-col,
  .step-row {
    grid-template-columns: 1fr;
  }

  .step-row.reverse .step-media,
  .step-row.reverse .step-content {
    order: unset;
  }

  .pricing-grid,
  .explore-grid,
  .services-grid,
  .project-grid,
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-desktop,
  .header-actions {
    display: none;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
  }

  .menu-toggle {
    display: flex;
  }

  .pricing-grid,
  .explore-grid,
  .services-grid,
  .project-grid,
  .testimonial-grid,
  .team-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-layout {
    grid-template-columns: 1fr;
  }

  .quality-visual .bg-block {
    display: none;
  }

  .quality-visual img {
    max-width: 100%;
  }
}