@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

:root {
    --beige-bg: #fdfbf9;
    --card-white: #ffffff;
    --orange-primary: #f97316;
    --brown-main: #5d4037; /* Lighter, warmer cocoa */
    --brown-light: #a1887f;
    --border-warm: #ece5dd;
    --header-height: 160px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { font-family: 'Montserrat', sans-serif; background-color: var(--beige-bg); color: var(--brown-main); margin: 0; }

.hero-section {
    background: linear-gradient(rgba(93, 64, 55, 0.70), rgba(93, 64, 55, 0.80)), 
    url('/images/buildingbackground.jpeg');
    background-size: cover; background-position: center; min-height: 60vh; display: flex; align-items: center; justify-content: center; color: white;
}

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.service-card { background: white; padding: 3rem 1.5rem; border-radius: 20px; border: 1px solid var(--border-warm); transition: var(--transition); display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.service-card:hover { transform: translateY(-8px); border-color: var(--orange-primary); box-shadow: 0 20px 40px rgba(93, 64, 55, 0.1); }

/* Update this in your style.css */
.service-card h3 {
    /* Increased from default to 1.5rem (24px approx) */
    font-size: 1rem; 
    font-weight: 800; /* Extra bold for a professional look */
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--brown-main); /* Keeps it consistent with your theme */
    text-transform: uppercase; /* Optional: makes titles look more uniform */
    letter-spacing: 0.5px;
}

.quote-link {
    margin-top: auto;
    font-size: 12px; /* Slightly bigger to match the new title scale */
    font-weight: 700;
    color: var(--orange-primary);
    text-transform: uppercase;
}

/* New style for insurance service cards */
.service-card-dynamic {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.60)), var(--bg-image);
    transition: var(--transition);
}

/* Hover effect: make the background slightly clearer */
.service-card-dynamic:hover {
    background-image: linear-gradient(rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.90)), var(--bg-image);
    transform: translateY(-5px);
}

/* Ensure content stays above the background */
.service-card-dynamic h3, 
.service-card-dynamic p, 
.service-card-dynamic .quote-link {
    position: relative;
    z-index: 10;
}

/* Styling for the Static Logo Grid */
.company-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.company-wrapper img {
    max-height: 50px;
    max-width: 120px;
    object-fit: contain;
    /* Force full color and brightness at all times */
    filter: none !important; 
    opacity: 1 !important;   
    transition: var(--transition);
    margin-bottom: 8px;
}

.company-wrapper:hover img {
    /* Only focus on the movement effect since color is already fixed */
    transform: scale(1.05);
}

.company-wrapper span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brown-light);
    letter-spacing: 0.5px;
}

/* Ensure the subtype container stays visible and clickable on small screens */
#subtypeContainer {
    position: relative;
    z-index: 50; /* Keeps it above other background elements */
    width: 100%;
    margin-top: 1rem;
}

#subtypeSelect {
    appearance: none; /* Removes default iOS styling that can sometimes hide text */
    -webkit-appearance: none;
    background-color: white;
    cursor: pointer;
}

/* MARQUEE STYLES */
.marquee-container { background: #ffffff; padding: 60px 0; border-top: 1px solid var(--border-warm); border-bottom: 1px solid var(--border-warm); overflow: hidden; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-inner { display: flex; width: 200%; animation: scroll 40s linear infinite; align-items: center; }
.carrier-logo { height: 85px; margin: 0 50px; filter: sepia(0.5) contrast(0.8); opacity: 0.6; }

.expert-card { text-align: center; padding: 2rem; background: white; border-radius: 24px; border: 1px solid var(--border-warm); }
.expert-image { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.5rem; border: 4px solid #fdf2e9; }

input, select, textarea { border: 1px solid var(--border-warm) !important; padding: 12px; border-radius: 10px; width: 100%; outline: none; transition: var(--transition); background: white; color: var(--brown-main); font-size: 14px; }
input:focus, select:focus, textarea:focus { border-color: var(--orange-primary) !important; box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.1); }

.faq-item.active { border-color: var(--orange-primary); }
.faq-icon { transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

.contact-simple input::placeholder, .contact-simple textarea::placeholder { color: #ffffff; }

.dynamic-block { padding: 1.5rem; border-radius: 1rem; border: 1px solid var(--border-warm); background: #fdfbf9; margin-bottom: 1.5rem; text-align: left; }
.section-title { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--orange-primary); letter-spacing: 1px; margin-bottom: 1rem; border-bottom: 1px solid var(--border-warm); padding-bottom: 0.5rem; }

.quote-link { margin-top: auto; font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--orange-primary); letter-spacing: 1px; }

#backToTop { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--orange-primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 2000; }
#backToTop.show { opacity: 1; visibility: visible; }