/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* --- BRAND PALETTE --- */
    --brand-navy:   #1f386c;  /* Main Text */
    --brand-blue:   #1464a5;  /* Primary Action */
    --brand-teal:   #1d8b8b;  /* Accents */
    --brand-peach:  #d97b5f;  /* Highlights */
    --brand-purple: #c09bc7;  /* Soft Accent */
    
    /* Mappings */
    --primary-color: var(--brand-blue);
    --text-dark: var(--brand-navy);
    --text-light: #ffffff;
    --bg-light: #f4f8fb; 
    
    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--brand-navy);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* =========================================
   2. BUTTONS & UTILITIES
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px; /* Standard rounded corners */
    font-weight: bold;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover { 
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
}

/* Secondary "Ghost" Button */
.btn-secondary {
    display: inline-block;
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    margin-left: 15px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-secondary:hover { 
    background-color: #ffffff; 
    color: var(--brand-blue); 
    text-decoration: none;
}

.center-text { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.full-width { width: 100%; }

/* =========================================
   3. TOP BAR & HEADER
   ========================================= */
.top-bar {
    background-color: var(--brand-navy);
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 8px 0;
    text-align: right;
    border-bottom: 5px solid var(--brand-teal);
}

.top-bar span { margin-left: 20px; }

header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { flex-shrink: 0; max-width: 250px; }
.logo img { height: 60px; width: auto; display: block; }

.nav-links { display: flex; gap: 20px; }
.nav-links a { font-weight: 600; color: var(--brand-navy); }
.nav-links a:hover, .nav-links a.active { color: var(--brand-blue); }

.menu-toggle { display: none; }

/* =========================================
   4. HERO SECTION (Modernized with WebP)
   ========================================= */
.hero {
    position: relative; /* vital for stacking the image */
    overflow: hidden;   /* keeps the image contained */
    
    /* Layout Logic (Preserved from your code) */
    display: flex;
    align-items: flex-start; /* Aligns content to top */
    padding-top: 130px;      /* Pushes content into "Safe Zone" */
    min-height: 80vh;
    
    /* Text Styling */
    color: var(--text-light);
    text-align: center;
    margin-bottom: 0px;

    /* NOTE: We removed background-image line because we use the <img> tag now */
}

/* 1. The Image Layer (Sits at the very back) */
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers screen without stretching */
    z-index: 0;
}

/* 2. The Overlay Layer (Replaces your linear-gradient) */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* The exact 30% black overlay you had */
    z-index: 1;
}

/* 3. The Content Layer (Sits on top of everything) */
.hero-content { 
    position: relative;
    z-index: 2; /* Important: Puts text above the overlay and image */
    
    max-width: 800px; 
    margin: 0 auto; 
}

.hero h1 { 
    font-size: 3rem; 
    margin-bottom: 10px; 
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero p { 
    font-size: 1.2rem; 
    margin-bottom: 30px; 
    font-weight: 600;
    text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}

/* =========================================
   5. CARDS & SECTIONS
   ========================================= */
.content-section { padding: 50px 0 80px; }
.content-section h2 { margin-bottom: 50px; color: var(--brand-navy); text-align: center; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 5px solid var(--brand-teal);
}

.card h3 { color: var(--brand-blue); margin-bottom: 15px; }

/* Different Colors for cards */
.grid-3 .card:nth-child(1) { border-top-color: var(--brand-teal); }
.grid-3 .card:nth-child(2) { border-top-color: var(--brand-peach); }
.grid-3 .card:nth-child(3) { border-top-color: var(--brand-purple); }

/* =========================================
   6. INNER PAGE HEADERS & TEAM
   ========================================= */
.page-header {
    background-color: var(--brand-blue);
    color: var(--text-light);
    padding: 60px 0;
    text-align: center;
}

.team-section { padding: 40px 0; background-color: var(--bg-light); }

.team-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.team-card.reverse { direction: rtl; }
.team-card.reverse > * { direction: ltr; text-align: left; }

.team-bio h3 { color: var(--brand-blue); font-size: 1.8rem; margin-bottom: 5px; }
.team-bio .role {
    font-weight: bold;
    color: var(--brand-peach);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* =========================================
   7. FORMS & LISTS
   ========================================= */
.split-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.info-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--brand-purple);
}

.check-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}
.check-list li::before {
    content: '✔';
    color: var(--brand-teal);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.form-wrapper {
    max-width: 700px;
    margin: 50px auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 5px solid var(--brand-blue);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 5px; }

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* =========================================
   8. TESTIMONIALS & PROFILES (UPDATED)
   ========================================= */
.testimonials-section {
    padding: 80px 0;
    background-color: #fffdf5; /* Warm/Sand Highlight */
    border-top: 1px solid #eee;
}

.rating-badge {
    color: #f4c150;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.review-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card::before {
    content: '“';
    position: absolute;
    top: 10px; right: 20px;
    font-size: 4rem;
    color: #f4f8fb;
    font-family: serif;
    z-index: 0;
}

.review-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.stars { color: #f4c150; margin-bottom: 15px; font-size: 1.2rem; }

/* NEW PROFILE PIC STYLES */
.reviewer-profile {
    display: flex;
    align-items: center;
    margin-top: auto; /* Pushes to bottom of card */
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Circle shape */
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--brand-teal);
}

.review-author {
    font-weight: bold;
    color: var(--brand-navy);
    line-height: 1.2;
    text-align: left;
}

/* =========================================
   9. EMERGENCY & LOCATIONS
   ========================================= */
.emergency-section {
    padding: 60px 0;
    background-color: #fff5f5; 
    border-top: 4px solid #d9534f;
    text-align: center;
}

.emergency-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #ffd7d7;
    border-top: 5px solid #d9534f;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 20px; 
}
.emergency-card h3 { color: #d9534f; margin-bottom: 10px; }

.locations-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.location-card {
    width: 100%;
    max-width: 450px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}
.location-card h2 { color: var(--brand-blue); margin-bottom: 15px; }

.map-container iframe { width: 100% !important; height: 300px; border-radius: 8px; border: none; }

/* =========================================
   10. FOOTER
   ========================================= */
.main-footer {
    background-color: var(--brand-navy);
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 0px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 { color: var(--brand-teal); margin-bottom: 20px; }
.footer-col p { color: #dbe4f1; margin-bottom: 15px; }

.social-icons { display: flex; gap: 12px; margin-top: 15px; }

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px; height: 45px;
    color: #fff;
    border-radius: 10px; 
    transition: 0.3s ease;
}

/* 4-Color Social Blocks */
.social-icons a:nth-child(1) { background-color: var(--brand-teal); }
.social-icons a:nth-child(2) { background-color: var(--brand-peach); }
.social-icons a:nth-child(3) { background-color: var(--brand-purple); }
.social-icons a:nth-child(4) { background-color: var(--brand-blue); }

.social-icons a:hover { transform: translateY(-5px); opacity: 0.9; }

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.8rem;
    color: #8fa6c9;
}

/* =========================================
   11. MOBILE & TABLET RESPONSIVENESS
   ========================================= */
@media (max-width: 1150px) {
    /* 1. Menu Changes */
    .top-bar .container { display: flex; flex-direction: column; align-items: center; gap: 5px; }
    .top-bar span { margin: 0; }
    
    .logo { margin-right: 10px; }
    .logo img { height: auto; max-height: 60px; max-width: 180px; }
    
    header .btn-primary { padding: 8px 12px; font-size: 0.75rem; margin-right: 50px; }

    /* Mobile Menu Toggle */
    .menu-toggle { display: block; cursor: pointer; position: absolute; top: 25px; right: 20px; z-index: 2001; }
    .menu-toggle span { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--brand-blue); }
    
    .nav-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 80px; left: 0;
        background-color: #fff;
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        border-bottom: 5px solid var(--brand-teal);
    }
    .nav-links.active { display: flex; }
    
    /* 2. FORCE CARDS TO STACK (The Fix) */
    /* added .grid-3 and .laser-wrapper to this list */
    .split-layout, .form-row, .footer-grid, .grid-3, .laser-wrapper { 
        grid-template-columns: 1fr !important; 
        gap: 30px; 
    }
    
    .team-card { grid-template-columns: 1fr; text-align: center; }
    .team-card.reverse > * { text-align: center; }
}
/* =========================================
   12. TRUST BADGE (Responsive)
   ========================================= */
.trust-badge {
    /* DEFAULT (DESKTOP) SETTINGS */
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    
    /* Push it down to the "Bib" area on Desktop */
    margin-top: 140px; 
}

.trust-badge i {
    color: #f4c150; /* Gold Stars */
    margin-right: 3px;
}

.trust-badge span {
    margin-left: 8px;
}

/* MOBILE ADJUSTMENT */
@media (max-width: 1200px) {
    .trust-badge {
        /* CHANGED: Reduced from 30px to 0px to pull it UP */
        margin-top: 40px; 
        
        font-size: 1rem;
        padding-bottom: 40px; /* Adds a little safety space at the bottom */
    }
}
/* =========================================
   13. FRENECTOMY PAGE STYLES
   ========================================= */
.age-groups {
    padding: 60px 0;
    background-color: #fff;
}

.laser-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.age-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    border-left: 5px solid var(--brand-teal);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.age-card h3 { 
    color: var(--brand-navy); 
    margin-bottom: 15px; 
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.technology-section {
    background-color: var(--brand-navy); /* Dark Blue Background */
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.technology-section h2 { color: #fff; margin-bottom: 20px; }
.technology-section p { max-width: 700px; margin: 0 auto 50px; opacity: 0.9; }

/* Invert the cards inside the dark section */
.technology-section .card {
    background: rgba(255, 255, 255, 0.1); /* See-through glass look */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}
.technology-section .card h3 { color: var(--brand-teal); }

/* Responsive fix for the Age Cards */
@media (max-width: 1200px) {
    .laser-wrapper { grid-template-columns: 1fr; }
}
a {
    color: #004494; /* Darker blue for readability */
}
.sr-only { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }