/* ==========================================================================
   P&P SMILE LTD - Modern Dental Practice Stylesheet
   Company Number: 17423719 | Mansfield, Nottinghamshire, UK
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens & CSS Custom Properties --- */
:root {
  /* Brand Palette */
  --primary: #0284c7;            /* Medical Cerulean Blue */
  --primary-hover: #0369a1;      /* Deep Rich Blue */
  --primary-light: #e0f2fe;      /* Soft Ice Blue */
  --primary-surface: #f0f9ff;    /* Tinted Background */
  --accent-teal: #0d9488;        /* Medical Teal Accent */
  --accent-teal-light: #ccfbf1;  /* Soft Teal Light */
  --accent-teal-dark: #115e59;   /* Deep Teal */

  /* Neutral Slate Palette */
  --navy-950: #09121f;          /* Deepest Slate Navy for Header/Footer/Dark UI */
  --navy-900: #0f172a;          /* Primary Headings */
  --navy-800: #1e293b;          /* Secondary Titles */
  --text-body: #334155;         /* Body Copy with high legibility */
  --text-muted: #64748b;        /* Subtitles & Captions */
  --text-light: #94a3b8;        /* Subtle Disclaimers */
  --text-inverse: #ffffff;      /* White on dark */

  /* Surfaces & Backgrounds */
  --bg-canvas: #f8fafc;         /* Ultra Clean Off-White Page Background */
  --bg-surface: #ffffff;        /* Pure White Card Surface */
  --bg-subtle: #f1f5f9;         /* Soft Section Contrast */
  --bg-glass: rgba(255, 255, 255, 0.88);

  /* Borders & Lines */
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-focus: #0284c7;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 6px 20px -4px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 36px -8px rgba(15, 23, 42, 0.08), 0 6px 12px -4px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 22px 45px -10px rgba(2, 132, 199, 0.14), 0 10px 18px -6px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 30px rgba(2, 132, 199, 0.2);

  /* Layout Spacing */
  --section-padding: 96px 0;
  --section-padding-sm: 64px 0;
  --container-max-width: 1240px;
  --container-padding: 24px;

  /* Transitions */
  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 280ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Global Reset & Normalization --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--bg-canvas);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility: Skip to Content */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--navy-900);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 20px;
  outline: 3px solid var(--primary);
}

/* Base Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.35rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.65rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

/* Focus States */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* --- Container & Grid System --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.section-subtle {
  background-color: var(--bg-subtle);
}

.section-white {
  background-color: #ffffff;
}

.section-dark {
  background-color: var(--navy-950);
  color: #f1f5f9;
}

.section-dark h2, .section-dark h3, .section-dark h4 {
  color: #ffffff;
}

.section-dark p {
  color: #cbd5e1;
}

/* Section Header Styles */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary-hover);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid rgba(2, 132, 199, 0.15);
}

.section-badge-teal {
  background: var(--accent-teal-light);
  color: var(--accent-teal-dark);
  border-color: rgba(13, 148, 136, 0.2);
}

.section-badge-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #38bdf8;
  border-color: rgba(255, 255, 255, 0.15);
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* --- Buttons & Action Elements --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0275b3 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: var(--navy-900);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-canvas);
  border-color: #cbd5e1;
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-white {
  background: #ffffff;
  color: var(--navy-950);
}

.btn-white:hover {
  background: var(--primary-light);
  color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-base);
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  border-bottom-color: rgba(226, 232, 240, 1);
}

.site-header .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  transition: height var(--transition-base);
}

.site-header.is-scrolled .nav-container {
  height: 70px;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy-950);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-logo:hover {
  color: var(--primary);
}

.brand-symbol {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.brand-symbol svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text .brand-name {
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--navy-950);
}

.brand-text .brand-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Desktop Nav Links */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy-800);
  position: relative;
  padding: 8px 2px;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after, .nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 32px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: var(--navy-900);
  z-index: 1001;
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* Mobile Drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 18, 31, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: #ffffff;
  z-index: 999;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: auto;
}

.mobile-drawer-links .nav-link {
  font-size: 1.15rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-footer {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Hero Section --- */
.hero {
  padding-top: 148px;
  padding-bottom: 80px;
  background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(20, 184, 166, 0.05) 60%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-title {
  margin-bottom: 20px;
  color: var(--navy-950);
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-body);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}

.trust-pill svg {
  width: 16px;
  height: 16px;
  color: var(--accent-teal);
}

/* Hero Media / Visual */
.hero-media {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
  background-color: #ffffff;
}

.hero-image-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
}

.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: #ffffff;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.floating-badge-top {
  top: -20px;
  left: -24px;
}

.floating-badge-bottom {
  bottom: -24px;
  right: -20px;
}

.badge-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon-box.teal {
  background: var(--accent-teal-light);
  color: var(--accent-teal-dark);
}

.badge-icon-box svg {
  width: 22px;
  height: 22px;
}

.badge-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-950);
  line-height: 1.2;
}

.badge-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Page Hero (Inner Pages) --- */
.page-hero {
  padding-top: 140px;
  padding-bottom: 64px;
  background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 100%);
  text-align: center;
  position: relative;
}

.page-hero .container {
  max-width: 800px;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* --- Intro / About Preview Section --- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.intro-media {
  position: relative;
}

.intro-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid #ffffff;
}

.intro-image-frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.intro-content h2 {
  margin-bottom: 20px;
}

.intro-content p {
  margin-bottom: 20px;
  color: var(--text-body);
}

.intro-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 32px;
}

.intro-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-800);
}

.intro-feature-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-teal));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(2, 132, 199, 0.25);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all var(--transition-base);
}

.service-card:hover .service-icon-box {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.08);
}

.service-icon-box svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--navy-900);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  margin-top: auto;
}

.service-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* Detailed Services on Services Page */
.services-detailed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.service-detail-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.service-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.service-detail-card h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-detail-card p {
  color: var(--text-body);
  margin-bottom: 20px;
  font-size: 0.98rem;
}

.service-bullets {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.service-bullets li svg {
  width: 14px;
  height: 14px;
  color: var(--accent-teal);
  flex-shrink: 0;
}

/* Service Notice / Disclaimer */
.service-disclaimer-box {
  background: #ffffff;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-top: 48px;
  box-shadow: var(--shadow-sm);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
  color: var(--text-body);
}

/* --- Why Choose Us --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.why-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-teal-light);
  color: var(--accent-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.why-icon svg {
  width: 26px;
  height: 26px;
}

.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Verified Company Info Card --- */
.company-meta-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin: 36px 0;
}

.company-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--primary-hover);
  margin-bottom: 4px;
}

.meta-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-950);
}

/* --- Full Width Smile CTA Section --- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-950) 0%, #0c203b 100%);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.cta-banner h2 {
  color: #ffffff;
  margin-bottom: 16px;
}

.cta-banner p {
  color: #cbd5e1;
  font-size: 1.15rem;
  margin-bottom: 32px;
}

.cta-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* --- Contact Preview & Contact Layout --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.info-card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card-icon svg {
  width: 22px;
  height: 22px;
}

.info-card-body h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--navy-900);
}

.info-card-body p, .info-card-body address {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.5;
}

.info-card-body a {
  font-weight: 600;
}

.practice-overview-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

/* Contact Form */
.contact-form-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.form-label .required-star {
  color: #ef4444;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  font-size: 0.98rem;
  color: var(--navy-950);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-control.is-invalid {
  border-color: #ef4444;
}

.form-feedback {
  font-size: 0.82rem;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}

.form-control.is-invalid + .form-feedback {
  display: block;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-privacy-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.45;
}

.form-privacy-note a {
  text-decoration: underline;
}

.form-medical-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: var(--radius-sm);
  color: #991b1b;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.form-medical-warning svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Form Status Message */
.form-status {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  display: none;
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-status.is-error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Enquiry Success Confirmation Card */
.enquiry-success-card {
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  animation: fadeInSuccess 0.4s ease-out;
}

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

.success-icon-circle {
  width: 60px;
  height: 60px;
  background: #d1fae5;
  border: 2px solid #a7f3d0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: #059669;
}

.success-icon-circle svg {
  width: 30px;
  height: 30px;
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 12px;
}

.success-message {
  font-size: 1.05rem;
  color: #047857;
  margin-bottom: 12px;
  line-height: 1.6;
}

.success-subtext {
  font-size: 0.96rem;
  color: #065f46;
  margin-bottom: 16px;
  line-height: 1.5;
}

.success-note {
  display: inline-block;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #a7f3d0;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: #065f46;
}

/* --- Legal / Content Pages Styling --- */
.legal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 36px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.2rem;
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-content p, .legal-content ul, .legal-content ol {
  font-size: 1rem;
  color: var(--text-body);
  margin-bottom: 18px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-meta-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 32px;
  font-size: 0.92rem;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--navy-950);
  color: #cbd5e1;
  padding-top: 80px;
  padding-bottom: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .brand-logo {
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-brand .brand-text .brand-name {
  color: #ffffff;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.95rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: #38bdf8;
  transform: translateX(3px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: #94a3b8;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: #cbd5e1;
}

.footer-contact-item a:hover {
  color: #38bdf8;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--navy-900);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-base);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* Scroll Animation Helper */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Responsive Media Queries --- */
/* ==========================================================================
   Comprehensive Mobile-First Responsive Styles
   Breakpoints: 1024px (Tablet Landscape), 820px (Tablet Portrait / Mobile)
   320px - 768px (Phones & Small Devices)
   ========================================================================== */

@media (max-width: 1024px) {
  :root {
    --section-padding: 72px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-image-wrapper img {
    height: 380px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 820px) {
  :root {
    --section-padding: 60px 0;
    --container-padding: 20px;
  }

  /* Header & Navigation */
  .desktop-nav, .header-actions .btn {
    display: none;
  }

  .header-actions {
    margin-left: 0;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
  }

  .site-header .nav-container {
    height: 72px;
  }

  .site-header.is-scrolled .nav-container {
    height: 64px;
  }

  /* Section Spacing & Headers */
  .section-header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 36px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .section-header.text-left {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .section-badge {
    margin-left: auto;
    margin-right: auto;
  }

  /* Universal Mobile Card Centering & Consistency */
  .service-card,
  .service-detail-card,
  .why-card,
  .info-card,
  .company-meta-card,
  .practice-overview-card,
  .cta-banner,
  .contact-form-container,
  .legal-content,
  .legal-meta-box,
  .service-disclaimer-box,
  .hero-image-wrapper,
  .intro-image-frame {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    text-align: center;
  }

  /* Icon Centering */
  .service-icon-box,
  .why-icon,
  .info-card-icon,
  .badge-icon-box {
    margin-left: auto;
    margin-right: auto;
  }

  /* Grid Layouts Stack to Single Column */
  .services-grid,
  .services-detailed-grid,
  .why-grid,
  .intro-features,
  .company-meta-grid,
  .contact-info-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
  }

  /* Hero Section Mobile Optimization */
  .hero {
    padding-top: 100px;
    padding-bottom: 52px;
    text-align: center;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(2rem, 7.5vw, 2.65rem);
    text-align: center;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .hero-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 28px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 32px;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 340px;
    min-height: 50px;
  }

  .trust-pills {
    justify-content: center;
    gap: 10px;
    padding-top: 20px;
  }

  .trust-pill {
    justify-content: center;
    font-size: 0.82rem;
    padding: 8px 14px;
  }

  .hero-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-image-wrapper {
    width: 100%;
    border-radius: var(--radius-lg);
  }

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

  .floating-badge {
    position: static;
    margin-top: 14px;
    width: 100%;
    max-width: 340px;
    box-sizing: border-box;
    justify-content: center;
    text-align: left;
  }

  /* Page Hero (Inner Pages) */
  .page-hero {
    padding-top: 100px;
    padding-bottom: 44px;
    text-align: center;
  }

  .page-hero h1 {
    font-size: clamp(1.85rem, 6.5vw, 2.4rem);
    margin-bottom: 12px;
  }

  .page-hero p {
    font-size: 1.05rem;
    margin: 0 auto;
  }

  /* Intro Section */
  .intro-content {
    text-align: center;
  }

  .intro-content h2 {
    font-size: clamp(1.65rem, 5.5vw, 2.1rem);
  }

  .intro-image-frame {
    border-radius: var(--radius-lg);
  }

  .intro-image-frame img {
    height: 260px;
  }

  .intro-features {
    max-width: 360px;
    margin: 24px auto;
  }

  .intro-feature-item {
    font-size: 0.92rem;
    text-align: left;
  }

  .intro-content .btn {
    width: 100%;
    max-width: 320px;
    min-height: 50px;
    margin: 0 auto;
  }

  /* Services Cards (Single Column & Centered) */
  .service-card {
    padding: 28px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .service-card h3 {
    font-size: 1.25rem;
    text-align: center;
  }

  .service-card p {
    font-size: 0.94rem;
    text-align: center;
    margin-bottom: 20px;
  }

  .service-link {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* Detailed Service Cards on Services Page */
  .service-detail-card {
    padding: 28px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .service-detail-card h3 {
    justify-content: center;
    font-size: 1.3rem;
    text-align: center;
  }

  .service-detail-card p {
    font-size: 0.95rem;
    text-align: center;
  }

  .service-bullets {
    width: 100%;
    max-width: 320px;
    margin: 16px auto 0;
    padding-top: 14px;
    text-align: left;
  }

  .service-bullets li {
    font-size: 0.88rem;
  }

  .service-detail-card .btn {
    width: 100%;
    min-height: 48px;
  }

  .service-disclaimer-box {
    padding: 20px 18px;
    text-align: center;
    margin-top: 36px;
  }

  /* Why Choose Us Cards */
  .why-card {
    padding: 28px 22px;
    text-align: center;
  }

  .why-card h3 {
    font-size: 1.2rem;
  }

  .why-card p {
    font-size: 0.93rem;
  }

  /* About Page Official Meta Card */
  .company-meta-card {
    padding: 24px 18px;
    text-align: center;
  }

  .meta-item {
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(186, 230, 253, 0.5);
  }

  .meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* Smile CTA Banner Section */
  .cta-banner {
    padding: 40px 20px;
    text-align: center;
    border-radius: var(--radius-lg);
  }

  .cta-banner-content {
    margin: 0 auto;
    text-align: center;
    max-width: 100%;
  }

  .cta-banner h2 {
    font-size: clamp(1.65rem, 5.5vw, 2.15rem);
    margin-bottom: 14px;
  }

  .cta-banner p {
    font-size: 1.02rem;
    margin-bottom: 28px;
  }

  .cta-banner-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px;
  }

  .cta-banner-buttons .btn {
    width: 100%;
    max-width: 320px;
    min-height: 50px;
  }

  /* Contact / Appointment Booking Cards */
  .info-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 26px 20px;
  }

  .info-card-body {
    text-align: center;
    width: 100%;
  }

  .info-card-body h4 {
    font-size: 1.1rem;
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .info-card-body p, .info-card-body address {
    text-align: center;
    font-size: 0.95rem;
  }

  .info-card-body .btn {
    width: 100%;
    max-width: 280px;
    min-height: 48px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Contact Form Container */
  .contact-form-container {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  .contact-form-container h3,
  .contact-form-container p {
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group {
    text-align: left;
    margin-bottom: 18px;
  }

  .form-control {
    min-height: 48px;
    font-size: 16px; /* Prevents auto-zoom on mobile */
    padding: 12px 14px;
  }

  textarea.form-control {
    min-height: 110px;
  }

  .form-medical-warning {
    text-align: left;
    font-size: 0.83rem;
    padding: 10px 12px;
  }

  .contact-form-container button[type="submit"] {
    min-height: 50px;
    font-size: 1.05rem;
  }

  /* Legal Pages Content */
  .legal-content {
    padding: 28px 18px;
    text-align: left;
  }

  .legal-meta-box {
    padding: 18px 14px;
    text-align: center;
  }

  /* Footer Mobile Optimization */
  .site-footer {
    padding-top: 56px;
    padding-bottom: 32px;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
    margin-bottom: 40px;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand .brand-logo {
    justify-content: center;
  }

  .footer-col {
    text-align: center;
  }

  .footer-links {
    align-items: center;
    text-align: center;
  }

  .footer-links a {
    padding: 4px 0;
  }

  .footer-contact-list {
    align-items: center;
    text-align: center;
  }

  .footer-contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    font-size: 0.84rem;
  }

  /* Floating Back to Top Button */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .hero-desc {
    font-size: 0.98rem;
  }

  .service-card,
  .service-detail-card,
  .why-card,
  .info-card,
  .contact-form-container,
  .cta-banner {
    padding: 24px 16px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}
