/* --- V4 - 4-22-2026 5:48PM--- */
*, *::before, *::after { box-sizing: border-box; }

:root {
    color-scheme: dark;
    --flame: #ff6600; 
    --charcoal: #000000;
    --ash: #e0e0e0;
    --white: #ffffff;
    --border-main: 2px solid var(--flame);
}

html { background-color: #000; }

body {
    background-color: #000000 !important;
    color: var(--ash);
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0; padding: 0;
    overflow-x: hidden !important;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

/* --- HEADINGS & TEXT --- */
h1, h2, h3, h4 { color: var(--flame); text-align: center; text-transform: uppercase; margin-bottom: 15px; }
p { color: var(--white); text-align: left; font-size: 1rem; }
a, a:link, a:visited, a:active { color: #ff9d00; text-decoration: underline; font-weight: 600; }
a:hover { color: #ffffff; }

/* --- GLOBAL INTRO TEXT (BRIGHT & CRISP) --- */
.intro-block {
    max-width: 800px;
    margin: 0 auto 15px auto;
    text-align: center;
}

.intro-block p {
    text-align: center !important;
    font-size: 1.2rem;
    line-height: 1.4 !important;
    margin: 0;
    color: #ffffff !important; 
    text-shadow: none !important; 
}

/* --- BUTTONS --- */
.cta-section { text-align: center; padding: 0 0 5px 0; margin-top: 5px; }

.book-btn {
    display: inline-block;
    width: fit-content;
    background: var(--flame) !important; /* Forces the bright orange */
    color: #000 !important;             /* Forces high-contrast black text */
    border: 2px solid var(--flame);
    padding: 12px 25px !important; 
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none !important;    /* Kills the "link" underline */
    border-radius: 6px !important;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1.1;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.2);
}

.book-btn:hover {
    background: #ff8c00 !important;
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
    filter: brightness(1.1);
}

.btn-sub {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: block;
    margin-top: 4px;
    color: var(--white);
    opacity: 0.8;
}

/* --- WRAPPERS --- */
.section-wrapper {
    max-width: 1200px;
    margin: 15px auto;
    padding: 0 10px;
    width: 100%;
}

/* --- HERO & VIDEO --- */
.topheader-vid {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: var(--border-main);
    padding: 15px 0;
}

.bg-video {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: calc(100% - 30px);
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    opacity: 0.8;
}

.header-content { position: relative; 
    z-index: 5; text-align: center; margin-top: 0; }
.hero-logo { height: clamp(130px, 22vw, 240px) !important; 
    width: auto; 
    display: block; 
    margin: 0 auto 2px auto; 
    filter: drop-shadow(0 0 25px rgba(0,0,0,1)); }

.header-content h1 {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px #000000 !important;
    font-size: clamp(1.2rem, 3vw, 1.8rem) !important; 
    margin: 2px !important;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-content p {
    color: #ff8c00 !important; 
    font-size: clamp(0.75rem, 1.8vw, 0.95rem) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    text-shadow: 2px 2px 4px #000000 !important;
    margin: 2px 0 0 0 !important;
    text-align: center !important;
}
.hero-clinic::before {
    content: "Video Call: \A Tuesday w/ StoveDoc";
    white-space: pre-wrap;
    position: absolute;
    top: 5px; 
    right: 5px;
    background: #ffeb3b; /* Classic Post-it Yellow */
    color: #000;
    padding: 10px;
    font-family: 'Courier New', Courier, monospace; /* Handwriting vibe */
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 10px 2px 50px rgba(0, 0, 0, 0.5);
    transform: rotate(3deg); /* Slightly crooked for realism */
    z-index: 10;
    border-left: 5px solid rgba(0,0,0,0.1);
}
/* --- TELEHEARTH CLINIC (MONITOR STYLE - NO STAND) --- */
.hero-clinic {
    width: 98% !important; 
    max-width: 1100px !important; 
    position: relative;
    border: 12px solid #222 !important; 
    border-bottom: 20px solid #222 !important; /* Flattened bottom */
    border-radius: 15px; 
    box-sizing: border-box !important;
    height: 400px !important; 
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('telehearth-full.webp');
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    overflow: hidden !important; 
   margin: 20px auto 0 auto !important;
}
/* --- THE SURGICAL TRAY (tools2.php Header) --- */
.hero-tooltray {
    width: 98% !important; 
    max-width: 1100px !important; 
    position: relative;
    /* Red Snap-On style outer edge */
    border: 12px solid #b30000 !important; 
    border-bottom: 25px solid #800000 !important; 
    border-radius: 4px; /* Sharper corners than the monitor */
    box-sizing: border-box !important;
    height: 400px !important; /* Exact same height as the monitor */
    /* Silver inner lip + Deep recessed shadow to look like looking down into a tray */
    box-shadow: inset 0 0 0 5px #777, inset 0 30px 40px rgba(0,0,0,0.8), inset 0 -10px 20px rgba(0,0,0,0.6), 0 10px 30px rgba(0,0,0,0.6);
    /* Darkened background to simulate the black foam insert */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8)), url('handtoolsbits-sm.webp');
    background-size: cover;
    background-position: 50% 35%;
    overflow: hidden !important; 
    margin: 20px auto 0 auto !important;
}
/* --- THE DIAGNOSTIC CHART (faq.php Header) --- */
.hero-faq {
    width: 98% !important; 
    max-width: 1100px !important; 
    position: relative;
    /* Professional Silver/Gray Clipboard Frame */
    border: 12px solid #222 !important; 
    border-top: 35px solid #666 !important;
    border-radius: 10px; 
    box-sizing: border-box !important;
    height: 400px !important; 
    /* Inset shadow to make the image look like paper sitting in the tray */
    box-shadow: inset 0 2px 0 #888, inset 0 0 15px rgba(0,0,0,0.8), 0 10px 30px rgba(0,0,0,0.6);
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('faqheader.webp');
    background-size: cover;
    background-position: center 30%;
    overflow: visible !important;
    margin: 20px auto 0 auto !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* THE METAL CLIP - Making it pop */
.hero-faq::before {
    content: "" !important;
    position: absolute;
    top: -28px; /* Perfectly centered on the 35px rail */
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 20px;
    background: linear-gradient(#aaa, #888) !important; /* Brushed Steel */
    border: 1px solid #444;
    border-radius: 4px 4px 2px 2px;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0,0,0,0.6);
}
/* --- THE LEGACY SHADOW BOX (legacy.php Header) --- */
.hero-legacy {
    width: 98% !important; 
    max-width: 1100px !important; 
    position: relative;
    /* Deep Walnut Wood Frame */
    border: 18px solid #3d2b1f !important; 
    border-radius: 4px; 
    box-sizing: border-box !important;
    height: 400px !important; 
    /* Deep inset for the 'Shadow Box' effect */
    box-shadow: 
        inset 0 0 40px rgba(0,0,0,0.9), 
        0 15px 35px rgba(0,0,0,0.7);
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('thedoc.webp');
    background-size: cover;
    background-position: 50% 35%;
    overflow: visible !important; 
    margin: 20px auto 0 auto !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* THE BRASS CORNER RIVETS */
.hero-legacy::before, .hero-legacy::after {
    content: "";
    position: absolute;
    width: 25px; height: 25px;
    background: radial-gradient(#d4af37, #8b6508); /* Brass/Gold look */
    border: 1px solid #5e450a;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.hero-legacy::before { top: -12px; left: -12px; } /* Top Left Rivet */
.hero-legacy::after { bottom: -12px; right: -12px; } /* Bottom Right Rivet */
.hero-clinic .tray-header-box {
    background: transparent !important;
    padding: 0;
    display: block; 
    margin-top: 10px;
}

.pill-text-unit {
    color: #ff8c00;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    
    text-shadow: 2px 2px 4px #000;
}

/* --- GRID & CARDS --- */
/* --- 2-COLUMN GRID (Desktop) --- */
/* --- 2-COLUMN GRID (Updated for Height Matching) --- */
.grid-2 { 
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; /* Gives slightly more room to the text on desktop */
    gap: 30px; 
    margin-top: 25px; 
    align-items: stretch; /* Forces both columns (text and image) to be the SAME height */
}
/* --- SYMMETRIC GRID FOR TESTIMONIALS --- */
.grid-equal-2 { 
    display: grid; 
    grid-template-columns: 1fr 1fr; /* Exact 50/50 split on desktop */
    gap: 10px; 
    margin-top: 15px; 
    align-items: stretch; /* Keeps card heights equal */
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }

.info-card, .spotter-card {
    background: rgba(255, 255, 255, 0.05) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--flame);
    border-radius: 8px;
    padding: 8px 15px 15px 15px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.9);
    transition: transform 0.3s ease;
}

.info-card:hover, .spotter-card:hover { transform: translateY(-5px); }
.service-tier { text-align: center !important; display: flex; flex-direction: column; align-items: center; }
.service-tier h2 { color: var(--white); font-size: 2.2rem; font-weight: 900; margin: 0 !important; line-height: 1.1; }

.doc-note {
    border: var(--border-main);
    background: rgba(255, 102, 0, 0.05);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin: 10px auto 40px auto !important; 
    max-width: 900px;
}

/* --- TRAYS --- */
.spotter-wrapper, .video-wrapper { position: relative; width: 100%; display: block; min-height: 150px; }
.spotter-tray, .video-library { display: flex; overflow-x: auto; gap: 20px; padding: 10px 0 20px 0; scrollbar-width: thin; scrollbar-color: var(--flame) transparent; }

.video-box { flex: 0 0 180px; aspect-ratio: 9 / 16; background: #000; border-radius: 8px; overflow: hidden; position: relative; }
.video-box iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.spotter-card { flex: 0 0 300px; border-top: none; border-left: 4px solid var(--flame); }
/* --- UNIVERSAL LINE BREAK (Global) --- */
/* --- SURGICAL LEGACY FIXES --- */
.global-break {
    display: block !important;
    content: "";
    margin-top: 10px; /* Adjust this for the vertical gap */
}

.legacy-quote {
    color: var(--flame);
    font-weight: 800;
    font-style: italic;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 25px;
    text-align: center !important;
}
/* --- ARROWS --- */
.scroll-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 60px; color: var(--flame);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; font-size: 2.5rem; opacity: 0.4;
    transition: opacity 0.3s; text-shadow: 2px 2px 5px rgba(0,0,0,0.9);
}
.scroll-arrow:hover { opacity: 1; }
.arrow-left { left: 0; }
.arrow-right { right: 0; }
/* --- TIMELINE SCROLL TRAY --- */
.timeline-wrapper { 
    position: relative; 
    width: 100%; 
    margin-top: 10px; 
}

.timeline-tray { 
    display: flex; 
    overflow-x: auto; 
    gap: 20px; 
    padding: 10px 0 20px 0; 
    scrollbar-width: none; /* Hides scrollbar for Firefox */
    -ms-overflow-style: none; /* Hides scrollbar for IE/Edge */
    scroll-behavior: smooth;
}

.timeline-tray::-webkit-scrollbar { 
    display: none; /* Hides scrollbar for Chrome/Safari */
}

.timeline-tray .info-card { 
    flex: 0 0 350px; /* Keeps the cards at a fixed width */
    border-top: none; 
    border-left: 4px solid var(--flame); 
}

/* --- THE FOOTER WELD (2-COL DESKTOP / 1-COL MOBILE) --- */
/* --- THE FOOTER WELD (GLOBAL ANCHOR) --- */
footer { 
    background: #000;
    width: 100%;
}


/* --- SQUIRREL: TEXTURED CHECKLIST CARDS --- */
#card-ul, #card-pilot, #card-tools {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#card-ul::before, #card-pilot::before, #card-tools::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
    transition: opacity 0.3s ease;
}
#card-pilot::before { background-image: url('pilot.jpeg'); }
#card-ul::before { background-image: url('ul.jpg'); }
#card-tools::before { background-image: url('handtoolsbits-lg.webp'); }

/* Make the image pop slightly on hover */
/* Make the image much clearer on hover */
#card-ul:hover::before, #card-pilot:hover::before, #card-tools:hover::before {
    opacity: 0.7; /* Cranking this up from 0.3 */
    filter: contrast(1.1) brightness(1.1); /* Adds a little extra punch to the details */
}
/* --- IMAGE ZOOM MODAL (Popup Screen) --- */
.zoom-clickable { cursor: zoom-in; } /* Shows user they can click to expand */

/* The actual full-screen window that pops up */
.zoom-modal {
    padding: 0;
    border: none;
    background: rgba(0,0,0,0.9); /* Transparent black background */
    width: 100%; height: 100%;
    max-width: 100vw; max-height: 100vh;
}
.zoom-modal::backdrop { background: rgba(0,0,0,0.9); }

/* The full-size image inside the modal */
.zoom-modal img {
    width: auto; height: auto;
    max-width: 95vw; max-height: 95vh;
    border: 2px solid var(--flame);
    box-shadow: 0 0 50px rgba(255,102,0,0.5);
    border-radius: 8px;
    /* Centers the image in the full screen */
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
/* Container that holds both the list and the background image */
/* --- THE BASE CARD (Everyone) --- */
/* --- THE BASE CARD (Everyone) --- */
.bg-tool-card {
    position: relative;
    padding: 12px 15px; /* Tightened Green/Pink zones */
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* 1 The actual image sitting behind the text */
.card-bg-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.35; /* Base visibility */
    transition: opacity 0.4s ease;
}


/* Forces the text to stay on top of the image with depth */
.bg-tool-content {
    position: relative;
    z-index: 2;
    pointer-events: none;
    /* This creates the 'float' effect */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9), 0px 0px 10px rgba(0,0,0,0.5);
}
/* Ensure the headers specifically have a strong anchor */
.bg-tool-content h3 {
    text-shadow: 3px 3px 6px rgba(0,0,0,1);
    margin-top: 0;
    margin-bottom: 5px;
    padding-bottom: 5px;
}
.bg-tool-content ul {
    margin-top: 10px;
    line-height: 1.5;
}
/* --- FAQ ACCORDION SURGERY --- */
.faq-card {
    border-left: 6px solid var(--flame) !important; /* Thick orange accent from your screenshot */
    margin-bottom: 15px;
}

.faq-card summary {
    list-style: none;
    outline: none;
}

.faq-card summary::-webkit-details-marker {
    display: none; /* Hides the default arrow */
}

.faq-card summary h3::before {
    content: "▶ "; /* Your custom arrow from the screenshot */
    font-size: 0.8rem;
    color: var(--ash);
    margin-right: 10px;
    transition: transform 0.3s;
}

.faq-card[open] summary h3::before {
    content: "▼ "; /* Rotates arrow when open */
}

.faq-content {
    padding: 10px 0 10px 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    pointer-events: auto !important; /* Ensures links inside work */
}
/* Fixes the click and removes the zoom effects for FAQs */
.faq-card summary {
    pointer-events: auto !important; 
}

.faq-card:hover {
    cursor: default !important; 
}

.faq-card:hover::after {
    display: none !important; 
}
/* 1. NARROW PHONES (Surgical) */
@media (max-width: 430px) {
    .narrow-break {
        display: block !important;
        content: "";
    }
}

/* 2. STANDARD MOBILE (768px - Pixel 8 Pro) */
@media (max-width: 768px) {
    .topheader-vid { height: 250px !important; }
    .hero-logo { 
        height: 120px !important; /* Tightened from 140px for the monitor frame */
        width: auto; 
        margin-bottom: 5px !important;
    }
    .grid-2 { grid-template-columns: 1fr !important; gap: 20px; }
    .grid-2 img.thumb-fit { max-width: 250px !important; margin: 0 auto; display: block; }
    .grid-equal-2 { grid-template-columns: 1fr !important; }
    .grid-3 { grid-template-columns: 1fr !important; }
    .spotter-card { flex: 0 0 80% !important; }
    .hero-clinic { 
        width: 96% !important; 
        margin: 15px auto 10px auto !important; 
        border: 8px solid #222 !important; 
        border-bottom-width: 15px !important;
        background-size: cover !important; /* Switched back to cover for height flexibility */
        background-position: center 20% !important;
        /* THE FIX: Sets a proportional height but allows it to grow if text pushes it */
        height: auto !important; 
        min-height: 60vw !important; 
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px 0 !important; /* Adds internal vertical "safety air" */
        border-radius: 8px;
        overflow: hidden;
    }
    .hero-tooltray { 
        width: 96% !important; 
        margin: 15px auto 10px auto !important; 
        border: 8px solid #b30000 !important; 
        border-bottom-width: 15px !important;
        background-size: cover !important; 
        background-position: center 40% !important;
        height: auto !important; 
        min-height: 60vw !important; 
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px 0 !important; 
        border-radius: 4px;
        overflow: hidden;
    }
    
    .hero-tooltray .header-content {
        padding: 0 15px !important; 
        width: 100%;
        text-align: center;
    }
    .hero-faq { 
        width: 96% !important; 
        margin: 15px auto 10px auto !important; 
        border: 8px solid #555 !important; 
        border-top-width: 35px !important;
        height: auto !important; 
        min-height: 60vw !important; 
        padding: 20px 0 !important;
    }
    .hero-faq::before {
        width: 80px !important;
        top: -28px !important;
        height: 20px !important;
    }
    .hero-legacy { 
        width: 96% !important; 
        margin: 15px auto 10px auto !important; 
        border: 10px solid #3d2b1f !important; 
        height: auto !important; 
        min-height: 60vw !important; 
        padding: 20px 0 !important;
    }
    .hero-legacy::before, .hero-legacy::after {
        width: 15px !important;
        height: 15px !important;
    }
    .hero-legacy::before { top: -8px; left: -8px; }
    .hero-legacy::after { bottom: -8px; right: -8px; }
    .hero-clinic::before {
        font-size: 0.55rem !important; 
        padding: 4px 6px !important; 
        /* Increase these to at least 8px so it stays on the 'glass' */
        top: 3px !important; 
        right: 3px !important; 
        max-width: 75px !important;
        line-height: 1.1 !important;
        z-index: 21 !important; /* Forces it above everything else */
    }
    .hero-clinic .header-content {
        padding: 0 15px !important; /* Creates a 15px safety buffer from the monitor edges */
        width: 100%;
        text-align: center;
    }    
    .hero-clinic .tray-header-box { padding: 10px 20px !important; }
    .hero-clinic h1 { text-shadow: 3px 3px 8px #000 !important; }
    .legacy-quote { font-size: 1.2rem !important; letter-spacing: 1px !important; }
    .mobile-break { display: block !important; margin-top: 5px; }
    .doc-note { padding: 15px !important; }
    .service-tier-wrapper { padding: 0 23px !important; }
    .service-tier-wrapper .grid-3 { display: grid !important; grid-template-columns: 1fr !important; gap: 20px; }
    .timeline-tray .info-card { flex: 0 0 85%; }
}

/* 3. DESKTOP GRID FIX (769px and up) */
@media (min-width: 769px) {
    .service-tier-wrapper { 
        max-width: 850px; 
        margin: 15px auto; 
        padding: 0 20px; 
    }
    .service-tier-wrapper .grid-3 { 
        display: grid; 
        grid-template-columns: repeat(3, 1fr); 
        gap: 30px; 
    }
}

/* 4. MOUSE/HOVER EFFECTS */
@media (hover: hover) {
    .bg-tool-card:hover { cursor: zoom-in; }
    .bg-tool-card:hover .card-bg-image { opacity: 0.5; }
    .bg-tool-card:hover::after {
        content: "🔍+"; 
        position: absolute;
        top: 15px;
        right: 15px;
        background: var(--flame);
        color: #fff;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: bold;
        z-index: 3;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
        pointer-events: none;
    }
}