/* Invisalign Bristol - Visual, purple theme */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-soft: #a5b4fc;
  --accent: #ec4899;
  --bg: #0f172a;
  --bg-light: #f9fafb;
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow-soft: 0 15px 40px rgba(15, 23, 42, 0.12);
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg-light);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* NAVBAR */
.nb-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.nb-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.75rem;
}

.nb-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nb-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: radial-gradient(circle at 0 0, #a855f7 0, #4f46e5 40%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nb-logo img {
  width: 80%;
  height: auto;
}

.nb-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.nb-title {
  color: #e5e7eb;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nb-subtitle {
  font-size: 0.75rem;
  color: #9ca3af;
}

.nb-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nb-menu a {
  color: #e5e7eb;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
  position: relative;
}

.nb-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #ec4899);
  transition: width 0.25s ease;
}

.nb-menu a:hover::after {
  width: 100%;
}

.nb-cta {
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #22c55e 0, #16a34a 40%, #166534 100%);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
}

.nb-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.4rem;
  border: none;
  background: transparent;
}

.nb-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

.nb-mobile {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.9rem 1.75rem 1.3rem;
  border-top: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.98);
}

.nb-mobile a {
  color: #e5e7eb;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.7);
  font-size: 0.92rem;
}

.nb-mobile a.nb-mobile-call {
  border: none;
  margin-top: 0.6rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #f9fafb;
  border-radius: 12px;
  text-align: center;
  padding: 0.9rem;
  font-weight: 600;
}

.nb-mobile.show {
  display: flex;
}

@media (max-width: 980px) {
  .nb-menu,
  .nb-cta {
    display: none;
  }
  .nb-toggle {
    display: flex;
  }
}

/* HERO */
.hero {
  background: radial-gradient(circle at 0 0, #6366f1 0, #4f46e5 40%, #4338ca 100%);
  color: #ffffff;
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 0%, rgba(167, 139, 250, 0.3), transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.2), transparent 60%),
                    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left .hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.hero-left h1 {
  font-size: clamp(2.4rem, 4vw + 1rem, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 32rem;
  margin-bottom: 1.8rem;
  line-height: 1.7;
}

.hero-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.hero-highlight-item {
  display: flex;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-highlight-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.hero-highlight-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hero-highlight-item strong {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-highlight-item strong a {
  color: #ffffff !important;
  text-decoration: underline;
  cursor: pointer;
  transition: opacity 0.2s ease;
  position: relative;
  z-index: 1;
}

.hero-highlight-item strong a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.hero-highlight-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.btn {
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 15px 40px rgba(79, 70, 229, 0.5);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
}

.btn-full {
  width: 100%;
}

.hero-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-image-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.9rem;
}

.hero-image-large img,
.hero-image-small img {
  border-radius: 22px;
  object-fit: cover;
  height: 100%;
}

.hero-image-large {
  min-height: 240px;
  overflow: hidden;
}

.hero-image-small {
  min-height: 160px;
  overflow: hidden;
  align-self: flex-end;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-stat-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
}

.hero-stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.hero-stat-card .stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
}

/* GENERIC SECTION STYLES */
.section-heading {
  margin-bottom: 2.3rem;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw + 1rem, 2.8rem);
  margin-bottom: 0.8rem;
}

.section-heading p {
  max-width: 38rem;
  margin: 0 auto;
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* WHY */
.why-section {
  padding: 4.5rem 0;
  background: var(--bg-light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.why-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.why-card img {
  height: 190px;
  width: 100%;
  object-fit: cover;
}

.why-card h3 {
  font-size: 1.2rem;
  margin: 1rem 1.2rem 0.4rem;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 1.2rem 1.1rem;
}

/* CASES */
.cases-section {
  padding: 4.5rem 0;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.case-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.case-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.case-images img {
  height: 150px;
  object-fit: cover;
}

.case-info {
  padding: 1.1rem 1.2rem 1.3rem;
}

.case-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.case-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* TEAM */
.team-section {
  padding: 4.5rem 0;
  background: #f3f4f6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.clinician-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.4rem 1.6rem;
  text-align: center;
}

.clinician-photo-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #c4b5fd;
}

.clinician-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clinician-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.clinician-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* PRICING */
.pricing-section {
  padding: 4.5rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  margin-bottom: 1.8rem;
}

.pricing-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
  padding: 1.8rem 1.6rem;
  position: relative;
}

.pricing-card.featured {
  border-color: #6366f1;
  box-shadow: var(--shadow-soft);
}

.pricing-card .badge {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: #6366f1;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
}

.pricing-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.price {
  font-size: 1.7rem;
  font-weight: 700;
  color: #4338ca;
  margin-bottom: 0.2rem;
}

.price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.pricing-card ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-card ul li {
  padding: 0.35rem 0;
}

.pricing-footer {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

/* FAQ */
.faq-section {
  padding: 4.5rem 0;
  background: var(--bg-light);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: white;
  margin-bottom: 0.9rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: none;
  background: none;
  padding: 1rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font-size: 0.98rem;
}

.faq-toggle {
  font-size: 1.4rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.1rem;
  transition: max-height 0.3s ease, padding-bottom 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1rem;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CONTACT */
.contact-section {
  padding: 4.5rem 0 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.contact-form {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.9rem 1.6rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.95rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  display: block;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 0.75rem 0.85rem;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

.form-message {
  display: none;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}

.form-message.success {
  display: block;
  background: #dcfce7;
  color: #166534;
}

.form-message.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
}

.contact-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.9rem 1.6rem;
}

.contact-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.map-placeholder img {
  border-radius: 18px;
  margin-top: 0.8rem;
}

/* FOOTER */
.footer {
  background: #020617;
  color: #9ca3af;
  padding: 2.8rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3,
.footer-col h4 {
  color: #e5e7eb;
  margin-bottom: 0.7rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.88rem;
  color: #9ca3af;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.45rem;
}

.footer-col ul li a:hover {
  color: #e5e7eb;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
}

/* FLOATING CTA */
.floating-cta {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 40;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 0, #22c55e 0, #16a34a 40%, #14532d 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 14px 35px rgba(22, 163, 74, 0.55);
}

@media (max-width: 900px) {
  .hero-inner {
    padding-top: 1.2rem;
  }
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


