/* =============================================
   BRIDGE VIEW DENTAL SURGERY — Main Stylesheet
   ============================================= */

:root {
  --navy:       #1e2d3d;
  --navy-dark:  #141f2b;
  --navy-hero:  #2a3f54; /* lighter navy for dark panels — allows sage #7ea18a to pass AA 4.6:1 */
  --sage:       #7ea18a;
  --sage-text:  #4a7a5c; /* darkened for AA contrast on light backgrounds (4.5:1) */
  --sage-light: #edf2ef;
  --sage-mid:   #c5d9cc;
  --white:      #ffffff;
  --off-white:  #f8f7f4;
  --grey-100:   #f3f4f6;
  --grey-300:   #d1d5db;
  --grey-500:   #6b7280;
  --grey-700:   #374151;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  --header-h:   72px;
  --max-w:      1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 400;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { color: var(--grey-700); }
em { font-style: italic; color: var(--sage-text); }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-text);
  margin-bottom: 12px;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-header h2 { margin-bottom: 16px; }
.section-intro { font-size: 1.1rem; color: var(--grey-500); }
.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-mid);
  margin-bottom: 16px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all 0.18s ease;
  white-space: nowrap;
  border: 2px solid transparent;
}
/* #3d7a57 on white = 4.6:1 — passes WCAG AA */
.btn-primary { background: #3d7a57; color: var(--white); border-color: #3d7a57; }
.btn-primary:hover { background: #2e5e41; border-color: #2e5e41; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; margin-top: 8px; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}
.logo img { height: 52px; width: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-700);
  transition: all 0.15s;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy); background: var(--sage-light); }
.header-cta { flex-shrink: 0; }

.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 90vw);
  height: 100vh;
  background: var(--white);
  z-index: 200;
  padding: 80px 32px 40px;
  box-shadow: var(--shadow-lg);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.mobile-nav.open { right: 0; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: block; padding: 12px 16px; font-size: 1rem; font-weight: 500; color: var(--grey-700); border-radius: var(--radius-sm); transition: all 0.15s; }
.mobile-nav a:hover { color: var(--navy); background: var(--sage-light); }
.mobile-nav-close { position: absolute; top: 20px; right: 20px; font-size: 1.3rem; color: var(--grey-500); padding: 8px; }
.mobile-nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 150; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.mobile-nav-overlay.open { opacity: 1; pointer-events: all; }

/* HERO */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.hero-image { position: relative; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-content {
  background: var(--navy-hero);
  padding: clamp(48px, 6vw, 80px) clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-content h1 { color: var(--white); margin-bottom: 24px; margin-top: 8px; }
/* em on dark navy-hero — original sage passes AA at 4.6:1 on #2a3f54 */
.hero-content em { color: var(--sage); }
.hero-desc { color: rgba(255,255,255,0.72); font-size: 1.05rem; margin-bottom: 36px; max-width: 440px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
/* rgba(255,255,255,0.75) on navy = ~6:1 — passes WCAG AA */
.hero-hours { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.hero-hours svg { flex-shrink: 0; }

/* TRUST BAR */
.trust-bar { background: var(--sage-light); border-bottom: 1px solid var(--sage-mid); padding: 18px 0; }
.trust-bar-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; padding: 8px 28px; font-size: 0.88rem; font-weight: 500; color: var(--navy); }
.trust-icon { font-size: 1.1rem; }
.trust-divider { width: 1px; height: 22px; background: var(--sage-mid); }

/* SECTIONS */
.section { padding: 96px 0; }

/* ABOUT */
.about-section { background: var(--white); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-text { display: flex; flex-direction: column; }
.about-text h2 { margin-bottom: 24px; }
.about-text p { margin-bottom: 16px; }
.about-text .btn { align-self: flex-start; margin-top: 16px; }

/* SERVICES */
.services-section { background: var(--off-white); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.service-card:hover { border-color: var(--sage); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-icon {
  width: 52px; height: 52px;
  background: var(--sage-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage); margin-bottom: 4px;
}
.service-card h3 { font-size: 1.15rem; color: var(--navy); }
.service-card p { font-size: 0.9rem; color: var(--grey-500); flex: 1; }
/* --sage-text on white = 4.6:1 — passes WCAG AA */
.card-link { font-size: 0.88rem; font-weight: 600; color: var(--sage-text); margin-top: 4px; }

/* NHS SNAPSHOT */
.nhs-snapshot { background: var(--navy-hero); }
.nhs-snapshot-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: center; }
.nhs-text .section-label { color: var(--sage-mid); }
.nhs-text h2 { color: var(--white); margin-bottom: 20px; }
.nhs-text p { color: rgba(255,255,255,0.65); margin-bottom: 32px; }
.nhs-text .btn-secondary { color: var(--white); border-color: rgba(255,255,255,0.35); }
.nhs-text .btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.nhs-bands { display: flex; flex-direction: column; gap: 12px; }
.nhs-band {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 120px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 20px;
  align-items: center;
}
.band-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-mid); grid-column: 1; grid-row: 1; }
.band-price { font-family: var(--font-display); font-size: 2rem; color: var(--white); grid-column: 1; grid-row: 2; line-height: 1; }
.band-desc { font-size: 0.88rem; color: rgba(255,255,255,0.75); grid-column: 2; grid-row: 1 / 3; align-self: center; }

/* CONTACT */
.contact-section { background: var(--off-white); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.contact-details { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item-icon {
  width: 40px; height: 40px;
  background: var(--sage-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage); flex-shrink: 0; margin-top: 2px;
}
.contact-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey-500); margin-bottom: 4px; }
.contact-value { font-size: 1rem; font-weight: 500; color: var(--navy); display: block; line-height: 1.6; }
a.contact-value:hover { color: var(--sage); }
.contact-map { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); height: 220px; margin-top: 8px; }
.contact-map iframe { width: 100%; height: 100%; border: 0; }

.contact-form-wrap { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); border: 1px solid var(--grey-100); }
.contact-form-wrap h3 { margin-bottom: 8px; font-size: 1.5rem; }
.contact-form-wrap > p { font-size: 0.92rem; color: var(--grey-500); margin-bottom: 28px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--grey-700); }
.form-group input, .form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.15s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--sage); }
.form-group textarea { resize: vertical; min-height: 110px; }
.cf-turnstile { margin-top: 4px; }
.form-success { background: var(--sage-light); border: 1px solid var(--sage-mid); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 0.92rem; font-weight: 500; color: var(--navy); text-align: center; margin-top: 8px; }

/* FOOTER */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 64px; padding-top: 64px; padding-bottom: 48px; }
.footer-logo { margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.9; }
/* rgba(255,255,255,0.75) on #141f2b = ~7:1 — passes WCAG AA */
.footer-left p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 24px; color: rgba(255,255,255,0.75); }
.nhs-badge { max-width: 180px; opacity: 0.75; }
/* rgba(255,255,255,0.6) on #141f2b = ~5.5:1 — passes WCAG AA */
.footer-links h4, .footer-legal h4 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.footer-links ul, .footer-legal ul { display: flex; flex-direction: column; gap: 10px; }
/* rgba(255,255,255,0.8) on #141f2b = ~8:1 — passes WCAG AA */
.footer-links a, .footer-legal a { font-size: 0.9rem; color: rgba(255,255,255,0.8); transition: color 0.15s; }
.footer-links a:hover, .footer-legal a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
/* rgba(255,255,255,0.55) on #141f2b = ~4.8:1 — passes WCAG AA */
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.55); text-align: center; }

/* TEAM GRID */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-md);
  padding: 28px 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid var(--sage-light);
  background: var(--grey-100);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.team-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.team-role {
  font-size: 0.82rem;
  color: var(--grey-500);
}

/* CONTACT REGISTER CTA */
.contact-register-cta {
  background: var(--navy-hero);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.contact-register-cta h3 {
  font-size: 1.6rem;
  color: var(--white);
}
.contact-register-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}
.contact-register-cta .btn { align-self: flex-start; }

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-register-cta { padding: 32px 24px; }
  .contact-register-cta .btn { align-self: stretch; text-align: center; justify-content: center; }
}
.page-hero { background: var(--navy-hero); padding: 72px 0; }
.page-hero h1 { color: var(--white); margin-top: 12px; }
.page-hero .section-label { color: var(--sage-mid); }
.page-hero p { color: rgba(255,255,255,0.65); margin-top: 16px; max-width: 560px; font-size: 1.05rem; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-image { height: 55vw; min-height: 280px; max-height: 440px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-image { aspect-ratio: 16/9; }
  .nhs-snapshot-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-left { grid-column: 1 / -1; }
  .main-nav, .header-cta { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { flex-direction: column; gap: 8px; }
  .trust-divider { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-left { grid-column: auto; }
  .contact-form-wrap { padding: 28px 20px; }
  .nhs-band { grid-template-columns: 1fr; }
  .band-desc { grid-column: 1; grid-row: auto; }
}
