:root{
  /* Graf Orthodontics palette */
  --graf-ink: #2E4A62;
  --graf-ink-2: #35524A;
  --graf-slate: #627C85;
  --graf-brand: #779CAB;  /* main color */
  --graf-surface: #F0F8FF;

  /* App tokens (use these throughout) */
  --ink: var(--graf-ink);
  --muted: var(--graf-slate);
  --bg: #ffffff;
  --soft: var(--graf-surface);
  --brand: var(--graf-brand);
  --border: rgba(46, 74, 98, .14);

  --radius-lg: 20px;
}

*{box-sizing:border-box;}
html{
  scroll-behavior: smooth;
}
html,body{height:100%;}
body{
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji','Segoe UI Emoji';
  color:var(--ink);
  background:var(--bg);
}

.fw-extrabold{font-weight:800;}

.link-muted{
  color:var(--muted);
  text-decoration:none;
}
.link-muted:hover{color:var(--ink); text-decoration:underline;}

/* ===== STICKY HEADER ===== */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: #fff;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.site-header.scrolled{
  box-shadow: 0 2px 20px rgba(46, 74, 98, 0.12);
}

/* Offset body for fixed header */
body{
  padding-top: 110px; /* Adjust based on header height */
}

.site-nav{
  position: relative;
  z-index: 1020;
  background: #fff;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in-up{
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible{
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left{
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible{
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right{
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.visible{
  opacity: 1;
  transform: translateX(0);
}

.scale-in{
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scale-in.visible{
  opacity: 1;
  transform: scale(1);
}

/* Staggered animation delays for children */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.5s; }

/* Fellow-style utility bar */
.topbar{
  background: var(--graf-ink);
  color: rgba(255,255,255,.92);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  padding: .45rem 0;
  font-size: .75rem;
  letter-spacing: 0.03em;
}

.topbar-left{
  display:flex;
  align-items:center;
  gap:24px;
  min-width: 0;
}

.topbar-right{
  display:flex;
  align-items:center;
  gap:24px;
}

.topbar-link{
  color: rgba(255,255,255,.92);
  text-decoration:none;
  font-weight:600;
  white-space:nowrap;
  letter-spacing: 0.02em;
}

.topbar-link:hover{color:#fff; text-decoration:underline;}

.topbar-text{
  color: rgba(255,255,255,.80);
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
}

.topbar-sep{opacity:.45;}

.topbar-cta{
  text-decoration:none;
  font-weight:700;
  letter-spacing:.03em;
  text-transform: uppercase;
  font-size: .72rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  background: rgba(240,248,255,.92);
  color: var(--graf-ink);
  border: 1px solid rgba(240,248,255,.70);
}

.topbar-cta:hover{
  background:#fff;
  color: var(--graf-ink);
}

.navbar{
  --bs-navbar-padding-y: 1.05rem;
}

.navbar-brand{padding: .15rem 0;}

/* Centered logo nav (Fellow-style) */
.site-nav-inner{
  align-items:center;
}

.nav-left,
.nav-right{
  flex: 1 1 0;
  gap: 1.75rem;
}

.nav-left{justify-content: flex-start;}
.nav-right{justify-content: flex-end;}

.brand-center{
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0 !important;
  margin: 0 40px;
}

.brand-center-mark{
  max-width: 180px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.navbar .nav-link{
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .9rem;
  color: var(--graf-ink);
}

.navbar .nav-link:hover{color: var(--graf-ink-2);}

/* Hide dropdown arrow/caret */
.navbar .dropdown-toggle::after{
  display: none;
}

.dropdown-menu{
  border-radius: 16px;
  border: 1px solid var(--border);
}

.dropdown-item{
  font-weight: 700;
}

.dropdown-item:active{
  background: rgba(119,156,171,.18);
  color: var(--graf-ink);
}

.brand-badge{
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(14px 14px at 30% 30%, rgba(119,156,171,.22), transparent 60%),
    linear-gradient(180deg, #ffffff, #f6fbff);
  border: 1px solid var(--border);
  box-shadow: 0 10px 22px rgba(13,19,33,.08);
}

.brand-mark{
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: saturate(1.05) contrast(1.04);
}

.brand-name{font-weight:900; letter-spacing:-0.02em;}



.btn-xs{padding:.35rem .55rem; font-size:.8rem;}

.hero{
  border-bottom:1px solid var(--border);
  background:
    radial-gradient(1200px 420px at 12% 0%, rgba(119,156,171,.22), transparent 60%),
    radial-gradient(900px 360px at 88% 12%, rgba(53,82,74,.10), transparent 55%),
    linear-gradient(180deg, #ffffff, #fbfdff);
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Hero full-bleed background image version (like Fellow) */
.hero-fullbleed{
  position: relative;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-fullbleed::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(120, 140, 160, 0.55);
  z-index: 1;
}

.hero-fullbleed .hero-bg{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  z-index: 0;
}

.hero-fullbleed .container{
  position: relative;
  z-index: 2;
}

.hero-content{
  animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn{
  from{
    opacity: 0;
    transform: translateY(30px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tagline{
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.1;
  font-style: italic;
  color: var(--graf-ink);
  letter-spacing: -0.02em;
}

.hero-tagline-light{
  color: #fff;
}

@media (max-width: 768px){
  .hero-tagline{
    font-size: 2.5rem;
  }
}

.eyebrow{
  display:inline-block;
  padding:.45rem .8rem;
  font-size:.82rem;
  font-weight:700;
  color: var(--graf-ink);
  background: rgba(119,156,171,.18);
  border: 1px solid rgba(119,156,171,.30);
  border-radius:999px;
}

.hero-card{
  position:relative;
  border-radius:1.25rem;
  overflow:hidden;
  box-shadow: 0 18px 40px rgba(13,19,33,.10);
  border:1px solid var(--border);
}

/* Make Bootstrap carousel controls feel more "premium" over photography */
.hero-card .carousel-control-prev,
.hero-card .carousel-control-next{
  width: 48px;
}

.hero-card .carousel-control-prev-icon,
.hero-card .carousel-control-next-icon{
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.20));
}

.hero-image{width:100%; height:440px; object-fit:cover; display:block;}

.hero-card-overlay{
  position:absolute;
  left:16px;
  right:16px;
  bottom:16px;
  padding:14px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  border:1px solid var(--border);
}

.badge-soft{
  display:inline-block;
  font-size:.82rem;
  font-weight:800;
  color:#0b1220;
  margin-bottom:6px;
}

.hero-stats{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:12px;
}

.stat{
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
  background:#fff;
}

.stat-value{font-weight:800;}
.stat-label{color:var(--muted); font-size:.9rem;}

.section{background:transparent;}
.section-soft{background:var(--soft); border-top:1px solid var(--border); border-bottom:1px solid var(--border);}
.section-dark{background:#0b1220; color:#fff; border-top:1px solid #0b1220;}
.section-dark .text-muted{color:rgba(255,255,255,.72) !important;}

.feature-card{
  border:1px solid var(--border);
  border-radius:16px;
  padding:24px;
  background:#fff;
  box-shadow: 0 8px 22px rgba(13,19,33,.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.feature-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(13,19,33,.10);
}

.service-tile{
  display:block;
  text-decoration:none;
  color:inherit;
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  box-shadow: 0 10px 24px rgba(13,19,33,.06);
  padding:24px;
  height:100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-tile:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(13,19,33,.12);
}

.service-tile-top{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:12px;
}

.service-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background: rgba(119,156,171,.16);
  color: var(--graf-ink);
  border: 1px solid rgba(119,156,171,.28);
}

.service-title{font-weight:900; letter-spacing:-0.01em;}
.service-subtitle{color:var(--muted); font-size:.92rem;}
.service-desc{color:var(--muted);}
.service-cta{margin-top:14px; font-weight:800; color: var(--graf-ink);}

.feature-icon{
  width:38px;
  height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background: rgba(119,156,171,.18);
  color: var(--graf-ink);
  font-weight:900;
  margin-bottom:10px;
}

.feature-icon svg{display:block;}

.about-right-image{
  height: 420px;
  object-fit: cover;
}

.review-card{
  border:1px solid var(--border);
  border-radius:20px;
  padding:26px;
  background:#fff;
  max-width:920px;
  margin:0 auto;
}

.blog-card{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  height:100%;
  text-decoration:none;
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  box-shadow: 0 10px 24px rgba(13,19,33,.06);
  padding:18px;
  color:inherit;
}

.blog-card:hover{
  transform: translateY(-2px);
  transition: transform .15s ease;
}

.blog-date{color:var(--muted); font-size:.9rem; margin-bottom:8px;}
.blog-title{font-weight:900; font-size:1.1rem; line-height:1.3; margin-bottom:8px;}
.blog-summary{color:var(--muted);}
.blog-card-cta{margin-top:14px; font-weight:800; color:#1d4ed8;}

.prose p{
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.quote{
  font-size:46px;
  line-height:1;
  color: rgba(119,156,171,.85);
  font-weight:900;
}

.page-hero{
  border-bottom:1px solid var(--border);
  background:linear-gradient(180deg, #ffffff, var(--soft));
}

.form-card{
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  background:#fff;
  box-shadow: 0 10px 24px rgba(13,19,33,.06);
}

.info-card{
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  background:#fff;
  box-shadow: 0 10px 24px rgba(13,19,33,.06);
}

.site-footer{
  background:#0b1220;
  color:#fff;
}

.site-footer .text-muted{
  color: rgba(255,255,255,.72) !important;
}

.site-footer p{
  color: rgba(255,255,255,.72);
}

.site-footer .btn-outline-light{
  --bs-btn-color: rgba(255,255,255,.92);
  --bs-btn-border-color: rgba(255,255,255,.35);
  --bs-btn-hover-bg: rgba(255,255,255,.10);
  --bs-btn-hover-border-color: rgba(255,255,255,.45);
}

.footer-title{font-weight:800; margin-bottom:10px;}
.footer-link{color:rgba(255,255,255,.78); text-decoration:none;}
.footer-link:hover{color:#fff; text-decoration:underline;}

/* Bootstrap primary override */
.btn-primary{
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: #627C85;
  --bs-btn-hover-border-color: #627C85;
  --bs-btn-active-bg: #2E4A62;
  --bs-btn-active-border-color: #2E4A62;
}

@media (max-width: 991px){
  body{
    padding-top: 100px;
  }
  .topbar-left .topbar-text{display:none;}
  .brand-center{margin: 10px 0 0 0;}
  .brand-center-mark{max-width: 150px; max-height: 40px;}
  .nav-left,
  .nav-right{
    flex: 0 0 auto;
    justify-content: flex-start;
  }
  .site-nav-inner{
    gap: 10px;
  }
  .hero-image{height:360px;}
  .photo-stack{min-height:360px;}
  .stack-img-1{width:86%; height:300px;}
  .stack-img-2{width:62%; height:230px;}
  .hero{
    min-height: auto;
    padding: 60px 0;
  }
  .hero-fullbleed{
    min-height: auto;
    padding: 80px 0;
  }
}

/* ===== SECTION STYLING ===== */
.section{
  background:transparent;
  padding: 80px 0;
}

.section-soft{
  background:var(--soft);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.section-dark{
  background: linear-gradient(135deg, var(--graf-ink) 0%, var(--graf-ink-2) 100%);
  color:#fff;
}

.section-dark .text-muted{color:rgba(255,255,255,.72) !important;}

/* ===== ENHANCED TYPOGRAPHY ===== */
.display-tagline{
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-title{
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ===== VIRTUAL CARE SECTION ===== */
.virtual-care-section{
  background: var(--soft);
  position: relative;
  overflow: hidden;
}

.virtual-care-illustration{
  max-width: 400px;
  opacity: 0.9;
}

/* ===== STATS SECTION ===== */
.stats-row{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.stat-item{
  text-align: center;
  padding: 30px 20px;
}

.stat-number{
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--graf-brand);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label{
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
}

/* ===== CTA BANNER ===== */
.cta-banner{
  background: linear-gradient(135deg, var(--graf-brand) 0%, var(--graf-slate) 100%);
  border-radius: 24px;
  padding: 60px 40px;
  color: #fff;
  text-align: center;
}

.cta-banner h2{
  color: #fff;
}

.cta-banner .btn-light{
  background: #fff;
  color: var(--graf-ink);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-banner .btn-light:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

/* ===== LINE ART DECORATION ===== */
.line-art{
  stroke: var(--graf-brand);
  stroke-width: 1.5;
  fill: none;
  opacity: 0.6;
}

/* ===== PARALLAX HELPER ===== */
.parallax-slow{
  will-change: transform;
}

/* ===== BLOB DECORATION ===== */
.blob-decoration{
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  pointer-events: none;
}

.blob-1{
  width: 400px;
  height: 400px;
  background: var(--graf-brand);
  top: -100px;
  right: -100px;
}

.blob-2{
  width: 300px;
  height: 300px;
  background: var(--graf-ink-2);
  bottom: -50px;
  left: -100px;
}
