/* ==========================================================================
   1. CSS Reset + Base Setup
   ========================================================================== */

/* Box-sizing reset (border-box everywhere) */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margins/padding */
* {
    margin: 0;
    padding: 0;
    border: 0;
}

/* Prevent font size inflation on mobile */
html {
    font-size: 16px; /* 16px base */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Smooth scrolling, remove tap highlight on mobile */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

/* Body defaults */
body {
    min-height: 100vh;
    line-height: 1.5;
    font-family:
        "General Sans",
        system-ui,
        -apple-system,
        sans-serif;
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Images & media reset */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Lists reset */
ul,
ol {
    list-style: none;
}

/* Links reset (no underline by default, add on hover if needed) */
a {
    text-decoration: none;
    color: inherit;
}

/* Buttons/forms reset */
button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
}

/* Tables reset */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ==========================================================================
   2. CSS Variables (multiples of 4px for spacing)
   ========================================================================== */

:root {
    /* Colors (unchanged) */
    --color-primary: #00a896; /* Main teal/green */
    --color-primary-dark: #007f6e;
    --color-primary-light: #64c29b;
    --color-accent: #231f20; /* Dark text/charcoal */
    --color-text: #231f20;
    --color-text-light: #67686B;
    --color-bg: #ffffff;
    --color-bg-light: #f8fafc;
    --color-bg-gradient-start: #e6f7f5;
    --color-bg-gradient-end: #b2e8e0;
    --color-border: #e2e8f0;
    --color-alt-light: #ebebeb;
    --color-title-circle:#8AD4E0;
    --color-gradient-a:linear-gradient(248.23deg, #E3FBFF 0%, #F8F8F8 100%);
    --color-gradient-b:linear-gradient(180deg, #E3FBFF 0%, #FFFFFF 100%);
    --color-bg-blue:#64C29B;
    --color-bg-green:radial-gradient(circle at 50% 110%, rgba(100, 194, 155, 0.48) 20%, rgb(248, 248, 248) 40%);
;
    --color-bg-blue: radial-gradient(circle at 50% 110%, rgba(138, 212, 224, 0.48) 20%, rgb(248, 248, 248) 40%);
;
    


    /* Spacing — converted to rem (base 16px = 1rem) */
    --space-1: 0.25rem; /* was 4px */
    --space-2: 0.5rem; /* was 8px */
    --space-3: 0.75rem; /* was 12px */
    --space-4: 1rem; /* was 16px */
    --space-5: 1.25rem; /* was 20px */
    --space-6: 1.5rem; /* was 24px */
    --space-8: 2rem; /* was 32px */
    --space-10: 2.5rem; /* was 40px */
    --space-12: 3rem; /* was 48px */
    --space-16: 4rem; /* was 64px */
    --space-20: 5rem; /* was 80px */
    --space-24: 6rem; /* was 96px */

    /* Font sizes — converted to rem (1rem = 16px base) */
    --fs-xs: 0.75rem; /* ≈12px */
    --fs-sm: 0.875rem; /* ≈14px */
    --fs-base: 1rem; /* 16px – your desired base text size */
    --fs-md: 1.125rem; /* ≈18px */
    --fs-lg: 1.25rem; /* ≈20px */
    --fs-xl: 1.5rem; /* ≈24px */
    --fs-2xl: 2rem; /* ≈32px */
    --fs-3xl: 2.5rem; /* ≈40px */
    --fs-4xl: 3rem; /* ≈48px */
    --fs-5xl: 3.5rem; /* ≈56px */

    /* Line heights (unchanged – unitless or rem already good) */
    --lh-tight: 1.2;
    --lh-normal: 1.5;
    --lh-loose: 1.75;

    /* Border radius (unchanged) */
    --radius-sm: 8px; /* kept px – usually fixed for consistency */
    --radius-md: 12px;
    --radius-pill: 9999px;

    /* Shadows (unchanged – px is fine for subtle effects) */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
    max-width: 1440px;
    margin: 0 auto; /* centered */
    padding: 0; /* ← remove body padding */
    margin: auto;
    font-size: var(--fs-base); /* guarantees 16px base everywhere */
    line-height: var(--lh-normal);

}

footer,
header {
    /* or whatever wraps your main content */
    margin: var(--space-8);
}


section {
    margin: var(--space-8);
    margin-bottom: var(--space-16);
}
.section-heading, .column-heading {
    font-size: var(--fs-4xl);
    font-weight: 500;
    line-height: 1.16;
    margin-bottom: var(--space-4);
}
.section-subheading {
    font-size: var(--fs-lg);
  color: var(--color-text-light);
  font-weight: 600;
}

.section-paragraph b {
  font-weight: 600;
}
.call-to-actions {
    align-items: flex-start;
  justify-content: flex-start;
  display: flex;
  gap: var(--space-4);
}

.text-light {
  color: var(--color-bg);
}


/* Header */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* max-width: 1440px; */
}

.header-inner {
    display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-16);
  margin: 0 auto;
  gap: var(--space-8);
  max-width: 1440px;
}
/* Logo - pushed left */
.site-logo {
    flex-shrink: 0;
}

.site-logo a {
    display: block;
}

.site-logo img,
.site-logo svg {
    height: var(--space-11);
    width: auto;
}

/* Main Navigation - centered, evenly spaced */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-6); /* even spacing between items */
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    font-weight: 400;
    font-size: var(--fs-base);
    text-decoration: none;
    white-space: nowrap;
}
.nav-menu svg {
    padding-left: var(--space-2);
    height: var(--space-2);
    width: var(--space-5);
    display: unset;
}

/* Hide submenus completely */
.nav-menu .sub-menu {
    display: none;
}

/* Hide hamburger (mobile menu trigger) */
.hamburger {
    display: none;
}

/* CTA Buttons - pushed far right */
.header-ctas {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-shrink: 0;
}


/* Desktop Hover Dropdowns - Fixed */
.nav-menu li {
    position: relative;
}

.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: var(--shadow-md);
    border-radius: var(--space-3);
    min-width: 240px;
    z-index: 100;
}

.nav-menu li:hover > .sub-menu {
    display: block !important;
}

.nav-menu .sub-menu a {
    padding: var(--space-3) var(--space-6);
    display: block;
    white-space: nowrap;
    font-size: var(--fs-base);
}

.nav-menu .sub-menu a:hover {
    background: var(--color-gradient-a);
    color: var(--color-primary);
}

/* HAMBURGER (already at 1189px) */
@media (max-width: 1189px) {
    .main-navigation { display: none; }
    .hamburger { display: block; }
}

/* MOBILE FULL-SCREEN MENU */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
}
.mobile-menu.active { display: flex; align-items: flex-start; justify-content: center; padding-top: 80px; }

.mobile-menu-inner {
    background: #fff;
    width: 100%;
    max-width: 420px;
    border-radius: var(--space-6);
    margin: var(--space-6);
    overflow: hidden;
}

.mobile-ctas {
    padding: var(--space-6);
    display: flex;
    gap: var(--space-4);
    background: #f8f8f8;
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
}
.mobile-nav-menu > li {
    border-bottom: 1px solid var(--color-border);
}
.mobile-nav-menu a {
    padding: var(--space-5) var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-lg);
    font-weight: 500;
}
.mobile-nav-menu .sub-menu {
    display: none;
    background: #f8f8f8;
    padding-left: var(--space-8);
}
.mobile-nav-menu .sub-menu a {
    padding: var(--space-4) var(--space-6);
    font-size: var(--fs-md);
}
.mobile-nav-menu .has-children > a::after {
    content: "›";
    font-size: 1.4rem;
    transition: transform 0.3s;
}
.mobile-nav-menu .has-children.open > a::after {
    transform: rotate(90deg);
}

/* Hamburger Icon - 3 lines */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #231f20;
    border-radius: 3px;
    transition: all 0.3s ease;
}



.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: var(--fs-sm);
    background: var(--color-primary);
    color: var(--color-bg);
    gap: var(--space-2);
    transition: all 0.2s ease;
}


.btn:hover {
    background: var(--color-primary-dark);
}

.btn-schedule {
    background: var(--color-bg);
    color: var(--color-accent);
}
.btn-portal {
    background: var(--color-accent);
    color: var(--color-bg);
}
.btn-arrow {
    padding-right: calc(var(--space-12) + var(--space-1));
    position: relative;
}


/* Base state (Hidden/Circle) */
.button-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  /* Animate these properties */
  transition: max-width 0.6s ease, opacity 0.4s ease;
  /* This delay ensures it waits for the 0.8s fly-in to finish */
  transition-delay: calc(var(--stagger-delay, 0s) + 0.4s);
}

/* Base state for the button padding */
*:not(.header-ctas) > .btn-arrow {
   padding-right: var(--space-6); 
  transition: padding 0.6s ease;
  transition-delay: calc(var(--stagger-delay, 0s) + 0.4s);
}
.header-ctas .btn {
  font-size: var(--fs-base);
}

.arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--space-8) + 0.8 * (var(--space-1)));
    height: calc(var(--space-8) + 0.8 * (var(--space-1)));
    background: var(--color-bg);
    border-radius: 50%;
    flex-shrink: 0;
    position: absolute;
    right: calc(var(--space-1) + 0.7 * var(--space-1));
}

.btn-portal:hover .arrow-circle {
}

.arrow-circle svg {
    width: 1.125rem;
    height: 1.125rem;
    stroke: var(--color-bg);
    stroke-width: 2.5;
    fill: none;
}

/* New CTA button variants */
.btn-green {
    background: var(--color-primary-light);
    color: var(--color-bg);
}
.btn-green:hover {
    background: var(--color-primary-dark);
}

.btn-white {
    background: var(--color-bg);
    color: var(--color-accent);
}
.btn-white:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn-white .arrow-circle {
    background-color: var(--color-alt-light);
}

/* Hero Section */

.hero-section {
    padding: var(--space-8) var(--space-16) var(--space-8);
    border-radius: 2.2rem;
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.hero-section.top-hero {
  padding: var(--space-8);
}
.hero-overlay {
    margin: calc(1.7 * var(--space-16)) 0;
}
.section-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--space-8);
    height: var(--space-8);
     background: var(--color-title-circle);
    border-radius: 50%;
}

.top-hero .section-icon-circle {
  background: var(--color-bg);
}


.section-title-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-3);
}
.section-title {
    padding-left: var(--space-2);
    font-size: var(--fs-md);
    font-weight: 500;
}
.hero-heading {
    font-size: var(--fs-4xl);
    font-weight: 500;
    line-height: var(--lh-tight);
    margin: var(--space-3) 0;
}
.hero-subheading {
    font-size: var(--fs-lg);
    font-weight: 400;
}
.hero-content {
    max-width: 37rem;
}
.hero-content .top-hero {
    width: 50%;
}
.hero-section .call-to-actions {
    margin-top: var(--space-16);
}
.top-hero .hero-overlay {
    /* opacity: 0.8; */
}

.hero-review-card {
    position: absolute;
    bottom: var(--space-8);
}
.hero-google-card .hero-overlay {
    margin-bottom: calc(4.44 * var(--space-16));
}


/*FOOTER */


.container {
}.site-footer {
    font-size: var(--fs-base);
    /*! border-radius: 2.2rem; */
    color: var(--color-text-light);
}

.footer-emergency {
    /*! padding: var(--space-6) 0; */
    position: relative;
    /*! margin-bottom: calc(var(--space-16)*2); */
}


.footer-emergency .container {
  display: flex;
  flex-direction: row;
  gap: var(--space-12);
  align-items: flex-start;
  justify-content: space-between;
}

.footer-emergency .emergency-call {
    padding-left: var(--space-2);
    font-size: var(--fs-md);
    font-weight: 500;
}

.footer-emergency .non-emergency-notice {
    max-width: 28rem;
    font-size: calc(var(--fs-md)*1.1);
}

.footer-heading {
    font-size: 36px;
    font-weight: 500;
    font-size: calc(var(--fs-2xl)*1.13);
    color: var(--color-text);
    line-height: var(--lh-tight);
}



.footer-main {
    padding: var(--space-16);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 2.2rem;
    border: 1px solid var(--color-border);
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-12);
    align-items: flex-start;
    justify-content: space-between;
    margin: calc(var(--space-16)*2) 0;
}

    .footer-brand {
        flex: 0 0 auto;            /* remove fixed width on mobile */
        max-width: none;
        text-align: left;        /* center logo/tagline on mobile */
    }

    .footer-column {
        /*! text-align: center; */        /* center text/links on mobile */
    }

.footer-brand {
    width: 25rem;
}

.footer-logo {
    margin-bottom: var(--space-6);
}

.footer-logo svg,
.footer-logo img {
    max-height: 60px;
    width: auto;
}

.footer-tagline {
    font-size: var(--fs-md);
    opacity: 0.9;
    margin-bottom: var(--space-6);
}

.footer-column h4 {
    margin-bottom: var(--space-3);
    font-weight: 500;
    font-size: var(--fs-xl);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: var(--space-2);
}

.footer-column a {
    color: inherit;
    opacity: 0.85;
    transition: opacity 0.2s;
    font-size: var(--fs-md);
}

.footer-column a:hover {
    opacity: 1;
    text-decoration: underline;
}


.footer-menu svg {
  position: absolute;
  right: -1rem;
  top: 42%;
}
.footer-menu a {
  position: relative;
}

.social-icons {
   display: flex;
    justify-content: center;
    gap: var(--space-4);
}

.social-icon-link {
    display: block;
    text-decoration: none;
        width: var(--space-12);       /* circle size */
    height: var(--space-12);
}

.social-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;               /* circle size */
    height: 100%;
    background: var(--color-accent);   /* dark background (your charcoal color) */
    border-radius: 50%;
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-icon-link:hover .social-icon-circle {
    background: var(--color-primary);  /* teal on hover - optional */
}

.social-icon-circle svg {
width: var(--space-6);
  height: var(--space-6);
    fill: white;               /* white icon on dark circle */
}

.footer-copyright {
    font-weight: 500;
    font-size: var(--fs-md);
    color: var(--color-text);
    text-align: center;
}


/* Comprehensive Services Module */
.comprehensive-services {
  padding: var(--space-8);
}

.comprehensive-flex {
    display: flex;
    gap: var(--space-12);
}

.comprehensive-left {
    flex: 0 0 30%;
}

.comprehensive-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.comprehensive-card {
    padding: var(--space-6);
    text-align: left;
    background: var(--color-gradient-a);
    border-radius: var(--space-4);
}

.card-icon-circle {
    width: 4.5rem;
  height: 4.5rem;
  background: var(--color-title-circle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3.4rem;
}

.card-icon-circle img {
    width: var(--fs-2xl);
    height: var(--fs-2xl);
}

.card-title {
    font-size: 1.87rem;
    font-weight: 500;
    line-height: var(--lh-loose);
}

.card-description {
    font-size: var(--fs-md);
    color: #666;
    margin-bottom: var(--space-5);
}






.mini-cards, .core-services {
    padding: calc(var(--space-16)*1.1);
    margin: 0;
    margin-bottom: var(--space-16);
    border-radius: var(--fs-5xl);
}

.mini-cards.bg-white {
    background: var(--color-bg);
}

.mini-cards.bg-blue, .core-services.bg-blue {
    background: var(--color-gradient-a);

}

/* Title area - consistent with comprehensive & hero */
.mini-cards .section-title-wrapper {
    justify-content: center;
}

.mini-cards .section-heading,
.mini-cards .section-subheading {
    text-align: center;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

/* Cards container */
.mini-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    margin-top: var(--space-16);
}

/* Base card */
.mini-card {
    flex: 1 1 23%;               /* aim ~4 per row, min ~23-25% */
    max-width: 20rem;
    min-width: 23%;
    padding: var(--space-6) var(--space-10);
    border-radius: var(--space-4);
    text-align: center;
    background: var(--color-gradient-a);
    transition: transform 0.2s ease;
}

.mini-cards.bg-blue .mini-card {
    background: var(--color-bg);   /* cards stay white/light when section is blue */
}

.mini-card .card-icon-circle {
    margin: var(--space-3) auto;
    margin-bottom: var(--space-6);
}


.mini-cards-grid.numbered-grid {
  flex-direction: row;
}
.mini-cards-grid.numbered-grid .mini-card {
  flex: 1 1 48%;
  /*! width: 46%; */
  max-width: unset;
  text-align: left;
  border: 1px solid var(--color-border);
  padding: var(--space-6);
  background: unset;
}
.mini-cards-grid.numbered-grid .mini-card .card-title {
  display: inline-flex;
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.mini-cards-grid.numbered-grid  .card-number {
  background: unset;
  color: var(--color-text);
  font-weight: 500;
  width: unset;
  height: unset;
  border-radius: unset;
  font-size: var(--fs-xl);
  align-items: flex-start;
  margin: unset;
}


/* Text (inherits globals, slight override for mini size) */
.mini-card .card-title {
   font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  line-height: var(--lh-normal);
}

.mini-card .card-subtitle {
    font-size: var(--fs-md);
    color: var(--color-text-light);
    line-height: 1.5;
}

/* CTA container - centered */
.mini-cards .call-to-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    flex-wrap: wrap;
    margin-top: var(--space-8);
}

.two-column-section {
  padding: 0 var(--space-8);
}

.two-column-section .section-heading {
  font-size: var(--fs-4xl);
  font-weight: 500;
  text-align: center;
  margin-bottom: var(--space-4);
}

.two-column-section .section-subheading {
  font-size: var(--fs-lg);
  text-align: center;
  max-width: 56rem;
  margin: 0 auto var(--space-12);
}

.two-column-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.image-right .two-column-grid {
  direction: rtl;
}

.image-right .two-column-grid > * {
  direction: ltr;
}

.column {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  height: 100%;
  justify-content: center;
}
.style-info-cards .column.left {
  background: var(--color-bg-blue);
}

.style-info-cards .column.right {
  background: var(--color-bg-green);
}

.style-single-img .image-left .column.right {
padding-left: var(--space-4);
}

.style-single-img .image-right .column.left {
  padding-right: var(--space-4);
}

.section-title-wrapper {
  justify-content: flex-start;
}

.col-title .section-title {
  font-size: var(--fs-3xl);
}

.col-paragraph {
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
}
.column-text {
    font-size: var(--fs-lg);
}
.column-text strong{
    font-weight:600;
}

.checklist {
  list-style: none;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
    font-size: var(--fs-lg);
}

.checkmark-circle {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-primary-light); 
}

.checkmark-circle svg {
    width: 1.2rem;
    height: 1.2rem;
}

.style-info-cards .column-image {
    padding: 2rem 7rem;
}
.style-info-cards .column .call-to-actions {
  justify-content: center;
}
.column-image {
    flex: 1;          
    position: relative;
    overflow: hidden;

}

.style-single-img  .column-image  {
    min-height: 38rem; 
}

.column-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;  
    object-position: center;
    display: block;
}

.column-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;  
    object-position: center;
    display: block;
}

.style-single-img .column-image img  {

   object-fit: cover;  
}

.column-image{
  border-radius:var(--fs-5xl);
  overflow: hidden;
}

.column-image {
    position: relative;
    overflow: hidden;
}

.image-overlay {
    position: absolute;
    bottom: var(--space-6);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
    border-radius: 2rem;
    padding: var(--space-6);
    text-align: left;
    width: auto;
  max-width: 23rem;
  min-width: 17rem;
}


.image-overlay.overlay-right {
  right: var(--space-6);
}
.image-overlay.overlay-left {
  left: var(--space-6);
}
.image-overlay.overlay-full {
  left: var(--space-6);
  max-width: unset;
  width: calc(100% - 3rem);
}

.overlay-icon-circle {
    width: 4rem;
    height: 4rem;
    margin: 0 0 var(--space-4) 0;
    background: var(--color-title-circle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-icon-circle svg,
.overlay-icon-circle img {
    width: 60%;
    height: 60%;
}

.overlay-sub {
    font-size: var(--fs-lg);
    color: var(--color-text-light);
    font-weight: 500;
}
.image-overlay h4{
    font-size: var(--fs-xl);
    line-height: var(--lh-tight);
    font-weight: 500;
}


.image-overlay  .checklist {
  margin-top: var(--space-5);
  margin-bottom: var(--space-5);
}

.two-column-grid.image-right {
  grid-template-columns: 1fr 1.1fr;
}
.item-group {
  border-bottom: 1px solid var(--color-alt-light);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
}
.item-heading {
  font-weight: 500;
  font-size: var(--fs-xl);
  padding-bottom: var(--space-2);
}
.item-description {
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--color-text-light);
}

.style-info-cards .two-column-grid {
  grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
  gap: var(--space-8);
}

.style-info-cards .column {
  border-radius: var(--space-10);
  padding: var(--space-10);
    text-align: center;
    border: 1px solid var(--color-alt-light);
}

.style-info-cards .column.col-a {
  background: var(--color-gradient-a);
}

.style-info-cards .column .section-title-wrapper {
  justify-content: center;
}

.column .call-to-actions {
  margin-top: var(--space-8);
  justify-content: left;
}


.style-single-img .btn-white {
  border: 1px solid var(--color-alt-light);
}




.two-column-grid:has(.extra-image) {
  
  gap: var(--space-24);
}
.column:has(.extra-image) {
  position: relative;
}

.extra-image {
  position: absolute;
  right: -7rem;
  top: 18%;
  width:14rem;
  height: auto; 
  
}

/*CORE SERVICES*/

.core-services.bg-blue {
    position: relative;
    background: var(--color-gradient-b);
}

.core-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-12);
}

.core-left {
    max-width: 65%;
}

.core-cta {
    margin-top: var(--space-2);
}

.core-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
    gap: var(--space-3);
}

.core-service-item {
    background: white;
    color: var(--color-text);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    height: 100%;                    /* uniform height */
    justify-content: start;
}

.service-icon-circle {
    flex-shrink: 0;
    width: 2.6rem;
    height: 2.6rem;
    background: var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-circle svg,
.service-icon-circle img {
    width: 55%;
    height: 55%;
}

.service-name {
    font-size: var(--fs-md);
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

.core-grid-wrapper {
    /*! position: relative; */
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent 0%, #fff 90%);
    pointer-events: none;
    width: 100%;
}

.team-members-section {
    padding: 0 var(--space-8) 0;
    text-align: center;
    align-items: end;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-12);
}

.team-card {
    background: white;
    border-radius: var(--space-5);
    overflow: hidden;
    text-align: center;
    padding: var(--space-3);
    border: 1px solid var(--color-border);
}

.team-photo {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--space-3);
}

.team-name {
    font-size: var(--fs-xl);
    font-weight: 500;
    margin: var(--space-5) 0 var(--space-2);
}

.team-title {
    font-size: var(--fs-md);
    color: var(--color-text-light);
}
.container {
}
.team-members-section .section-title-wrapper {
    justify-content: center;
}

/* ACCORDION SECTION */
.accordion-section {
  padding: var(--space-16) 0;
}

.accordion-list {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 55rem;
  margin: auto;
}

.accordion-item {
  position: relative;
  background-color: var(--color-bg-light);
  border-radius: var(--space-4);
  overflow: hidden;
  transition: background 0.4s ease;
}

.accordion-question {
  cursor: pointer;
  padding: var(--space-6) var(--space-6) var(--space-6) var(--space-6);
  font-size: var(--fs-lg);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  transition: color 0.2s;
}

.accordion-question:hover {
  color: var(--color-primary);
}
.accordion-toggle {
    width: 1.5rem;
    height: 1.5rem;
    position: absolute;
    transition: transform 0.3s ease;
    right: 2rem;
    top: 50%;
    translate: 0 -41%;
}
.accordion-toggle svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

details[open] .accordion-toggle svg {
  transform: rotate(45deg);
}

.accordion-answer {
  padding: 0 var(--space-6) var(--space-6) var(--space-6);
  color: var(--color-text-light);
  font-size: var(--fs-md);
  line-height: 1.6;
  height: 0;
  overflow: hidden;
  transition: height 0.4s ease, padding 0.4s ease;
}

details[open] .accordion-answer {
  height: auto;
  padding: var(--space-4) var(--space-16) var(--space-6) var(--space-6);
}

details[open] .accordion-question::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1; 
}

details[open] .accordion-answer {
    position: relative;
    z-index: 0;
    pointer-events: none; 
    user-select: text;    
}


.accordion-answer a, 
.accordion-answer button {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}


/* Background gradient on open */
details[open].accordion-item {
  background: var(--color-gradient-a);
}

.accordion-section .call-to-actions {
  justify-content: center;
  margin-top: var(--space-12);
}

/* PATIENT RESOURCES */

.patient-resources .hero-section {
    background: var(--color-gradient-a);
    text-align: center;
}

.patient-resources  .page-title {
    font-size: var(--fs-4xl);
    margin-bottom: var(--space-3);
}

.patient-resources  .page-header {
    font-size: var(--fs-lg);
    max-width: 65rem;
    margin: 0 auto;
}

.resource-link {
    font-weight: 500;
    font-size: 1.7rem;
}

.resource-link:hover {
    color: var(--color-primary-dark);
}

.checkbox-list {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-6);
    margin-top: var(--space-3);
}

.checkbox-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
    font-size: var(--fs-md);
}


.patient-resources-header .hero-content {
  margin: auto;
  padding-top: var(--space-12);
}
.patient-resources-header .section-title-wrapper {
  justify-content: center;
}


.patient-resources .section-title-wrapper {
  justify-content: center;
}
.patient-resources  .hero-content {
  margin: auto;
}

.patient-section {
  margin: var(--space-6) var(--space-24);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-6);
}
.section-links {
    margin-top: var(--space-3);
}

.section-heading, .column-heading {
  font-size: var(--fs-4xl);
  font-weight: 500;
  line-height: 1.16;
  margin-bottom: var(--space-4);
}

.section-paragraph p {
    /* color: var(--color-text-light); */
    font-weight: 400;
    font-size: var(--fs-md);
    margin-top: var(--space-4);
}
.section-paragraph strong {
    font-weight: 600;
}

.link-circle {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--color-primary-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: var(--space-4);
    overflow: hidden;
}

.link-circle svg {
    width: 50%;
  height: 50%;
}
.resource-link.resource-link-small {
    font-size: var(--fs-base);
    color: var(--color-title-circle);
    text-decoration: underline;
}
.patient-section:last-child {
    border-bottom: none;
}

.patient-section .section-image {
    margin: var(--space-8) 0;
    text-align: center;
  width:100%;
    display: block;
}

.patient-section .section-image img {
    max-width: 100%;
    height: auto;
    width: 100%;
}

.google-reviews-section {
    padding: var(--space-16) 0;
}

.google-reviews-section .container {
    position: relative;
}


.google-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.review-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-6);
    box-shadow: 0px 24px 90px rgba(0, 0, 0, 0.06);
    position: relative;
}

.review-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.review-meta {
    flex: 1;
}

.review-name {
    font-weight: 600;
    margin: 0;
}

.review-date {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
}

.google-logo {
    width: 24px;
    height: 24px;
}

.review-stars {
    color: #fbbc05;
    font-size: 1.4rem;
    margin-bottom: var(--space-4);
}

.star-empty {
    color: #ddd;
}

.review-description {
    font-size: var(--fs-md);
    line-height: 1.6;
    color: var(--color-text-light);
}

.read-more {
    color: var(--color-primary);
    text-decoration: underline;
}

/*locations */

.locations-section {

}

.locations-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.location-card {
    display: flex;
    border-radius: var(--space-4);
    overflow: hidden;
    border-radius: var(--fs-5xl);
  background: var(--color-gradient-a);
  padding: var(--space-12);
}

.location-info {
    flex: 1;
    /*! padding: var(--space-10); */
    min-width: 380px;
}

.location-name {
    font-size: var(--fs-3xl);
    font-weight: 500;
    margin-bottom: var(--space-8);
}

.info-row {
    display: flex;
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

.icon-circle {
    width: 52px;
    height: 52px;
    background: var(--color-title-circle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.label {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    display: block;
    margin-bottom: 2px;
}

.value, .hours-line {
    font-size: var(--fs-lg);
    font-weight: 500;
}

.location-image {
    flex: 1;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: var(--space-6);
}

.address-overlay {
    position: absolute;
    bottom: var(--space-6);
    left: var(--space-6);
    right: var(--space-6);
    background: #fff;
    border-radius: var(--space-4);
    padding: var(--space-6);
    display: flex;
    gap: var(--space-6);
    box-shadow: var(--shadow-md);
}

.map-placeholder img {
    width: 150px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--space-3);
}

.address-content .label {
    font-weight: 600;
    font-size: var(--fs-md);
}

.address-text {
    font-size: var(--fs-md);
    line-height: 1.45;
    margin-top: 4px;
}

@media (max-width: 992px) {
    .location-card {
        flex-direction: column;
    }
    .location-image {
        min-height: 320px;
    }
}

/* ==============================================
   GENERIC FADE-IN ANIMATIONS (staggered)
   ============================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    transition-delay: var(--stagger-delay, 0s);
    will-change: opacity, transform;
}

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

/* Stagger container */
.stagger-children .animate-in {
    transition-delay: var(--stagger-delay, 0s);
    
}


/* Expanded state when visible */
.is-visible .button-text {
  max-width: 300px; /* Use a value larger than your text */
  opacity: 1;
}

.is-visible.btn-arrow {
  /* Return to original padding */
  padding-right: calc(var(--space-12) + var(--space-1));
}


/* --- THE UNIVERSAL FLIPPER (For Icons) --- */
.reveal-flip-parent {
  perspective: 1000px; /* Required for 3D depth */
}

.reveal-flip {
  transform: rotateY(180deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: calc(var(--stagger-delay, 0s) + 0.8s);
}

.reveal-flip svg {
  opacity: 0;
  transition: opacity 0.1s;
  /* Reveal halfway through the flip */
  transition-delay: calc(var(--stagger-delay, 0s) + 1.1s);
}

.is-visible .reveal-flip {
  transform: rotateY(0deg);
}

.is-visible .reveal-flip svg{
  opacity: 1;
}

/* RESPONSIVE */


@media (max-width: 1385px) {

.comprehensive-flex {
  flex-direction: column;
}
}

@media (max-width: 992px) {
    .comprehensive-flex {
        flex-direction: column;
    }
    .comprehensive-left {
        text-align: center;
    }
    .comprehensive-grid {
        grid-template-columns: 1fr;
    }
}



@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand {
        max-width: none;
        margin-bottom: var(--space-12);
    }
}


@media (max-width: 1189px) {
    .main-navigation {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}


@media (max-width: 992px) {
  .two-column-grid,
  .style-info-cards .two-column-grid {
    grid-template-columns: 1fr;
  }
  .image-right .two-column-grid {
    direction: ltr;
  }
}

/* Responsive */
@media (max-width: 992px) {
    .mini-card {
        flex: 1 1 45%;
        max-width: 45%;
    }
}

@media (max-width: 640px) {
    .mini-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}  