:root {
    --primary: #007A3D;
    /* strong green */
    --secondary: #005E8A;
    /* deep blue */
    --accent: #fb7a03;
    /* final orange */   
    --mint: #88C342;
    /* soft green */  
    --bg: #FBF9F1;
    /* light warm background */
    --text: #1D2731;
    /* charcoal */
    --text-light: #556C77;
    /* subdued slate */
}

/* ── Global heading colour hierarchy ──────────────────────────────────── */
h1 { color: var(--primary); }
h2 { color: var(--secondary); }
h3 { color: var(--accent); }

/* ── Dual-colour highlight spans ──────────────────────────────────────── */
/* Base: inline-block so ::after positions correctly */
.hl-primary, .hl-secondary, .hl-accent, .hl-dark {
    position: relative;
    display: inline;
   
}

/* Green highlight bar — used on h1 first words */
.hl-primary {
    color: var(--primary);
}


/* Blue highlight bar — used on h2 first words */
.hl-secondary {
    color: #1D2731;
}


/* Orange highlight bar — used on h3 first words */
.hl-accent {
    color: var(--accent);
}


/* Dark finish word — black text, yellow highlight bar */
.hl-dark {
    color: #1D2731;
}
.hl-dark::after {
    content: '';
    position: absolute;
    left: -3px; right: -3px;
    bottom: 2px;
    height: 40%;
     /*  background: rgba(254, 239, 21, 0.65); yellow */
    border-radius: 4px;
    z-index: -1;
}

/* White finish word for dark-bg sections */
.hl-white {
    color: #fff;
}
.hl-white::after {
    content: '';
    position: absolute;
    left: -3px; right: -3px;
    bottom: 2px;
    height: 40%;
    background: rgba(251, 122, 3, 0.45);
    border-radius: 4px;
    z-index: -1;
}
/* ─────────────────────────────────────────────────────────────────────── */

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

@font-face {
    font-family: 'Comfortaa';
    src: url('Comfortaa-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
}

body, html, * {
    font-family: 'Comfortaa', sans-serif !important;
}

body {
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
}

body.accessibility-large-text {
    font-size: 18px;
}

body.accessibility-large-text .section-title,
body.accessibility-large-text h1,
body.accessibility-large-text h2,
body.accessibility-large-text h3,
body.accessibility-large-text p,
body.accessibility-large-text li,
body.accessibility-large-text a,
body.accessibility-large-text button,
body.accessibility-large-text input,
body.accessibility-large-text select,
body.accessibility-large-text textarea {
    font-size: inherit;
}

body.accessibility-large-text .section-title { font-size: 2.1em; }
body.accessibility-large-text .section-description { font-size: 1.2em; }

body.accessibility-high-contrast {
    --bg: #000000;
    --primary: #ffd400;
    --secondary: #7dd3fc;
    --accent: #ff9f1c;
    --text: #ffffff;
    --text-light: #dfe7ee;
    background: #000000;
    color: #ffffff;
}

body.accessibility-high-contrast a,
body.accessibility-high-contrast button,
body.accessibility-high-contrast summary,
body.accessibility-high-contrast label,
body.accessibility-high-contrast input,
body.accessibility-high-contrast select,
body.accessibility-high-contrast textarea {
    color: #ffffff;
}

body.accessibility-grayscale {
    filter: grayscale(100%);
}

body.accessibility-reduced-motion *,
body.accessibility-reduced-motion *::before,
body.accessibility-reduced-motion *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
}

.accessibility-toggle {
    position: fixed;
    inset: auto 1rem 1rem auto;
    left: auto;
    top: auto;
    right: 1rem;
    bottom: 1rem;
    z-index: 2000;
    width: 4.25rem;
    height: 4.25rem;
    border: 0;
    border-radius: 50%;
  
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0;
}

.accessibility-toggle svg {
    width: 72%;
    height: 72%;
    display: block;
}

.accessibility-toggle:hover,
.accessibility-toggle:focus-visible {
    transform: translateY(-2px);
}

.accessibility-menu {
    position: fixed;
    right: 1rem;
    bottom: 5.25rem;
    z-index: 1999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    border-radius: 1rem;
    padding: 0.75rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

body.accessibility-high-contrast .accessibility-menu {
    background: rgba(0, 0, 0, 0.96);
    border-color: rgba(255, 255, 255, 0.18);
}

.accessibility-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.accessibility-menu button {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f4f7f8;
    color: var(--text);
    padding: 0.7rem 0.9rem;
    border-radius: 0.75rem;
    text-align: left;
    font-weight: 700;
    cursor: pointer;
}

body.accessibility-high-contrast .accessibility-menu button {
    background: #101010;
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.accessibility-menu button:hover,
.accessibility-menu button:focus-visible {
    border-color: var(--primary);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #ffffff;
    color: #111111;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 9999;
    text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
    left: 1rem;
    top: 0;
}

:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  
    box-shadow: 0 0 0 5px rgba(0, 95, 204, 0.18);
}

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

@media (forced-colors: active) {
    a, button, summary {
        forced-color-adjust: auto;
    }
}

/* Floating shapes background */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.08;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    border-radius: 50%;
    top: -100px;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 40%;
    right: -50px;
    animation-delay: 3s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--accent);
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
    animation-delay: 6s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    bottom: -80px;
    right: 15%;
    animation-delay: 9s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    50% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }

    75% {
        transform: translate(20px, 30px) rotate(3deg);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceDown {
    0%,
    100% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0.9;
    }
    50% {
        transform: rotate(45deg) translate(7px, 7px);
        opacity: 1;
    }
}

/* Header */
header {
    padding: .5rem .5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    background: rgba(255, 251, 245, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 2px solid rgba(255, 107, 157, 0.1);
    width:100%
}

.header-tools {
   position: absolute;
    bottom: -4px;
    right: 0;
}

.language-switcher-wrap {
    display: inline-flex;
    align-items: center;
}

.language-switcher {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid rgba(26, 179, 232, 0.28);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    border-radius: 2px;
    padding: 2px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 76, 120, 0.08);
    background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%), linear-gradient(135deg, var(--primary) 50%, transparent 50%);
    background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.language-switcher:focus-visible {
    outline: 2px solid rgba(26, 179, 232, 0.5);
    outline-offset: 2px;
}

.logo {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.3;
}

.logo::before {
    background-image: url(assets/logo.webp);
}

nav {
    display: flex;
    gap: 1.6rem;
    align-items: center;
}

nav#main-nav .nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}

nav#main-nav .nav-menu > li {
    position: relative;
}

/* Bridge the pointer path from summary to dropdown so hover doesn't drop. */
nav#main-nav .nav-group::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 18px;
}

nav a,
nav#main-nav summary {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    list-style: none;
}

nav#main-nav summary {
    cursor: pointer;
}

nav#main-nav summary::-webkit-details-marker {
    display: none;
}

nav#main-nav summary::marker {
    content: '';
}

nav a::after,
nav#main-nav summary::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s;
    border-radius: 3px;
}

nav a:hover,
nav#main-nav summary:hover {
    color: var(--primary);
}

nav a:hover::after,
nav#main-nav summary:hover::after {
    width: 100%;
}

nav a.active-link,
nav#main-nav .nav-group.active-parent > details > summary {
    color: var(--primary);
}

nav a.active-link::after,
nav#main-nav .nav-group.active-parent > details > summary::after {
    width: 100%;
}

nav#main-nav .submenu {
    display: none;
    position: absolute;
    
    left: 0;
    min-width: 290px;
    max-height: 360px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0.45rem 0;
    background: rgba(255, 251, 245, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 122, 61, 0.12);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    z-index: 210;
}

nav#main-nav .nav-group details[open] > .submenu {
    display: block;
}

.mobile-only
{
    display: none;
}
@media (min-width: 768px) {
    nav#main-nav .nav-group:hover > details > .submenu,
    nav#main-nav .nav-group:focus-within > details > .submenu {
        display: block;
    }
}

nav#main-nav .submenu a {
    display: block;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    line-height: 1.35;
}

nav#main-nav .submenu a::after {
    display: none;
}

.cta-button {
    background: linear-gradient(135deg, var(--accent), var(--accent));
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(231, 128, 0, 0.35);
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.4);
}

.location-pill-lajoya {
    background: linear-gradient(135deg, var(--primary), #006b36);
    box-shadow: 0 4px 15px rgba(0, 122, 61, 0.35);
    color: #ffffff;
}

.location-pill-lajoya:hover,
.location-pill-lajoya:focus-visible {
    background: linear-gradient(135deg, #006b36, var(--primary));
    box-shadow: 0 6px 25px rgba(0, 122, 61, 0.4);
    color: #ffffff;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hero-hex-overlay {
    position: absolute;
    top: 50vh;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
    right: 0;
    opacity: 0.7;
    width: clamp(110px, 17vw, 240px);
    height: auto;
}

.hero-content h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: var(--primary);
    animation: slideUp 0.8s ease-out;
}

/* legacy .highlight kept as alias for .hl-primary */
.highlight {
    color: var(--primary);
    position: relative;
    display: inline;
    white-space: nowrap;
}
.highlight::after {
    content: '';
    position: absolute;
    left: -3px; right: -3px;
    bottom: 2px;
    height: 40%;
    background: rgba(254, 239, 21, 0.65);
    border-radius: 4px;
    z-index: -1;
}

.hero-content {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    width: min(100%, 900px);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 22px;
    padding: 1rem 1.1rem 0.75rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.hero-doctors {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
    animation: slideUp 0.8s ease-out 0.3s backwards;
}

.hero-banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    min-height: 100%;
}
#main-content
{
        margin-top: 125px;
}
.scroll-indicator {
    position: relative;
    top: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeInDown 1.5s ease 1s both;
    margin: 0.85rem auto 0;
}
.scroll-indicator .arrow {
    width: 28px;
    height: 28px;
    border-right: 3px solid var(--secondary);
    border-bottom: 3px solid var(--secondary);
    transform: rotate(45deg);
    animation: bounceDown 1.5s ease-in-out infinite;
}
.team-details {
    margin: 2.5rem auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
    text-align: left;
}

.team-photo img {
    width: 100%;
    height: auto;
    border-radius: 3px;
    box-shadow: none;
    display: block;
}

.team-photo {
    padding: 20px;
  background: linear-gradient(135deg, rgb(213 101 28 / 95%), rgb(29 184 22 / 70%));
    border: 2px solid rgba(200, 130, 32, 0.35);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.team-photo img {
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.7);
}

.doctor-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
   
}

.doctor-profile {
    background: rgba(255,255,255,0.97);
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.doctor-profile:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.16);
}

.doctor-summary {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    user-select: none;
}

.doctor-avatar-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: var(--bg);
}

.doctor-avatar-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.doctor-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 0.2rem;
    line-height: 1.3;
}

.doctor-title {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* Bounce-invite animation — nudges the arrow to signal it's clickable */
@keyframes arrow-bounce {
    0%, 100% { transform: translateY(0); }
    40%       { transform: translateY(4px); }
    60%       { transform: translateY(2px); }
}

.expand-toggle {
    margin-left: auto;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease;
    padding: 0;
    /* Runs the bounce 3× on load, then repeats every 4s to keep inviting */
    animation: arrow-bounce 0.7s ease 0.8s 3;
}

/* Re-trigger bounce on parent hover so it pulses when user mouses over card */
.doctor-profile:not(.open):hover .expand-toggle {
    animation: arrow-bounce 0.6s ease infinite;
}

.expand-toggle:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Chevron arrow drawn with CSS borders */
.toggle-icon {
    position: relative;
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2.5px solid var(--accent);
    border-bottom: 2.5px solid var(--accent);
    transform: rotate(45deg) translate(-1px, -2px);   /* ↓ chevron pointing down */
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}

/* When open: flip arrow to point up */
.doctor-profile.open .toggle-icon {
    transform: rotate(-135deg) translate(-1px, -2px);
}

.expand-toggle:hover .toggle-icon {
    border-color: #fff;
}

.doctor-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding 0.3s ease;
    padding: 0 1.2rem;
    border-top: 0px solid rgba(0,0,0,0.06);
}

.doctor-profile.open .doctor-details {
    max-height: 700px;
    padding: 0.8rem 1.2rem 1.2rem;
    border-top-width: 1px;
}

.detail-group {
    margin-bottom: 0.9rem;
}

.detail-group:last-child {
    margin-bottom: 0;
}

.detail-group h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    margin-bottom: 0.45rem;
}

.detail-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.detail-group ul li {
    font-size: 0.88rem;
    color: var(--text);
    padding-left: 1rem;
    position: relative;
    line-height: 1.4;
}

.detail-group ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.location-pills {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
    flex-wrap: nowrap;
    animation: slideUp 0.8s ease-out 0.4s backwards;
    width: 100%;
}

.location-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: min(100%, 390px);
    min-height: 128px;   
    color: #000;
    text-decoration: none;
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.location-card:hover,
.location-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
    filter: brightness(1.03);
}

.location-card-weslaco {
    background: linear-gradient(135deg, rgba(251, 122, 3, 0.05), rgba(251, 122, 3, 0.02));
    border-color: #ff9e1a;
}

.location-card-lajoya {
   background: linear-gradient(135deg, rgba(0, 122, 61, 0.05), rgba(0, 122, 61, 0.02));
    border-color: #33b56a;
}

.location-card-logo {
       width: 150px;
    height: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-card-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.location-card-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.45rem;
    text-align: left;
    flex: 1;
}

.location-card-name-text,
.location-card-phone-text {
    display: block;
}

.location-card-name-text {
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.2;
}

.location-card-name-text-weslaco {
    color: #d96a00;
}

.location-card-name-text-lajoya {
    color: #0b7d4a;
}

.location-card-phone-text {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(0, 0, 0, 0.8);
}

.hero-stats {
    padding-top: 10px;
    display: flex;
    gap: 3rem;
    margin: 0 auto;
    animation: slideUp 0.8s ease-out 0.5s backwards;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats-section {
    padding: 3rem 5%;   
   
    overflow: visible;
    text-align: center;
    width: 100%;
    margin: 0;
    overflow: visible;
    position: relative;
    z-index: 5;
}

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

.stat-number {
    font-family: 'Fredoka', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.5;
    max-width: 120px;
    text-align: center;
    margin-top: 0.65rem;
    min-height: 1.4rem;
}


.hero-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    animation: none;
}

.hero-image-container {
    background: linear-gradient(135deg, var(--mint), var(--accent));
    border-radius: 50px;
    padding: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}



.hero-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: white;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 3rem;
}

.hero-placeholder svg {
    width: 100%;
    height: 100%;
    max-width: 400px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Why Choose Us Section */
.why-choose {
    z-index: 3;
    left: 50%;  
    transform: translateX(-50%);   
   
    backdrop-filter: blur(2px);  
    padding: 1.5rem 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.7);
    text-align: center;
    position: relative;
}

.services-carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.services-rail {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.25rem 0.1rem 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    min-width: 0;
}

.services-rail::-webkit-scrollbar {
    display: none;
}

.carousel-control {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--secondary);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 122, 61, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: static;
    transform: none;
    z-index: 1;
    flex-shrink: 0;
}

.carousel-control:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 122, 61, 0.25);
}

.carousel-control:disabled {
    background: #c7c7c7;
    color: #f4f4f4;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.85;
}

.carousel-control:disabled:hover {
    transform: none;
    box-shadow: none;
}

.service-card {
    min-width: 250px;
    max-width: 250px;
    flex: 0 0 auto;
    background: var(--bg);
    border-radius: 24px;
    padding: 1.6rem 1.25rem;
    position: relative;
    border: 2px solid rgba(255, 107, 157, 0.12);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.service-card .service-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
    color: var(--secondary);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
}

.service-learn-more {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: #FFC107;
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 122, 61, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.service-learn-more:hover {
    background: var(--secondary);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(255, 107, 157, 0.28);
}

.service-learn-more:focus-visible {
    outline: 3px solid rgba(255, 107, 157, 0.45);
    outline-offset: 2px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.section-subtitle {
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.team-group {
    max-width: 1300px;
    margin: 0 auto 2.5rem;
}

.team-subgroup {
    margin-top: 1.5rem;
}

.team-subgroup-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.2rem;
    color: var(--secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg);
    border-radius: 30px;
    padding: 2.5rem;
    position: relative;
    border: 2px solid rgba(255, 107, 157, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeIn 0.6s ease-out backwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(5) {
    animation-delay: 0.5s;
}

.feature-card:nth-child(6) {
    animation-delay: 0.6s;
}

.feature-card:nth-child(7) {
    animation-delay: 0.7s;
}

.feature-card:nth-child(8) {
    animation-delay: 0.8s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.feature-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 5%;
       box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.testimonials-carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.testimonials-rail {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.25rem 0.1rem 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    min-width: 0;
}

.testimonials-rail::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 320px;
    max-width: 320px;
    flex: 0 0 auto;
    background: white;
    border-radius: 30px;
    padding: 2.5rem;
    position: relative;
    border: 2px solid rgba(255, 107, 157, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeIn 0.6s ease-out backwards;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:nth-child(1) {
    animation-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.3s;
}

.testimonial-card:nth-child(4) {
    animation-delay: 0.4s;
}

.testimonial-card:nth-child(5) {
    animation-delay: 0.5s;
}

.testimonial-card:nth-child(6) {
    animation-delay: 0.6s;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    right: 30px;
}

.stars {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 700;
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.author-detail {
    font-size: 0.95rem;
    color: var(--text-light);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--mint);
    color: var(--secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}
.mission-section {
   padding: 4rem 5%;
    box-shadow:  inset 0px -8px 40px rgb(0 0 0 / 12%);
    border: 1px solid rgba(255, 255, 255, 0.7);
}


/* Doctors Section */
.doctors-section {
    padding: 0 5%;
   
    position: relative;
}
.doctors-section::before {
    content: '';
    position: absolute;   
    left: 0;
    right: 0;
    height: 190px;
    background: white;
    border-radius: 0 0 50% 50% / 0 0 100px 100px;
}


.staff-showcase {
    position: relative;
    z-index: 1;
}

.team-section {
    padding: 1rem 5% 6rem;
}

.staff-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    gap: 1.4rem;
}

.staff-grid-doctors {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.staff-grid-team {
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    align-items: stretch;
    justify-content: center;
}

.staff-card {
    background: #fff;
    border: 2px solid rgba(0, 122, 61, 0.16);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
    padding: 0.8rem 0.8rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 100%;
    height: 100%;
    width: 100%;
    max-width: 220px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
}

.staff-card-doctor {
    border-color: rgba(0, 94, 138, 0.3);
}

.staff-photo-wrap {
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 122, 61, 0.1), rgba(251, 122, 3, 0.1));
    aspect-ratio: 4 / 5;
    width: 100%;
    min-height: 220px;
}

.staff-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.staff-name {
    font-family: 'Fredoka', sans-serif;
    color: var(--secondary);
    font-size: 1.05rem;
    line-height: 1.25;
    margin: 0.2rem 0 0;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-title {
    margin-top: auto;
    background: rgba(0, 122, 61, 0.08);
    border: 1px solid rgba(0, 122, 61, 0.15);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.doctor-card {
    background: var(--bg);
    border-radius: 30px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s;
    border: 2px solid rgba(255, 107, 157, 0.1);
}

.doctor-card:hover {
    transform: translateY(-10px);
}

.doctor-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFE6F0, #E8F5FF);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
}

.doctor-photo svg {
    width: 100%;
    height: 100%;
}

.doctor-name-full {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.doctor-credentials {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.doctor-badge {
    background: linear-gradient(135deg, var(--mint), var(--accent));
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

/* Video Testimonials */
.video-testimonials {
    margin-top: 5rem;
    padding: 4rem 0;
}

.video-testimonials h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.video-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
    border: 2px solid rgba(255, 107, 157, 0.1);
}

.video-card:hover {
    transform: scale(1.03);
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.play-button {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.video-card:hover .play-button {
    transform: scale(1.1);
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.video-description {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Contact Section */
.contact-section {
    padding: 4rem 5%;   
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    border: 2px solid rgba(0, 122, 61, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.contact-info-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.contact-hours-wrap {
    width: 100%;
    margin-top: 0.15rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}

.contact-hours-header {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    width: 100%;
    text-align: left;
}

.contact-hours-icon {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
    flex-shrink: 0;
}

.contact-hours-table {
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.45);
    text-align: left;
}

.contact-hours-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-light);
}

.contact-hours-row:last-child {
    border-bottom: none;
}

.contact-hours-row span:last-child {
    text-align: right;
    color: var(--text);
    font-weight: 600;
}

.weslaco-card {
    border-color: rgba(251, 122, 3, 0.3);
    background: linear-gradient(135deg, rgba(251, 122, 3, 0.05), rgba(251, 122, 3, 0.02));
}
.lajoya-card {
    border-color: rgba(0, 122, 61, 0.3);
    background: linear-gradient(135deg, rgba(0, 122, 61, 0.05), rgba(0, 122, 61, 0.02));
}
/* Office logo */
.contact-icon {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 0.5rem;
}

.contact-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.contact-location {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.contact-address {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
    text-align: center;
}

.contact-phone {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    text-align: center;
}

.contact-phone a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Map embed */
.map-wrapper {
    width: 100%;
    height: 240px;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.contact-form-wrap {
    max-width: 900px;
    margin: 2.5rem auto 0;
}

.contact-form {
    background: #fff;
    border-radius: 24px;
    padding: 2rem;
    border: 2px solid rgba(0, 122, 61, 0.1);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    margin-bottom: 1.2rem;
    color: var(--secondary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid #d8e3ea;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    color: var(--text);
    background: #fff;
}

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

.form-submit {
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
}

.form-submit:hover {
    filter: brightness(0.96);
}

/* CTA Section */
.cta-section {
    padding: 6rem 5%;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), #FF8FB9);
    color: white;
}

.cta-section h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent));
    color: #1D2731;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(231, 128, 0, 0.32);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid white;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

/* Footer */
footer {
    background: var(--text);
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.footer-brand {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #feef15;   /* yellow — high contrast on dark footer bg */
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-column h4 {
    font-family: 'Fredoka', sans-serif;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

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

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.social-link-item {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.social-link-item:hover,
.social-link-item:focus-visible {
    color: #ffffff;
    transform: translateX(2px);
}

.social-link {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.facebook-link {
     background: #1877F2!important;
    
    border-color: rgba(24, 119, 242, 0.35)!important;
    color: #ffffff !important;
}

.instagram-link {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 48%, #8134af 100%)!important;
    border-color: rgba(225, 48, 108, 0.35)!important;
     color: #ffffff !important;
}

.social-link:hover,
.social-link:focus-visible {
    background: var(--primary);
    border-color: transparent;
    color: var(--text);
    transform: translateY(-2px);
}

.facebook-link:hover,
.facebook-link:focus-visible {
    background: #1877F2!important;
    color: #cacaca !important;
}

.instagram-link:hover,
.instagram-link:focus-visible {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 48%, #8134af 100%)!important;
  
    color: #cecece !important;
}

.social-link svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

.social-link-text {
    line-height: 1.3;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}
.footer-bottom a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.location-logos
{    position: absolute;
    top: 80px;
    left: 0px;
    height: 65px;
}
/* ═══════════════════════════════════════════════════════════
   HAMBURGER BUTTON
═══════════════════════════════════════════════════════════ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.hamburger:hover { background: rgba(0,0,0,0.06); }
.hamburger span {
    display: block;
    height: 3px;
    border-radius: 3px;
    background: var(--primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
/* X animation when open */
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════
   TABLET  — iPad / 768 px – 1024 px
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

    /* Header */
    header {
       
        gap: 0.5rem;
    }
    .logo img { width: 120px;height: 80px; }
    .location-logos img{width: 120px;}
    nav { gap: 1rem; }
    nav#main-nav .nav-menu { gap: 0.8rem; }
    nav a,
    nav#main-nav summary { font-size: 0.9rem; }
    nav#main-nav .submenu { min-width: 250px; }
    .desktop-cta {padding: 0.5rem 0.8rem; font-size: 0.9rem; }

    /* Hero */
    .hero { min-height: 85vh; }
    .hero-content {
        bottom: 3rem;
        padding: 1rem 1.5rem;
    }
    .hero-content h1 { font-size: 2.8rem; }

    /* Stats strip */
    .hero-stats { gap: 2rem; padding: 1.2rem 1.5rem; }
    .stat-number { font-size: 2.4rem; }

    /* Sections */
    .section-title { font-size: 2.8rem; }
    .why-choose { padding: 4rem 4%; }
    .doctors-section { padding: 0 4%; }
    .testimonials-section { padding: 4rem 4%; }

    /* Doctors grid */
    .team-details { grid-template-columns: 1fr 1fr; gap: 1.2rem; }

    /* Testimonials */
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }

    /* Footer */
    .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }

    /* Contact */
    .contact-section { padding: 3rem 4%; }
    .contact-grid { gap: 1.5rem; }
    .contact-card { padding: 1.5rem; }
    .contact-icon { max-width: 160px; }
    .contact-location { font-size: 1.5rem; }
    .contact-phone { font-size: 1.4rem; }
    .map-wrapper { height: 200px; }
    .form-row { grid-template-columns: 1fr; }
}

@media only screen 
  and (min-device-width: 750px) 
  and (max-device-width: 819px) 
  {
    /* iPad Air specific styles */

}
@media only screen 
  and (min-device-width: 800px) 
  and (max-device-width: 820px) 
  {
    /* iPad Air specific styles */

}
@media only screen 
  and (min-device-width: 900px) 
  and (max-device-width: 1024px) 
  and (-webkit-min-device-pixel-ratio: 2) {
    /* iPad Air specific styles */

}
@media only screen 
  and (min-device-width: 1190px) 
  and (max-device-width: 1200px)
  and (-webkit-min-device-pixel-ratio: 2) {
    /* iPad Air specific styles */
.hero-content {left:49%;}
}
/* ═══════════════════════════════════════════════════════════
   MOBILE  — ≤ 767 px
═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

    /* ── Header ───────────────────────────────────────── */
    header {
       
        flex-wrap: wrap;
        position: sticky;
        top: 0;
        z-index: 200;
    }
    .logo img { width: 140px !important; }
    .desktop-cta { display: none; }  
    .mobile-only { display: block; color: var(--accent);}          /* show mobile-only elements */
    .hamburger { display: flex; }             /* show burger */

    /* Slide-down nav drawer */
    nav#main-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255,251,245,0.98);
        backdrop-filter: blur(12px);
        border-bottom: 2px solid rgba(0,122,61,0.12);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1);
        z-index: 199;
    }
    nav#main-nav.nav-open { max-height: 1400px; }
    nav#main-nav .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }
    nav#main-nav .nav-menu > li {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    nav#main-nav a,
    nav#main-nav summary {
        display: block;
        padding: 1rem 5%;
        font-size: 1.05rem;
        width: 100%;
    }
    nav#main-nav .nav-menu > li:last-child {
        border-bottom: none;
    }
    nav#main-nav summary::before {
        content: '+';
        float: right;
        font-weight: 700;
    }
    nav#main-nav details[open] summary::before {
        content: '-';
    }
    nav#main-nav .submenu {
        position: static;
        display: none;
        max-height: none;
        min-width: 0;
        border: none;
        border-top: 1px solid rgba(0,0,0,0.06);
        border-radius: 0;
        box-shadow: none;
        background: rgba(255,255,255,0.5);
    }
    nav#main-nav details[open] > .submenu {
        display: block;
    }
    nav#main-nav .submenu a {
        padding: 0.75rem 10%;
        font-size: 0.95rem;
    }
    /* Mobile CTA link inside nav 
    nav#main-nav::after {
        content: 'Call: (956) 854-4146';
        display: block;
        padding: 0.9rem 5%;
        font-weight: 700;
        color: var(--accent);
        font-size: 1rem;
    }*/

    /* ── Hero ─────────────────────────────────────────── */
    .hero { min-height: auto; overflow: visible; }
    .hero-image { position: relative; height: 55vw; min-height: 220px; max-height: 380px; }
    .hero-content {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        border-radius: 0;
        padding: 1.5rem 5%;
        margin-top: 0;
        box-shadow: none;
      
    }
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.25;
        margin-bottom: 1rem;
    }
    .location-pills {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    .location-card {
        width: 100%;
        max-width: 390px;
    }
    .location-pill {
        width: 180px;
        min-width: 180px;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    .scroll-indicator { display: none; }

    /* ── Stats strip ──────────────────────────────────── */
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
        padding: 1rem 0;
        border-radius: 0;
        width: 100%;
    }
    .stat {
        flex: 1 1 33%;
        padding: 0.8rem 0.5rem;
        border-right: 1px solid rgba(0,0,0,0.08);
    }
    .stat:last-child { border-right: none; }
    .stat-number { font-size: 1.8rem; }
    .stat-label { font-size: 0.85rem; max-width: none; margin-top: 0.3rem; }

    /* ── Hex overlay ──────────────────────────────────── */
    .hero-hex-overlay { width: min(34vw, 170px); opacity: 0.58; }
.mission-section{padding: 0;}
.location-logos{   top:0px;
    left: 100px;
    height: 65px;}
    /* ── Section typography ───────────────────────────── */
    .section-title { font-size: 2rem; line-height: 1.25; }
    .section-subtitle { font-size: 0.9rem; }
    .section-description { font-size: 1rem; }
    .section-header { margin-bottom: 2rem; }

    .staff-grid-doctors,
    .staff-grid-team {
        grid-template-columns: 1fr;
        justify-items: center;
        justify-content: center;
    }

    .staff-card {
        width: min(100%, 220px);
        margin: 0 auto;
    }

    /* ── Why Choose ───────────────────────────────────── */
    .why-choose { padding: 3rem 5%; }
    .services-carousel,
    .testimonials-carousel {
        gap: 0;
        padding-top: 2.9rem;
        position: relative;
    }
    .services-rail,
    .testimonials-rail {
        gap: 0.8rem;
        padding: 0.25rem 0.05rem 0.9rem;
        scroll-padding-left: 0.05rem;
    }
    .service-card {
        min-width: min(78vw, 285px);
        max-width: min(78vw, 285px);
    }
    .testimonial-card {
        min-width: min(90vw, 460px);
        max-width: min(90vw, 460px);
        padding: 1.4rem;
    }
    .carousel-control {
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
        background: rgba(0, 94, 138, 0.9);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
        position: absolute;
        top: 0;
        transform: none;
        z-index: 2;
    }
    .carousel-control.prev {
        left: calc(50% - 44px);
    }
    .carousel-control.next {
        left: calc(50% + 6px);
        right: auto;
    }
    .carousel-control:hover {
        transform: translateY(-2px);
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .feature-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    .feature-icon { font-size: 2.2rem; margin-bottom: 1rem; }
    .feature-title { font-size: 1.25rem; }
    .feature-description { font-size: 0.95rem; }

    /* ── Doctors ──────────────────────────────────────── */
    .doctors-section { padding: 0 5%; }
    .team-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem auto;
    }
    /* Stack: team photo first, doctor list second */
    .team-photo { order: 1; }
    .doctor-list { order: 2; }
    .doctor-name { font-size: 0.95rem; }
    .doctor-title { font-size: 0.8rem; }
    .doctor-avatar-icon { width: 52px; height: 52px; }
    .doctor-summary { padding: 0.8rem 1rem; }
    .doctor-details { padding: 0 1rem; }
    .doctor-profile.open .doctor-details { padding: 0.7rem 1rem 1rem; }

    /* ── Testimonials ─────────────────────────────────── */
    .testimonials-section { padding: 3rem 5%; }
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .testimonial-card { border-radius: 20px; }
    .testimonial-text { font-size: 1rem; }
    .video-grid { grid-template-columns: 1fr; gap: 1rem; }
    .video-testimonials { padding: 2rem 0; margin-top: 2rem; }
    .video-testimonials h3 { font-size: 1.8rem; margin-bottom: 1.5rem; }

    /* ── Contact ──────────────────────────────────────── */
    .contact-section { padding: 2.5rem 5%; }
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    .contact-card {
        padding: 1.5rem;
        border-radius: 18px;
        gap: 0.6rem;
    }
    .contact-icon { max-width: 140px; }
    .contact-icon img { border-radius: 10px; }
    .contact-location { font-size: 1.4rem; }
    .contact-address { font-size: 0.95rem; }
    .contact-phone { font-size: 1.3rem; }
    .map-wrapper {
        height: 200px;
        border-radius: 10px;
    }
    .contact-form {
        padding: 1.5rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }

    /* ── Footer ───────────────────────────────────────── */
    footer { padding: 3rem 5% 1.5rem; }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-brand { font-size: 1.4rem; }
    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1.5rem;
    }

    /* ── Global touch targets ─────────────────────────── */
    /* Contact card CTA keeps auto width so it doesn't stretch full-card */
    .contact-card .cta-button {
        width: auto;
        align-self: center;
        padding: 0.8rem 2rem;
    }
    .cta-button, .btn-primary, .btn-secondary {
       padding: 0.5rem 0.8rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
    .expand-toggle { width: 36px; height: 36px; }
}

/* ═══════════════════════════════════════════════════════════
   SMALL MOBILE  — ≤ 400 px
═══════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
    .hero-content h1 { font-size: 1.7rem; }
    .section-title { font-size: 1.75rem; }
    .stat-number { font-size: 1.5rem; }
    .stat-label { font-size: 0.75rem; }
    .location-pill {
        width: 150px;
        min-width: 150px;
        font-size: 0.82rem;
        padding: 0.7rem 0.8rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   PATIENT INFORMATION PAGES ENHANCEMENTS
═══════════════════════════════════════════════════════════ */
.info-section {
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.content-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    border: 2px solid rgba(0, 122, 61, 0.1);
    box-shadow: 9px 9px 30px rgb(0 0 0 / 38%);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.content-card h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.content-card p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-card p:last-child {
    margin-bottom: 0;
}

/* Coupon Card */
.coupon-box {
    background: linear-gradient(135deg, #FFF9E6, #FFF3CD);
    border: 3px dashed var(--accent);
    border-radius: 28px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    max-width: 750px;
    margin: 2rem auto;
    box-shadow: 0 15px 35px rgba(251, 122, 3, 0.15);
}

.coupon-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    padding: 0.4rem 1.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(251, 122, 3, 0.3);
}

.coupon-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin: 1rem 0 0.5rem;
}

.coupon-discount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Fredoka', sans-serif;
    line-height: 1;
    margin-bottom: 1rem;
}

.coupon-terms {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1.5rem;
    border-top: 1px dashed rgba(0,0,0,0.15);
    padding-top: 1rem;
}

/* FAQ Items */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 2px solid rgba(0, 122, 61, 0.12);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    transition: border-color 0.3s ease;
}

.faq-item[open] {
    border-color: var(--primary);
}

.faq-item summary {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary);
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
    position: relative;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.6rem;
    color: var(--accent);
    font-weight: 700;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1rem;
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border: 2px solid rgba(0,122,61,0.15);
}

.comparison-table th {
    background: var(--primary);
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.15rem;
    padding: 1.2rem;
    text-align: left;
}

.comparison-table td {
    padding: 1.1rem 1.2rem;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 1rem;
    color: var(--text);
}

.comparison-table tr:nth-child(even) td {
    background: #F9FBF8;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.check-icon {
    color: var(--primary);
    font-weight: bold;
}

/* Services Page Card Layout with Suitable Images & Learn More Buttons */
.services-container {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    margin-top: 2rem;
}

.service-featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    background: #ffffff;
    border-radius: 28px;
    padding: 2.5rem;
    border: 2px solid rgba(0, 122, 61, 0.12);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.service-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.09);
}

.service-featured-card.reverse {
    grid-template-columns: 1fr 1fr;
}

.service-featured-card.reverse .service-card-image-wrap {
    order: 1;
}

.service-featured-card.reverse .service-card-content {
    order: 2;
}

.service-card-image-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 340px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.service-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-featured-card:hover .service-card-image-wrap img {
    transform: scale(1.05);
}

.service-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 122, 61, 0.1);
    color: var(--primary);
    font-family: 'Fredoka', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    width: fit-content;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-card-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.service-card-description {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.service-card-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1rem;
}

.service-card-highlights li {
    font-size: 0.95rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.service-card-highlights li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(0, 122, 61, 0.12);
    color: var(--primary);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.learn-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #ffffff;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    box-shadow: 0 6px 18px rgba(0, 122, 61, 0.25);
}

.learn-more-btn:hover {
    background: var(--secondary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 122, 61, 0.35);
}

.learn-more-btn::after {
    content: "→";
    font-size: 1.1rem;
    transition: transform 0.25s ease;
}

.learn-more-btn:hover::after {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .service-featured-card {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem;
        padding: 1.8rem 1.25rem;
    }
    .service-card-image-wrap {
        height: 260px;
    }
    .service-card-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-tools {
        gap: 0.5rem;
    }

    .language-switcher {
        min-width: 90px;
        padding-right: 1.8rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 640px) {
    .service-featured-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }
    .service-featured-card.reverse .service-card-image-wrap {
        order: -1;
    }
    .service-card-image-wrap {
        height: 220px;
    }
    .header-tools {
        margin-left: 0;
    }
    #main-content 
{
        margin-top: 10px;
}
}

/*fonts*/
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* hebrew */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/fredoka/v17/X7n64b87HvSqjb_WIi2yDCRwoQ_k7367_DWs89XyHw.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* latin-ext */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/fredoka/v17/X7n64b87HvSqjb_WIi2yDCRwoQ_k7367_DWg89XyHw.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/fredoka/v17/X7n64b87HvSqjb_WIi2yDCRwoQ_k7367_DWu89U.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* hebrew */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/fredoka/v17/X7n64b87HvSqjb_WIi2yDCRwoQ_k7367_DWs89XyHw.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* latin-ext */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/fredoka/v17/X7n64b87HvSqjb_WIi2yDCRwoQ_k7367_DWg89XyHw.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/fredoka/v17/X7n64b87HvSqjb_WIi2yDCRwoQ_k7367_DWu89U.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* hebrew */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/fredoka/v17/X7n64b87HvSqjb_WIi2yDCRwoQ_k7367_DWs89XyHw.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* latin-ext */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/fredoka/v17/X7n64b87HvSqjb_WIi2yDCRwoQ_k7367_DWg89XyHw.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/fredoka/v17/X7n64b87HvSqjb_WIi2yDCRwoQ_k7367_DWu89U.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* hebrew */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/fredoka/v17/X7n64b87HvSqjb_WIi2yDCRwoQ_k7367_DWs89XyHw.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* latin-ext */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/fredoka/v17/X7n64b87HvSqjb_WIi2yDCRwoQ_k7367_DWg89XyHw.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/fredoka/v17/X7n64b87HvSqjb_WIi2yDCRwoQ_k7367_DWu89U.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* hebrew */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/fredoka/v17/X7n64b87HvSqjb_WIi2yDCRwoQ_k7367_DWs89XyHw.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* latin-ext */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/fredoka/v17/X7n64b87HvSqjb_WIi2yDCRwoQ_k7367_DWg89XyHw.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
}

/* Google Review Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #E6F4EA;
    color: #137333;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    width: fit-content;
    margin-top: 0.35rem;
}

.verified-badge:hover {
    background: #CEEAD6;
    transform: translateY(-1px);
}

.google-icon-svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

