/* =========================================
   VARIABLES & DESIGN TOKENS
   ========================================= */
:root {
    /* Colors */
    --color-white: #ffffff;
    --color-off-white: #f8fafc;
    --color-black: #0f172a;
    --color-text-light: #64748b;
    
    /* Turquoise Green Palette */
    --color-turquoise-light: #ccfbf1;
    --color-turquoise: #14b8a6; /* Premium Teal/Turquoise */
    --color-turquoise-dark: #0f766e;
    
    /* Typography */
    --font-main: 'Outfit', system-ui, -apple-system, sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --radius-sm: 16px;
    --radius-md: 16px;
    --radius-lg: 16px;
    
    /* Shadows & Borders */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
    --shadow-glass: 0 8px 32px 0 rgba(20, 184, 166, 0.1);
    --glass-border: rgba(20, 184, 166, 0.2);
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-black);
    background-color: var(--color-off-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Safety net: never allow a stray wide element to scroll the page sideways
       on mobile. The header is position:fixed and unaffected by this. */
    overflow-x: hidden;
}

/* Defensive: media never overflows its container on small screens.
   height:auto is REQUIRED alongside max-width for images that carry width/height
   attributes — without it a constrained width keeps the attribute's height and
   the image stretches. (object-fit images set height:100% inline and win.) */
img, iframe, video, table {
    max-width: 100%;
}
img {
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

.section {
    padding: 100px 0;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-black);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    color: var(--color-turquoise-dark);
}

h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--color-black);
}

p {
    color: var(--color-text-light);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes floatLogo {
    0% { transform: translateY(-50%) translateX(0px); }
    50% { transform: translateY(-52%) translateX(10px); }
    100% { transform: translateY(-50%) translateX(0px); }
}

/* Animated logo watermark — reusable on any page's first section */
.logo-bg {
    position: relative;
    overflow: hidden;
}

.logo-bg::before {
    content: '';
    position: absolute;
    /* Anchor to the first viewport (like the 100vh hero) instead of the middle
       of a tall content section, so the watermark sits where it does on home. */
    top: 50vh;
    right: 5%;
    transform: translateY(-50%);
    width: min(500px, 80vw);
    height: min(500px, 80vw);
    background: url('../images/image.png') no-repeat center center;
    background-size: contain;
    opacity: 0.15;
    z-index: 0; /* above the section's own background colour... */
    pointer-events: none;
    animation: floatLogo 8s ease-in-out infinite;
}

/* ...but the page content sits above the watermark */
.logo-bg > .container {
    position: relative;
    z-index: 1;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px) translateZ(0);
    will-change: opacity, transform;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.interactive-panel, .contact-card, .service-card {
    touch-action: pan-y;
}

.services-grid > *:nth-child(1) { transition-delay: 0.1s; }
.services-grid > *:nth-child(2) { transition-delay: 0.2s; }
.services-grid > *:nth-child(3) { transition-delay: 0.3s; }
.services-grid > *:nth-child(4) { transition-delay: 0.4s; }
.services-grid > *:nth-child(5) { transition-delay: 0.1s; }
.services-grid > *:nth-child(6) { transition-delay: 0.2s; }
.services-grid > *:nth-child(7) { transition-delay: 0.3s; }
.services-grid > *:nth-child(8) { transition-delay: 0.4s; }
.services-grid > *:nth-child(9) { transition-delay: 0.1s; }
.services-grid > *:nth-child(10) { transition-delay: 0.2s; }

.services-detail-list > *:nth-child(even) { transition-delay: 0.1s; }

.hero-content {
    animation: fadeInUp 1s ease-out forwards;
}

/* =========================================
   COMPONENTS
   ========================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-turquoise) 0%, var(--color-turquoise-dark) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 14px 0 rgba(20, 184, 166, 0.39);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-turquoise-dark) 0%, #0d5f58 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(20, 184, 166, 0.5);
    color: var(--color-white);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    color: var(--color-black);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
    border-color: var(--color-turquoise);
    color: var(--color-turquoise-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.btn-block {
    width: 100%;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--color-turquoise-light);
    color: var(--color-turquoise-dark);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Glass Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
}

/* =========================================
   HEADER / NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #f1f5f9;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-black);
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    flex-shrink: 0;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
    color: var(--color-turquoise);
}

/* Form Styles */
.form-desc {
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label:not(.checkbox-container) {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--color-off-white);
}

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

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-turquoise);
    background: var(--color-white);
    box-shadow: 0 0 0 3px var(--color-turquoise-light);
}

/* Custom Checkbox for Consent */
.consent-group {
    background: #f8fafc;
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

.checkbox-container input {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-container a {
    color: var(--color-turquoise);
    text-decoration: underline;
}

.wa-icon {
    margin-left: 8px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--color-white);
    padding: 40px 0;
    border-top: 1px solid #e2e8f0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}


.footer-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.footer-right a {
    position: relative;
    color: var(--color-text-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: var(--color-turquoise-dark);
}

/* Thin divider between the footer links so they don't read as one block */
.footer-right a:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: #cbd5e1;
}
.dcm-note {
    font-size: 0.8rem;
    margin-top: 8px;
}

.dcm-note a {
    color: var(--color-turquoise);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .hero-text-box {
        text-align: center;
        margin: 0 auto;
        padding: 30px 20px;
    }
    
    /* Keep the two hero buttons on one row (wrap only if they truly can't fit)
       instead of forcing full-width stacked buttons. */
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        padding: 20px;
        text-align: center;
        gap: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        z-index: -1;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        z-index: 1000;
    }
    
    .hero {
        padding-top: 100px;
        min-height: auto;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-right {
        justify-content: center;
        gap: 24px;
    }
    
    /* Floating button resizing */
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 85px; /* Above mobile WhatsApp btn (20 + 50 + 15) */
        right: 25px; /* Centered relative to mobile WhatsApp */
    }
    
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    /* Comfortable touch targets on mobile (a11y / best practices) */
    .btn,
    input:not([type="hidden"]),
    select,
    textarea {
        min-height: 44px;
    }
}

@media (max-width: 576px) {
    /* Shrink the CTA buttons ("Book Appointment Online" / "Book via WhatsApp")
       so they fit side by side on one row on typical phones (they wrap only on
       the very narrowest screens). !important overrides their inline padding. */
    .cta-actions {
        gap: 10px;
    }

    .cta-actions .btn {
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
    }
}

/* =========================================
   FLOATING ACTION BUTTON (FAB) - WHATSAPP
   ========================================= */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* WhatsApp Green */
    color: var(--color-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    animation: none;
}

/* =========================================
   SCROLL TO TOP BUTTON
   ========================================= */
.scroll-to-top {
    position: fixed;
    bottom: 105px; /* Positioned above WhatsApp btn (30 + 60 + 15) */
    right: 37px;   /* Centered relative to WhatsApp btn */
    background-color: var(--color-white);
    color: var(--color-turquoise-dark);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(20, 184, 166, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--color-turquoise);
    color: var(--color-white);
    transform: translateY(-3px);
    border-color: var(--color-turquoise);
}

/* =========================================
   SVG VECTOR ICONS SYSTEM
   ========================================= */
.svg-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease, stroke 0.3s ease;
}

.feature-check-badge {
    width: 22px;
    height: 22px;
    background: var(--color-turquoise-light);
    color: var(--color-turquoise-dark);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 8px;
}

.standards-icon-box {
    width: 72px;
    height: 72px;
    background: rgba(20, 184, 166, 0.12);
    color: var(--color-turquoise-dark);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    border: 1px solid rgba(20, 184, 166, 0.25);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.interactive-panel:hover .standards-icon-box {
    transform: scale(1.1) translateY(-4px);
    background: var(--color-turquoise);
    color: var(--color-white);
    box-shadow: 0 10px 20px -5px rgba(20, 184, 166, 0.4);
}

