/* ================================================================

   Senior Protection AI — Main Stylesheet (Bright Redesign)

   Design Philosophy: "Trusted Warmth with AI Intelligence"



   Brand Colors (from SeniorProtection.ca):

   - Deep Purple:  #35265F  (headings, logo, nav)

   - Crimson Red:  #CD2134  (CTAs, urgency, accents)

   - Hero Gradient: linear-gradient(150deg, #35265F 0%, #CD2134 100%)

   - Rose/Dark CTA: #952343

   - Light BG:     #F7F9FB / #F2F9FB

   - White:        #FFFFFF



   Design Principles:

   - Bright white/light backgrounds for senior readability

   - 18px base font size — larger than typical for aging eyes

   - High contrast: dark purple on white, white on gradient

   - Gradient used as accent/hero overlay, NOT full-page dark bg

   - AI feel via subtle gradient borders, glow accents, circuit watermarks

   ================================================================ */



/* ── Variables ─────────────────────────────────────────────────── */

:root {

  /* Brand palette from seniorprotection.ca */

  --purple:         #35265F;

  --purple-dark:    #180E33;

  --purple-mid:     #4A3575;

  --purple-light:   #6B52A0;

  --crimson:        #CD2134;

  --crimson-hover:  #A81A2B;

  --rose:           #952343;

  --magenta:        #652451;



  /* Signature gradient */

  --gradient-brand: linear-gradient(150deg, #35265F 0%, #CD2134 100%);

  --gradient-soft:  linear-gradient(150deg, rgba(53,38,95,0.08) 0%, rgba(205,33,52,0.08) 100%);

  --gradient-hero:  linear-gradient(150deg, rgba(53,38,95,0.92) 0%, rgba(205,33,52,0.85) 100%);

  --gradient-card:  linear-gradient(135deg, #35265F 0%, #652451 50%, #CD2134 100%);



  /* AI accent (subtle violet glow) */

  --ai-glow:        rgba(107,82,160,0.15);

  --ai-border:      rgba(53,38,95,0.15);



  /* Backgrounds */

  --bg-white:       #FFFFFF;

  --bg-light:       #F7F9FB;

  --bg-lighter:     #F2F9FB;

  --bg-gray:        #F0F0F4;

  --bg-purple-tint: rgba(53,38,95,0.04);



  /* Text */

  --text-dark:      #1A1230;

  --text-body:      #3D3456;

  --text-muted:     #6B6285;

  --text-light:     #9B94B8;



  /* UI */

  --border:         #E2DFF0;

  --border-strong:  rgba(53,38,95,0.2);

  --shadow-sm:      0 2px 8px rgba(53,38,95,0.08);

  --shadow-md:      0 4px 20px rgba(53,38,95,0.12);

  --shadow-lg:      0 8px 40px rgba(53,38,95,0.16);

  --shadow-card:    0 2px 16px rgba(53,38,95,0.1);

  --glow-crimson:   0 4px 20px rgba(205,33,52,0.3);



  /* Typography */

  --font-display:   'Poppins', sans-serif;

  --font-body:      'Poppins', sans-serif;



  /* Sizing */

  --radius:         6px;

  --radius-lg:      12px;

  --radius-xl:      18px;

  --transition:     0.22s ease;

}



/* ── Reset & Base ───────────────────────────────────────────────── */

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

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

body {

  font-family: var(--font-body);

  background: var(--bg-white);

  color: var(--text-body);

  line-height: 1.75;

  overflow-x: hidden;

}

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

a { color: var(--purple); text-decoration: none; transition: color var(--transition); }

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



h1, h2, h3, h4, h5 {

  font-family: var(--font-display);

  color: var(--purple);

  line-height: 1.2;

  font-weight: 700;

}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }

h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }

h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }

h4 { font-size: 1.1rem; }

h5 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }

p { color: var(--text-body); font-size: 1rem; }

ul { list-style: none; }

select, input, textarea { font-family: var(--font-body); }



/* ── Utilities ──────────────────────────────────────────────────── */

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

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

.text-purple { color: var(--purple); }

.text-crimson { color: var(--crimson); }

.text-white { color: #fff; }



.gradient-text {

  background: var(--gradient-brand);

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  background-clip: text;

}



/* AI circuit watermark pattern */

.ai-pattern {

  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(53,38,95,0.05)' stroke-width='1'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3Cline x1='0' y1='30' x2='60' y2='30'/%3E%3Cline x1='30' y1='0' x2='30' y2='60'/%3E%3C/g%3E%3C/svg%3E");

}



/* ── Fade-in Animations ─────────────────────────────────────────── */

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }

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



/* ── Buttons ────────────────────────────────────────────────────── */

.btn {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 0.5rem;

  padding: 0.8rem 1.8rem;

  border-radius: var(--radius);

  font-family: var(--font-display);

  font-weight: 600;

  font-size: 1rem;

  border: 2px solid transparent;

  cursor: pointer;

  transition: all var(--transition);

  text-decoration: none;

  white-space: nowrap;

  letter-spacing: 0.01em;

  text-align: center;

}

.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

.btn-sm { padding: 0.7rem 1.5rem; font-size: 0.9rem; min-width: 200px; text-align: center; white-space: normal; }


.btn-crimson {

  background: var(--crimson);

  color: #fff;

  border-color: transparent;

}

.btn-crimson:hover {

  transform: translateY(-2px);

  box-shadow: 0 8px 30px rgba(205,33,52,0.4);

  color: #fff;

  filter: brightness(1.08);

}



.btn-purple {

  background: var(--purple);

  color: #fff;

  border-color: var(--purple);

}

.btn-purple:hover {

  background: var(--purple-mid);

  border-color: var(--purple-mid);

  transform: translateY(-2px);

  color: #fff;

  box-shadow: 0 6px 24px rgba(53,38,95,0.3);

}



.btn-outline {

  background: transparent;

  color: var(--purple);

  border-color: var(--purple);

}

.btn-outline:hover {

  background: var(--purple);

  color: #fff;

  transform: translateY(-2px);

}



.btn-outline-white {

  color: #fff;

  border-color: rgba(255,255,255,0.85);

  text-shadow: 0 1px 3px rgba(0,0,0,0.3);

}

.btn-outline-white:hover {

  background: rgba(255,255,255,0.28);

  border-color: #fff;

  color: #fff;

  transform: translateY(-2px);

}



.btn-outline-crimson {

  background: transparent;

  color: var(--crimson);

  border-color: var(--crimson);

}

.btn-outline-crimson:hover {

  background: var(--crimson);

  color: #fff;

  transform: translateY(-2px);

}



/* ── Top Bar ────────────────────────────────────────────────────── */
.top-bar {
  background: var(--gradient-brand);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  position: relative;
  z-index: 1001;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  gap: 1rem;
  padding: 0 1rem;
}

.top-bar-contact {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar-language {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.top-bar strong { color: #fff; }
.top-bar a { color: #FFE0A0; font-weight: 700; text-decoration: underline; }
.top-bar a:hover { color: #fff; }



/* ── Site Header ────────────────────────────────────────────────── */

.site-header {

  position: sticky;

  top: 0;

  z-index: 1000;

  background: rgba(255,255,255,0.97);

  backdrop-filter: blur(16px);

  -webkit-backdrop-filter: blur(16px);

  border-bottom: 2px solid var(--border);

  box-shadow: var(--shadow-sm);

  transition: box-shadow var(--transition), border-color var(--transition);

}

.site-header.scrolled {

  box-shadow: var(--shadow-md);

  border-bottom-color: rgba(53,38,95,0.15);

}

.header-inner {

  display: flex;

  align-items: center;

  gap: 1rem;

  padding: 0.75rem 1rem;

  max-width: 1200px;

  margin: 0 auto;

  width: 100%;

  justify-content: space-between;

}



/* Logo */

.logo {

  display: flex;

  align-items: center;

  gap: 0.5rem;

  text-decoration: none;

  flex-shrink: 0;

}

.logo img { max-height: 50px; width: auto; }

.logo-icon { font-size: 1.6rem; }

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }

.logo-text .name {

  font-family: var(--font-display);

  font-weight: 800;

  font-size: 0.95rem;

  background: var(--gradient-brand);

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  background-clip: text;

}

.logo-text .sub {

  font-family: var(--font-display);

  font-size: 0.55rem;

  font-weight: 700;

  color: var(--text-muted);

  letter-spacing: 0.12em;

  text-transform: uppercase;

}



/* Nav */

.main-nav {

  display: flex;

  align-items: center;

  gap: 0.15rem;

  margin-left: auto;

}

.main-nav > a,

.nav-dropdown > a {

  padding: 0.5rem 0.9rem;

  border-radius: 8px;

  font-size: 0.9rem;

  font-weight: 600;

  color: var(--text-body);

  transition: all var(--transition);

}

.main-nav > a:hover,

.nav-dropdown > a:hover,

.main-nav > a.active,

.nav-dropdown > a.active {

  color: var(--purple);

  background: var(--bg-purple-tint);

}



/* Dropdown */

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 300px;
  padding: 0.6rem;
  box-shadow: var(--shadow-lg);
  z-index: 200;
}

/* ADD THIS INVISIBLE BRIDGE: It covers the 8px gap so the hover state doesn't drop */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {

  display: flex;

  align-items: center;

  gap: 0.85rem;

  padding: 0.8rem 1rem;

  border-radius: var(--radius);

  color: var(--text-body);

  font-size: 0.88rem;

  font-weight: 500;

  transition: all var(--transition);

}

.dropdown-menu a:hover { background: var(--bg-light); color: var(--purple); }

.dropdown-menu .icon { font-size: 1.5rem; flex-shrink: 0; }

.dropdown-menu .dd-title { font-weight: 700; color: var(--purple); font-size: 0.9rem; }

.dropdown-menu .dd-desc { font-size: 0.78rem; color: var(--text-muted); }



.header-cta {

  display: flex;

  align-items: center;

  gap: 0.75rem;

  flex-shrink: 0;

}

.header-phone {

  font-size: 0.9rem;

  font-weight: 700;

  color: var(--crimson);

  white-space: nowrap;
  display: flex;
  align-items: center;
  gap:0.5rem;
}

.header-phone:hover { color: var(--crimson-hover); }



/* Hamburger */

.hamburger {

  display: none;

  flex-direction: column;

  gap: 4px;

  background: none;

  border: none;

  cursor: pointer;

  padding: 0.4rem;

  margin-left: auto;

  flex-shrink: 0;

  z-index: 2001;

}

.hamburger span {

  display: block;

  width: 22px;

  height: 2.5px;

  background: var(--purple);

  border-radius: 2px;

  transition: all var(--transition);

}



/* Mobile Nav */

.mobile-nav {

  display: none;

  position: fixed;

  inset: 0;

  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(247,249,251,0.98) 100%);

  z-index: 2000;

  flex-direction: column;

  align-items: center;

  justify-content: flex-start;

  gap: 1.5rem;

  padding: 5rem 1.5rem 2rem;

  backdrop-filter: blur(10px);

  overflow-y: auto;

}

.mobile-nav.open { display: flex; }

.mobile-nav a {

  display: flex;

  align-items: center;

  justify-content: center;

  font-family: var(--font-display);

  font-size: 1.15rem;

  font-weight: 700;

  color: var(--purple);

  padding: 1rem 1.5rem;

  border-radius: 12px;

  background: var(--bg-light);

  border: 2px solid transparent;

  transition: all 0.3s ease;

  width: 100%;

  max-width: 320px;

  text-align: center;

}

.mobile-nav a:hover {

  background: var(--gradient-brand);

  color: #fff;

  border-color: var(--crimson);

  transform: translateY(-2px);

  box-shadow: 0 8px 24px rgba(205,33,52,0.3);

}

.mobile-nav a.active {

  background: var(--gradient-brand);

  color: #fff;

  border-color: var(--crimson);

}

.mobile-nav-close {

  position: absolute;

  top: 1.5rem;

  right: 1.5rem;

  background: none;

  border: none;

  color: var(--text-muted);

  font-size: 1.5rem;

  cursor: pointer;

}



/* Sticky CTA (mobile) */

.sticky-cta {

  display: none;

  position: fixed;

  bottom: 0; left: 0; right: 0;

  z-index: 900;

  padding: 0.75rem 1rem;

  background: rgba(255,255,255,0.98);

  border-top: 2px solid var(--border);

  box-shadow: 0 -4px 20px rgba(53,38,95,0.1);

  gap: 0.75rem;

}



/* ── Hero Section ───────────────────────────────────────────────── */

.hero {

  position: relative;

  min-height: 88vh;

  display: flex;

  align-items: center;

  overflow: hidden;

  padding: 5rem 0 4rem;

}

/* Bright background with gradient overlay on right side */

.hero-bg {

  position: absolute;

  inset: 0;

  background: linear-gradient(

    105deg,

    var(--bg-white) 0%,

    var(--bg-white) 45%,

    rgba(53,38,95,0.06) 65%,

    rgba(205,33,52,0.06) 100%

  );

}

/* AI circuit watermark */

.hero-bg::before {

  content: '';

  position: absolute;

  inset: 0;

  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(53,38,95,0.04)' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Ccircle cx='40' cy='40' r='10'/%3E%3Cline x1='0' y1='40' x2='80' y2='40'/%3E%3Cline x1='40' y1='0' x2='40' y2='80'/%3E%3C/g%3E%3C/svg%3E");

}

/* Gradient accent orb top-right */

.hero-bg::after {

  content: '';

  position: absolute;

  top: -100px; right: -100px;

  width: 600px; height: 600px;

  border-radius: 50%;

  background: radial-gradient(circle, rgba(53,38,95,0.08) 0%, transparent 70%);

  pointer-events: none;

}

.hero-content {

  position: relative;

  z-index: 1;

  max-width: 700px;

}

.hero-badge {

  display: inline-flex;

  align-items: center;

  gap: 0.6rem;

  background: var(--gradient-soft);

  border: 1px solid var(--ai-border);

  border-radius: 50px;

  padding: 0.45rem 1.1rem;

  font-size: 0.82rem;

  color: var(--purple);

  font-weight: 700;

  margin-bottom: 1.5rem;

}

.dot {

  width: 8px; height: 8px;

  border-radius: 50%;

  background: var(--gradient-brand);

  animation: pulse 2s infinite;

  display: inline-block;

  flex-shrink: 0;

}

@keyframes pulse {

  0%,100% { box-shadow: 0 0 0 0 rgba(205,33,52,0.4); }

  50% { box-shadow: 0 0 0 6px rgba(205,33,52,0); }

}

.hero h1 { display: flex; flex-direction: column; margin-bottom: 1.25rem; }

.hero h1 .line-gradient {

  background: var(--gradient-brand);

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  background-clip: text;

}

.hero-desc {

  font-size: 1.15rem;

  color: var(--text-body);

  max-width: 580px;

  margin-bottom: 2rem;

  line-height: 1.75;

}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.hero-stats {

  display: flex;

  flex-wrap: wrap;

  gap: 2.5rem;

  padding-top: 2rem;

  border-top: 2px solid var(--border);

}

.stat-item .stat-num {

  font-family: var(--font-display);

  font-size: 2rem;

  font-weight: 800;

  background: var(--gradient-brand);

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  background-clip: text;

  display: block;

}

.stat-item .stat-label {

  font-size: 0.8rem;

  color: var(--text-muted);

  text-transform: uppercase;

  letter-spacing: 0.06em;

}



/* Hero CTA buttons on white background — make outline button dark/visible */

.hero .btn-outline {

  background: var(--purple);

  color: #fff;

  border-color: var(--purple);

}

.hero .btn-outline:hover {

  background: var(--purple-mid);

  border-color: var(--purple-mid);

  color: #fff;

  transform: translateY(-2px);

}



/* Hero image panel */

.hero-image-panel {

  position: absolute;

  right: 0; top: 0; bottom: 0;

  width: 45%;

  overflow: hidden;

}

.hero-image-panel img {

  width: 100%; height: 100%;

  object-fit: cover;

  object-position: center top;

}

.hero-image-panel::before {

  content: '';

  position: absolute;

  inset: 0;

  background: linear-gradient(90deg, var(--bg-white) 0%, transparent 30%);

  z-index: 1;

}



/* ── Page Hero (inner pages) ────────────────────────────────────── */

.page-hero {

  position: relative;

  padding: 4.5rem 0 3.5rem;

  background: var(--gradient-brand);

  overflow: hidden;

}

.page-hero::before {

  content: '';

  position: absolute;

  inset: 0;

  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Cline x1='0' y1='40' x2='80' y2='40'/%3E%3Cline x1='40' y1='0' x2='40' y2='80'/%3E%3C/g%3E%3C/svg%3E");

}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1, .page-hero h2 { color: #fff; }

/* CRITICAL: gradient-text inside page-hero must be plain white — gradient on gradient is invisible */

.page-hero h1 .gradient-text,

.page-hero h2 .gradient-text {

  background: none;

  -webkit-background-clip: unset;

  -webkit-text-fill-color: #fff;

  background-clip: unset;

  color: #fff;

  text-shadow: 0 2px 12px rgba(0,0,0,0.2);

}

.page-hero p { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 650px; margin-bottom: 2rem; }

.page-hero .section-label { color: rgba(255,255,255,0.8); }

.page-hero .section-label .dot { background: #fff; }

.breadcrumb {

  font-size: 0.82rem;

  color: rgba(255,255,255,0.6);

  margin-bottom: 1rem;

}

.breadcrumb a { color: rgba(255,255,255,0.7); }

.breadcrumb a:hover { color: #fff; }

.breadcrumb span { margin: 0 0.4rem; }



/* ── Section Styles ─────────────────────────────────────────────── */

.section { padding: 5rem 0; }

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

.section-bg-tint { background: var(--bg-purple-tint); }

.section-header {

  text-align: center;

  max-width: 700px;

  margin: 0 auto 3.5rem;

}

.section-header h2 { margin: 0.75rem 0 1rem; }

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

/* Ensure gradient-text is only used on white/light backgrounds */

.section-bg-light .gradient-text,

.section-bg-tint .gradient-text,

.section-bg-white .gradient-text {

  background: var(--gradient-brand);

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  background-clip: text;

}

.section-label {

  display: inline-flex;

  align-items: center;

  gap: 0.5rem;

  font-size: 0.8rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.12em;

  color: var(--crimson);

  margin-bottom: 0.5rem;

}



/* ── Powered By Banner ──────────────────────────────────────────── */

.powered-by-bar {

  background: var(--bg-light);

  border-top: 1px solid var(--border);

  border-bottom: 1px solid var(--border);

  padding: 0.85rem 0;

  text-align: center;

}

.powered-by-inner {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 0.75rem;

  flex-wrap: wrap;

  font-size: 0.88rem;

  color: var(--text-muted);

}

.powered-by-inner strong { color: var(--purple); }

.powered-by-inner a {

  font-weight: 700;

  color: var(--crimson);

  text-decoration: underline;

}

.powered-by-inner a:hover { color: var(--crimson-hover); }



/* ── Services Grid ──────────────────────────────────────────────── */

.services-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));

  gap: 2rem;

}

.service-card {

  background: var(--bg-white);

  border: 1.5px solid var(--border);

  border-radius: var(--radius-lg);

  padding: 2.25rem;

  transition: all var(--transition);

  position: relative;

  overflow: hidden;

  box-shadow: var(--shadow-card);

}

.service-card::before {

  content: '';

  position: absolute;

  top: 0; left: 0; right: 0;

  height: 4px;

  background: var(--gradient-brand);

  opacity: 0;

  transition: opacity var(--transition);

}

.service-card:hover {

  border-color: rgba(53,38,95,0.25);

  transform: translateY(-5px);

  box-shadow: var(--shadow-lg);

}

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

.service-icon {

  width: 68px; height: 68px;

  border-radius: var(--radius);

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 1.9rem;

  margin-bottom: 1.25rem;

  background: var(--gradient-soft);

  border: 1px solid var(--ai-border);

}

.tagline {

  font-size: 0.78rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.1em;

  color: var(--crimson);

  margin-bottom: 0.4rem;

}

.service-card h3 { font-size: 1.5rem; margin-bottom: 0.85rem; }

.service-card p { margin-bottom: 1.25rem; font-size: 0.95rem; color: var(--text-body); }

.feature-list { margin-bottom: 1.75rem; }

.feature-list li {

  padding: 0.45rem 0;

  padding-left: 1.5rem;

  position: relative;

  font-size: 0.92rem;

  color: var(--text-body);

  border-bottom: 1px solid var(--border);

}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {

  content: '✓';

  position: absolute;

  left: 0;

  color: var(--crimson);

  font-weight: 800;

}

.service-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; align-items: center; width: 100%; }



/* ── Stats Banner ───────────────────────────────────────────────── */

.stats-banner {

  background: var(--gradient-brand);

  padding: 3rem 0;

  position: relative;

  overflow: hidden;

}

.stats-banner::before {

  content: '';

  position: absolute;

  inset: 0;

  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Cline x1='0' y1='40' x2='80' y2='40'/%3E%3Cline x1='40' y1='0' x2='40' y2='80'/%3E%3C/g%3E%3C/svg%3E");

}

.stats-banner .container { position: relative; z-index: 1; }

.stats-row {

  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 3.5rem;

}

.stat-big {

  text-align: center;

  display: flex;

  flex-direction: column;

  gap: 0.35rem;

  flex: 1;

  min-width: 150px;

  max-width: 200px;

  padding: 1.5rem;

  background: var(--purple);

  border-radius: 12px;

  box-shadow: 0 8px 32px rgba(53, 38, 95, 0.2);

  border:solid 1px rgba(255,255,255,0.6);

}

.stat-big .num {

  font-family: var(--font-display);

  font-size: 2.8rem;

  font-weight: 800;

  color: #fff;

  display: block;

}

.stat-big .label {

  font-size: 0.82rem;

  color: rgba(255,255,255,0.75);

  text-transform: uppercase;

  letter-spacing: 0.06em;

  max-width: 160px;

}



/* ── Steps Grid ─────────────────────────────────────────────────── */

.steps-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

  gap: 1.75rem;

  margin-bottom: 3rem;

}

.step-card {

  background: var(--bg-white);

  border: 1.5px solid var(--border);

  border-radius: var(--radius-lg);

  padding: 2rem 1.5rem;

  position: relative;

  transition: all var(--transition);

  box-shadow: var(--shadow-card);

}

.step-card:hover {

  border-color: rgba(53,38,95,0.25);

  transform: translateY(-3px);

  box-shadow: var(--shadow-md);

}

.step-number {

  width: 52px; height: 52px;

  border-radius: 50%;

  background: var(--gradient-brand);

  display: flex;

  align-items: center;

  justify-content: center;

  font-family: var(--font-display);

  font-weight: 800;

  font-size: 1.2rem;

  color: #fff;

  margin-bottom: 1.25rem;

  box-shadow: var(--glow-crimson);

}

.step-card h4 { margin-bottom: 0.75rem; }

.step-card p { font-size: 0.9rem; }



/* ── Benefits Grid ──────────────────────────────────────────────── */

.benefits-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  gap: 1.5rem;

}

.benefit-item {

  display: flex;

  gap: 1.25rem;

  align-items: flex-start;

  background: var(--bg-white);

  border: 1.5px solid var(--border);

  border-radius: var(--radius);

  padding: 1.5rem;

  transition: all var(--transition);

  box-shadow: var(--shadow-card);

}

.benefit-item:hover {

  border-color: rgba(53,38,95,0.2);

  transform: translateY(-2px);

  box-shadow: var(--shadow-md);

}

.benefit-icon {

  width: 54px; height: 54px;

  border-radius: var(--radius);

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 1.5rem;

  flex-shrink: 0;

  background: var(--gradient-soft);

  border: 1px solid var(--ai-border);

}

.benefit-item h4 { font-size: 1rem; margin-bottom: 0.4rem; }

.benefit-item p { font-size: 0.88rem; }



/* ── Testimonials ───────────────────────────────────────────────── */

.testimonials-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  gap: 1.75rem;

  margin-bottom: 2.5rem;

}

.testimonial-card {

  background: var(--bg-white);

  border: 1.5px solid var(--border);

  border-radius: var(--radius-lg);

  padding: 2rem;

  transition: all var(--transition);

  box-shadow: var(--shadow-card);

}

.testimonial-card:hover {

  border-color: rgba(53,38,95,0.2);

  transform: translateY(-3px);

  box-shadow: var(--shadow-md);

}

.stars { color: #F5A623; font-size: 1.1rem; margin-bottom: 1rem; letter-spacing: 2px; }

.quote-text {

  font-size: 0.95rem;

  line-height: 1.75;

  color: var(--text-body);

  margin-bottom: 1.5rem;

  font-style: italic;

}

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

.testimonial-author .role { font-size: 0.82rem; color: var(--crimson); margin: 0.2rem 0; }

.testimonial-author .location { font-size: 0.8rem; color: var(--text-muted); }



/* ── Trust Badges ───────────────────────────────────────────────── */

.trust-badges {

  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 0.75rem;

  margin-top: 2.5rem;

}

.trust-badge {

  background: var(--bg-light);

  border: 1.5px solid var(--border);

  border-radius: 50px;

  padding: 0.5rem 1.2rem;

  font-size: 0.82rem;

  color: var(--purple);

  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;

}



/* ── CTA Banner ─────────────────────────────────────────────────── */

.cta-banner {

  background: var(--gradient-brand);

  padding: 5rem 0;

  text-align: center;

  position: relative;

  overflow: hidden;

}

.cta-banner::before {

  content: '';

  position: absolute;

  inset: 0;

  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Cline x1='0' y1='40' x2='80' y2='40'/%3E%3Cline x1='40' y1='0' x2='40' y2='80'/%3E%3C/g%3E%3C/svg%3E");

}

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

.cta-banner h2 { color: #fff; margin-bottom: 1rem; }

.cta-banner p { font-size: 1.05rem; max-width: 600px; margin: 0 auto 2rem; color: rgba(255,255,255,0.85); }

.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }



/* ── Medical Alert Cross-Promo Banner ───────────────────────────── */

.alert-promo {

  background: var(--bg-light);

  border: 2px solid var(--border);

  border-left: 5px solid var(--crimson);

  border-radius: var(--radius);

  padding: 1.5rem 2rem;

  display: flex;

  align-items: center;

  gap: 1.5rem;

  flex-wrap: wrap;

}

.alert-promo-icon {flex-shrink: 0; }

.alert-promo-text h4 { margin-bottom: 0.35rem; }

.alert-promo-text p { font-size: 0.9rem; color: var(--text-body); }

.alert-promo-cta { margin-left: auto; flex-shrink: 0; }



/* ── Office Locations ───────────────────────────────────────────── */

.offices-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 1.75rem;

}

.office-card {

  background: var(--bg-white);

  border: 1.5px solid var(--border);

  border-radius: var(--radius-lg);

  padding: 2rem;

  transition: all var(--transition);

  box-shadow: var(--shadow-card);

  position: relative;

  overflow: hidden;

}

.office-card::before {

  content: '';

  position: absolute;

  top: 0; left: 0; right: 0;

  height: 4px;

  background: var(--gradient-brand);

}

.office-card:hover {

  transform: translateY(-4px);

  box-shadow: var(--shadow-lg);

  border-color: rgba(53,38,95,0.2);

}

.office-badge {

  display: inline-flex;

  align-items: center;

  gap: 0.4rem;

  background: var(--gradient-soft);

  border: 1px solid var(--ai-border);

  border-radius: 50px;

  padding: 0.3rem 0.85rem;

  font-size: 0.75rem;

  font-weight: 700;

  color: var(--purple);

  text-transform: uppercase;

  letter-spacing: 0.08em;

  margin-bottom: 1rem;

}

.office-card h4 { margin-bottom: 1rem; font-size: 1.15rem; }

.office-detail {

  display: flex;

  align-items: flex-start;

  gap: 0.75rem;

  margin-bottom: 0.75rem;

  font-size: 0.9rem;

  color: var(--text-body);

}

.office-detail .od-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }

.office-detail a { color: var(--purple); font-weight: 600; }

.office-detail a:hover { color: var(--crimson); }

.office-hours {

  margin-top: 1.25rem;

  padding-top: 1rem;

  border-top: 1px solid var(--border);

  font-size: 0.82rem;

  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap:0.5rem;

}



/* ── Generic Card ───────────────────────────────────────────────── */

.card {

  background: var(--bg-white);

  border: 1.5px solid var(--border);

  border-radius: var(--radius);

  padding: 1.5rem;

  transition: all var(--transition);

  box-shadow: var(--shadow-card);

}

.card:hover {

  border-color: rgba(53,38,95,0.2);

  transform: translateY(-2px);

  box-shadow: var(--shadow-md);

}

.card h4 { margin-bottom: 0.5rem; }



/* ── Service Detail (inner pages) ───────────────────────────────── */

.service-detail-intro {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 4rem;

  align-items: start;

}

.service-detail-intro h2 { margin: 0.5rem 0 1.25rem; }

.service-detail-intro img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }



.detail-features {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 1.5rem;

}

.detail-feature {

  background: var(--bg-white);

  border: 1.5px solid var(--border);

  border-radius: var(--radius);

  padding: 1.75rem;

  transition: all var(--transition);

  box-shadow: var(--shadow-card);

}

.detail-feature:hover {

  border-color: rgba(53,38,95,0.2);

  transform: translateY(-3px);

  box-shadow: var(--shadow-md);

}

.df-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }

.detail-feature h4 { margin-bottom: 0.6rem; }

.detail-feature p { font-size: 0.9rem; }



.use-cases {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 1.5rem;

}

.use-case {

  background: var(--bg-white);

  border: 1.5px solid var(--border);

  border-radius: var(--radius);

  padding: 1.5rem;

  transition: all var(--transition);

  box-shadow: var(--shadow-card);

}

.use-case:hover { border-color: rgba(53,38,95,0.2); }

.use-case h4 { margin-bottom: 0.6rem; font-size: 1rem; display: flex; align-items: center; gap: 0.5rem}

.use-case p { font-size: 0.88rem; }



/* ── Values Grid (About) ────────────────────────────────────────── */

.values-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

  gap: 1.5rem;

}

.value-card {

  background: var(--bg-white);

  border: 1.5px solid var(--border);

  border-radius: var(--radius-lg);

  padding: 2rem;

  text-align: center;

  transition: all var(--transition);

  box-shadow: var(--shadow-card);

}

.value-card:hover {

  border-color: rgba(53,38,95,0.2);

  transform: translateY(-4px);

  box-shadow: var(--shadow-lg);

}

.v-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }

.value-card h4 { margin-bottom: 0.6rem; }

.value-card p { font-size: 0.88rem; }



.mission-grid {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 4rem;

  align-items: center;

}

.mission-grid img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }



/* ── Provinces Grid ─────────────────────────────────────────────── */

.provinces-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 1.25rem;

}

.province-card {

  background: var(--bg-white);

  border: 1.5px solid var(--border);

  border-radius: var(--radius);

  padding: 1.5rem;

  transition: all var(--transition);

  box-shadow: var(--shadow-card);

}

.province-card:hover {

  border-color: rgba(53,38,95,0.2);

  transform: translateY(-2px);

  box-shadow: var(--shadow-md);

}

.prov-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }

.prov-icon { font-size: 1.8rem; flex-shrink: 0; }

.prov-header h4 { font-size: 1rem; margin: 0; flex: 1; }

.prov-abbr { font-size: 0.75rem; color: var(--text-muted); display: block; }

.prov-badge {

  font-size: 0.72rem;

  background: rgba(205,33,52,0.08);

  color: var(--crimson);

  padding: 0.25rem 0.6rem;

  border-radius: 50px;

  font-weight: 700;

  white-space: nowrap;

  border: 1px solid rgba(205,33,52,0.2);

}

.province-card p { font-size: 0.85rem; margin-bottom: 0.5rem; }

.prov-seniors { font-size: 0.78rem; color: var(--purple); font-weight: 600; }



/* ── FAQ ────────────────────────────────────────────────────────── */

.faq-layout {

  display: grid;

  grid-template-columns: 240px 1fr;

  gap: 3rem;

  align-items: start;

}

.faq-sidebar { position: sticky; top: 100px; }

.faq-sidebar h4 {

  font-size: 0.82rem;

  text-transform: uppercase;

  letter-spacing: 0.1em;

  color: var(--text-muted);

  margin-bottom: 0.75rem;

}

.faq-sidebar a {

  display: block;

  padding: 0.5rem 0.75rem;

  font-size: 0.88rem;

  color: var(--text-muted);

  border-left: 3px solid var(--border);

  margin-bottom: 0.25rem;

  transition: all var(--transition);

}

.faq-sidebar a:hover {

  color: var(--purple);

  border-left-color: var(--crimson);

  padding-left: 1rem;

}

.faq-category { margin-bottom: 3rem; }

.faq-category h3 {

  font-size: 1.3rem;

  margin-bottom: 1.25rem;

  padding-bottom: 0.75rem;

  border-bottom: 2px solid var(--border);

  color: var(--purple);

}

.faq-item {

  border: 1.5px solid var(--border);

  border-radius: var(--radius);

  margin-bottom: 0.75rem;

  overflow: hidden;

  transition: border-color var(--transition);

  box-shadow: var(--shadow-card);

}

.faq-item.open { border-color: rgba(53,38,95,0.25); }

.faq-question {

  width: 100%;

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 1rem;

  padding: 1.1rem 1.5rem;

  background: var(--bg-white);

  border: none;

  cursor: pointer;

  text-align: left;

  font-family: var(--font-display);

  font-size: 0.95rem;

  font-weight: 600;

  color: var(--purple);

  transition: all var(--transition);

}

.faq-question:hover { background: var(--bg-light); }

.faq-arrow { font-size: 0.7rem; color: var(--crimson); transition: transform var(--transition); flex-shrink: 0; }

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }

.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer p {

  padding: 1rem 1.5rem 1.25rem;

  font-size: 0.92rem;

  line-height: 1.75;

  border-top: 1px solid var(--border);

  color: var(--text-body);

}



/* ── Contact Page ───────────────────────────────────────────────── */

.contact-layout {

  display: grid;

  grid-template-columns: 1fr 1.5fr;

  gap: 3rem;

  align-items: start;

}

.contact-info h3 { margin-bottom: 1rem; }

.contact-info > p { margin-bottom: 2rem; font-size: 0.95rem; }

.contact-detail {

  display: flex;

  align-items: flex-start;

  gap: 1rem;

  padding: 1rem 0;

  border-bottom: 1px solid var(--border);

}

.cd-icon { font-size: 1.5rem; flex-shrink: 0; }

.cd-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.2rem; }

.cd-value { font-size: 1rem; font-weight: 700; color: var(--purple); }

.cd-value a { color: var(--purple); }

.cd-value a:hover { color: var(--crimson); }



.form-card {

  background: var(--bg-white);

  border: 1.5px solid var(--border);

  border-radius: var(--radius-lg);

  padding: 2.5rem;

  box-shadow: var(--shadow-lg);

}

.form-card h3 { margin-bottom: 0.5rem; }

.form-card > p { margin-bottom: 2rem; font-size: 0.9rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }

.form-group label { font-size: 0.85rem; font-weight: 700; color: var(--purple); }

.form-group input,

.form-group select,

.form-group textarea {

  background: var(--bg-light);

  border: 1.5px solid var(--border);

  border-radius: var(--radius);

  padding: 0.85rem 1rem;

  color: var(--text-dark);

  font-size: 0.95rem;

  transition: border-color var(--transition);

  width: 100%;

}

.form-group input:focus,

.form-group select:focus,

.form-group textarea:focus {

  outline: none;

  border-color: var(--purple);

  background: var(--bg-white);

  box-shadow: 0 0 0 3px rgba(53,38,95,0.08);

}

.form-group select option { background: #fff; color: var(--text-dark); }

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

.form-group input::placeholder,

.form-group textarea::placeholder { color: var(--text-light); }

.form-submit { width: 100%; justify-content: center; padding: 1rem; font-size: 1rem; margin-bottom: 1rem; }

.form-note { font-size: 0.78rem; color: var(--text-muted); text-align: center; line-height: 1.5; }



.alert { padding: 1.25rem 1.5rem; border-radius: var(--radius); font-size: 0.92rem; line-height: 1.6; }

.alert-success { background: rgba(34,197,94,0.08); border: 1.5px solid rgba(34,197,94,0.3); color: #166534; }

.alert-error { background: rgba(239,68,68,0.08); border: 1.5px solid rgba(239,68,68,0.3); color: #991b1b; }



/* ── Highlight Box ─────────────────────────────────────────────── */

.highlight-box {

  background: var(--bg-light);

  border: 1.5px solid var(--border);

  border-left: 4px solid var(--purple);

  border-radius: var(--radius);

  padding: 1.25rem 1.5rem;

}

.highlight-box p { color: var(--text-body); font-size: 0.92rem; line-height: 1.7; }

.highlight-box strong { color: var(--purple); }



/* ── Prose (Privacy/Terms) ──────────────────────────────────────── */

.prose h2 { font-size: 1.6rem; margin: 2rem 0 0.75rem; }

.prose h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; color: var(--crimson); }

.prose p { margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.8; color: var(--text-body); }



/* ── Footer ─────────────────────────────────────────────────────── */

.site-footer {

  background: var(--purple-dark);

  padding: 4rem 0 0;

  position: relative;

  overflow: hidden;

}

.site-footer::before {

  content: '';

  position: absolute;

  inset: 0;

  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Cline x1='0' y1='40' x2='80' y2='40'/%3E%3Cline x1='40' y1='0' x2='40' y2='80'/%3E%3C/g%3E%3C/svg%3E");

}

.site-footer .container { position: relative; z-index: 1; }

.footer-grid {

  display: grid;

  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;

  gap: 3rem;

  margin-bottom: 3rem;

}

.footer-brand .logo { margin-bottom: 1.25rem; }

.footer-brand .logo .name {

  background: linear-gradient(150deg, #fff 0%, rgba(255,255,255,0.8) 100%);

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  background-clip: text;

}

.footer-brand .logo .sub { color: rgba(255,255,255,0.5); }

.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }

.footer-contact-item { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.5rem; }

.footer-contact-item a { color: rgba(255,255,255,0.85); font-weight: 600; }

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

.footer-col h5 { margin-bottom: 1rem; color: rgba(255,255,255,0.5); }

.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }

.footer-col ul a { font-size: 0.88rem; color: rgba(255,255,255,0.65); display: flex; align-items: center; gap: 0.5rem; }

.footer-col ul a:hover { color: #fff; }

.footer-col ul a svg{opacity: 0.65;}

.footer-col ul a:hover svg{opacity: 1;}

.footer-cta-col .footer-cta-btn { display: flex; margin-bottom: 0.75rem; }



/* Footer .ca promo */

.footer-ca-promo {

  background: rgba(255,255,255,0.06);

  border: 1px solid rgba(255,255,255,0.12);

  border-radius: var(--radius);

  padding: 1.25rem;

  margin-top: 1rem;

}

.footer-ca-promo p { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-bottom: 0.75rem; }

.footer-ca-promo a { font-size: 0.82rem; color: #FFD080; font-weight: 700; text-decoration: underline; }

.footer-ca-promo a:hover { color: #fff; }



.footer-bottom {

  border-top: 1px solid rgba(255,255,255,0.1);

  padding: 1.5rem 0;

}

.footer-bottom-inner {

  display: flex;

  justify-content: space-between;

  align-items: center;

  flex-wrap: wrap;

  gap: 1rem;

}

.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.45); }

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.45); }

.footer-links a:hover { color: rgba(255,255,255,0.85); }





/* ── Footer Offices ─────────────────────────────────────────────── */
.footer-offices-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem 0 0;
}

.footer-offices-title {
  text-align: center;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.footer-office-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all var(--transition);
}

.footer-office-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.footer-office-name {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-office-address {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
}

.footer-office-phone {
  color: #FFD080;
  font-weight: 700;
  display: inline-block;
  transition: color var(--transition);
}

.footer-office-phone:hover {
  color: #fff;
}




/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 1024px) {

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

  .service-detail-intro, .mission-grid { grid-template-columns: 1fr; gap: 2rem; }

  .contact-layout { grid-template-columns: 1fr; }

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

  .faq-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

  .faq-sidebar h4 { width: 100%; }

  .faq-sidebar a { border-left: none; border: 1.5px solid var(--border); border-radius: 50px; padding: 0.35rem 0.85rem; }

  .hero-image-panel { display: none; }

}



@media (max-width: 768px) {

  /* Navigation */

  .main-nav, .header-cta { display: none; }

  .hamburger { display: flex; }

  .header-inner { padding: 0.6rem 0.75rem; gap: 0.75rem; }

  .logo img { max-height: 40px; width: auto; }

  .logo-icon { font-size: 1.4rem; }

  .logo-text .name { font-size: 0.85rem; }

  .logo-text .sub { font-size: 0.5rem; }

  

  /* Page Hero - Stack form below */

  .page-hero .container { display: flex !important; flex-direction: column !important; grid-template-columns: unset !important; gap: 2rem !important; align-items: stretch !important; }

  .trial-form-hero { width: 100% !important; order: 2; }

  

/* Top bar simplification */
  .top-bar { font-size: 0.9rem; padding: 0.5rem 1rem; }
  .top-bar-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
  }
  .top-bar-contact { justify-content: center; }
  .top-bar a { display: inline; }

  

  /* Powered-by bar */

  .powered-by-bar { display: none; }

  .powered-by-inner { flex-wrap: wrap; gap: 0.5rem; }

  .powered-by-inner span:nth-child(3), .powered-by-inner span:nth-child(4) { display: none; }

  

  /* Sticky CTA - Enhanced */

  .sticky-cta { display: flex; gap: 0.5rem; padding: 0.75rem 0.5rem; box-shadow: 0 -2px 12px rgba(0,0,0,0.1); }

  .sticky-cta .btn { flex: 1; min-height: 50px; font-size: 0.95rem; border-radius: 8px; font-weight: 600; }

  

  /* Hero section */

  .hero { padding: 2.5rem 0 4rem; min-height: auto; }

  .hero-content { padding: 1.5rem; }

  .hero-image-panel { display: none; }

  .hero-cta { flex-direction: column; gap: 1rem; }

  .hero-cta .btn { width: 100%; min-height: 52px; font-size: 1rem; font-weight: 600; border-radius: 8px; }

  .hero-stats { gap: 1.5rem; flex-direction: column; align-items: center; }

  .stat-item { text-align: center; }

  

  /* Grids */

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

  .footer-bottom-inner { flex-direction: column; text-align: center; }

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

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

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

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

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

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

  .service-detail-intro { grid-template-columns: 1fr; }

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

  .contact-layout { grid-template-columns: 1fr; }

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

  

  /* Forms */

  input[type="text"],

  input[type="email"],

  input[type="tel"],

  textarea,

  select {

    font-size: 16px;

    min-height: 48px;

    width: 100%;

    border-radius: 6px;

    border: 1.5px solid var(--border);

    box-sizing: border-box;

  }

  

  /* Form Layout */

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

  .form-group { margin-bottom: 1.25rem; }

  .form-card { padding: 1.5rem; }

  

  /* Buttons - Enhanced */

  .btn { width: 100%; min-height: 52px; font-size: 1rem; padding: 0.9rem 1.5rem; border-radius: 8px; font-weight: 600; transition: all 0.3s ease; text-align: center; }

  .btn:active { transform: scale(0.98); }

  .cta-actions { gap: 1rem; flex-direction: column; }

  .cta-actions .btn { width: 100%; }

  .alert-promo-cta .btn { width: 100%; justify-content: center; }

  .form-submit { width: 100% !important; }

  

  /* Sections */

  .section { padding: 2rem 0; }

  .page-hero { padding: 2rem 0 1.5rem; }

  .alert-promo { flex-direction: column; gap: 1rem; }

  .alert-promo-cta { margin-left: 0; width: 100%; }

  .container { padding: 0 1rem; }

  

  /* Contact Layout */

  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }

  .contact-info { margin-bottom: 1rem; }

  

  /* Service Detail */

  .service-detail-intro { grid-template-columns: 1fr; gap: 2rem; }

  .mission-grid { grid-template-columns: 1fr; gap: 2rem; }

  

  /* Grids */

  .detail-features { grid-template-columns: 1fr; }

  .use-cases { grid-template-columns: 1fr; }

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

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

  

  /* Body padding for sticky CTA */

  body { padding-bottom: 75px; }

  

  /* Cards and content */

  .service-card { padding: 1.5rem; border-radius: 10px; }

  .detail-feature { padding: 1.5rem; border-radius: 8px; }

  .highlight-box { padding: 1.5rem; border-radius: 8px; }

  

  /* FAQ */

  .faq-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

  .faq-sidebar h4 { width: 100%; }

  .faq-sidebar a { border-left: none; border: 1.5px solid var(--border); border-radius: 50px; padding: 0.5rem 1rem; }

}



@media (max-width: 480px) {

  /* Typography */

  html { font-size: 16px; }

  h1 { font-size: 1.6rem; line-height: 1.2; font-weight: 700; }

  h2 { font-size: 1.4rem; line-height: 1.25; font-weight: 700; }

  h3 { font-size: 1.15rem; font-weight: 600; }

  p { font-size: 0.95rem; line-height: 1.6; }

  

  /* Navigation */

  .logo img { max-height: 35px; width: auto; }

  .logo-icon { font-size: 1.2rem; }

  .logo-text .name { font-size: 0.75rem; }

  .logo-text .sub { font-size: 0.45rem; }

  .header-inner { padding: 0.5rem 0.6rem; gap: 0.5rem; }

  .hamburger { padding: 0.3rem; }

  .hamburger span { width: 20px; height: 2px; }

  

  /* Page Hero - Stack form below */

  .page-hero .container { display: flex !important; flex-direction: column !important; gap: 1.5rem !important; }

  .trial-form-hero { width: 100% !important; order: 2; }

  

  /* Top bar */

  .top-bar { font-size: 0.8rem; padding: 0.4rem 0.75rem; }

  

  /* Hero */

  .hero { padding: 2rem 0 3rem; }

  .hero-content { padding: 1rem; }

  .hero-badge { font-size: 0.75rem; padding: 0.5rem 0.9rem; background: rgba(205, 33, 52, 0.1); border-radius: 20px; }

  .hero-cta { gap: 1rem; flex-direction: column; }

  .hero-cta .btn { font-size: 1rem; padding: 0.9rem 1.5rem; min-height: 50px; border-radius: 8px; font-weight: 600; }

  .hero-stats { gap: 1.25rem; }

  

  /* Buttons - Enhanced */

  .btn { padding: 0.9rem 1.5rem; font-size: 1rem; min-height: 50px; border-radius: 8px; font-weight: 600; }

  .cta-actions { gap: 1rem; flex-direction: column; }

  .cta-actions .btn { width: 100%; max-width: none; }

  

  /* Forms */

  label { font-size: 0.95rem; font-weight: 500; }

  .form-group { margin-bottom: 1.25rem; }

  input[type="text"],

  input[type="email"],

  input[type="tel"],

  textarea,

  select {

    border-radius: 6px;

    border: 1.5px solid var(--border);

  }

  

  /* Cards */

  .service-card { padding: 1.5rem; border-radius: 10px; }

  .testimonial-card { padding: 1.5rem; border-radius: 10px; }

  .office-card { padding: 1.5rem; border-radius: 10px; }

  

  /* Footer */

  .footer-col h4 { font-size: 1rem; font-weight: 600; }

  .footer-col p, .footer-col a { font-size: 0.9rem; }

  

  /* Sections */

  .section { padding: 1.75rem 0; }

  .page-hero { padding: 1.75rem 0 1.25rem; }

  

  /* Stats */

  .stats-row { gap: 1.25rem; }

  .stat-item { font-size: 0.95rem; }

  

  /* Sticky CTA */

  .sticky-cta { gap: 0.5rem; padding: 0.75rem 0.5rem; }

  .sticky-cta .btn { min-height: 48px; font-size: 0.9rem; text-align: center; }

  

  /* Forms */

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

  .form-card { padding: 1.25rem; }

  .form-group { margin-bottom: 1rem; }

  input[type="text"],

  input[type="email"],

  input[type="tel"],

  textarea,

  select {

    font-size: 16px;

    min-height: 48px;

    width: 100%;

    box-sizing: border-box;

  }

  

  /* Content Alignment */

  .contact-layout { grid-template-columns: 1fr; }

  .service-detail-intro { grid-template-columns: 1fr; }

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

  .detail-features { grid-template-columns: 1fr; }

  .use-cases { grid-template-columns: 1fr; }

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

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

  .container { padding: 0 0.75rem; }







/* ── Mobile Optimization & Accessibility ───────────────────────── */

/* Touch-friendly button sizing */

.btn {

  min-height: 48px;

  min-width: 48px;

  padding: 0.85rem 1.5rem;

  font-size: 1rem;

}



/* Improved form inputs for mobile */

input[type="text"],

input[type="email"],

input[type="tel"],

textarea,

select {

  font-size: 16px; /* Prevents zoom on iOS */

  min-height: 48px;

  padding: 0.75rem 1rem;

}



/* Better spacing on mobile */

@media (max-width: 640px) {

  .container { padding: 0 1rem; }

  h1 { font-size: 1.75rem; line-height: 1.2; }

  h2 { font-size: 1.4rem; line-height: 1.25; }

  h3 { font-size: 1.15rem; }

  p { font-size: 1rem; line-height: 1.6; }

  

  /* Navigation improvements */

  .header-inner { padding: 0.5rem 1rem; }

  .logo img { height: 40px; }

  

  /* Hero section */

  .hero { padding: 2.5rem 0 4rem; }

  .hero-content { padding: 1rem; }

  .hero-badge { font-size: 0.85rem; padding: 0.5rem 1rem; }

  

  /* CTA sections */

  .cta-banner h2 { font-size: 1.4rem; }

  .cta-banner p { font-size: 0.95rem; }

  

  /* Cards and grids */

  .service-card { padding: 1.5rem; }

  .detail-feature { padding: 1.5rem; }

  

  /* Forms */

  .form-group { margin-bottom: 1.25rem; }

  label { font-size: 0.95rem; }

  

  /* Sections */

  .section { padding: 2rem 0; }

  .page-hero { padding: 2rem 0 1.5rem; }

  

  /* Footer */

  .footer-grid { gap: 2rem; }

  .footer-col h4 { font-size: 1rem; }

  .footer-col p, .footer-col a { font-size: 0.9rem; }

}



/* Extra small screens (320px - 380px) */

@media (max-width: 380px) {

  html { font-size: 15px; }

  h1 { font-size: 1.3rem; }

  h2 { font-size: 1.1rem; }

  h3 { font-size: 1rem; }

  p { font-size: 0.9rem; }

  .hero-badge { font-size: 0.7rem; padding: 0.3rem 0.7rem; }

  .btn { padding: 0.65rem 0.9rem; font-size: 0.9rem; min-height: 42px; }

  .cta-actions { gap: 0.5rem; flex-direction: column; }

  .stats-row { gap: 0.75rem; }

  .container { padding: 0 0.75rem; }

  .section { padding: 1.25rem 0; }

}



/* Landscape orientation */

@media (max-height: 600px) and (orientation: landscape) {

  .hero { padding: 2rem 0 3rem; min-height: auto; }

  .section { padding: 2rem 0; }

}



/* High DPI screens (retina) */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {

  body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

}



/* Reduced motion for accessibility */

@media (prefers-reduced-motion: reduce) {

  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }

}



/* Dark mode support (for browsers that support it) */

@media (prefers-color-scheme: dark) {

  /* Keep light theme as primary, but add fallbacks */

  body { background-color: var(--bg-white); color: var(--text-dark); }

}



/* Print styles */

@media print {

  .header, .footer, .sticky-cta, .cta-banner, .alert-promo { display: none; }

  body { background: white; color: black; }

  a { text-decoration: underline; }

  .btn { border: 1px solid black; }

}





/* ── Service Page Form Fixes ────────────────────────────────────── */

@media (max-width: 768px) {

  /* Page Hero with Form */

  .page-hero .container { display: flex; flex-direction: column; gap: 2rem; }

  .trial-form, .trial-form-wrapper { width: 100% !important; max-width: 100% !important; }

  .trial-form-wrapper { grid-template-columns: 1fr !important; gap: 0.75rem !important; }

  .trial-form input, .trial-form button, .trial-form select, .trial-form textarea { width: 100% !important; box-sizing: border-box; }

  .trial-form { background: var(--bg-light); border: 1.5px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-top: 1rem; }

}



@media (max-width: 480px) {

  /* Page Hero Form on Small Screens */

  .page-hero .container { gap: 1.5rem; }

  .trial-form { padding: 1.25rem; margin-top: 0.75rem; }

  .trial-form-wrapper { gap: 0.5rem; }

  .trial-form input, .trial-form button { font-size: 16px; min-height: 48px; }

}





/* ── Trial Form Hero Styling ────────────────────────────────────── */

.trial-form-hero {

  background: rgba(255,255,255,0.12) !important;

  border: 2px solid rgba(255,255,255,0.3) !important;

  border-radius: 16px !important;

  padding: 2.5rem 2rem !important;

  backdrop-filter: blur(10px) !important;

  box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;

  transition: all 0.3s ease !important;

  position: relative !important;

  overflow: hidden !important;

}



.trial-form-hero::before {

  content: '';

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  height: 3px;

  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);

}



.trial-form-hero:hover {

  background: rgba(255,255,255,0.15) !important;

  border-color: rgba(255,255,255,0.4) !important;

  box-shadow: 0 12px 40px rgba(0,0,0,0.15) !important;

}



.trial-form-hero h3 {

  font-size: 1.6rem !important;

  font-weight: 800 !important;

  color: #fff !important;

  margin-bottom: 0.5rem !important;

  text-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;

}



.trial-form-hero > p {

  color: rgba(255,255,255,0.95) !important;

  font-size: 0.95rem !important;

  margin-bottom: 1.5rem !important;

  font-weight: 500 !important;

}



.trial-form-hero form {

  display: flex;

  flex-direction: column;

  gap: 1rem;

}



.trial-form-hero input,

.trial-form-hero select,

.trial-form-hero textarea {

  background: rgba(255,255,255,0.95) !important;

  border: 2px solid rgba(255,255,255,0.3) !important;

  border-radius: 10px !important;

  padding: 0.9rem 1.1rem !important;

  font-size: 0.95rem !important;

  color: var(--text-dark) !important;

  transition: all 0.3s ease !important;

  font-family: var(--font-body) !important;

}



.trial-form-hero input::placeholder,

.trial-form-hero textarea::placeholder {

  color: var(--text-light);

}



.trial-form-hero input:focus,

.trial-form-hero select:focus,

.trial-form-hero textarea:focus {

  outline: none !important;

  background: #fff !important;

  border-color: var(--crimson) !important;

  box-shadow: 0 0 0 4px rgba(205,33,52,0.2) !important;

}



.trial-form-hero button,

.trial-form-hero input[type="submit"] {

  background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%) !important;

  color: var(--crimson) !important;

  border: 2px solid var(--crimson) !important;

  border-radius: 10px !important;

  padding: 1rem 1.5rem !important;

  font-size: 1rem !important;

  font-weight: 700 !important;

  cursor: pointer !important;

  transition: all 0.3s ease !important;

  text-transform: uppercase !important;

  letter-spacing: 0.05em !important;

}



.trial-form-hero button:hover,

.trial-form-hero input[type="submit"]:hover {

  background: var(--crimson) !important;

  color: #fff !important;

  transform: translateY(-2px) !important;

  box-shadow: 0 8px 24px rgba(205,33,52,0.4) !important;

}



.trial-form-hero button:active,

.trial-form-hero input[type="submit"]:active {

  transform: translateY(0);

}



.trial-form-hero label {

  display: flex;

  align-items: center;

  gap: 0.75rem;

  color: rgba(255,255,255,0.95);

  font-size: 0.95rem;

  font-weight: 500;

  cursor: pointer;

}



.trial-form-hero input[type="checkbox"] {

  width: 20px;

  height: 20px;

  cursor: pointer;

  accent-color: var(--crimson);

}



/* ── Mobile Trial Form Styling ─────────────────────────────────── */

@media (max-width: 768px) {

  .trial-form-hero {

    background: linear-gradient(135deg, rgba(205,33,52,0.95) 0%, rgba(149,35,67,0.95) 100%);

    border: 2.5px solid var(--crimson);

    border-radius: 14px;

    padding: 2rem 1.5rem;

    box-shadow: 0 10px 40px rgba(205,33,52,0.3);

    margin-top: 1.5rem;

  }



  .trial-form-hero h3 {

    font-size: 1.4rem;

    color: #fff;

    text-shadow: 0 2px 8px rgba(0,0,0,0.25);

  }



  .trial-form-hero > p {

    color: rgba(255,255,255,0.95);

    font-size: 0.9rem;

  }



  .trial-form-hero input,

  .trial-form-hero select {

    background: #fff;

    border: 2px solid var(--border);

    border-radius: 8px;

    padding: 0.85rem 1rem;

    font-size: 16px;

    min-height: 48px;

  }



  .trial-form-hero button,

  .trial-form-hero input[type="submit"] {

    background: #fff;

    color: var(--crimson);

    border: 2px solid #fff;

    border-radius: 8px;

    padding: 0.9rem 1.5rem;

    font-size: 0.95rem;

    font-weight: 700;

    min-height: 48px;

    box-shadow: 0 4px 12px rgba(205,33,52,0.2);

  }



  .trial-form-hero button:hover,

  .trial-form-hero input[type="submit"]:hover {

    background: var(--crimson);

    color: #fff;

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(205,33,52,0.4);

  }

}



@media (max-width: 480px) {

  .trial-form-hero {

    padding: 1.5rem 1.25rem;

    margin-top: 1rem;

  }



  .trial-form-hero h3 {

    font-size: 1.25rem;

    margin-bottom: 0.4rem;

  }



  .trial-form-hero > p {

    font-size: 0.85rem;

    margin-bottom: 1.25rem;

  }



  .trial-form-hero input,

  .trial-form-hero select {

    padding: 0.8rem 0.9rem;

    font-size: 16px;

    margin-bottom: 0.5rem;

  }



  .trial-form-hero button,

  .trial-form-hero input[type="submit"] {

    padding: 0.85rem 1.25rem;

    font-size: 0.9rem;

    margin-top: 0.5rem;

  }



  .trial-form-hero label {

    font-size: 0.9rem;

  }

}