/* =====================================================
   DR. OLIVER PÉREZ BAUTISTA - MEDICAL SITE
   Inspired by Design by Dylan (Awwwards SOTD)
   ===================================================== */

/* CSS Variables */
:root {
    /* Colors - Black & White with Green Accent */
    --black: #161616;
    --white: #F1F1F1;
    --green: #0D9488;
    --green-dark: #0F766E;
    --green-light: #5EEAD4;
    
    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    
    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;
    
    /* Border Radius */
    --radius: 8px;
    
    /* Transition */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Grain Overlay */
    --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Grain Overlay */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: var(--grain);
    mix-blend-mode: overlay;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-lg);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--black);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--black);
    text-decoration: none;
    position: relative;
    padding: var(--space-xs) 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white);
    background: var(--green);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
    padding: 8rem var(--space-lg) 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: var(--white); /* Changed to white for a lighter feel */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* More subtle as requested */
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05) 0%, rgba(255, 255, 255, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    max-width: 500px;
    z-index: 2;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--black);
    margin-bottom: var(--space-md);
}

.label-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
}

.label-sep {
    margin: 0 var(--space-xs);
    color: rgba(0, 0, 0, 0.3);
    font-size: 0.8rem;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: var(--black);
    position: relative;
}

.title-line {
    display: block;
}

.title-line.accent {
    color: var(--green);
}

.hero-desc {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.hero-btns {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.btn-main,
.btn-sec {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.btn-main {
    background: var(--green);
    color: var(--white);
}

.btn-main:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

.btn-sec {
    color: var(--black);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn-sec:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-main i,
.btn-sec i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-main:hover i {
    transform: translateX(4px);
}

.btn-sec:hover i {
    transform: translateX(4px);
}

.hero-stats {
    display: flex;
    gap: var(--space-lg);
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--black);
}

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

.stat-num {
    font-size: 2rem;
    line-height: 1;
}

.stat-lbl {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 4px;
}

.hero-img {
    position: relative;
    z-index: 2;
}

.hero-img img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.img-tag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--white);
    padding: 4px 8px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.img-tag.t1 {
    top: 16px;
    left: auto;
    right: 16px;
}

.img-tag.t2 {
    top: auto;
    bottom: 16px;
    right: 16px;
    left: auto;
}

/* Marquee */
.marquee {
    overflow: hidden;
    background: var(--white);
    padding: var(--space-sm) 0;
}

.marquee-track {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}

.marquee-track span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--black);
    opacity: 0.7;
}

.sep {
    opacity: 0.3;
    font-weight: 400;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Services Section */
.services {
    padding: var(--space-xl) 0;
    background-color: var(--white);
}

.sec-head {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.sec-label {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.sec-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--black);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    padding: var(--space-lg);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.svc-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
}

.svc-icon {
    width: 56px;
    height: 56px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--green);
    margin: var(--space-lg) auto;
    position: relative;
    z-index: 2;
}

.service-card h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--black);
    margin: var(--space-sm) 0;
    position: relative;
    z-index: 2;
}

.service-card p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.6;
    margin: var(--space-sm) 0;
    position: relative;
    z-index: 2;
}

.svc-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--green);
    margin-top: var(--space-md);
    position: relative;
    z-index: 2;
}

.svc-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.service-card:hover .svc-link i {
    transform: translateX(4px);
}

/* Calculator CTA */
.calc-cta {
    position: relative;
    padding: var(--space-xl) 0;
    overflow: hidden;
}

.calc-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
    opacity: 0.08;
    z-index: -1;
}

.calc-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 2;
}

.calc-content {
    text-align: left;
}

.calc-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--green); /* Changed to brand color */
    background: rgba(13, 148, 136, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: var(--space-sm);
}

.calc-content h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--black); /* Changed from white to black for contrast */
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

.calc-content p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.7); /* Changed from white to dark for contrast */
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.btn-calc {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--black);
    background: var(--white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: var(--transition);
}

.btn-calc:hover {
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn-calc i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-calc:hover i {
    transform: translateX(4px);
}

.calc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-icon i {
    font-size: 4rem;
    color: var(--green); /* Changed from white to green for contrast */
    opacity: 0.2;
}

/* Locations */
.locations {
    padding: var(--space-xl) 0;
    background-color: var(--white);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.loc-card {
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    padding: var(--space-lg);
    text-align: center;
    transition: var(--transition);
}

.loc-card:hover {
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.loc-icon {
    width: 56px;
    height: 56px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--green);
    margin-bottom: var(--space-md);
}

.loc-card h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--black);
    margin-bottom: var(--space-sm);
}

.loc-addr {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.4;
    margin-bottom: var(--space-sm);
}

.loc-time {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--green);
}

/* Testimonials */
.testimonials {
    padding: var(--space-xl) 0;
    background-color: var(--white);
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.test-card {
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    padding: var(--space-lg);
    transition: var(--transition);
}

.test-card:hover {
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.test-quote {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    color: rgba(0, 0, 0, 0.1);
    line-height: 1;
    margin-bottom: var(--space-sm);
    display: inline-block;
    transform: rotate(-5deg);
}

.test-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    font-style: italic;
}

.test-auth {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.auth-avatar {
    width: 40px;
    height: 40px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.auth-info span:first-child {
    font-weight: 600;
}

.auth-info span:last-child {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.5);
}

.auth-stars {
    margin-left: auto;
    color: #FBBF24;
    font-size: 0.9rem;
}

/* Final CTA */
.cta-final {
    position: relative;
    padding: var(--space-xl) 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
    opacity: 0.08;
    z-index: -1;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--black); /* Changed for contrast */
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.7); /* Changed for contrast */
    max-width: 400px;
    margin: 0 auto var(--space-lg);
}

.btn-cta {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--black);
    background: var(--white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: var(--transition);
}

.cta-final .btn-cta:hover {
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--white);
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--black);
}

.footer-brand p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.6;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-contact a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--black);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-nav h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--black);
    margin-bottom: var(--space-sm);
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-nav a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--black);
}

.footer-schedule {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-schedule li {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.6);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.4);
}

/* WhatsApp Float */
.wa-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: var(--transition);
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-img {
        margin: 0 auto var(--space-lg);
    }
    
    .services-grid,
    .locations-grid,
    .test-grid,
    .footer-main {
        grid-template-columns: 1fr;
    }
    
    .calc-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .calc-icon {
        margin: 0 auto var(--space-lg);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .sec-title {
        font-size: 2rem;
    }
    
    .calc-content h2 {
        font-size: 2rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .footer-nav {
        margin-top: var(--space-sm);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .hero-btns {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .marquee-track span {
        font-size: 1rem;
    }
    
    .svc-num {
        font-size: 2rem;
    }
    .footer-brand {
        align-items: center;
    }
}

/* =====================================================
   SUBPAGES STYLES (Services, About, Contact)
   ===================================================== */

/* Page Hero */
.page-hero {
    position: relative;
    padding: 12rem var(--space-lg) 6rem;
    background-color: var(--black);
    color: var(--white);
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.page-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.2) 0%, rgba(22, 22, 22, 1) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.page-hero-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--green-light);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--white);
}

.page-hero-desc {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Detail Grid */
.services-detail {
    padding: var(--space-xxl) 0;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.service-full {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    transition: var(--transition);
    height: 100%;
}

.service-full:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--green-light);
}

.service-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1;
    color: rgba(13, 148, 136, 0.1);
}

.service-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.service-icon-lg {
    font-size: 2.5rem;
    color: var(--green);
}

.service-header h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.service-subtitle {
    color: var(--green);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.service-desc {
    font-size: 1.05rem;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.7;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.service-features i {
    color: var(--green);
    font-weight: bold;
}

.service-img {
    margin-top: auto;
    border-radius: var(--radius);
    overflow: hidden;
    height: 250px;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-full:hover .service-img img {
    transform: scale(1.05);
}

/* About Section */
.about-detail {
    padding: var(--space-xxl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-header {
    margin-bottom: var(--space-xl);
}

.about-label {
    color: var(--green);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

/* Timeline */
.timeline {
    margin: var(--space-xl) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    border-left: 2px solid rgba(13, 148, 136, 0.1);
    padding-left: var(--space-lg);
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: calc(-24px - var(--space-lg) - 1px);
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--green);
    border-radius: 50%;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--green);
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin: 4px 0;
}

/* Values */
.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.value-item {
    display: flex;
    gap: var(--space-md);
}

.value-item i {
    font-size: 1.5rem;
    color: var(--green);
}

.value-item h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

/* Stats Section */
.stats-section {
    padding: var(--space-xl) 0;
    background: var(--black);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--green-light);
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* Contact Section */
.contact-section {
    padding: var(--space-xxl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.info-item {
    display: flex;
    gap: var(--space-md);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--green);
    background: rgba(13, 148, 136, 0.1);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.info-item h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-form {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.btn-final {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--green);
    color: var(--white);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-final:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

/* Animation Classes */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive for Subpages */
@media (max-width: 1024px) {
    .services-list {
        grid-template-columns: 1fr;
    }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        padding: var(--space-sm);
    }

    .nav-links {
        display: none; /* Hide desktop links */
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-menu-btn {
        display: flex; /* Show hamburger */
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 6rem;
        gap: 2rem;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-label {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.22rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: var(--space-md);
    }

    .stat-num {
        font-size: 1.5rem;
    }

    .hero-img {
        display: flex;
        justify-content: center;
    }

    .hero-img img {
        max-width: 300px;
    }

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

    .locations-grid, .test-grid {
        grid-template-columns: 1fr;
    }

    .sec-title {
        font-size: 2rem;
    }

    /* Subpages */
    .page-hero {
        padding: 6rem var(--space-md) 4rem;
        min-height: auto;
    }
    
    .page-hero-title {
        font-size: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-values {
        grid-template-columns: 1fr;
    }
}

/* Extra Mobile Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    .hero {
        padding: 6rem var(--space-sm) 4rem;
    }
    .page-hero {
        padding: 6rem var(--space-sm) 4rem;
    }
}