/* General Styles */
:root {
    --primary: #1A2F4B;
    --accent: #B8860B;
    --light: #f1f1f1;
    --text: #333;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text);
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* --- GLOBAL RESPONSIVE TWEAKS --- */
:root {
    --primary: #1a2f4b; /* Navy */
    --accent: #d4af37;  /* Gold */
}

html { scroll-behavior: smooth; }

/* Mobile-First Containers */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* 1. Mobile Slider Fix (800x600 Adjustment) */
@media (max-width: 768px) {
    .comparison-box {
        height: 300px !important; /* Forces a shorter height on mobile so user can see text below */
    }
    .slider-btn {
        padding: 8px; /* Smaller arrows for fingers */
        top: 35%;
    }
}

/* 2. Mobile Contact Hub Fix */
@media (max-width: 900px) {
    .contact-grid, .specialist-grid {
        grid-template-columns: 1fr !important; /* Stack columns on top of each other */
        gap: 30px;
    }
    .contact-card {
        padding: 20px; /* More room for content on small screens */
    }
}

/* 3. Fast Loading Tip: Performance */
img {
    max-width: 100%;
    height: auto;
    display: block;
    loading: lazy; /* Native browser lazy loading for speed */
}
.google-review-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    margin-bottom: 20px;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.google-review-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.google-review-badge .stars {
    color: var(--accent); /* Your Golden Yellow */
    font-size: 0.9rem;
}

.rating-text {
    color: var(--primary); /* Navy Blue */
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px); /* Modern frosted glass effect */
}
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 650px;
    border-radius: 15px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto; /* Scrollable if text is long */
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}
.close { position: absolute; right: 20px; top: 10px; font-size: 28px; cursor: pointer; }
.footer-legal a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.8rem; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

/* Force the comparison box to stay exactly 600px tall (or scaled proportionally) */
.comparison-box {
    position: relative;
    width: 100%;
    height: 600px; /* Your specified height */
    overflow: hidden;
    background-color: #f0f0f0; /* Placeholder color while loading */
    border-radius: 10px;
}

.comparison-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This prevents stretching! */
    object-position: center; /* Keeps the focus on the center of the scalp/hair */
    display: block;
}

/* Mobile Adjustment: On smaller screens, we scale the height so it doesn't look like a giant block */
@media (max-width: 768px) {
    .comparison-box {
        height: 400px; /* Scaled down for mobile viewing */
    }
}

.case-label {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary);
    color: #fff;
    padding: 5px 12px;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}

.gallery-item h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.gallery-item p {
    font-size: 0.9rem;
    color: #666;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}
.privacy-body h4 {
    margin: 20px 0 10px;
    color: var(--primary);
}

.privacy-body p {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 10px;
}

.close {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 35px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: var(--primary);
}

.small-container { max-width: 600px; }

.section { padding: 80px 0; }
.gray-bg { background: var(--light); }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2.5rem; color: var(--primary); }
.section-intro { text-align: center; max-width: 700px; margin: 0 auto 40px; }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo { font-weight: bold; font-size: 1.2rem; color: var(--primary); }
.logo span { color: var(--accent); }

.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 30px; }
.nav-links a { text-decoration: none; color: var(--primary); font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }

.nav-cta { background: var(--primary); color: #fff !important; padding: 10px 20px; border-radius: 5px; }

/* Hamburger Menu */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 25px; height: 3px; background: var(--primary); transition: 0.3s; }

/* Hero Section */
.hero {
    height: 80vh;
    background: url('https://images.unsplash.com/photo-1560066984-138dadb4c035?auto=format&fit=crop&q=80&w=1600') center/cover no-repeat;
    position: relative;
}
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.process-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--accent); /* Adds that gold/professional touch */
}

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

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(26, 47, 75, 0.08); /* Faded navy for a modern look */
    position: absolute;
    top: 10px;
    right: 20px;
}

.card-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
    position: relative;
}

.card-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .process-card {
        padding: 30px 20px;
    }
}
/* Container to enforce the 800x600 feel while staying responsive */
.slider-container {
    position: relative;
    max-width: 800px; /* Your specified width */
    margin: 40px auto;
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%; /* Each slide takes up the full width of container */
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.slider-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: 0.3s;
}

.slider-btn:hover {
    background: var(--accent);
}

.prev { left: 10px; }
.next { right: 10px; }

@media (max-width: 768px) {
    .slider-btn { padding: 10px; top: 30%; }
}
/* Layout for Map and Form */
/* Contact Section Background */
.contact-section {
    background-color: #f4f7f9; /* Soft light gray with a hint of blue */
    position: relative;
    padding: 100px 0;
    border-top: 1px solid rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
/* Ensure the grid and containers look sharp against the new background */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; /* Increased gap for better breathing room */
    align-items: stretch;
}

.map-container h3 {
    margin-bottom: 5px;
    color: var(--primary);
}

.address-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

/* Map Wrapper refinement */
.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    filter: grayscale(0.2); /* Slightly de-saturates the map to match the aesthetic */
    transition: filter 0.3s ease;
}

/* Updated card styling to look crisp on the gray background */
.contact-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(26, 47, 75, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03); /* Softer shadow for a cleaner look */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
}

/* This makes the white card look even more elevated on hover over the gray */
.contact-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}
.contact-card:hover .map-wrapper {
    filter: grayscale(0); /* Map gains full color when card is hovered */
}

/* Mobile adjustments */
@media (max-width: 900px) {
    .contact-section {
        padding: 60px 0;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Styling the inputs to match the "pop" feel */
.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1.5px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus, 
.contact-form select:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #fcfcfc;
}

/* Mobile adjustments to prevent horizontal scroll during animation */
@media (max-width: 768px) {
    .contact-card {
        padding: 25px;
    }
    .contact-card:hover {
        transform: translateY(-8px); /* Less dramatic on mobile */
    }
}

/* Initial state of the sections */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    visibility: hidden;
}

/* State when the section enters the viewport */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Ensure child elements like cards have a slight stagger (optional) */
.reveal.active .card, 
.reveal.active .process-card, 
.reveal.active .circle-card {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-overlay {
    background: rgba(26, 47, 75, 0.6);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; }

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover { background: #966d09; }
.btn-full { width: 100%; border: none; cursor: pointer; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 25px;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%; /* Makes it easy to tap on mobile */
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

.btn-outline i {
    font-size: 0.9rem;
}

/* Specialist Section Styles */
.specialist-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.subtitle {
    display: block;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.image-frame {
    position: relative;
    padding-left: 20px;
}

.image-frame img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 20px 20px 0px var(--primary); /* Modern offset frame effect */
}

.credentials {
    list-style: none;
    margin: 25px 0;
}

.credentials li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--primary);
}

.credentials i {
    color: var(--accent);
    font-size: 1.1rem;
}

.quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin-top: 30px;
}

/* Mobile Adjustments */
@media (max-width: 850px) {
    .specialist-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .image-frame {
        padding-left: 0;
        max-width: 400px;
        margin: 0 auto 40px;
    }
    .image-frame img {
        box-shadow: 10px 10px 0px var(--primary);
    }
    .credentials li {
        justify-content: center;
    }
    .quote {
        border-left: none;
        border-top: 2px solid var(--accent);
        padding-top: 20px;
        padding-left: 0;
    }
}

/* Specialist Section Bottom Border */
#specialist {
    position: relative;
    padding-bottom: 100px; /* Space for the border */
}

#specialist::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%; /* The border doesn't go full width for a more elegant look */
    height: 4px; /* The thickness of the border */
    background-color: var(--accent); /* Your golden yellow */
    border-radius: 50px; /* Rounds the edges for a soft, modern feel */
}

/* Optional: Add a small decorative element in the center of the border */
#specialist::before {
    content: "\f0c1"; /* A small link/icon placeholder if desired, or leave blank */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 0 15px;
    color: var(--accent);
    z-index: 1;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    #specialist::after {
        width: 80%; /* Slightly wider on mobile for better visibility */
    }
}

/* Grid Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 30px; background: #fff; border: 1px solid #ddd; border-radius: 8px; text-align: center; }

/* Circle Cards */
.circle-container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.circle-card { text-align: center; width: 200px; }
.circle-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background-size: cover;
    background-position: center;
    border: 4px solid var(--accent);
}

/* Contact Form */
.form-group { margin-bottom: 15px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}
textarea { height: 100px; }

footer { background: var(--primary); color: #fff; text-align: center; padding: 20px; font-size: 0.8rem; }

/* Mobile Viewports */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 15px 0; }
    .hero-content h1 { font-size: 2.2rem; }
    .grid { grid-template-columns: 1fr; }
}