/*
  BrightBridge Dental Growth Package stylesheet.
  Clean healthcare styling with stronger conversion flow than a starter site,
  while staying lightweight, static, and easy to edit.
*/

:root {
  --navy: #12324a;
  --navy-deep: #0a2438;
  --teal: #1e9f9a;
  --teal-dark: #137d79;
  --blue-soft: #e8f4f6;
  --blue-pale: #f4fafb;
  --white: #ffffff;
  --off-white: #fbfdfd;
  --text: #203849;
  --muted: #637989;
  --line: #d9e8ec;
  --shadow-sm: 0 12px 28px rgba(18, 50, 74, 0.08);
  --shadow-md: 0 22px 55px rgba(18, 50, 74, 0.13);
  --radius: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

ul {
  list-style: none;
}

section[id] {
  scroll-margin-top: 92px;
}

.container {
  width: min(calc(100% - 32px), 1180px);
  margin: 0 auto;
}

.eyebrow {
  margin-bottom: 0.7rem;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 2rem;
}

.section-heading h2,
.why-copy h2,
.about-text h2,
.contact-intro h2,
.final-cta h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-heading p,
.why-copy p,
.about-text p,
.contact-intro p {
  color: var(--muted);
  margin-top: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(30, 159, 154, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--teal-dark);
  box-shadow: 0 16px 32px rgba(30, 159, 154, 0.28);
}

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

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(30, 159, 154, 0.45);
  box-shadow: var(--shadow-sm);
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 232, 236, 0.8);
  backdrop-filter: blur(14px);
}

.nav-container {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 900;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--teal-dark);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--navy);
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  background:
    radial-gradient(circle at 8% 18%, rgba(30, 159, 154, 0.12), transparent 24%),
    linear-gradient(135deg, var(--blue-pale), var(--white) 52%, #edf8f7);
}

.hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  top: 5rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: rgba(30, 159, 154, 0.08);
  pointer-events: none;
}

.hero-wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-text h1 {
  max-width: 12ch;
  color: var(--navy);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-intro {
  max-width: 610px;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(30, 159, 154, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 750;
}

.hero-trust li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.hero-media {
  position: relative;
  min-height: 430px;
}

.hero-image {
  height: 430px;
  overflow: hidden;
  border: 10px solid var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.appointment-card {
  position: absolute;
  left: -1.4rem;
  bottom: 1.4rem;
  width: min(310px, calc(100% - 2rem));
  padding: 1.25rem;
  border: 1px solid rgba(217, 232, 236, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.card-kicker {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.appointment-card h2 {
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.2;
}

.appointment-card p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.mini-proof {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.9rem;
}

.mini-proof span {
  color: var(--muted);
}

.trust-strip {
  padding: 1.3rem 0;
  background: var(--navy);
  color: var(--white);
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.trust-icon {
  flex: 0 0 auto;
  color: #8de3de;
  font-weight: 900;
}

.trust-item strong {
  display: block;
  line-height: 1.2;
}

.trust-item p {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.treatments,
.testimonials,
.contact {
  padding: 5rem 0;
  background: var(--white);
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.treatment-card {
  min-height: 100%;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--off-white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.treatment-card:hover,
.treatment-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(30, 159, 154, 0.45);
  box-shadow: var(--shadow-md);
}

.treatment-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 15px;
  background: var(--blue-soft);
  color: var(--teal-dark);
}

.treatment-icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.treatment-card h3 {
  color: var(--navy);
  font-size: 1.15rem;
}

.treatment-card p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.treatment-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--teal-dark);
  font-weight: 850;
  font-size: 0.92rem;
}

.treatment-card a:hover {
  text-decoration: underline;
}

.why-choose {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background:
    linear-gradient(180deg, var(--blue-pale), #ffffff);
}

.why-choose::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.why-wrapper {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.why-copy {
  position: sticky;
  top: 105px;
}

.proof-panel {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.proof-panel div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.proof-panel strong,
.proof-panel span {
  display: block;
}

.proof-panel strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.proof-panel span {
  color: var(--muted);
  font-size: 0.88rem;
}

.choose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.choose-point {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.choose-point span {
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--teal);
}

.choose-point h3 {
  color: var(--navy);
  font-size: 1.1rem;
}

.choose-point p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, var(--white), var(--blue-pale));
  box-shadow: var(--shadow-sm);
}

.testimonial-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
}

.testimonial-top strong,
.rating {
  display: block;
}

.testimonial-top strong {
  color: var(--navy);
}

.rating {
  color: var(--teal-dark);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.testimonial-card p {
  color: var(--text);
  font-size: 0.96rem;
}

.about {
  padding: 5rem 0;
  background: var(--blue-pale);
}

.about-wrapper {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.about-image {
  overflow: hidden;
  border: 10px solid var(--white);
  border-radius: 26px;
  box-shadow: var(--shadow-md);
}

.about-image img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
}

.about-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--navy);
  font-weight: 700;
}

.about-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--teal);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-intro {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.contact-intro .eyebrow {
  color: #8de3de;
}

.contact-intro h2 {
  color: var(--white);
}

.contact-intro p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-cards {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.contact-cards article {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
}

.contact-cards strong,
.contact-cards span,
.contact-cards a {
  display: block;
}

.contact-cards strong {
  margin-bottom: 0.25rem;
}

.contact-cards span,
.contact-cards a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.contact-cards a:hover {
  color: var(--white);
  text-decoration: underline;
}

.booking-form {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.form-header {
  margin-bottom: 1.2rem;
}

.form-header h3 {
  color: var(--navy);
  font-size: 1.45rem;
}

.form-header p,
.form-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  display: grid;
  gap: 0.35rem;
}

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

.form-group label {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--off-white);
  color: var(--text);
  font: inherit;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(30, 159, 154, 0.13);
}

.booking-form .btn {
  margin-top: 1rem;
}

.form-note {
  margin-top: 0.9rem;
}

.final-cta {
  padding: 3rem 0;
  background:
    radial-gradient(circle at 90% 20%, rgba(141, 227, 222, 0.18), transparent 20%),
    var(--navy-deep);
  color: var(--white);
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.final-cta .eyebrow {
  color: #8de3de;
}

.final-cta h2 {
  max-width: 760px;
  color: var(--white);
}

.footer {
  padding: 1.4rem 0;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer a {
  color: var(--white);
}

.section-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero-wrapper,
  .why-wrapper,
  .about-wrapper,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .why-copy {
    position: static;
  }

  .treatment-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 24px), 1180px);
  }

  .nav-container {
    min-height: auto;
    padding: 0.9rem 0;
  }

  .logo {
    font-size: 1rem;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero-text h1 {
    max-width: 100%;
  }

  .hero-actions,
  .final-cta-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn,
  .final-cta .btn {
    width: 100%;
  }

  .hero-media {
    min-height: auto;
  }

  .hero-image {
    height: 330px;
    border-width: 6px;
  }

  .appointment-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: 1rem;
  }

  .treatments,
  .why-choose,
  .testimonials,
  .about,
  .contact {
    padding: 3.5rem 0;
  }

  .treatment-grid,
  .choose-grid,
  .testimonial-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-intro,
  .booking-form {
    padding: 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .section-reveal {
    opacity: 1;
    transform: none;
  }
}
