/* --- Modern CSS Variables (Forged Steel & Copper) --- */
:root {
    --primary: #212529;      /* Forged Steel / Deep Charcoal */
    --accent: #B85D19;       /* Raw Copper / Rust */
    --accent-hover: #964A13;
    --accent-glow: rgba(184, 93, 25, 0.4); 
    --text-dark: #2B3035;
    --text-light: #6C757D;
    --bg-white: #ffffff;
    --bg-light: #F0F2F5;     /* Concrete Gray */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html, body {
    overflow-x: hidden;
}



html {
    scroll-behavior: smooth;
    font-size: 16px; 
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

h1, h2, h3, .logo {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
}

.bg-light { background-color: var(--bg-light); }
.container { max-width: 75em; margin: 0 auto; padding: 0 1.5em; }
section { padding: 6em 0; }
.flex-row { display: flex; align-items: center; gap: 4em; }

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

/* --- Scroll Animation Classes --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), 
                transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Section Headers --- */
.section-title {
    text-align: center;
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 0.5em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title::after {
    content: ''; display: block;
    width: 3em; height: 0.2em;
    background: var(--accent);
    margin: 0.8em auto 1.5em;
    border-radius: 2px;
}

.section-title.left { text-align: left; }
.section-title.left::after { margin: 0.8em 0 1.5em; }

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1em;
    margin-bottom: 3em;
}

/* --- Buttons --- */
.btn-primary, .btn-accent, .btn-outline {
    display: inline-block;
    padding: 1em 2.5em;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.25em;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary { background: var(--primary); color: var(--bg-white); }
.btn-primary:hover { background: #000000; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }

/* Copper Accent Button with Glow */
.btn-accent { 
    background: var(--accent); 
    color: var(--bg-white); 
    box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-accent:hover { 
    background: var(--accent-hover); 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(184, 93, 25, 0.6);
}

.btn-outline { background: transparent; border: 2px solid var(--bg-white); color: var(--bg-white); }
.btn-outline:hover { background: var(--bg-white); color: var(--primary); transform: translateY(-3px); }

.w-100 { width: 100%; }

/* --- Navigation --- */
header {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.navbar { display: flex; justify-content: space-between; align-items: center; height: 5em; }
.logo { font-size: 1.5em; font-weight: 800; letter-spacing: -0.02em; }
.logo span { color: var(--accent); font-weight: 400; }

.nav-links { display: flex; list-style: none; align-items: center; gap: 2em; }
.nav-links a { position: relative; text-decoration: none; color: var(--primary); font-weight: 600; font-size: 0.9em; transition: var(--transition); }
.nav-links a:hover:not(.btn-accent) { color: var(--accent); }

/* Animated Sweep Underline for Nav */
.nav-links a:not(.btn-accent)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}
.nav-links a:hover:not(.btn-accent)::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 40em;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    display: flex; align-items: center; text-align: center; color: var(--bg-white);
}

.hero-content { max-width: 50em; margin: 0 auto; }
.subtitle { color: var(--accent); font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1em; display: block; }

.hero-content .subtitle { animation: fadeInUp 0.8s ease-out forwards; }
.hero h1 { font-size: 4em; line-height: 1.1; margin-bottom: 0.4em; color: var(--bg-white); animation: fadeInUp 0.8s ease-out 0.2s forwards; opacity: 0; }
.hero p { font-size: 1.2em; opacity: 0; margin-bottom: 2em; animation: fadeInUp 0.8s ease-out 0.4s forwards; }
.hero-btns { display: flex; justify-content: center; gap: 1em; opacity: 0; animation: fadeInUp 0.8s ease-out 0.6s forwards; }

/* --- About Section --- */
.about-text { flex: 1; }
.about-image { flex: 1; position: relative; }
.about-image img { width: 100%; border-radius: 0.5em; position: relative; z-index: 2; transition: transform 0.5s ease; }
.about-image:hover img { transform: scale(1.02); }
.image-wrapper::before {
    content: ''; position: absolute;
    top: -1.5em; left: -1.5em; right: 1.5em; bottom: 1.5em;
    border: 3px solid var(--accent); border-radius: 0.5em; z-index: 1;
}
.check-list { list-style: none; margin-top: 1.5em; }
.check-list li { margin-bottom: 0.8em; font-weight: 600; }
.check-list li::before { content: '✔'; color: var(--accent); margin-right: 0.8em; font-size: 1.2em; }

/* --- Premium Interactive Service Cards --- */
.service-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(22em, 1fr)); gap: 2.5em; 
}

.service-card {
    position: relative; overflow: hidden; border-radius: 0.5em;
    background: var(--primary); min-height: 26em; 
    display: flex; align-items: flex-end; text-align: left; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); transition: var(--transition); cursor: pointer;
}

.card-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); z-index: 1;
}

.service-card::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(33, 37, 41, 0.95) 0%, rgba(33, 37, 41, 0.6) 40%, rgba(33, 37, 41, 0.1) 100%);
    z-index: 2; transition: background 0.4s ease;
}

.card-content {
    position: relative; z-index: 3; padding: 2.5em; color: var(--bg-white);
    transform: translateY(2.5em); transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-content h3 { color: var(--bg-white); font-size: 1.6em; margin-bottom: 0.5em; text-transform: none; }
.card-content p { font-size: 0.95em; opacity: 0; margin-bottom: 1.5em; color: #e9ecef; transition: opacity 0.5s ease; }
.btn-text { color: var(--accent); text-transform: uppercase; font-weight: 800; font-size: 0.85em; letter-spacing: 0.1em; display: inline-block; transition: color 0.3s ease; }

.service-card:hover { transform: translateY(-0.5em); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.service-card:hover .card-bg { transform: scale(1.08); }
.service-card:hover::after { background: linear-gradient(to top, rgba(33, 37, 41, 0.98) 0%, rgba(33, 37, 41, 0.7) 50%, rgba(33, 37, 41, 0.2) 100%); }
.service-card:hover .card-content { transform: translateY(0); }
.service-card:hover .card-content p { opacity: 1; }
.service-card:hover .btn-text { color: var(--bg-white); }

/* --- Premium Interactive Gallery --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16em, 1fr)); gap: 1em; }
.gallery-item {
    position: relative; overflow: hidden; border-radius: 0.5em;
    height: 16em; background: var(--primary); cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
.gallery-item::after {
    content: '＋'; position: absolute; inset: 0;
    background: rgba(33, 37, 41, 0.6); color: var(--accent);
    font-size: 3em; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.1); opacity: 0.7; }
.gallery-item:hover::after { opacity: 1; transform: scale(1.1); }

/* --- Testimonials --- */
.testimonials { background: var(--primary); color: var(--bg-white); text-align: center; }
.stars { color: var(--accent); font-size: 1.5em; letter-spacing: 0.2em; margin-bottom: 1em; display: block; }
.quote { font-size: 1.8em; font-family: 'Montserrat', sans-serif; font-weight: 300; font-style: italic; margin-bottom: 1em; line-height: 1.4; }
.author { font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }

/* --- Contact Section --- */
.contact-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4em;
    background: var(--bg-white); padding: 4em; border-radius: 1em;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08); transform: translateY(-3em);
}
.contact-info h2 { margin-bottom: 0.5em; }
.detail-item { margin-top: 1em; padding-top: 1em; border-top: 1px solid #ddd; }
.contact-form { display: flex; flex-direction: column; gap: 1.2em; }
.input-group { display: flex; gap: 1.2em; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 1em; border: 1px solid #ccc; border-radius: 0.25em;
    font-family: inherit; font-size: 1em; background: var(--bg-light); transition: var(--transition);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--accent); background: var(--bg-white); box-shadow: 0 0 0 3px var(--accent-glow);
}

/* --- Footer --- */
footer { background: #151719; color: var(--text-light); padding: 3em 0; text-align: center; }
.footer-logo { font-size: 1.5em; color: var(--bg-white); font-weight: 800; margin-bottom: 0.5em; }
.footer-logo span { color: var(--accent); font-weight: 400; }

/* --- Lightbox Styles --- */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 2000; 
    left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(21, 23, 25, 0.95); 
    backdrop-filter: blur(8px);
    justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}

.lightbox.show { display: flex; opacity: 1; }

.lightbox-content {
    margin: auto; display: block;
    max-width: 90%; max-height: 85vh; 
    border-radius: 0.5em;
    box-shadow: 0 10px 50px rgba(0,0,0,0.6);
    transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lightbox.show .lightbox-content { transform: scale(1); }

.lightbox-close {
    position: absolute; top: 1em; right: 1.5em;
    color: var(--bg-white); font-size: 3em; font-weight: 300;
    cursor: pointer; transition: color 0.3s ease; z-index: 2001;
}

.lightbox-close:hover, .lightbox-close:focus { color: var(--accent); text-decoration: none; }

/* --- Interactive Anatomy / Hotspot Section --- */
.bg-dark { 
    background-color: var(--primary); 
    color: var(--bg-white); 
    padding: 8em 0;
}
.bg-dark .section-title { color: var(--bg-white); }
.bg-dark .section-subtitle { color: #adb5bd; margin-bottom: 4em; }

.anatomy-header { text-align: center; }

.hotspot-container {
    position: relative;
    max-width: 60em;
    margin: 0 auto;
    border-radius: 0.5em;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.anatomy-img {
    width: 100%;
    display: block;
    border-radius: 0.5em;
    filter: brightness(0.85); /* Darkens image slightly to make hotspots pop */
}

.hotspot {
    position: absolute;
    z-index: 10;
    transform: translate(-50%, -50%);
}

.hotspot-btn {
    width: 1.8em; height: 1.8em;
    background-color: var(--accent);
    border: 3px solid var(--bg-white);
    border-radius: 50%;
    cursor: pointer; position: relative;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Copper Pulsing Animation */
.hotspot-btn::before {
    content: ''; position: absolute; top: -6px; left: -6px; right: -6px; bottom: -6px;
    border: 2px solid var(--accent); border-radius: 50%;
    animation: pulse 2s infinite; opacity: 0;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.hotspot:hover .hotspot-btn { transform: scale(1.15); }

/* The Pop-up Tooltip */
.hotspot-tooltip {
    position: absolute; bottom: 160%; left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 16em;
    background: var(--bg-white); color: var(--text-dark);
    padding: 1.5em; border-radius: 0.5em;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    opacity: 0; visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    border-bottom: 4px solid var(--accent);
}

/* Triangle Pointer under Tooltip */
.hotspot-tooltip::after {
    content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border-width: 10px; border-style: solid;
    border-color: var(--bg-white) transparent transparent transparent;
}

.hotspot:hover .hotspot-tooltip {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}

.hotspot-tooltip h4 { color: var(--primary); margin-bottom: 0.3em; font-size: 1.1em; }
.hotspot-tooltip p { font-size: 0.9em; margin-bottom: 0; color: var(--text-light); line-height: 1.5; }

/* Mobile Fallback Layout */
.mobile-hotspot-list { display: none; }

@media (max-width: 48em) {
    /* Hide interactive hotspots on phones where hover doesn't exist */
    .hotspot { display: none; }
    
    /* Show stacked cards underneath the image instead */
    .mobile-hotspot-list { 
        display: grid; grid-template-columns: 1fr; gap: 1em; 
        margin-top: 2em; 
    }
    .mobile-card { 
        background: rgba(255,255,255,0.05); 
        padding: 1.5em; 
        border-left: 4px solid var(--accent); 
        border-radius: 0 0.5em 0.5em 0; 
    }
    .mobile-card h4 { color: var(--bg-white); margin-bottom: 0.5em; }
    .mobile-card p { margin: 0; font-size: 0.9em; color: #adb5bd; }
}


/* --- Responsive Adjustments --- */
@media (max-width: 64em) {
    .contact-wrapper { grid-template-columns: 1fr; padding: 3em; }
    .hero h1 { font-size: 3em; }
}
@media (max-width: 48em) {
    .nav-links { display: none; } 
    .flex-row { flex-direction: column; }
    .hero h1 { font-size: 2.5em; }
    .input-group { flex-direction: column; }
    .image-wrapper::before { display: none; }
}
/* --- Responsive Adjustments & Hamburger Menu --- */
.hamburger {
    display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1001; 
}
.hamburger .bar {
    width: 25px; height: 3px; background-color: var(--primary);
    transition: var(--transition); border-radius: 2px;
}

@media (max-width: 64em) {
    .contact-wrapper { grid-template-columns: 1fr; padding: 3em; }
    .hero h1 { font-size: 3em; }
}

@media (max-width: 48em) {
    /* 1. General Layout Fixes */
    .flex-row { flex-direction: column; }
    .hero h1 { font-size: 2.5em; }
    .input-group { flex-direction: column; }
    .image-wrapper::before { display: none; }

    /* 2. Show Hamburger Icon */
    .hamburger { display: flex; }
    
    /* 3. The Sliding Menu (Fixed: changed display to flex) */
    .nav-links {
        overflow: hidden;
        display: flex; 
        position: fixed; top: 0; right: -100%; 
        width: 70%; max-width: 300px; height: 100vh;
        background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
        flex-direction: column; justify-content: center; align-items: center;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    
    /* 4. Active States */
    .nav-links.active { right: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ============================================================
   WHY CHOOSE US — Section Styles
   Add these rules to your existing style.css file.
   Requires Google Font: Playfair Display (already on most sites,
   but if not, add to your <head>:
   <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap" rel="stylesheet">
   ============================================================ */

/* --- Section wrapper --- */
.why-section {
    padding: 6rem 0;
    background: #ffffff;
}

/* --- Header block --- */
.why-header {
    max-width: 620px;
    margin: 0 auto 4rem;
    text-align: center;
}

.why-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #B85A2A;
    margin: 0 0 1rem;
}

.why-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    font-weight: 700;
    color: #1a252f;
    margin: 0 0 1.25rem;
    line-height: 1.2;
}

.why-subtitle {
    font-size: 16px;
    font-weight: 300;
    color: #666;
    line-height: 1.75;
    margin: 0;
}

/* --- Card grid --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    outline: 1.5px solid #e0ddd6;
}

.why-grid .why-card:not(:nth-child(3n)) {
    border-right: 1.5px solid #e0ddd6;
}

.why-grid .why-card:nth-child(-n+3) {
    border-bottom: 1.5px solid #e0ddd6;
}

/* --- Individual card --- */
.why-card {
    background: #ffffff;
    padding: 2.25rem 2rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: background 0.2s ease;
}

.why-card:hover {
    background: #faf9f7;
}

/* --- Large numeral --- */
.card-number {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    color: #ddd8cf;
    line-height: 1;
    margin: 0 0 1.25rem;
    transition: color 0.25s ease;
}

.why-card:hover .card-number {
    color: #B85A2A;
}

/* --- Card text --- */
.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a252f;
    margin: 0 0 0.6rem;
    letter-spacing: 0.01em;
}

.card-desc {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    line-height: 2;
    margin: 0;
}

/* --- Animated bottom bar on hover --- */
.card-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: #B85A2A;
    transition: width 0.35s ease;
}

.why-card:hover .card-bar {
    width: 100%;
}

/* --- Responsive: 2 columns on tablet --- */
@media (max-width: 900px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        outline: 1.5px solid #e0ddd6;
    }

    .why-grid .why-card:not(:nth-child(3n)) {
        border-right: none;
    }

    .why-grid .why-card:nth-child(-n+3) {
        border-bottom: none;
    }

    .why-grid .why-card:not(:nth-child(2n)) {
        border-right: 1.5px solid #e0ddd6;
    }

    .why-grid .why-card:nth-child(-n+4) {
        border-bottom: 1.5px solid #e0ddd6;
    }
}

/* --- Responsive: 1 column on mobile --- */
@media (max-width: 580px) {

    .container {
        padding: 0.4em;
    }

    .about-text h2 {
        font-size: 2em;
    }

    .about-text {
        padding: 1.8em;
        max-width: 90%;
        font-size: 0.9em;
        margin: 0 auto;
    }

    .why-section {
        padding: 4rem 0;
    }

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

    .why-grid .why-card:not(:nth-child(2n)) {
        border-right: none;
    }

    .why-grid .why-card:nth-child(-n+4) {
        border-bottom: none;
    }

    .why-grid .why-card:not(:last-child) {
        border-bottom: 1.5px solid #e0ddd6;
    }

    .why-card {
        padding: 1.75rem 1.25rem 2rem;
    }
}

@media (max-width: 48em) {
    .contact-wrapper {
        transform: none;
    }
}