/* ══════════════════════════════════════════
   MS Dental Works — Complete Site Styles
   ══════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  --navy: #1A2F3F;
  --navy-light: #243D50;
  --blue: #3CC8C8;
  --blue-light: #5DD6D6;
  --blue-glow: #3CC8C8;
  --teal: #3CC8C8;
  --amber: #F59E0B;
  --amber-hover: #D97706;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --gray-50: #F9FAFB;
  --gray-100: #F1F3F5;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --red: #DC2626;
  --red-light: #FEF2F2;
  --green: #059669;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-width: 1200px;
  --section-pad: 80px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.04), 0 10px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(11,29,58,0.15);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--gray-700);
  line-height: 1.7;
  font-size: 16px;
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: var(--transition); -webkit-tap-highlight-color: transparent; }
a:hover { color: var(--blue-light); }
button { -webkit-tap-highlight-color: transparent; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
.text-sm { font-size: 0.9rem; }
.text-gray { color: var(--gray-500); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.text-navy { color: var(--navy); }
.font-heading { font-family: var(--font-heading); }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad) 0; }
.section-sm { padding: 48px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ══════════════════════════════════════
   HEADER & NAVIGATION
   ══════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11, 29, 58, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.header-top {
  background: linear-gradient(90deg, #2BA8A8, #3CC8C8);
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--white);
  text-align: center;
}
.header-top a { color: var(--white); font-weight: 600; }
.header-top a:hover { color: var(--amber); }
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Header: MS mark + text */
.logo-mark {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
}
.logo:hover .logo-mark {
  filter: drop-shadow(0 0 10px rgba(60, 200, 200, 0.35));
  transform: scale(1.03);
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}
.logo-text span {
  color: var(--teal);
}

/* Footer: full logo image */
.footer-brand .logo {
  margin-bottom: 20px;
  gap: 0;
}
.logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(60, 200, 200, 0.12));
}

/* Hide text in footer, hide mark img in footer */
.footer-brand .logo-mark { display: none; }
.footer-brand .logo-text { display: none; }

.logo-icon {
  display: none;
}
.logo span { color: var(--blue-light); }

/* Nav */
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-links .dropdown { position: relative; }
.nav-links .dropdown > a::after { content: ' ▾'; font-size: 0.7rem; opacity: 0.6; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
}
.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  color: var(--gray-700);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.dropdown-menu a:hover { background: var(--gray-50); color: var(--navy); }

/* Phone CTA in nav */
.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy) !important;
  background: var(--teal) !important;
  padding: 10px 20px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  white-space: nowrap;
}
.nav-phone:hover { background: #2BA8A8 !important; color: var(--white) !important; transform: scale(1.03); }

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 999;
  padding: 80px 24px 24px;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  color: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
}
.mobile-menu .sub-link { padding-left: 20px; font-size: 0.95rem; color: rgba(255,255,255,0.7); }
.mobile-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* ══════════════════════════════════════
   HERO SECTIONS
   ══════════════════════════════════════ */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(165deg, #112230 0%, var(--navy) 40%, var(--navy-light) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(60,200,200,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(60,200,200,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  max-width: 750px;
  margin-bottom: 1.25rem;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--teal), #5DD6D6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.95);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-heading);
}
.hero-badge .icon { font-size: 1rem; }

/* Hero for subpages */
.hero-sub {
  padding: 140px 0 60px;
  background: linear-gradient(165deg, #112230, var(--navy), var(--navy-light));
}
.hero-sub h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.75rem; color: var(--white); text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-sub p { font-size: 1.05rem; margin-bottom: 0; color: rgba(255,255,255,0.85); }

/* Emergency hero */
.hero-emergency {
  padding: 140px 0 60px;
  background: linear-gradient(165deg, #1A0A0A, #2D1111, var(--navy));
}
.hero-emergency h1 { color: var(--white); text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-emergency p { color: rgba(255,255,255,0.85); }
.hero-emergency::before {
  background: radial-gradient(circle, rgba(220,38,38,0.1) 0%, transparent 70%);
}
.urgent-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(220,38,38,0.3);
  color: #FCA5A5;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy);
}
.btn-primary:hover { background: var(--amber-hover); color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(245,158,11,0.3); }
.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.btn-blue {
  background: var(--teal);
  color: var(--navy);
}
.btn-blue:hover { background: #2BA8A8; color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(60,200,200,0.3); }
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--navy); }
.btn-emergency {
  background: var(--red);
  color: var(--white);
  font-size: 1.1rem;
  padding: 16px 32px;
}
.btn-emergency:hover { background: #B91C1C; color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(220,38,38,0.3); }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ══════════════════════════════════════
   CARDS
   ══════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(60,200,200,0.1), rgba(60,200,200,0.06));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 0; }

/* Equipment cards */
.equip-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  text-decoration: none;
  display: block;
}
.equip-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: var(--teal); }
.equip-card:hover h3 { color: var(--teal); }
.equip-icon {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: var(--transition);
}
.equip-card:hover .equip-icon { background: linear-gradient(135deg, var(--teal), #2BA8A8); }
.equip-card h3 { font-size: 1rem; color: var(--navy); transition: var(--transition); margin-bottom: 4px; }
.equip-card .text-sm { color: var(--gray-400); font-size: 0.8rem; }

/* Step cards */
.step-card {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-100);
}
.step-card:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--teal), #2BA8A8);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
}
.step-content h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step-content p { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 0; }

/* ══════════════════════════════════════
   CONTENT SECTIONS
   ══════════════════════════════════════ */
.bg-gray { background: var(--off-white); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.8); }

.section-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 12px;
}
.bg-navy .section-label { color: #5DD6D6; }

/* Brighter section labels inside hero areas */
.hero-sub .section-label,
.hero-emergency .section-label,
.hero .section-label {
  color: #5DD6D6;
  text-shadow: 0 0 20px rgba(60, 200, 200, 0.3);
}

.section-header { max-width: 650px; margin-bottom: 48px; }
.section-header.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-header p { color: var(--gray-500); font-size: 1.05rem; }

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 48px 0;
}
.stat-item {
  text-align: center;
  padding: 32px 16px;
  background: rgba(255,255,255,0.03);
}
.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-heading);
  font-weight: 500;
}

/* ══════════════════════════════════════
   CTA SECTIONS
   ══════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(60,200,200,0.15), transparent 70%);
  border-radius: 50%;
}
.cta-banner h2 { color: var(--white); position: relative; z-index: 2; }
.cta-banner p { color: rgba(255,255,255,0.7); position: relative; z-index: 2; max-width: 600px; margin: 0 auto 24px; }
.cta-banner .btn-group { justify-content: center; position: relative; z-index: 2; }

.cta-emergency {
  background: linear-gradient(135deg, #7F1D1D, #991B1B, #450A0A);
}
.cta-emergency::before {
  background: radial-gradient(circle, rgba(220,38,38,0.2), transparent 70%);
}

.cta-phone {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--teal);
  margin: 16px 0;
}

/* Sticky phone bar (mobile) */
.sticky-phone {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--teal);
  color: var(--navy);
  text-align: center;
  padding: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 900;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.sticky-phone a { color: var(--navy); }

/* ══════════════════════════════════════
   FAQ
   ══════════════════════════════════════ */
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--teal); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.faq-question:hover { color: var(--teal); }
.faq-arrow {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  font-size: 0.8rem;
  color: var(--gray-400);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--teal); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ══════════════════════════════════════
   SERVICE LIST
   ══════════════════════════════════════ */
.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--gray-700);
}
.service-list .check { color: var(--teal); font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* Brand list */
.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.brand-tag {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--gray-600);
}

/* ══════════════════════════════════════
   DIFFERENTIATORS
   ══════════════════════════════════════ */
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.diff-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  background: var(--white);
  transition: var(--transition);
}
.diff-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.diff-card .diff-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.diff-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.diff-card p { color: var(--gray-500); font-size: 0.92rem; margin-bottom: 0; }

/* ══════════════════════════════════════
   SERVICE AREA
   ══════════════════════════════════════ */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.city-tag {
  padding: 10px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--gray-700);
  font-family: var(--font-heading);
  font-weight: 500;
  text-align: center;
  border: 1px solid transparent;
  transition: var(--transition);
}
.city-tag:hover { border-color: var(--teal); background: var(--white); color: var(--teal); }

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { max-width: 300px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ══════════════════════════════════════
   UTILITY / ANIMATIONS
   ══════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 6px; }

/* Problem box (for emergency pages) */
.problem-box {
  background: var(--red-light);
  border-left: 4px solid var(--red);
  padding: 24px 28px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 32px;
}
.problem-box p { color: var(--gray-800); font-weight: 500; margin: 0; }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

/* ── Tablet (1024px) ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile (768px) ── */
@media (max-width: 768px) {
  :root { --section-pad: 48px; }
  
  /* Header */
  .nav-links, .nav-phone-desktop { display: none !important; }
  .menu-toggle { display: block; }
  .sticky-phone { display: block; }
  body { padding-bottom: 56px; }
  .header-top { font-size: 0.72rem; padding: 5px 0; }
  .header-top br { display: none; }
  .header-main { padding: 10px 16px; }
  .logo-mark { height: 30px; }
  .logo-text { font-size: 0.65rem; letter-spacing: 0.1em; }

  /* Layout grids */
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .diff-grid { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }

  /* Hero */
  .hero { padding: 120px 0 48px; }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .hero-sub, .hero-emergency { padding: 110px 0 36px; }
  .hero-sub h1 { font-size: 1.5rem; }
  .hero-badges { gap: 8px; }
  .hero-badge { font-size: 0.75rem; padding: 6px 12px; }

  /* Cards */
  .card { padding: 24px; }
  .equip-card { padding: 20px; }
  .equip-icon { width: 56px; height: 56px; font-size: 1.5rem; border-radius: 14px; }
  .diff-card { padding: 20px; }

  /* CTA */
  .cta-banner { padding: 32px 20px; border-radius: var(--radius-sm); }
  .cta-phone { font-size: 1.6rem !important; }

  /* FAQ */
  .faq-question { padding: 16px 18px; font-size: 0.92rem; }
  .faq-answer-inner { padding: 0 18px 16px; font-size: 0.9rem; }

  /* Sections */
  .section { padding: 48px 0; }
  .section-sm { padding: 32px 0; }
  .container { padding: 0 16px; }

  /* Buttons */
  .btn { padding: 12px 22px; font-size: 0.92rem; }
  .btn-lg { padding: 14px 28px; font-size: 1rem; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; justify-content: center; }

  /* Step cards */
  .step-card { gap: 14px; padding: 18px 0; }
  .step-num { width: 38px; height: 38px; font-size: 1rem; border-radius: 10px; }

  /* Breadcrumb */
  .breadcrumb { font-size: 0.78rem; }

  /* Equipment image cards — stack on mobile */
  [style*="display:flex"][style*="min-width:300px"],
  [style*="display:flex"][style*="min-width:280px"] {
    flex-direction: column !important;
  }

  /* Brand logos bar */
  [style*="flex-wrap:wrap"][style*="gap:32px"] {
    gap: 20px !important;
  }

  /* Footer */
  .footer-brand { max-width: 100%; }
  .site-footer { padding: 48px 0 0; }
  .logo-img { height: 48px; }
}

/* ── Small Mobile (480px) ── */
@media (max-width: 480px) {
  .hero { padding: 110px 0 40px; }
  .hero h1 { font-size: 1.5rem; }
  .hero-sub h1 { font-size: 1.3rem; }
  .hero p { font-size: 0.92rem; }
  .hero-badges { flex-direction: column; align-items: flex-start; }
  
  .grid-4 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 1.8rem; }
  .stat-label { font-size: 0.75rem; }
  .stat-item { padding: 20px 12px; }
  
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.05rem; }
  
  .cta-banner { padding: 28px 16px; }
  .cta-phone { font-size: 1.4rem !important; }
  
  .section-header { margin-bottom: 32px; }
  .section-header p { font-size: 0.92rem; }
  
  .logo-mark { height: 26px; }
  .logo-text { font-size: 0.6rem; letter-spacing: 0.08em; }
  
  /* Problem box on emergency pages */
  .problem-box { padding: 18px 20px; }
  
  /* Brand logo bar */
  [style*="flex-wrap:wrap"][style*="gap:32px"] {
    gap: 16px !important;
  }
  [style*="flex-wrap:wrap"][style*="gap:32px"] img {
    height: 22px !important;
  }
  
  /* City grid */
  .city-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .city-tag { padding: 8px 10px; font-size: 0.8rem; }
  
  /* Brand tags */
  .brand-list { gap: 6px; }
  .brand-tag { padding: 4px 10px; font-size: 0.78rem; }
}

/* ── Touch device optimizations ── */
@media (hover: none) {
  .card:hover, .equip-card:hover, .diff-card:hover { 
    transform: none; 
    box-shadow: var(--shadow); 
  }
  .logo:hover .logo-mark { transform: none; filter: none; }
}

/* end of styles */

/* ── Mobile overrides for inline-styled elements ── */
@media (max-width: 768px) {
  /* Equipment image flex cards */
  [style*="min-width:300px"],
  [style*="min-width:280px"] {
    min-width: 100% !important;
    flex: none !important;
    width: 100% !important;
  }
  
  /* Images in equipment cards */
  [style*="height:280px"][style*="object-fit:contain"],
  [style*="height:300px"][style*="object-fit:contain"] {
    height: 200px !important;
  }
  
  /* Team photo and hero images */
  [style*="height:320px"][style*="object-fit:cover"],
  [style*="height:360px"][style*="object-fit:cover"],
  [style*="height:300px"][style*="object-fit:cover"],
  [style*="height:340px"][style*="object-fit:cover"] {
    height: 220px !important;
  }
  [style*="height:280px"][style*="object-fit:cover"] {
    height: 200px !important;
  }
  
  /* Fix grid columns in inline styles */
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix the 2-col grid on about section */
  [style*="gap:48px"][style*="align-items:center"],
  [style*="gap:48px"][style*="align-items:start"] {
    gap: 24px !important;
  }

  /* Mobile menu polish */
  .mobile-menu {
    padding: 72px 20px 100px;
  }
  .mobile-menu a {
    padding: 12px 0;
    font-size: 1rem;
  }
  .mobile-close {
    top: 16px;
    right: 20px;
    font-size: 1.8rem;
  }
  
  /* Sticky phone bar */
  .sticky-phone {
    padding: 12px;
    font-size: 1rem;
  }
  
  /* Dropdown menus — full width on mobile */
  .dropdown-menu {
    position: static;
    min-width: 100%;
    box-shadow: none;
    padding: 0 0 0 16px;
    background: transparent;
  }
  .dropdown-menu a {
    color: rgba(255,255,255,0.6);
    padding: 8px 0;
  }
}

@media (max-width: 480px) {
  /* Even tighter mobile */
  [style*="height:280px"][style*="object-fit:contain"],
  [style*="height:300px"][style*="object-fit:contain"] {
    height: 160px !important;
  }
  
  [style*="height:320px"][style*="object-fit:cover"],
  [style*="height:360px"][style*="object-fit:cover"],
  [style*="height:300px"][style*="object-fit:cover"],
  [style*="height:340px"][style*="object-fit:cover"] {
    height: 180px !important;
  }
  
  /* Padding fixes for inline-styled containers */
  [style*="padding:32px"] {
    padding: 20px !important;
  }
  [style*="padding:40px"] {
    padding: 24px !important;
  }
  [style*="padding:48px"] {
    padding: 28px !important;
  }
}

/* ── Header top bar mobile ── */
@media (max-width: 600px) {
  .header-top .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    line-height: 1.5;
  }
}
