:root {
    --nav-height: 80px;
    --nav-gap: 8px;
}

/* Reset and base styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background-color: #ffffff;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-image: url('../images/nobg.png');
    background-repeat: repeat;
    background-attachment: fixed;
    border-radius: 10px;
    margin: 0;
    overflow-x: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.navbar {
    height: var(--nav-height);
    padding: 0;
    background-color: #1e3a5f;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

/* push page content below fixed navbar */
main {
    padding-top: var(--nav-height);
}

.nav-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height); /* ensures vertical centering inside the header */
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 80px; /* leave room for left-positioned hamburger */
}

.nav-logo a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

.nav-logo a:hover,
.nav-logo a:focus {
    color: #87ceeb; /* match nav hover color */
    text-decoration: none;
}

.nav-logo h1 {
    font-size: 2rem; /* increase so title fits visually in header */
    margin: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center; /* keep links vertically centered inside header */
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #87ceeb;
}

.hamburger {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column; /* stack bars vertically */
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 50;
    -webkit-tap-highlight-color: transparent;
}

.hamburger .bar {
    display: block;
    width: 22px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    margin: 3px 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Active / open state (simple X animation) */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 0 0 40px; /* header clearance is handled by main padding */
    text-align: center;
    margin: 10px;
    margin-top: var(--nav-gap); /* add 10px space between fixed nav and hero */
    overflow: hidden;
    border-radius: 10px;
    min-height: 85vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    /* removed duplicate padding-top to avoid double spacing */
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.25) 0%, rgba(13, 39, 71, 0.4) 100%);
    animation: gradientShift 15s ease-in-out infinite alternate;
    border-radius: 10px 10px 0 0;
}

.hero-content {
    position: absolute;
}

.hero-content h1 {
    font-size: 3rem;
    margin-top: 80px;
    margin-bottom: .5rem;
    font-weight: bold;
    transform: translateY(50px);
    z-index: 10;
    animation: fadeInUp 1s ease 0.3s forwards;
}

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
        transform: translateY(30px);
        animation: fadeInUp 0.8s ease 0.6s forwards;
        z-index: 10;
    }

.hero-content p:last-of-type {
    animation-delay: 0.8s;
}

.hero-phone {
    margin-top: 250px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 1.2s forwards;
}

.phone-link {
    background: linear-gradient(45deg, #ff6b35, #ff8c00);
    color: white;
    padding: 15px 30px;
    font-size: 1.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.phone-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.phone-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
    background: linear-gradient(45deg, #e55a2b, #ff6b35);
}

.phone-link:hover::before {
    left: 100%;
}

/* About Section */
.about {
    padding: 40px 0;
    overflow: hidden;
    background-color: #f8f9fa;
    margin: 10px;
    border-radius: 20px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1e3a5f;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.about-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* New Clients Section */
.new-clients {
    padding: 80px 0;
    background-color: #e3f2fd;
    position: relative;
    overflow: hidden;
    margin: 10px;
    border-radius: 10px;
}

.new-clients-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.new-clients-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.new-clients h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1e3a5f;
    text-align: center;
    position: relative;
}

.new-clients h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #87ceeb);
    border-radius: 2px;
    animation: expandWidth 1s ease 1s forwards;
    width: 0;
}

.welcome-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: #1e3a5f;
    text-align: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1), rgba(255, 107, 53, 0.1));
    border-left: 4px solid #ff6b35;
    border-radius: 8px;
    line-height: 1.6;
}

.new-clients h3 {
    font-size: 1.8rem;
    color: #1e3a5f;
    margin: 3rem 0 2rem 0;
    text-align: center;
}

.new-clients h3::after {
    content: '';
}

.new-client-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.4s; }
.feature-item:nth-child(2) { animation-delay: 0.6s; }
.feature-item:nth-child(3) { animation-delay: 0.8s; }

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 2rem;
    min-width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-content h4 {
    color: #1e3a5f;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.getting-started-steps {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.05), rgba(255, 107, 53, 0.05));
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s ease forwards;
}

.step:nth-child(1) { animation-delay: 1s; }
.step:nth-child(2) { animation-delay: 1.2s; }
.step:nth-child(3) { animation-delay: 1.4s; }
.step:nth-child(4) { animation-delay: 1.6s; }

.step:hover {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1), rgba(255, 107, 53, 0.1));
    transform: translateX(10px);
}

.step-number {
    min-width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35, #ff8c00);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step p {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

.step a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: bold;
}

.step a:hover {
    text-decoration: underline;
}

.new-client-cta {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 1.8s forwards;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b35, #ff8c00);
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    position: relative; /* already set, reinforce stacking context */
    z-index: 1;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform, box-shadow;
}

/* Fix: ensure logo and nav links are consistently vertically centered */
.nav-logo h1,
.nav-logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

@media screen and (min-width: 769px) {
    /* ensure the menu itself is centered and each item fills the nav height */
    .nav-menu {
        align-items: center;
    }

    .nav-menu li {
        height: var(--nav-height);
        display: flex;
        align-items: center;
    }

    .nav-menu a {
        display: inline-flex;
        align-items: center;
        height: 100%;
        padding: 0 0.75rem; /* adjust horizontal spacing if needed */
    }
}

/* Make CTA text turn blue on hover (match nav hover color) */
.cta-button {
    transition: color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* Use the same blue used by the nav links */
.cta-button:hover,
.cta-button:focus {
    color: #87ceeb; /* matches .nav-menu a:hover */
}

.cta-button::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 60px;
    background: radial-gradient(circle at center, rgba(255,140,0,0.18), transparent 40%);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.28s ease, transform 0.28s ease;
    z-index: 0;
    pointer-events: none;
}

.cta-button::before { z-index: 2; }

.cta-button:hover,
.cta-button:focus {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 45px rgba(255, 107, 53, 0.32);
    outline: none;
}

.cta-button:hover::after,
.cta-button:focus::after {
    opacity: 1;
    transform: scale(1);
}

.cta-button:focus-visible {
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.14), 0 12px 32px rgba(255, 107, 53, 0.28);
}

.cta-button:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

/* Remove default button inner border/outline for CTA buttons */
button.cta-button {
    -webkit-appearance: none;
    appearance: none;
    border: none;               /* remove browser border */
    outline: none;              /* remove default outline */
    background-clip: padding-box;
}

/* Remove Firefox inner focus border */
button.cta-button::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* Keep keyboard focus visible (uses existing .cta-button:focus-visible) */
button.cta-button:focus {
    outline: none;
    box-shadow: none;
}

/* Services Section */
.services {
    padding: 80px 0;
    overflow: hidden;
    background-color: #f8f9fa;
    margin: 10px;
    border-radius: 10px;
}

.services-header {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1e3a5f;
    position: relative;
}

services h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #87ceeb);
    border-radius: 2px;
}

.services-hero-image {
    margin: 2rem 0;
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScale 0.8s ease 0.2s forwards;
}

.services-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.services-img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    position: relative;
    overflow: hidden;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-item:hover::before {
    left: 100%;
}

.service-item h3 {
    color: #1e3a5f;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-item p {
    color: #666;
}

/* Providers Section - styled like other sections with rounded corners */
.providers {
    padding: 80px 0;
    overflow: hidden;
    background-color: #f8f9fa;
    margin: 10px;
    border-radius: 10px;
}

.providers-header {
    text-align: center;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.providers-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: #1e3a5f;
    position: relative;
}

.providers-header p {
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* Grid and items */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: stretch; /* changed from start to stretch so cells in the same row match height */
    /* ensure grid rows allow children to stretch */
    grid-auto-rows: 1fr;
}

/* Make provider items stretch to fill their grid cell and use column flex so content flows naturally */
.provider-item {
    background: white;
    padding: 1.6rem;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    text-align: left;
    transition: all 0.35s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    position: relative;
    overflow: hidden;

    display: flex;           /* fill vertical space and allow content layout */
    flex-direction: column;  /* stack icon/title/description vertically */
    height: 100%;            /* ensure it stretches to the full height of the grid cell */
}

/* Ensure all direct grid children fill their row height */
.providers-grid > .provider-item {
    align-self: stretch;
}

.provider-item:nth-child(1) { animation-delay: 0.15s; }
.provider-item:nth-child(2) { animation-delay: 0.25s; }
.provider-item:nth-child(3) { animation-delay: 0.35s; }
.provider-item:nth-child(4) { animation-delay: 0.45s; }
.provider-item:nth-child(5) { animation-delay: 0.55s; }
.provider-item:nth-child(6) { animation-delay: 0.65s; }

.provider-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 38px rgba(0,0,0,0.12);
}

.provider-icon {
    font-size: 1.8rem;
    min-width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9f6ff, #dbeffd);
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.provider-item h3 {
    color: #1e3a5f;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.provider-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    /* allow description to take remaining space but not to push other cards' heights */
    margin-top: 0.5rem;
}

/* Appointments Section */
.appointments {
    padding: 80px 0;
    background-color: #e3f2fd;
    margin: 10px;
    border-radius: 10px;
}

.appointments h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1e3a5f;
}

.hours {
    text-align: center;
    margin-bottom: 2rem;
}

.hours h3 {
    color: #1e3a5f;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hours p {
    font-size: 1.1rem;
}

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

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-info a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #e3f2fd;
    margin: 10px;
    border-radius: 10px;
}

.contact h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1e3a5f;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.contact-item h3 {
    color: #1e3a5f;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-item p {
    font-size: 1.1rem;
}

.contact-item a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: bold;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #1e3a5f;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyforms slowZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.15);
    }
}

@keyforms gradientShift {
    from {
        background: linear-gradient(135deg, rgba(30, 58, 95, 0.25) 0%, rgba(13, 39, 71, 0.4) 100%);
    }
    to {
        background: linear-gradient(135deg, rgba(13, 39, 71, 0.4) 0%, rgba(30, 58, 95, 0.25) 100%);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Enhanced About Section */
.about {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(135, 206, 235, 0.1), transparent);
    animation: shimmer 8s infinite;
}

@keyframes shimmer {
    0% { left: -50%; }
    100% { left: 100%; }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-text {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease 0.2s forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1e3a5f;
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #87ceeb);
    border-radius: 2px;
    animation: expandWidth 1s ease 1s forwards;
    width: 0;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 80px; }
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.about-text p:first-of-type {
    animation-delay: 0.8s;
}

.about-text p:last-of-type {
    animation-delay: 1s;
}

.about-image {
    text-align: center;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease 0.4s forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.about-img:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsive - merged and consolidated */
@media screen and (max-width: 768px) {
    /* Center the logo in the header on mobile while keeping the hamburger at the left */
    .nav-logo {
        position: absolute;
        left: 50%;
        width: 60%;
        transform: translateX(-50%);
        margin-left: 0; /* ensure no leftover margin */
        z-index: 160; /* below hamburger (hamburger has z-index:200) */
        pointer-events: none; /* let the hamburger receive clicks if they overlap */
    }

    .nav-logo a {
        pointer-events: auto; /* keep the link clickable */
    }

    /* Hamburger: show and tighten hit area */
    .hamburger {
        display: flex;
        align-items: center;
        gap: 2px;
        padding: 6px;
        z-index: 200; /* ensure button is above the nav menu */
    }

    .hamburger .bar {
        width: 18px;
        height: 2px;
        margin: 2px 0;
    }

    /* Keep container items spaced */
    .nav-container {
        justify-content: space-between;
    }

    /* Mobile nav as a compact top drawer that slides down */
    .nav-menu {
        display: none;
        position: absolute;
        top: 64px; /* adjust depending on header height */
        right: 12px;
        background: rgba(30, 58, 95, 0.98);
        padding: 1rem;
        border-radius: 6px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.15);
        z-index: 1500;
        min-width: 180px;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu li {
        list-style: none;
        margin: 0.4rem 0;
    }

    .nav-menu a {
        color: #fff;
        text-decoration: none;
        display: block;
        padding: 0.25rem 0.5rem;
    }

    /* Auth block stacks with other items and gets subtle separation */
    .nav-menu .nav-auth {
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
        padding-top: 0.5rem;
    }

    .nav-menu .nav-auth a,
    .nav-menu .nav-auth .nav-username {
        width: 100%;
        display: block;
        padding: 0.5rem 1rem;
        box-sizing: border-box;
        text-align: center;
    }

    /* Page-specific responsive tweaks */
    .hero-content h1 {
        font-size: 2rem;
    }

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

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

    .phone-link {
        font-size: 1.2rem;
        padding: 12px 24px;
    }

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

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

    .services-img {
        max-width: 100%;
    }

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

    /* On small screens we want the logo to sit next to the hamburger again */
    .nav-logo {
        margin-left: 0;
    }
}

/* If nav-menu has left padding so it doesn't overlap hamburger on small screens */
.nav-menu {
    padding-left: 3.5rem; /* adjust as needed to avoid overlap with left hamburger */
}

/* When menu is active, ensure it overlays correctly (tweak per your layout) */
.nav-menu.active {
    /* existing mobile menu styles likely already exist; override z-index if needed */
    z-index: 40;
}

/* Mobile: left sliding drawer sized to contents */
@media screen and (max-width: 768px) {
    .nav-menu {
        display: block;                    /* use block for vertical list */
        position: fixed;
        top: var(--nav-height);
        left: 0;
        padding: 1rem;
        background: rgba(30,58,95,0.98);
        border-radius: 0 8px 8px 0;
        box-shadow: 0 6px 18px rgba(0,0,0,0.15);
        z-index: 1500;

        /* size to contents but cap at viewport */
        width: fit-content;
        max-width: 80vw;
        min-width: 100px;

        /* hidden by default (off-screen to the left) */
        transform: translateX(-110%);
        transition: transform 240ms ease, opacity 180ms ease;
        opacity: 0;
        pointer-events: none; /* prevent interaction when hidden */
        overflow-y: auto;
    }

    /* show drawer */
    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu li {
        list-style: none;
        margin: 0.4rem 0;
    }

    .nav-menu a {
        color: #fff;
        text-decoration: none;
        display: block;
        padding: 0.5rem 0;
    }

    /* ensure hamburger is visible and on top */
    .hamburger {
        display: flex;
        z-index: 1600; /* above the drawer */
    }
}

/* Desktop: ensure hamburger hidden and desktop nav restored */
@media screen and (min-width: 769px) {
    .hamburger {
        display: none;
    }

    .nav-menu {
        display: flex !important;
        position: static;
        top: auto;
        left: auto;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        width: auto;
        max-width: none;
        padding-left: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }
}