/*
Theme Name: GeneratePress Child
Theme URI: 
Description: Custom child theme for GeneratePress - Katy Stomach Doctor
Author: 
Author URI: 
Template: generatepress
Version: 1.0.0
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
    /* Palette */
    --color-navy: #0a192f;
    --color-navy-light: #172a45;
    --color-gold: #c5a47e;
    --color-accent: #2a5475;
    --color-accent-hover: #1e3f5a;
    --color-sand: #f4f1ea;
    --color-sand-dark: #e8e3d5;
    --color-text: #2d3436;
    --color-text-muted: #636e72;
    --color-white: #ffffff;
    
    /* Spacing & Architecture */
    --container-max: 1200px;
    --section-padding: 100px;
    --border-radius: 4px; 
    
    /* Typography */
    --font-serif: 'Merriweather', serif;
    --font-sans: 'Inter', sans-serif;
}

/* ==========================================================================
   BASE RESET
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: var(--font-sans); 
    color: var(--color-text); 
    line-height: 1.8; 
    background-color: var(--color-white);
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--color-navy); line-height: 1.2; }
p { font-weight: 300; letter-spacing: -0.01em; margin-bottom: 20px; }
a { text-decoration: none; transition: 0.3s ease; }
ul { margin-bottom: 20px; padding-left: 20px; }
li { font-weight: 300; margin-bottom: 10px; }

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

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

header#navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(10, 25, 47, 0.05);
    transition: transform 0.3s ease;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-serif); font-weight: 700; font-size: 1.8rem; color: var(--color-navy); }
.logo span { display: block; font-size: 0.75rem; font-family: var(--font-sans); color: var(--color-accent); text-transform: uppercase; letter-spacing: 2px; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a { color: var(--color-navy); font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a.active { color: var(--color-accent); }
.nav-links a:hover { color: var(--color-gold); }
.nav-phone { font-weight: 600; color: var(--color-navy); border-left: 1px solid var(--color-sand-dark); padding-left: 40px; }

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-navy);
    transition: all 0.3s ease;
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 30px 0;
    border-top: 1px solid var(--color-sand-dark);
    margin-top: 20px;
}
.mobile-nav.is-open {
    display: flex;
}
.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-nav-links li { margin-bottom: 0; }
.mobile-nav-links a {
    display: block;
    padding: 12px 0;
    color: var(--color-navy);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--color-sand);
}
.mobile-nav-links a:hover { color: var(--color-gold); }
.mobile-nav-phone {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-navy);
}
.mobile-nav-cta {
    margin-top: 10px;
    text-align: center;
    color: #ffffff !important;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    min-width: 180px;
    border: none;
    border-radius: var(--border-radius);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.btn-primary { background: var(--color-accent); color: var(--color-white); border: 1px solid var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-outline { border: 1px solid var(--color-navy); color: var(--color-navy); background: transparent; }
.btn-outline:hover { background: var(--color-sand); transform: translateY(-2px); }
.btn-outline-light { border: 1px solid var(--color-white); color: var(--color-white); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ==========================================================================
   HOMEPAGE: HERO SECTION
   ========================================================================== */

.hero { 
    position: relative;
    min-height: 85vh; 
    display: flex;
    align-items: center;
    margin-top: 80px;
}

/* Background Layer */
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    background-color: var(--color-navy);
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0; right: 0;
    width: 60%; 
    height: 100%;
}
.hero-bg-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 15%;
    filter: grayscale(10%) contrast(105%);
    opacity: 0.85;
}
.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(10,25,47,0.7) 0%, rgba(10,25,47,0.1) 100%);
}

.hero-bg-shape {
    position: absolute;
    top: 0; left: 0;
    width: 55%;
    height: 100%;
    background-color: var(--color-sand);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

/* Content Layer */
.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    padding: 40px 40px 40px 0;
}
.hero-text h1 { 
    font-size: clamp(2.8rem, 4.5vw, 4.2rem); 
    line-height: 1.15;
    margin-bottom: 24px; 
    font-weight: 700; 
    letter-spacing: -0.02em;
}
.hero-text p { 
    font-size: 1.15rem; 
    color: var(--color-text-muted); 
    margin-bottom: 44px; 
    max-width: 480px; 
    line-height: 1.6; 
}
.hero-actions {
    display: flex;
    gap: 20px;
}

/* Trust Markers */
.hero-markers-container {
    position: absolute;
    right: 0; 
    bottom: 40px;
    z-index: 10;
    width: 380px;
    filter: drop-shadow(-10px 10px 20px rgba(10,25,47,0.15));
}

.hero-markers-clip {
    clip-path: polygon(45px 0, 100% 0, 100% 100%, 0 100%);
}

.hero-markers {
    display: flex; 
    flex-direction: column; 
    gap: 15px;
}

.marker {
    background: var(--color-white);
    width: 100%;
    border-radius: 0;
    animation: slideIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

.marker:nth-child(1) { padding: 24px 30px 24px 75px; animation-delay: 0s; }
.marker:nth-child(2) { padding: 24px 30px 24px 60px; animation-delay: 0.15s; }
.marker:nth-child(3) { padding: 24px 30px 24px 45px; animation-delay: 0.30s; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

.marker h4 { 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    color: var(--color-gold); 
    margin-bottom: 8px; 
    letter-spacing: 1px; 
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.marker h4::before {
    content: "";
    display: block;
    width: 16px;
    height: 2px;
    background: var(--color-gold);
}
.marker p { font-size: 0.95rem; font-weight: 600; color: var(--color-navy); line-height: 1.3; margin-bottom: 0; }

/* ==========================================================================
   HOMEPAGE: TRUST SIGNALS / DIFFERENTIATORS
   ========================================================================== */

.trust-signals { padding: 80px 0; background: var(--color-white); border-bottom: 1px solid var(--color-sand-dark); }
.signals-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.signal-item { text-align: left; }
.signal-item h3 { font-size: 1rem; margin-bottom: 12px; position: relative; padding-left: 20px; font-weight: 700; }
.signal-item h3::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; background: var(--color-accent); border-radius: 50%; }
.signal-item p { font-size: 0.85rem; color: var(--color-text-muted); }

/* ==========================================================================
   HOMEPAGE: ABOUT SECTION
   ========================================================================== */

.about { padding: var(--section-padding) 0; overflow: hidden; position: relative; }
.about-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 100px; align-items: center; }
.about-content h2 { font-size: 2.8rem; margin-bottom: 30px; }
.about-content p { margin-bottom: 25px; font-size: 1.1rem; }
.about-image { position: relative; }
.about-image-box { 
    width: 100%; height: 500px; 
    background: var(--color-sand-dark); 
    border-radius: var(--border-radius);
    transform: translateX(40px);
    position: relative;
    overflow: hidden;
    box-shadow: -20px 20px 0 var(--color-sand);
}
.about-image-box img { width: 100%; height: 100%; object-fit: cover; }

.motif-line { position: absolute; z-index: -1; pointer-events: none; opacity: 0.3; }

/* ==========================================================================
   HOMEPAGE: SERVICES OVERVIEW
   ========================================================================== */

.services { padding: var(--section-padding) 0; background-color: var(--color-sand); position: relative; }
.services::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 120px;
    background: var(--color-white); clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%);
}
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 80px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
    background: var(--color-white);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    transition: all 0.4s ease;
    display: flex; flex-direction: column; justify-content: space-between;
    border-bottom: 0px solid var(--color-gold);
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(10, 25, 47, 0.05); border-bottom-width: 4px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 15px; }
.service-card p { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 30px; }
.service-card .link { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--color-accent); letter-spacing: 1px; }

/* ==========================================================================
   HOMEPAGE: THE MAHER DIFFERENCE
   ========================================================================== */

.difference { 
    padding: 140px 0; 
    background: var(--color-navy); 
    color: var(--color-white); 
    text-align: center;
    position: relative;
    clip-path: polygon(0 4%, 100% 0%, 100% 96%, 0% 100%); 
}
.diff-inner { max-width: 850px; margin: 0 auto; position: relative; z-index: 2; }
.difference h2 { color: var(--color-white); font-size: 3rem; margin-bottom: 30px; }
.difference p { font-size: 1.3rem; opacity: 0.9; margin-bottom: 40px; font-weight: 300; line-height: 1.6; }
.difference .emphasis { color: var(--color-gold); display: block; font-family: var(--font-serif); font-style: italic; font-size: 1.8rem; margin-top: 10px; }

/* ==========================================================================
   HOMEPAGE: TESTIMONIALS
   ========================================================================== */

.testimonials { padding: var(--section-padding) 0; }
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.test-item { border-left: 1px solid var(--color-sand-dark); padding-left: 30px; }
.test-item p { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; margin-bottom: 20px; color: var(--color-navy); }
.test-item cite { font-style: normal; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; color: var(--color-gold); letter-spacing: 1px; }

/* ==========================================================================
   HOMEPAGE: CONTACT / LOCATION BLOCK
   ========================================================================== */

.contact { padding: var(--section-padding) 0; background: var(--color-white); }
.contact-layout { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 80px; align-items: start; }
.contact-info h2 { font-size: 2.5rem; margin-bottom: 40px; }
.contact-row { margin-bottom: 30px; }
.contact-row h4 { font-size: 0.75rem; color: var(--color-gold); text-transform: uppercase; margin-bottom: 8px; letter-spacing: 1.5px; }
.contact-row p { font-size: 1.1rem; color: var(--color-navy); font-weight: 500; }
.map-box { 
    width: 100%; height: 500px; 
    background: var(--color-sand); 
    border-radius: var(--border-radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-muted);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-sand-dark);
}

/* ==========================================================================
   SHARED: FINAL CTA (Homepage variant)
   ========================================================================== */

.final-cta { 
    padding: 100px 0; 
    background-color: var(--color-sand); 
    text-align: center; 
    position: relative;
}
.final-cta h2 { font-size: 2.5rem; margin-bottom: 20px; }
.final-cta p { margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; color: var(--color-text-muted); }

/* Procedure page variant */
.final-cta--alt {
    background-color: var(--color-sand-dark);
    color: var(--color-navy);
    border-top: 1px solid rgba(0,0,0,0.05);
}
.final-cta--alt h2 { color: var(--color-navy); }
.final-cta--alt p { font-size: 1.1rem; }

.contact-details-grid { display: flex; justify-content: center; gap: 40px; margin-top: 50px; flex-wrap: wrap; }
.contact-detail { text-align: left; background: var(--color-white); padding: 25px 35px; border-radius: var(--border-radius); border-left: 3px solid var(--color-gold); box-shadow: 0 10px 20px rgba(0,0,0,0.03); }
.contact-detail h4 { color: var(--color-gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.contact-detail p { margin-bottom: 0; color: var(--color-navy); font-weight: 500; }

/* ==========================================================================
   PROCEDURE PAGE: FLOATING GUIDE HERO
   ========================================================================== */

.prep-hero {
    position: relative;
    padding: 200px 0 160px;
    background-color: var(--color-navy);
    color: var(--color-white);
    text-align: center;
}
.prep-hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0.12; filter: grayscale(100%);
}
.prep-hero-content {
    position: relative; z-index: 2;
    max-width: 800px; margin: 0 auto;
}
.prep-hero h1 { color: var(--color-white); font-size: clamp(2.8rem, 4.5vw, 4rem); margin-bottom: 24px; line-height: 1.15; }
.prep-hero p { font-size: 1.2rem; color: rgba(255,255,255,0.8); margin-bottom: 40px; line-height: 1.6; }

/* ==========================================================================
   PROCEDURE PAGE: FLOATING CARDS (4-Column)
   ========================================================================== */

.pattern-cards-floating {
    position: relative;
    z-index: 10;
    margin-top: -100px;
    padding-bottom: var(--section-padding);
    background: transparent;
}
.cards-4-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.card-4-item { 
    background: var(--color-white); 
    padding: 45px 30px; 
    border-radius: 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.06); 
    border-top: 6px solid var(--color-gold);
    display: flex; flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-4-item:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}
.card-4-item h3 { 
    font-family: var(--font-serif);
    font-size: 1.35rem; 
    margin-bottom: 20px; 
    color: var(--color-navy); 
    font-weight: 700;
}
.card-4-item p { 
    font-size: 0.95rem; 
    color: var(--color-text-muted); 
    margin-bottom: 40px; 
    flex-grow: 1; 
    line-height: 1.7;
}
.card-link { 
    font-weight: 700; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    color: var(--color-accent); 
    letter-spacing: 1.5px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    line-height: 1.6;
    margin-top: auto;
}
.card-link span {
    max-width: 60%;
    display: block;
}
.card-link::after { 
    content: "⟶";
    font-size: 1.5rem; 
    font-weight: 300;
    transition: transform 0.3s ease; 
    line-height: 1;
}
.card-4-item:hover .card-link::after { transform: translateX(6px); }

/* ==========================================================================
   PROCEDURE PAGE: 2-COLUMN LAYOUT (Requirements)
   ========================================================================== */

.pattern-2col { padding: var(--section-padding) 0; background: var(--color-sand); position: relative; }
.col-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.col-text h2 { font-size: 2.4rem; margin-bottom: 24px; }

.col-image-box { position: relative; width: 100%; height: 500px; border-radius: var(--border-radius); overflow: hidden; background: var(--color-sand-dark); box-shadow: -20px 20px 0 var(--color-white); }
.col-image-box img { width: 100%; height: 100%; object-fit: cover; }

/* Stylized Check List */
.prep-list { list-style: none; padding: 0; margin-top: 30px; }
.prep-list li { 
    position: relative; padding-left: 45px; margin-bottom: 20px; 
    font-size: 1.05rem; font-weight: 500; color: var(--color-navy); 
    display: flex; align-items: center;
}
.prep-list li::before { 
    content: "✓"; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; background: var(--color-accent); color: var(--color-white);
    border-radius: 50%; font-size: 0.9rem; font-weight: bold;
}

/* ==========================================================================
   PROCEDURE PAGE: WARNING STRIP (Medications)
   ========================================================================== */

.pattern-warning-strip { padding: 80px 0; background: var(--color-white); position: relative; border-bottom: 1px solid var(--color-sand-dark); border-top: 1px solid var(--color-sand-dark); }
.warning-container { display: flex; align-items: center; gap: 50px; max-width: 1000px; margin: 0 auto; background: var(--color-sand); padding: 50px; border-radius: var(--border-radius); border-left: 6px solid var(--color-accent); }
.warning-icon { width: 60px; height: 60px; color: var(--color-accent); flex-shrink: 0; }
.warning-text h2 { font-size: 1.8rem; margin-bottom: 15px; color: var(--color-navy); }
.warning-text p { margin-bottom: 0; font-size: 1.05rem; color: var(--color-text-muted); }

/* ==========================================================================
   PROCEDURE PAGE: 3-COLUMN STEP CARDS
   ========================================================================== */

.pattern-cards-3 { padding: var(--section-padding) 0; background: var(--color-white); }
.cards-header { text-align: center; margin-bottom: 60px; max-width: 800px; margin-left: auto; margin-right: auto; }
.cards-header h2 { font-size: 2.4rem; margin-bottom: 15px; }
.cards-3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step-col-item { background: var(--color-sand); padding: 45px 35px; border-radius: var(--border-radius); position: relative; z-index: 1; }
.step-col-number { font-family: var(--font-serif); font-size: 4rem; font-weight: 700; color: var(--color-white); position: absolute; top: 10px; right: 20px; z-index: -1; line-height: 1; }
.step-col-item h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--color-navy); margin-top: 10px; }
.step-col-item p { font-size: 0.95rem; color: var(--color-text-muted); margin-bottom: 0; line-height: 1.6; }

/* ==========================================================================
   PROCEDURE PAGE: FAQ ACCORDION
   ========================================================================== */

.pattern-faq { padding: var(--section-padding) 0; background: var(--color-sand); }
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: start; }
.faq-item { border-bottom: 1px solid var(--color-sand-dark); padding: 25px 0; }
.faq-question { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-question h4 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; margin-bottom: 0; transition: color 0.3s ease; padding-right: 20px; }
.faq-question:hover h4 { color: var(--color-accent); }
.faq-icon { font-size: 1.5rem; color: var(--color-gold); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner { padding-top: 15px; color: var(--color-text-muted); font-size: 0.95rem; }
.faq-item.active .faq-answer { max-height: 400px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer { padding: 80px 0 40px; background: var(--color-navy); color: rgba(255, 255, 255, 0.6); border-top: 1px solid rgba(255,255,255,0.05); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 80px; margin-bottom: 80px; }
.footer-logo { color: var(--color-white); font-size: 1.5rem; margin-bottom: 25px; display: block; }
.footer-top h4 { color: var(--color-white); margin-bottom: 25px; font-size: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: inherit; font-size: 0.9rem; }
.footer-links a:hover { color: var(--color-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 40px; text-align: center; font-size: 0.8rem; letter-spacing: 0.5px; }

/* ==========================================================================
   SCROLL REVEAL ANIMATION - SAFE VERSION
   Content visible by default; only hidden when JS is confirmed working.
   ========================================================================== */

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.js-enabled .reveal:not(.active) {
    opacity: 0;
    transform: translateY(40px);
}

.js-enabled .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE: TABLET (≤1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    /* Homepage Hero */
    .hero { min-height: auto; padding: 60px 0; }
    .hero-bg-shape { width: 100%; clip-path: none; }
    .hero-bg-image { display: none; }
    .hero-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-text { padding: 0; text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    
    .hero-markers-container { 
        position: static; 
        width: 100%; 
        padding: 0 30px; 
        margin-top: 40px; 
        filter: none; 
    }
    .hero-markers-clip { clip-path: none; }
    .hero-markers { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .marker { 
        width: calc(50% - 20px); 
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        border-radius: var(--border-radius);
        padding: 24px 30px !important;
    }
    .marker h4::before { display: none; }
    
    /* Shared grid collapses */
    .signals-grid, .services-grid, .test-grid { grid-template-columns: repeat(2, 1fr); }
    .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 50px; }
    .about-image-box { transform: none; box-shadow: none; }
    
    /* Procedure page collapses */
    .cards-4-grid { grid-template-columns: repeat(2, 1fr); }
    .col-layout, .faq-layout { grid-template-columns: 1fr; gap: 50px; }
    .col-image-box { box-shadow: none; }
    .cards-3-grid { grid-template-columns: repeat(2, 1fr); }
    .warning-container { flex-direction: column; text-align: center; gap: 20px; padding: 30px; border-left: none; border-top: 6px solid var(--color-accent); }
}

/* ==========================================================================
   RESPONSIVE: MOBILE (≤640px)
   ========================================================================== */

@media (max-width: 640px) {
    /* Homepage */
    .marker { width: 100%; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-text h1 { font-size: 2.2rem; }
    
    /* Shared grids to single column */
    .signals-grid, .services-grid, .test-grid, .footer-top { grid-template-columns: 1fr; gap: 40px; }
    
    /* Procedure page */
    .prep-hero { padding: 140px 0 100px; }
    .pattern-cards-floating { margin-top: -50px; }
    .cards-4-grid, .cards-3-grid { grid-template-columns: 1fr; gap: 30px; }
    .prep-hero h1 { font-size: 2.2rem; }
    .contact-detail { width: 100%; text-align: center; }
    
    /* Navigation: hide desktop, show mobile */
    .nav-links { display: none !important; }
    .mobile-menu-toggle { display: flex; }
}

/* ==========================================================================
   GENERATEPRESS OVERRIDES
   ========================================================================== */

.site-content,
.inside-article {
    padding: 0;
    margin: 0;
}