/*
Theme Name: Dental Bookkeeper Pro
Theme URI: https://dentalbookkeeper.ca
Author: Dental Bookkeeper Canada
Author URI: https://dentalbookkeeper.ca
Description: Professional single-page WordPress theme for Dental Bookkeeper — specialized dental-only bookkeeping services in Canada. Optimized for Mississauga, Toronto, and Vancouver dental practices.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-page, business, professional, dental, bookkeeping, canada
Text Domain: dental-bookkeeper-pro
*/

/* =============================================
   ROOT VARIABLES & RESET
   ============================================= */
:root {
  /* ── bkeep.ca exact palette ── */
  --amber:         #cd8e33;
  --amber-dark:    #b37a28;
  --amber-light:   #e0a84d;
  --gold-2:        #c8a12e;
  --teal:          #0c373c;
  --teal-mid:      #0f4a50;
  --slate:         #1e293b;
  --slate-mid:     #334155;
  --cream:         #fdf8f1;
  --cream-2:       #f5efe4;
  --white:         #ffffff;
  --light-gray:    #e8e4dc;
  --mid-gray:      #9ca3af;
  --text-dark:     #1e293b;
  --text-med:      #475569;
  --text-light:    #94a3b8;
  --border-light:  #e2ddd4;
  --border-dark:   rgba(255,255,255,0.10);
  --shadow-sm:     0 2px 12px rgba(30,41,59,0.08);
  --shadow-md:     0 8px 32px rgba(30,41,59,0.14);
  --shadow-lg:     0 20px 60px rgba(30,41,59,0.20);
  --radius:        10px;
  --radius-lg:     18px;
  --transition:    all 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-heading:  'Inter', 'Segoe UI', sans-serif;
  --font-body:     'Inter', 'Segoe UI', sans-serif;
  --max-width:     1160px;
  /* semantic aliases */
  --primary:       #1e293b;
  --primary-dark:  #0f172a;
  --primary-light: #334155;
  --accent:        #cd8e33;
  --accent-dark:   #b37a28;
  --accent-light:  #e0a84d;
  --dark:          #0c373c;
  --surface:       #0c373c;
  --surface-2:     #0f4a50;
  --off-white:     #fdf8f1;
  --text-body:     #1e293b;
  --text-muted:    #475569;
  --border:        rgba(255,255,255,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--accent-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  color: var(--slate);
  line-height: 1.25;
  font-weight: 700;
}

ul { list-style: none; }

/* =============================================
   LAYOUT HELPERS
   ============================================= */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  margin-bottom: 18px;
  color: var(--primary);
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(205,142,51,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--slate);
  border-color: var(--light-gray);
}
.btn-outline:hover {
  background: var(--slate);
  color: var(--white);
  border-color: var(--slate);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =============================================
   TOP BAR
   ============================================= */
#top-bar {
  background: var(--amber);
  color: rgba(255,255,255,0.95);
  font-size: 0.82rem;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

#top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.95);
}

.top-bar-item svg { flex-shrink: 0; }
.top-bar-item a { color: var(--white); font-weight: 600; }
.top-bar-item a:hover { color: var(--white); }

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  box-shadow: 0 1px 0 var(--border-light);
  transition: var(--transition);
}

#site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text .brand-name {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--slate);
  display: block;
  line-height: 1.2;
}

.logo-text .brand-tagline {
  font-size: 0.7rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

#main-nav { display: flex; align-items: center; gap: 4px; }

#main-nav a {
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate);
  border-radius: 6px;
  transition: var(--transition);
}

#main-nav a:hover,
#main-nav a.active {
  color: var(--amber);
  background: rgba(205,142,51,0.07);
}

.header-cta { flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   HERO / BANNER
   ============================================= */
#hero {
  position: relative;
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-2) 100%);
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* WordPress featured image / custom field image placeholder */
.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

/* Decorative pattern overlay */
.hero-overlay {
  display: none;
}

.hero-decor {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: rgba(205,142,51,0.07);
  z-index: 1;
}

.hero-decor-2 {
  position: absolute;
  right: 80px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(200,151,58,0.07);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 80px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(205,142,51,0.12);
  border: 1px solid rgba(205,142,51,0.3);
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--slate);
  margin-bottom: 22px;
  line-height: 1.18;
}

.hero-title .highlight {
  color: var(--accent);
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-med);
  margin-bottom: 36px;
  line-height: 1.75;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-med);
  font-size: 0.88rem;
}

.trust-item svg { color: var(--amber); flex-shrink: 0; }

/* =============================================
   MOBILE MENU — hidden by default on all screen sizes
   ============================================= */
#mobile-menu {
  display: none;
}

/* =============================================
   STATS BAR
   ============================================= */
#stats-bar {
  background: var(--teal);
  padding: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =============================================
   ABOUT / WHO WE ARE
   ============================================= */
#about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

/* WP Add Media placeholder styling */
.img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--off-white), var(--light-gray));
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--mid-gray);
  font-size: 0.88rem;
  border: 2px dashed var(--light-gray);
  gap: 10px;
  overflow: hidden;
}

.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--amber);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-badge .badge-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.about-badge .badge-text {
  font-size: 0.76rem;
  opacity: 0.9;
  font-weight: 600;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 32px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.97rem;
  color: var(--text-body);
}

.about-list li svg {
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 3px;
}

/* =============================================
   SERVICES
   ============================================= */
#services {
  background: var(--cream-2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--light-gray);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--amber);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--teal), var(--teal-mid));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.service-icon svg { color: var(--white); }

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

.service-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: var(--off-white);
  color: var(--primary);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--light-gray);
}

/* =============================================
   WHY CHOOSE US
   ============================================= */
#why-us {
  background: var(--cream);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why-image-wrap { order: 2; }

.why-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
}

.why-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.why-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: rgba(205,142,51,0.10);
  border: 1px solid rgba(205,142,51,0.22);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-icon svg { color: var(--amber); }

.why-item h4 {
  font-size: 1.03rem;
  margin-bottom: 6px;
  color: var(--primary);
}

.why-item p {
  font-size: 0.91rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =============================================
   REGIONS / SERVICE AREAS
   ============================================= */
#service-areas {
  background: linear-gradient(135deg, #0a2e32 0%, var(--teal) 100%);
  position: relative;
  overflow: hidden;
}

.areas-decor {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(0,194,168,0.12) 0%, transparent 50%),
                    radial-gradient(circle at 20% 80%, rgba(200,151,58,0.08) 0%, transparent 50%);
}

.areas-content { position: relative; z-index: 1; }

#service-areas .section-title { color: var(--white); }
#service-areas .section-subtitle { color: rgba(255,255,255,0.78); }

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.area-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.area-card:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-4px);
}

.area-icon {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.area-icon svg { color: var(--white); }

.area-card h3 {
  color: var(--white);
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.area-card p {
  color: rgba(255,255,255,0.72);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

.area-suburbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.suburb-tag {
  background: rgba(0,194,168,0.2);
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0,194,168,0.3);
}

/* =============================================
   PROCESS
   ============================================= */
#process {
  background: var(--cream-2);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 50px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 34px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--teal));
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 68px;
  height: 68px;
  background: var(--white);
  border: 3px solid var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.step-card h3 {
  font-size: 1.06rem;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
#testimonials {
  background: var(--cream);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.testimonial-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--amber);
  font-family: Georgia, serif;
  margin-bottom: 12px;
  opacity: 0.5;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

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

.stars {
  color: var(--amber);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* =============================================
   FAQ SECTION
   ============================================= */
#faq {
  background: var(--cream-2);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 50px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  gap: 12px;
  transition: var(--transition);
  background: var(--white);
  border: none;
  width: 100%;
  text-align: left;
}

.faq-question:hover {
  background: var(--off-white);
}

.faq-question .faq-icon {
  width: 28px;
  height: 28px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--amber);
  font-size: 1.2rem;
  transition: var(--transition);
}

.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--amber); color: var(--white); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 24px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 24px 22px;
}

/* =============================================
   CTA SECTION
   ============================================= */
#cta-section {
  background: linear-gradient(135deg, var(--amber-dark) 0%, var(--amber) 60%, var(--amber-light) 100%);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

#cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 50%, rgba(0,194,168,0.15) 0%, transparent 60%),
                    radial-gradient(circle at 70% 50%, rgba(200,151,58,0.10) 0%, transparent 60%);
}

.cta-inner { position: relative; z-index: 1; }

#cta-section .section-title { color: var(--white); margin-bottom: 16px; font-weight: 800; }

.cta-subtitle {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--slate);
  color: rgba(255,255,255,0.72);
}

.footer-main {
  padding: 70px 0 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.footer-brand .brand-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}

.footer-brand .brand-tagline {
  font-size: 0.75rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  display: block;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 290px;
  color: rgba(255,255,255,0.6);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}

.footer-contact-item svg { color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,0.75); }
.footer-contact-item a:hover { color: var(--accent); }

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 18px;
  font-family: var(--font-heading);
}

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

.footer-links a {
  color: rgba(255,255,255,0.62);
  font-size: 0.87rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--amber);
  padding-left: 6px;
}

.footer-about-text {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer-legal-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  cursor: pointer;
}

.footer-legal-links a:hover { color: var(--amber); }

/* =============================================
   LEAD FORM POPUP
   ============================================= */
#lead-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#lead-popup.active { display: flex; }

.popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7,42,78,0.85);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.popup-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  z-index: 1;
  animation: popIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.88) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--off-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-light);
  transition: var(--transition);
}

.popup-close:hover { background: var(--light-gray); }

.popup-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.popup-title {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.popup-subtitle {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.6;
}

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

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--light-gray);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--text);
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(205,142,51,0.12);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-submit {
  width: 100%;
  padding: 15px;
  background: var(--amber);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
}

.form-submit:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(205,142,51,0.35);
}

.form-privacy {
  text-align: center;
  font-size: 0.75rem;
  color: var(--mid-gray);
  margin-top: 12px;
}

.form-success {
  text-align: center;
  padding: 20px 0;
}

.form-success .success-icon {
  width: 70px;
  height: 70px;
  background: rgba(0,194,168,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--accent);
}

/* =============================================
   LEGAL POPUP (Privacy / Terms)
   ============================================= */
#legal-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#legal-popup.active { display: flex; }

.legal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7,42,78,0.82);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.legal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.3s ease both;
}

.legal-header {
  position: sticky;
  top: 0;
  background: var(--white);
  padding: 28px 36px 20px;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.legal-header h3 { color: var(--primary); font-size: 1.35rem; }

.legal-close {
  width: 36px;
  height: 36px;
  background: var(--off-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-light);
  transition: var(--transition);
  flex-shrink: 0;
}

.legal-close:hover { background: var(--light-gray); }

.legal-body {
  padding: 28px 36px 36px;
  font-size: 0.91rem;
  color: var(--text);
  line-height: 1.8;
}

.legal-body h4 {
  color: var(--primary);
  margin: 22px 0 8px;
  font-size: 1.02rem;
}

.legal-body p { margin-bottom: 14px; }
.legal-body ul { list-style: disc; padding-left: 20px; margin-bottom: 14px; }
.legal-body ul li { margin-bottom: 6px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid .testimonial-card:last-child { display: none; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  #main-nav, .header-cta { display: none; }

  .hamburger { display: flex; }

  #mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 8000;
    flex-direction: column;
    padding: 80px 30px 40px;
    gap: 6px;
  }

  #mobile-menu.open { display: flex; }

  #mobile-menu a {
    display: block;
    padding: 14px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid var(--light-gray);
  }

  .mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--off-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
  }

  .about-grid,
  .why-grid { grid-template-columns: 1fr; gap: 40px; }

  .why-image-wrap { order: 0; }

  .areas-grid { grid-template-columns: 1fr; }

  .faq-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,0.2); }
  .stat-item:last-child { border-bottom: none; }

  .hero-actions { flex-direction: column; align-items: flex-start; }

  .top-bar-left { display: none; }

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

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

  .popup-box { padding: 32px 24px; }
  .legal-body { padding: 20px 24px 28px; }
  .legal-header { padding: 22px 24px 16px; }

  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-grid .testimonial-card:last-child { display: block; }
  .process-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { padding: 60px 0; }
}

/* =============================================
   UTILITY / ANIMATIONS
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.scroll-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--amber);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 500;
}

.scroll-to-top.visible { opacity: 1; pointer-events: auto; }
.scroll-to-top:hover { background: var(--amber-dark); transform: translateY(-3px); }

/* =============================================
   FINANCIAL IMPACT SECTION
   ============================================= */
#financial-impact {
  background: var(--cream-2);
  padding: 90px 0;
}

#financial-impact .section-label { color: var(--amber); }
#financial-impact .section-title { color: var(--slate); }
#financial-impact .section-subtitle { color: var(--text-med); }

.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 50px;
}

.impact-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.impact-card.after-card {
  border-color: rgba(205,142,51,0.3);
  background: linear-gradient(145deg, #fff, rgba(205,142,51,0.04));
}

.impact-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.impact-card-badge.before { background: var(--cream-2); color: var(--text-med); }
.impact-card-badge.after  { background: rgba(205,142,51,0.12); color: var(--amber); }

.impact-revenue-label {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 6px;
  font-weight: 500;
}

.impact-revenue-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--slate);
  margin-bottom: 6px;
  line-height: 1;
}

.impact-revenue-change {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 28px;
}

.impact-expenses-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
}

.expense-row { margin-bottom: 14px; }

.expense-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.expense-name { font-size: 0.88rem; font-weight: 600; color: var(--slate); }
.expense-pct  { font-size: 0.88rem; font-weight: 700; color: var(--slate); }
.expense-pct.over { color: #fc8181; }
.expense-pct.good { color: var(--accent); }

.expense-bar-track {
  width: 100%;
  height: 7px;
  background: var(--light-gray);
  border-radius: 4px;
  overflow: hidden;
}

.expense-bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
  background: var(--text-light);
}

.expense-bar-fill.over { background: #fc8181; }
.expense-bar-fill.good { background: var(--amber); }
.expense-bar-fill.animated { width: var(--bar-width); }

.expense-note {
  font-size: 0.76rem;
  color: var(--text-light);
  margin-top: 5px;
  line-height: 1.5;
}

.impact-summary {
  margin-top: 32px;
  padding: 22px 24px;
  background: rgba(205,142,51,0.07);
  border: 1px solid rgba(205,142,51,0.2);
  border-radius: var(--radius);
}

.impact-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.impact-summary-row:last-child { margin-bottom: 0; }
.impact-summary-label { color: var(--text-light); }
.impact-summary-value { color: var(--amber); font-weight: 700; }

.impact-notes {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--cream);
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
}

.impact-notes p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.65;
  font-style: italic;
}

.impact-cta { text-align: center; margin-top: 44px; }
.impact-cta p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 18px; }

/* =============================================
   CAL.COM BOOKING SECTION
   ============================================= */
#booking {
  background: var(--slate);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

#booking::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(79,209,197,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(26,43,74,0.8) 0%, transparent 50%);
}

.booking-inner { position: relative; z-index: 1; }
#booking .section-label { color: var(--amber); }
#booking .section-title { color: var(--white); }

.booking-intro {
  color: rgba(255,255,255,0.72);
  font-size: 1.08rem;
  max-width: 580px;
  margin: 0 auto 14px;
  line-height: 1.7;
}

.booking-perks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 44px;
}

.booking-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}

.booking-perk svg { color: var(--amber); flex-shrink: 0; }

.cal-embed-wrapper {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 500px;
}

.cal-embed-wrapper iframe {
  width: 100%;
  min-height: 620px;
  border: none;
  display: block;
}

/* Inline cal.com script embed */
#cal-booking-embed {
  width: 100%;
  min-height: 600px;
  background: var(--white);
  border-radius: var(--radius-lg);
}

.cal-new-window-link {
  text-align: center;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.cal-new-window-link a { color: var(--accent); }
.cal-new-window-link a:hover { color: var(--accent-light); }

@media (max-width: 768px) {
  .impact-grid { grid-template-columns: 1fr; }
}

/* =============================================
   HERO P&L WIDGET
   ============================================= */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}

.hero-content { padding: 0; }

.pnl-widget {
  position: relative;
  z-index: 2;
}

.pnl-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(30,41,59,0.14), 0 2px 8px rgba(30,41,59,0.06);
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition: transform 0.4s cubic-bezier(0.34,1.3,0.64,1), box-shadow 0.4s ease;
  cursor: default;
}

.pnl-card:hover {
  transform: translateY(-10px) scale(1.025);
  box-shadow: 0 24px 64px rgba(30,41,59,0.20), 0 4px 16px rgba(30,41,59,0.10);
}

.pnl-header {
  background: var(--teal);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pnl-header-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
}

.pnl-header-badge {
  background: var(--amber);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pnl-body { padding: 20px; }

.pnl-revenue-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--light-gray);
}

.pnl-revenue-label {
  font-size: 0.78rem;
  color: var(--text-med);
  margin-bottom: 4px;
}

.pnl-revenue-amount {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--slate);
  line-height: 1;
}

.pnl-revenue-change {
  text-align: right;
}

.pnl-change-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(205,142,51,0.12);
  color: var(--amber-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 4px;
}

.pnl-change-label {
  font-size: 0.7rem;
  color: var(--text-light);
}

.pnl-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 12px;
}

.pnl-expense-row {
  margin-bottom: 10px;
}

.pnl-expense-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 0.8rem;
}

.pnl-expense-name { color: var(--slate); font-weight: 500; }

.pnl-expense-pct { font-weight: 700; }
.pnl-expense-pct.ok   { color: var(--teal); }
.pnl-expense-pct.warn { color: #e07a2b; }

.pnl-bar-track {
  width: 100%;
  height: 6px;
  background: var(--light-gray);
  border-radius: 3px;
  overflow: hidden;
}

.pnl-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1.4s cubic-bezier(0.4,0,0.2,1);
  width: 0;
}

.pnl-bar-fill.ok   { background: var(--teal); }
.pnl-bar-fill.warn { background: #e07a2b; }
.pnl-bar-fill.animated { width: var(--w); }

.pnl-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3px;
}

.pnl-status {
  font-size: 0.68rem;
  font-weight: 600;
}

.pnl-status.ok   { color: var(--teal); }
.pnl-status.warn { color: #e07a2b; }

.pnl-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--light-gray);
  background: rgba(205,142,51,0.05);
  margin: 14px -20px -20px;
  padding: 14px 20px;
  border-radius: 0 0 16px 16px;
}

.pnl-footer-note {
  font-size: 0.75rem;
  color: var(--text-med);
  line-height: 1.5;
}

.pnl-footer-note strong { color: var(--amber-dark); }

.pnl-footer-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-light);
  margin-top: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0;
  }
  .pnl-widget { max-width: 460px; margin: 0 auto; }
}


/* Container Reset */
.lead-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

/* The Grid - Creates 2 columns and skips over CF7's <p> and <span> tags */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Make fields span full width on small screens */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Target the inputs directly regardless of wrappers */
.lead-form-container input:not([type="submit"]),
.lead-form-container select,
.lead-form-container textarea {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    color: #1f2937 !important;
    background-color: #f9fafb !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease;
}

/* Hover & Focus Effects */
.lead-form-container input:focus,
.lead-form-container textarea:focus {
    background-color: #fff !important;
    border-color: #2563eb !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
}

/* Full width fields (Practice Name and Message) */
.form-grid span:nth-child(5), /* Targets the 5th field (Practice Name) */
.form-full-width {
    grid-column: 1 / -1;
}

/* Textarea height */
.lead-form-container textarea {
    min-height: 120px;
    margin-top: 15px;
}

/* Modern Submit Button */
.lead-form-container .form-submit {
    width: 100%;
    margin-top: 20px;
    padding: 16px !important;
    background: #2563eb !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background 0.3s ease, transform 0.2s active !important;
}

.lead-form-container .form-submit:hover {
    background: #1d4ed8 !important;
}

.lead-form-container .form-submit:active {
    transform: scale(0.98);
}

/* Privacy Text */
.form-privacy {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-top: 15px;
}