:root{
  --bg: #f7fafc;
  --card: #ffffff;
  --card2: #ffffff;
  --text: #0f172a;
  --muted: rgba(15,23,42,0.65);
  --border: rgba(15,23,42,0.10);
  --shadow: 0 18px 50px rgba(2, 6, 23, 0.10);
  --accent: #2563eb;
  --accent2: #0ea5e9;
  --good: #16a34a;
  --warn: #f59e0b;
  --bad: #ef4444;
  --radius: 18px;
}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 20% 10%, rgba(14,165,233,0.10), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(37,99,235,0.10), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 40%, #f1f5f9 100%);
  min-height:100vh;
}

a{ color:inherit; text-decoration:none; }
.container{ max-width:1100px; margin:0 auto; padding: 22px; }

/* Top bar */
.topbar{
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,23,42,0.08);
  z-index: 50;
}

.topbar-inner{
  display:flex;
  align-items:center;
  gap: 20px;
  padding: 14px 22px;
  max-width:1100px;
  margin:0 auto;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  flex: 0 0 auto;   /* don’t let it stretch weirdly */
  min-width: 0;     /* important so it can shrink if needed */
}
.brand img{
  height: 46px;
  width: auto;
  display:block;
}
.brand h1{
  font-size: 15px;
  margin: 0;
  letter-spacing: 0.3px;
  line-height: 1.1;
}
.brand span{
  display:block;
  font-size: 12px;
  color: rgba(15,23,42,0.65);
  margin-top: 4px;
}

/* Nav stays ONE line */
.nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 18px;
  flex: 1 1 auto;       /* take the middle space */
  flex-wrap: nowrap;    /* KEY: no wrapping */
  white-space: nowrap;  /* KEY: prevent line breaks */
}
.nav a{
  padding: 10px 10px;
  border-radius: 10px;
  color: rgba(15,23,42,0.75);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
}
.nav a:hover{
  color: rgba(15,23,42,0.95);
  border-color: rgba(15,23,42,0.10);
  background: rgba(15,23,42,0.03);
}

/* CTA area */
.cta{
  display:flex;
  align-items:center;
  gap:10px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.pill{
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255,255,255,0.9);
  font-size: 13px;
}

.btn{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,0.25);
  background: var(--accent);
  color: white;
  font-weight: 750;
  font-size: 13px;
  box-shadow: 0 12px 28px rgba(37,99,235,0.22);
}
.btn:hover{ filter: brightness(0.98); }
.btn:active{ transform: translateY(1px); }

/* Photo banner like a real dental site */
.hero-wrap{
  position: relative;
  margin-top: 18px;
}

/* The background photo */
.hero-banner{
  height: 780px;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background:
    linear-gradient(360deg,
      rgba(247,250,252,0.96) 0%,
      rgba(247,250,252,0.88) 14%,
      rgba(247,250,252,0.55) 26%,
      rgba(247,250,252,0.18) 38%,
      rgba(247,250,252,0.05) 50%),
    url("../../media/BrightSmileFrontPage.png");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

/* Place the existing hero cards on top of the banner */
.hero{
  margin-top: -190px;      /* pulls cards upward over the image */
  position: relative;
  z-index: 2;
}

/* Messaging across bottom of banner */
.banner-message{
  position: relative;
  margin-top: -80px;
  z-index: 1;
  text-align: center;
  background: linear-gradient(180deg, rgba(247,250,252,0) 0%, rgba(247,250,252,0.95) 40%, rgba(247,250,252,1) 100%);
  padding: 60px 22px 30px;
  color: var(--text);
}

.banner-message p{
  margin: 0;
  font-weight: 800;
  line-height: 1.05;

  /* responsive: never too huge on mobile, still big on desktop */
  font-size: clamp(22px, 4.2vw, 42px);

  max-width: 22ch;          /* keeps it from getting too wide */
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.5px;
}

/* Make the left card feel like part of the banner area */
.hero-left{
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
}

/* Optional: soften right card too */
.hero-right{
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
}

@media (max-width: 900px){
  .hero-banner{ height: 260px; }
  .hero{ margin-top: -140px; }
}
/* Hero */
.hero{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-top: 18px;
}
@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
  .brand{ min-width: 0; }
  .nav{ display:none; }
}

.card{
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-left{
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.hero-left:before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(600px 240px at 20% 10%, rgba(110,231,255,0.16), transparent 65%),
    radial-gradient(500px 260px at 80% 10%, rgba(167,139,250,0.14), transparent 65%);
  pointer-events:none;
}

.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  position: relative;
  z-index: 1;
}
.dot{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 0 6px rgba(52,211,153,0.12);
}

.hero h2{
  margin: 16px 0 10px;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.8px;
  position: relative;
  z-index: 1;
}
@media (max-width: 520px){
  .hero h2{ font-size: 34px; }
}

.lead{
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 18px;
  position: relative;
  z-index: 1;
  max-width: 56ch;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap: wrap;
  align-items:center;
  position: relative;
  z-index: 1;
}

.btn2{
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-weight: 650;
  font-size: 14px;
}
.btn2:hover{ background: rgba(255,255,255,0.06); }
.btnPrimary{
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(110,231,255,0.35);
  background: linear-gradient(135deg, rgba(110,231,255,0.22), rgba(167,139,250,0.14));
  color: var(--text);
  font-weight: 750;
  font-size: 14px;
}

.micro{
  display:flex;
  gap:14px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  position: relative;
  z-index: 1;
}
.micro span{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.badge{
  width: 18px; height: 18px;
  border-radius: 6px;
  display:inline-grid;
  place-items:center;
  font-size: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
}

/* Right column: appointment card */
.hero-right{
  padding: 22px;
}
.side-title{
  margin: 0 0 10px;
  font-size: 32px;
  letter-spacing: 0.2px;
}
.side-sub{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.info-grid{
  display:grid;
  gap: 10px;
}
.info{
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}
.info label{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.info .value{
  font-weight: 650;
  font-size: 13px;
  line-height: 1.4;
}

.callout{
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(251,191,36,0.35);
  background: rgba(251,191,36,0.08);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

/* Sections */
.section{
  margin-top: 18px;
  padding: 22px;
}
.section h3{
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: 0.2px;
}
.muted{ color: var(--muted); }

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px){
  .grid3{ grid-template-columns: 1fr; }
}

.service{
  padding: 14px;
  border-radius: 16px;
  background: var(--card2);
  border: 1px solid var(--border);
  min-height: 92px;
}
.service strong{
  display:block;
  margin-bottom: 6px;
}
.service p{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 900px){
  .two-col{ grid-template-columns: 1fr; }
}

.list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}

.map{
  height: 220px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    radial-gradient(800px 300px at 20% 50%, rgba(110,231,255,0.10), transparent 60%),
    radial-gradient(800px 300px at 80% 50%, rgba(167,139,250,0.10), transparent 60%);
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  text-align:center;
  padding: 14px;
}

footer{
  margin-top: 20px;
  padding: 24px 0 40px;
  color: rgba(233,238,252,0.6);
  font-size: 12px;
  text-align:center;
}

/* Little helper bubble (presentation hint) */
.hint{
  position: fixed;
  left: 18px;
  bottom: 18px;
  max-width: 320px;
  z-index: 5;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(223, 232, 247,0.72);
  backdrop-filter: blur(10px);
  padding: 12px 12px 10px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}
.hint strong{ display:block; margin-bottom: 6px; font-size: 13px; }
.hint p{ margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.hint .row{ display:flex; gap:8px; margin-top: 10px; }
.hint button{
  border: 1px solid var(--border);
  background: rgba(206, 220, 245,0.04);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
}
.hint button:hover{ background: rgba(206, 220, 245,0.06); }