:root {
  --primary: #183c4e;
  --secondary: #5b7e8d;
  --text: #183c4e;
  --muted: #5b7e8d;
  --bg: #f6f9fb;
  --white: #ffffff;
  --line: #d9e2e8;
  --shadow: 0 18px 45px rgba(24, 60, 78, 0.12);
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbfc 0%, #ffffff 45%, #f4f8fa 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 999;
  background: var(--primary);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 12px;
}

.skip-link:focus {
  left: 16px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(91, 126, 141, 0.18);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-link {
  flex-shrink: 0;
}

.logo {
  height: clamp(48px, 5vw, 70px);
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-copy h1 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.1;
  color: var(--text);
}

.brand-copy p {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.2s ease;
  white-space: nowrap;
}

nav a:hover,
nav a:focus-visible {
  color: var(--secondary);
}

.topbar-cta {
  white-space: nowrap;
}

.hero {
  padding: 72px 0 42px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(91, 126, 141, 0.10), transparent 30%),
    radial-gradient(circle at right center, rgba(24, 60, 78, 0.08), transparent 28%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(91, 126, 141, 0.14);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
}

.hero h2 {
  margin: 16px 0 14px;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.97;
  letter-spacing: -0.04em;
  max-width: 640px;
}

.hero p.lead {
  margin: 0;
  max-width: 620px;
  font-size: 1.06rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.hero-point {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 226, 232, 0.8);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(24, 60, 78, 0.05);
}

.hero-point strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.hero-point span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-card {
  background: var(--white);
  border: 1px solid rgba(217, 226, 232, 0.9);
  border-radius: 32px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-image {
  min-height: 500px;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  background:
    linear-gradient(160deg, rgba(24, 60, 78, 0.40), rgba(24, 60, 78, 0.22)),
    url('Assets/Braces.jpeg') center/cover no-repeat;
}

.image-panel {
  width: 100%;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: var(--white);
}

.image-panel h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  line-height: 1.15;
}

.image-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.stats-strip {
  padding: 0 0 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(24, 60, 78, 0.05);
  padding: 20px;
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

section {
  padding: 40px 0 84px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head span {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.section-head h3 {
  margin: 6px 0 0;
  font-size: clamp(1.95rem, 3vw, 2.9rem);
  line-height: 1.05;
}

.section-head p {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
}

.services-grid,
.trust-grid,
.reviews-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card,
.trust-card,
.review-card,
.about-card,
.contact-card,
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(24, 60, 78, 0.06);
}

.service-card {
  padding: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(24, 60, 78, 0.12);
  border-color: rgba(91, 126, 141, 0.45);
}

.service-card:active {
  transform: translateY(-2px);
}

.icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(91, 126, 141, 0.14);
  display: grid;
  place-items: center;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 800;
}

.service-card h4,
.trust-card h4,
.review-card h4,
.contact-card h4,
.about-card h4 {
  margin: 0 0 8px;
  color: var(--text);
}

.service-card p,
.trust-card p,
.review-card p,
.contact-card p,
.about-card p {
  margin: 0;
  color: var(--muted);
}

.about-wrap,
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.about-card,
.contact-card {
  padding: 28px;
}

.about-highlight {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: 0 18px 36px rgba(24, 60, 78, 0.18);
}

.about-highlight small {
  display: inline-block;
  opacity: 0.9;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-highlight h4 {
  margin: 0 0 10px;
  line-height: 1.15;
}

.about-highlight p,
.about-highlight li {
  color: rgba(255, 255, 255, 0.92);
}

.about-list {
  margin: 14px 0 0;
  padding-left: 18px;
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}

.gallery-card {
  min-height: 260px;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(24, 60, 78, 0.1);
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 42px rgba(24, 60, 78, 0.18);
}

.g1 {
  background:
    linear-gradient(160deg, rgba(24, 60, 78, 0.48), rgba(24, 60, 78, 0.3)),
    url('https://lh3.googleusercontent.com/p/AF1QipOu_CW_Rq9rT2PB4m__zwwMMo_CMnYvxTvs-Uju=s1360-w1360-h1020-rw') center/cover;
}

.g2 {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.42)),
    url('https://lh3.googleusercontent.com/p/AF1QipPy-s039ZM7Q4It61-Z5vVherWUXb0Ihn2c_-__=s1360-w1360-h1020-rw') center/cover;
  color: var(--primary);
}

.g3 {
  background:
    linear-gradient(160deg, rgba(24, 60, 78, 0.5), rgba(24, 60, 78, 0.34)),
    url('https://lh3.googleusercontent.com/p/AF1QipMcwKFkyVUj_DGCQwLlrRy8A-NFR-QtG0mSb6fO=s1360-w1360-h1020-rw') center/cover;
}

.gallery-content small {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  font-weight: 700;
}

.g2 .gallery-content small {
  background: rgba(24, 60, 78, 0.08);
}

.gallery-content h4 {
  margin: 8px 0 6px;
  line-height: 1.15;
}

.gallery-content p {
  margin: 0;
  font-size: 0.92rem;
}

.trust-card,
.review-card {
  padding: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.trust-card:hover,
.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(24, 60, 78, 0.12);
  border-color: rgba(91, 126, 141, 0.35);
}

.rating {
  color: #ffb400;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}

.reviewer {
  margin-top: 10px;
  font-weight: 700;
  color: var(--text);
}

.faq-item {
  padding: 20px 22px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
}

.contact-info {
  background: linear-gradient(160deg, var(--primary), #122b38);
  color: var(--white);
}

.contact-info p,
.contact-info strong,
.contact-info span,
.contact-info h4,
.contact-info a {
  color: var(--white);
}

.contact-badge {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.contact-info-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.contact-note {
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-note h5 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text);
}

input,
textarea {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(91, 126, 141, 0.7);
  box-shadow: 0 0 0 4px rgba(91, 126, 141, 0.12);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 12px 16px;
  font-size: 0.92rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: 0 14px 28px rgba(24, 60, 78, 0.22);
}

.btn-secondary {
  background: rgba(91, 126, 141, 0.12);
  color: var(--primary);
  border: 1px solid rgba(91, 126, 141, 0.2);
}

.footer-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 20px 0 24px;
  color: var(--muted);
}

.footer-box strong {
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 34px rgba(37, 211, 102, 0.32);
  z-index: 120;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 38px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.mt-12 {
  margin-top: 12px;
}

.section-kicker {
  display: inline-block;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.intro-strip {
  padding: 0 0 70px;
}

.intro-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.intro-item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(24, 60, 78, 0.05);
}

.intro-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1rem;
}

.intro-item span {
  color: var(--muted);
  display: block;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  align-items: stretch;
}

.story-copy,
.story-panel {
  border-radius: var(--radius);
}

.story-copy {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 34px;
  box-shadow: 0 10px 24px rgba(24, 60, 78, 0.06);
}

.story-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.story-copy p {
  margin: 0 0 14px;
  color: var(--muted);
}

.story-panel {
  padding: 30px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: 0 18px 36px rgba(24, 60, 78, 0.18);
}

.story-panel small {
  display: inline-block;
  opacity: 0.9;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

.story-panel h4 {
  margin: 0 0 12px;
  line-height: 1.15;
}

.journey-section {
  position: relative;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.journey-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(24, 60, 78, 0.06);
}

.journey-step span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(91, 126, 141, 0.14);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 14px;
}

.journey-step h4 {
  margin: 0 0 8px;
}

.journey-step p {
  margin: 0;
  color: var(--muted);
}

.why-us-section,
.testimonials-section {
  position: relative;
}

@media (max-width: 1100px) {
  .topbar-inner {
    flex-wrap: wrap;
  }

  .topbar-cta {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-image {
    min-height: 420px;
  }

  .hero-points,
  .stats-grid,
  .services-grid,
  .trust-grid,
  .reviews-grid,
  .faq-grid,
  .intro-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-card:first-child {
    grid-column: 1 / -1;
  }

  .journey-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-grid,
  .about-wrap,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(var(--max), calc(100% - 40px));
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .services-grid,
  .about-wrap,
  .gallery-grid,
  .trust-grid,
  .reviews-grid,
  .faq-grid,
  .contact-wrap,
  .form-grid,
  .intro-strip-grid,
  .story-grid,
  .journey-grid,
  .hero-points,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0 28px;
  }

  .hero h2 {
    font-size: clamp(2.2rem, 7vw, 3.4rem);
    line-height: 1.02;
  }

  .hero p.lead {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-image {
    min-height: 340px;
  }

  .section-head,
  .topbar-inner,
  .footer-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head {
    gap: 12px;
  }

  nav {
    gap: 12px 16px;
  }

  .service-card,
  .trust-card,
  .review-card,
  .about-card,
  .contact-card,
  .faq-item,
  .journey-step,
  .intro-item,
  .stat-card {
    padding: 22px;
  }

  .container {
    width: min(var(--max), calc(100% - 28px));
  }
}

@media (max-width: 640px) {
  .brand-copy p {
    display: none;
  }

  .topbar-inner {
    gap: 14px;
    padding: 12px 0;
  }

  .brand {
    gap: 10px;
  }

  nav {
    width: 100%;
    gap: 10px 14px;
  }

  nav a {
    font-size: 0.92rem;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h2 {
    font-size: 2rem;
    letter-spacing: -0.03em;
  }

  .eyebrow {
    font-size: 0.76rem;
    padding: 7px 12px;
  }

  .hero-card {
    padding: 14px;
    border-radius: 24px;
  }

  .hero-image {
    min-height: 280px;
    padding: 16px;
    border-radius: 20px;
  }

  .image-panel {
    padding: 14px;
    border-radius: 14px;
  }

  .image-panel h3 {
    font-size: 1.12rem;
  }

  .section-head h3,
  .story-copy h3 {
    font-size: 1.8rem;
    line-height: 1.08;
  }

  .gallery-card {
    min-height: 220px;
    padding: 16px;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .btn-sm {
    width: 100%;
  }

  .form-grid {
    gap: 12px;
  }

  input,
  textarea {
    padding: 13px;
  }

  .footer-box {
    gap: 12px;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .container {
    width: min(var(--max), calc(100% - 22px));
  }
}

@media (max-width: 380px) {
  .hero h2 {
    font-size: 1.8rem;
  }

  .section-head h3,
  .story-copy h3 {
    font-size: 1.55rem;
  }

  .service-card,
  .trust-card,
  .review-card,
  .about-card,
  .contact-card,
  .faq-item,
  .journey-step,
  .intro-item,
  .stat-card {
    padding: 18px;
  }

  .logo {
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}