/* Base Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Lato', sans-serif; line-height: 1.6; color: #333; background-color: #f9f9f9; padding-bottom: 60px; } /* Padding for mobile bar */

/* Colors */
:root {
    /* BASE: Deep Navy (Trust & Authority) */
    --primary: #2c3e50; 
    
    /* ACCENT: Warm Sand (Compassion & Approachability) */
    /* Replaces the shiny Gold with a softer, human color */
    --accent: #e67e22; /* A warm amber/orange - very high conversion for buttons */
    
    --white: #ffffff;
    --light-gray: #f8f9fa; /* Slightly cooler gray for a modern clean look */
}

/* Typography */
h1, h2, h3, .logo { font-family: 'Playfair Display', serif; color: var(--primary); }
a { text-decoration: none; }

/* Sticky Mobile Bar */
.mobile-sticky-bar {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 60px;
    background: white; display: flex; z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.sticky-btn {
    flex: 1; display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 1.1rem;
}
.sticky-btn.phone { background: var(--accent); color: white; }
.sticky-btn.book { background: var(--primary); color: white; }

@media(min-width: 768px) {
    .mobile-sticky-bar { display: none; }
    body { padding-bottom: 0; }
}

/* Navigation */
.navbar { background: var(--white); padding: 1rem 0; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary); }
.nav-links { display: none; list-style: none; }
.nav-links li { margin-left: 20px; }
.nav-links a { color: var(--primary); font-weight: 700; }

@media(min-width: 768px) {
    .nav-links { display: flex; align-items: center; }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.8)), url('hero-bg.jpg'); /* You will add image later */
    background-size: cover; background-position: center;
    color: white; padding: 4rem 1rem; text-align: center;
}
.hero-jail { background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.8)); }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.trust-text { margin-top: 1.5rem; font-size: 0.9rem; opacity: 0.8; }

/* Buttons */
.btn { display: inline-block; padding: 12px 25px; border-radius: 5px; font-weight: bold; transition: 0.3s; margin: 5px; }
.btn-primary { background: var(--accent); color: white; }
.btn-secondary { background: transparent; border: 2px solid white; color: white; }
.btn-primary:hover { background: #b8962e; }
.btn-secondary:hover { background: white; color: var(--primary); }

/* Layout Utilities */
.container { width: 90%; max-width: 1100px; margin: 0 auto; padding: 0 15px; }
.section { padding: 4rem 0; }
.bg-light { background: var(--light-gray); }
.text-center { text-align: center; }
.section-title { text-align: center; margin-bottom: 3rem; font-size: 2rem; }

/* Grid System */
.grid-3 { display: grid; gap: 20px; grid-template-columns: 1fr; }
.grid-2 { display: grid; gap: 40px; grid-template-columns: 1fr; }

@media(min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* Cards */
.card { background: white; padding: 2rem; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); text-align: center; }
.card h3 { margin-bottom: 1rem; }
.pricing-box { background: white; padding: 2rem; border-left: 5px solid var(--accent); }
.pricing-box ul { list-style: none; margin: 1.5rem 0; }
.pricing-box li { margin-bottom: 10px; border-bottom: 1px solid #eee; padding-bottom: 5px; }

/* Footer */
footer { background: var(--primary); color: white; padding: 2rem 0; }
.footer-grid { display: grid; gap: 20px; text-align: center; }
.footer-grid a { color: var(--accent); }
.copyright { text-align: center; margin-top: 2rem; font-size: 0.8rem; opacity: 0.6; }

@media(min-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; text-align: left; }
}

/* FAQ Styling */
.faq-grid {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto; /* Centers the questions */
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary); /* Navy accent on the left */
}

.faq-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

/* --- HOMEPAGE HERO FIXES --- */

/* 1. Force the Main Headline to be WHITE */
.hero h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5); /* Adds a shadow so it pops */
}

/* 2. Lighten the background overlay */
/* Currently it is 0.9 (too dark). This changes it to 0.6 so you can see the photo. */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.65), rgba(44, 62, 80, 0.65)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

/* --- CONTRAST FIXES --- */

/* 1. Make the Services Section Light Gray */
/* This makes the white cards pop out */
#services {
    background-color: #f4f4f4; /* Light Grey */
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

/* 2. Make the FAQ Section Light Gray */
/* This separates it from the sections above and below */
#faq {
    background-color: #f4f4f4;
    border-top: 1px solid #e0e0e0;
}

/* 3. Add a hover effect to cards so they feel interactive */
.card:hover, .faq-item:hover {
    transform: translateY(-5px); /* Moves up slightly */
    box-shadow: 0 8px 15px rgba(0,0,0,0.1); /* darker shadow */
    transition: all 0.3s ease;
}

/* Legal Page Styling */
.legal-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    background: white;
    border-radius: 8px;
}
.legal-content h1 { margin-bottom: 20px; border-bottom: 2px solid var(--accent); display: inline-block; }
.legal-content h2 { margin-top: 30px; font-size: 1.2rem; }
.legal-content p { margin-bottom: 15px; }

/* --- RESPONSIVE LOGO FIX --- */

/* Default (Mobile First) - Stacked & Smaller */
.logo-text-wrapper {
    display: flex;
    flex-direction: column; /* Stacks the text */
    line-height: 1.1;
    font-size: 1.1rem; /* Fits on phone screen */
    text-align: left;
}

/* Tablet & Desktop - Switch to Single Line */
@media (min-width: 768px) {
    .logo-text-wrapper {
        display: block; /* Normal inline behavior */
        font-size: 1.5rem; /* Bigger font for desktop */
        white-space: nowrap; /* Forces single line */
    }
}

/* --- RESPONSIVE TEXT UTILITIES --- */

/* 1. Forces text to a new line on Mobile, but stays inline on Desktop */
.mobile-stack {
    display: block;
}

/* 2. Hides the "|" separator on Mobile (since we are stacking instead) */
.desktop-pipe {
    display: none;
}

/* DESKTOP RULES (Screens wider than 768px) */
@media (min-width: 768px) {
    .mobile-stack {
        display: inline; /* Snaps back to same line */
        margin-left: 5px; /* Adds a tiny space */
    }
    .desktop-pipe {
        display: inline; /* Shows the "|" separator again */
    }
}

/* --- HEADER FIXES --- */

/* 1. Hide the "Back to Home" link on Mobile (The Logo is already the Home link) */
@media (max-width: 768px) {
    .nav-btn {
        display: none !important;
    }
}

/* 2. Force "Compassionate Care" to stay on one line */
/* We reduce the font slightly on mobile so it fits perfectly */
.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    font-size: 1.2rem; /* Adjusted for mobile fit */
    text-align: left;
}

/* Desktop: Restore size and single line */
@media (min-width: 768px) {
    .logo-text-wrapper {
        display: block;
        font-size: 1.5rem;
    }
}
/* --- TRUST BADGE FIX (CORRECTED) --- */

.trust-badges {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
    color: white;
}

/* Mobile: Stack them up */
.trust-badges span {
    display: block;
    margin-bottom: 5px;
}

/* FIX: We made this rule stronger so it actually works */
.trust-badges .desktop-divider {
    display: none; 
}

/* Desktop: Put them back in a straight line */
@media (min-width: 768px) {
    .trust-badges span {
        display: inline;
    }
    .trust-badges .desktop-divider {
        display: inline; /* Show them on desktop */
        margin: 0 10px;
    }
}