/* --- 1. LUXURY COLOR PALETTE & VARS --- */
:root {
    /* Primary Colors */
    --sage-main: #7C9082;     /* Earthy, calming green */
    --sage-dark: #586B5D;     /* Deep green for text/hover */
    --sage-deep: #2F3E35;     /* Darker, richer green for backgrounds */
    --sage-light: #9FB8AD;    /* Soft green for accents */
    
    /* Accents */
    --earth-brown: #8D7B68;   /* Warm brown for variety */
    --gold-mute: #C2B280;     /* Muted gold for tiny details */
    
    /* Backgrounds */
    --cream: #FDFCF8;         /* Rich, warm off-white */
    --beige: #F4F1EA;         /* Darker natural beige */
    --white: #FFFFFF;
    
    /* Text */
    --charcoal: #2E3A34;      /* Soft black */
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    /* Shadows */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-pop: 0 15px 35px rgba(46, 58, 52, 0.2);
}

/* --- 2. GLOBAL RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
    /* CLEAN BACKGROUND (No texture/cross pattern) */
    background-color: var(--cream);
    color: var(--charcoal);
    font-family: var(--font-body);
    line-height: 1.8;
    font-weight: 300;
    
    /* CRITICAL: Enables absolute positioning for the trees */
    position: relative;
}

a { text-decoration: none; color: inherit; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px; margin: 0 auto; padding: 0 30px;
    position: relative; z-index: 5;
}

/* --- 3. TYPOGRAPHY --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; margin-bottom: 1rem; color: inherit; }
h1 { font-size: 4rem; line-height: 1.1; letter-spacing: -1px; }
h2 { font-size: 3rem; line-height: 1.2; }
h3 { font-size: 1.5rem; letter-spacing: 0.5px; }

/* --- 4. NAVIGATION (Glass) --- */
header {
    background-color: rgba(253, 252, 248, 0.9);
    backdrop-filter: blur(15px);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(141, 123, 104, 0.1);
    transition: all 0.4s ease;
}
header.sticky { box-shadow: 0 4px 30px rgba(0,0,0,0.05); padding: 5px 0; }

.header-content {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 30px; transition: padding 0.4s ease;
}
header.sticky .header-content { padding: 10px 30px; }

.logo-text-placeholder {
    font-family: var(--font-heading); font-weight: 700; color: var(--sage-deep);
    font-size: 1.4rem; border: 2px solid var(--sage-deep); padding: 8px 16px;
    letter-spacing: 3px; text-transform: uppercase; transition: 0.3s;
}
.logo-text-placeholder:hover { background-color: var(--sage-deep); color: var(--white); }

header nav ul { display: flex; gap: 40px; align-items: center; }

/* Navigation Links */
.nav-link {
    font-weight: 600; color: var(--charcoal); font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 1px; position: relative; padding-bottom: 5px;
}
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0;
    background-color: var(--earth-brown); transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Special Dropdown Parents */
.dropdown > .nav-link {
    font-weight: 800; color: var(--sage-deep); font-size: 0.95rem;
}
.dropdown > .nav-link i { color: var(--earth-brown); margin-left: 5px; }

.btn-nav {
    background-color: var(--sage-main); color: var(--white) !important;
    padding: 12px 30px; border-radius: 50px; font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 15px rgba(124, 144, 130, 0.4);
}
.btn-nav:hover {
    background-color: var(--sage-dark); transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 144, 130, 0.5);
}

/* Dropdown Content */
.dropdown { position: relative; }
.dropdown-content {
    display: block; position: absolute; background-color: var(--white);
    min-width: 250px; box-shadow: var(--shadow-soft); top: 150%; left: -20px;
    border-radius: 0 0 10px 10px; padding: 15px 0; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: all 0.3s ease;
    border-top: 3px solid var(--earth-brown);
}
.dropdown:hover .dropdown-content { opacity: 1; visibility: visible; transform: translateY(0); top: 100%; }
.dropdown-content a {
    padding: 14px 25px; display: block; font-size: 0.95rem; color: #555;
    border-left: 4px solid transparent; transition: all 0.2s;
}
.dropdown-content a:hover {
    background-color: var(--beige); color: var(--sage-dark); border-left: 4px solid var(--sage-main);
}
.mobile-menu-icon { display: none; font-size: 1.5rem; color: var(--charcoal); cursor: pointer; }

/* --- 5. HERO SECTION --- */
.hero {
    height: 90vh; min-height: 600px; position: relative; display: flex;
    align-items: center; justify-content: center; text-align: center;
    background-color: var(--charcoal);
    background-image: url('https://www.ruralmutual.com/wp-content/uploads/2019/11/Personal-insurance-resources-.jpg');
    background-size: cover; background-position: center; background-attachment: fixed;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Darker gradient for text pop */
    background: linear-gradient(135deg, rgba(47, 62, 53, 0.85), rgba(124, 144, 130, 0.6));
}
.hero-content { position: relative; z-index: 5; color: var(--white); max-width: 900px; padding: 0 20px; }
.hero h1 { color: var(--white); margin-bottom: 15px; text-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.hero-subtitle {
    font-family: var(--font-heading); font-size: 2.2rem; font-weight: 400; font-style: italic;
    color: var(--gold-mute); margin-bottom: 30px;
}
.hero p { font-size: 1.3rem; margin-bottom: 40px; opacity: 0.95; font-weight: 300; }
.hero-btns { display: flex; justify-content: center; gap: 20px; }

/* Hero Buttons */
.btn-primary {
    background-color: var(--white); color: var(--sage-deep); padding: 18px 40px;
    border-radius: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
    font-size: 0.85rem; transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--gold-mute); color: var(--white); transform: translateY(-4px);
}
.btn-secondary {
    background-color: transparent; border: 1px solid rgba(255,255,255,0.7); color: var(--white);
    padding: 18px 40px; border-radius: 4px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; font-size: 0.85rem;
}
.btn-secondary:hover { background-color: var(--white); color: var(--sage-deep); border-color: var(--white); }

/* --- 6. MISSION SECTION (MAJOR UPDATE: TEXTURE & POP) --- */
.values-section {
    padding: 120px 0;
    background-color: var(--sage-deep);
    background-image: radial-gradient(circle at center, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px; 
    position: relative;
}

.values-section::after {
    content: '\f06c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; top: -50px; right: -50px; font-size: 350px;
    color: var(--white); opacity: 0.05; transform: rotate(-20deg); pointer-events: none;
}

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }

.value-box {
    background-color: var(--cream);
    padding: 50px 35px;
    border-top: 5px solid var(--earth-brown);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.4s ease;
    position: relative; overflow: hidden;
}

.value-box:hover { transform: translateY(-15px); }

.value-box::before {
    content: '\f06c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; bottom: -20px; left: -20px; font-size: 100px;
    color: var(--sage-main); opacity: 0.1; transform: rotate(45deg);
}

.value-box h3 {
    color: var(--sage-deep); font-size: 1.6rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px;
}
.value-box p { color: #555; font-size: 1.05rem; }

/* --- 7. ABOUT SECTION --- */
.about-section {
    padding: 120px 0; 
    color: var(--charcoal); 
    position: relative;
    /* BACKGROUND IMAGE FOR ABOUT SECTION */
    background-image: url('about-bg.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.sub-heading {
    display: block; font-family: var(--font-body); font-size: 0.9rem; text-transform: uppercase;
    letter-spacing: 4px; color: var(--earth-brown); font-weight: 800; margin-bottom: 20px;
}
.about-text h2 { margin-bottom: 30px; font-size: 3.2rem; color: var(--sage-deep); }
.lead-text { font-size: 1.3rem; color: var(--sage-dark); margin-bottom: 25px; font-weight: 400; }
.about-text p { margin-bottom: 40px; color: #666; }

.text-link {
    font-weight: 700; color: var(--sage-deep); border-bottom: 2px solid var(--earth-brown);
    padding-bottom: 5px; font-size: 1rem; transition: all 0.3s;
}
.text-link:hover { color: var(--earth-brown); border-color: var(--sage-deep); }

.about-image-wrapper { position: relative; padding: 20px; }
.about-image-placeholder {
    position: relative; z-index: 2; box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden; background: #ccc; min-height: 500px; border-radius: 4px;
}
.about-photo-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.about-image-wrapper:hover .about-photo-img { transform: scale(1.03); }

.about-image-wrapper::after {
    content: '\f06c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; bottom: -40px; right: -30px; font-size: 150px;
    color: var(--sage-main); opacity: 0.4; z-index: 3; transform: rotate(-15deg);
}

.decorative-box {
    position: absolute; top: 0; left: 0; width: 150px; height: 150px;
    border-top: 6px solid var(--sage-main); border-left: 6px solid var(--sage-main); z-index: 1;
}

/* --- 8. SERVICES SECTION (Standard/Policy Pages) --- */
/* This targets the generic services section on OTHER pages to keep them white/clean */
.services-section {
    padding: 120px 0; 
    position: relative; 
    overflow: hidden;
    background-color: var(--white); /* Keeps other pages white */
}

.section-title { text-align: center; margin-bottom: 70px; max-width: 700px; margin-left: auto; margin-right: auto; }
.title-underline { width: 80px; height: 4px; background-color: var(--earth-brown); margin: 20px auto; }


/* --- 9. HOMEPAGE SPECIFIC: CURATED COVERAGE SECTION --- */
/* Targets ONLY the homepage section with ID="curated-coverage" */

#curated-coverage {
    position: relative;
    overflow: hidden;
    /* We do NOT set the background image directly on the parent here.
       We use the ::before pseudo-element below to handle the flip. */
    background-color: transparent; 
}

/* This creates the flipped background layer behind the content */
#curated-coverage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Use the SAME marble image as the About section */
    background-image: url('about-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* THE FLIP: Rotates the image 180 degrees so the top matches the bottom of the section above */
    transform: rotate(180deg); 
    
    /* Push it behind the text */
    z-index: -1; 
}

/* --- TEXT COLORS --- */
/* Since marble is light, we revert text back to dark colors */

#curated-coverage .section-title h2 {
    color: var(--sage-deep); /* Back to Dark Green */
    text-shadow: none;       /* Remove shadow used for wood */
}

#curated-coverage .section-title p {
    color: #666;             /* Back to Gray */
    font-weight: 300;        /* Back to normal weight */
    text-shadow: none;
}

#curated-coverage .title-underline {
    background-color: var(--earth-brown); /* Back to Brown */
}

/* Optional: Watermark adjustments for marble bg */
#curated-coverage::before {
    /* Ensure the decoration doesn't block the background, keep opacity low */
    opacity: 1; 
}
/* Note: The big leaf watermark is handled by the generic .services-section class. 
   If you need to flip that too, add this: */
#curated-coverage .services-section::before {
   transform: rotate(225deg); /* Flips the decorative leaf if needed */
}
/* --- CARDS (Applies to all, but works on wood too) --- */
.service-card {
    background-color: var(--sage-deep); 
    color: var(--white);
    padding: 50px 30px; text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; 
    transition: all 0.4s ease; cursor: pointer;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    position: relative; overflow: hidden;
}

.service-card::before {
    content: '\f06c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; bottom: -30px; right: -30px; font-size: 120px;
    color: var(--white); opacity: 0.05; transform: rotate(-15deg); transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px);
    background-color: var(--charcoal); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.service-card:hover::before { opacity: 0.1; transform: rotate(0deg) scale(1.1); }

.service-card h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 15px; }
.service-card p { color: #ccc; position: relative; z-index: 2; }
.card-icon {
    font-size: 3rem; color: var(--gold-mute); 
    margin-bottom: 25px; transition: transform 0.4s ease; position: relative; z-index: 2;
}
.service-card:hover .card-icon { transform: scale(1.1) rotate(10deg); color: var(--white); }

.card-link {
    display: inline-block; margin-top: 20px; font-weight: 700;
    color: var(--gold-mute); text-transform: uppercase;
    font-size: 0.8rem; letter-spacing: 1px; position: relative; z-index: 2;
}
.card-link::before {
    content: ''; position: absolute; bottom: -3px; left: 0; width: 0%; height: 1px;
    background-color: var(--gold-mute); transition: width 0.3s;
}
.service-card:hover .card-link::before { width: 100%; background-color: var(--white); }
.service-card:hover .card-link { color: var(--white); }


/* --- 10. FOOTER --- */
footer { background-color: var(--charcoal); color: #bbb; padding: 90px 0 30px; font-size: 0.95rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 50px; }
.footer-col h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 30px; letter-spacing: 1px; }
.role { color: var(--earth-brown); font-weight: 700; margin-bottom: 10px; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.footer-desc { line-height: 1.7; margin-top: 15px; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a { color: #bbb; transition: color 0.3s, padding-left 0.3s; }
.footer-col ul li a:hover { color: var(--gold-mute); padding-left: 8px; }
.footer-col p i { width: 20px; color: var(--earth-brown); margin-right: 10px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
    display: flex; justify-content: center; align-items: center; width: 45px; height: 45px;
    background-color: rgba(255,255,255,0.05); border-radius: 50%; color: var(--white);
    font-size: 1.1rem; transition: all 0.3s; border: 1px solid transparent;
}
.social-links a:hover {
    background-color: var(--earth-brown); transform: translateY(-5px); border-color: var(--earth-brown);
}
.footer-bottom {
    margin-top: 80px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center; font-size: 0.8rem; color: #777;
}

/* --- 11. ANIMATIONS --- */
.scroll-reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); }
.scroll-reveal.active { opacity: 1; transform: translateY(0); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn 1.2s ease forwards; }
.fade-in-up { opacity: 0; animation: fadeInUp 1s ease forwards; }
.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }

/* --- 12. RESPONSIVE --- */
@media (max-width: 992px) {
    h1 { font-size: 3rem; } h2 { font-size: 2.2rem; }
    .grid-2 { grid-template-columns: 1fr; text-align: center; gap: 50px; }
    .about-text { order: 1; } .about-image-wrapper { order: 2; margin-bottom: 20px; }
    .title-underline { margin-left: auto; margin-right: auto; }
}
@media (max-width: 768px) {
    .header-content { padding: 15px 20px; }
    header nav ul { display: none; }
    .mobile-menu-icon { display: block; }
    .hero { height: 75vh; }
    .hero h1 { font-size: 2.2rem; } .hero-subtitle { font-size: 1.4rem; }
    .btn-primary, .btn-secondary { padding: 15px 25px; font-size: 0.75rem; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .container { padding: 0 20px; }
}

/* --- HERO LOGO STYLING --- */
.hero-logo {
    width: 120px; 
    height: auto;
    margin: 0 auto 20px auto; 
    display: block;
    filter: brightness(0) invert(1) drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

/* --- FOOTER LOGO --- */
.footer-logo {
    width: 140px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    filter: brightness(0) invert(1) opacity(0.8);
}

/* --- QUOTE PAGE FORM STYLES --- */
.quote-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border-top: 5px solid var(--sage-main);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--sage-deep);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--sage-main);
    box-shadow: 0 0 0 3px rgba(124, 144, 130, 0.2);
}

@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .quote-container { padding: 30px 20px; }
}

.form-section-title {
    font-family: var(--font-heading);
    color: var(--sage-main);
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

@media (max-width: 600px) {
    .date-grid {
        grid-template-columns: 1fr; 
    }
}

/* =========================================
   PALM TREE BACKGROUND DECOR CSS
   ========================================= */

.background-decor-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; 
    pointer-events: none; 
    overflow: hidden;
    z-index: 1; 
}

.palm-tree {
    position: absolute;
    bottom: -50px; 
    width: 45%; 
    max-width: 600px; 
    background-image: url('palm-tree.png'); 
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: contain;
}

/* --- DEPTH & LAYERING --- */

.tree-fg {
    height: 95vh; 
    opacity: 1;
    z-index: 3;
}

.tree-bg {
     height: 75vh; 
     opacity: 0.3; 
     z-index: 2;
     filter: blur(2px); 
}

/* --- POSITIONING --- */

.left-fg { left: -12%; } 
.left-bg { left: 8%; }   

.right-fg { right: -12%; transform: scaleX(-1); }
.right-bg { right: 8%; transform: scaleX(-1); }

@media (max-width: 1024px) {
    .tree-bg { display: none; } 
    .tree-fg {
        height: 60vh; 
        opacity: 0.5; 
    }
    .left-fg { left: -25%; } 
    .right-fg { right: -25%; }
}

/* =========================================
   NEW: TESTIMONIALS SECTION
   (Matches Mission/Values Style)
   ========================================= */

.testimonials-section {
    padding: 120px 0;
    /* Dark Green Background matching Mission Section */
    background-color: var(--sage-deep);
    /* Subtle Texture */
    background-image: radial-gradient(circle at center, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px; 
    position: relative;
    overflow: hidden;
}

/* Decorative huge quote mark in background */
.testimonials-section::after {
    content: '\f10e'; /* FontAwesome Quote Icon */
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; top: -50px; left: -50px; font-size: 300px;
    color: var(--white); opacity: 0.05; transform: rotate(10deg); pointer-events: none;
}

.review-box {
    /* Cream box popping off the dark background */
    background-color: var(--cream);
    padding: 40px 30px;
    border-top: 5px solid var(--earth-brown);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.4s ease;
    position: relative;
}

.review-box:hover {
    transform: translateY(-10px);
}

.review-stars {
    color: var(--gold-mute);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.review-text {
    font-style: italic;
    color: #555;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.reviewer-name {
    font-weight: 700;
    color: var(--sage-deep);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}


/* =========================================
   RESET: CURATED COVERAGE SECTION
   (Reverting wood/flip logic to Clean White)
   ========================================= */


}

/* Remove the flip element */
#curated-coverage::before {
    display: none;
}

/* Reset Text Colors to Dark */
#curated-coverage .section-title h2 {
    color: var(--charcoal);
    text-shadow: none;
}
#curated-coverage .section-title p {
    color: #666;
    text-shadow: none;
}
#curated-coverage .title-underline {
    background-color: var(--earth-brown);
}