/* ============================================
 ST GARD – Expert Bâtiment — Design inspiré de checkmy-house.fr
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #b8962e;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #9a7d22;
}

ul, ol {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    line-height: 1.35;
    color: #1a1a2e;
    font-weight: 400;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }

p { margin-bottom: 16px; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    border: 2px solid transparent;
    gap: 8px;
    font-family: 'Segoe UI', Roboto, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #b8962e;
    color: #fff;
    border-color: #b8962e;
}

.btn-primary:hover {
    background: #9a7d22;
    border-color: #9a7d22;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: #fff;
    color: #1a1a2e;
    border-color: #fff;
}

.btn-dark-outline {
    background: transparent;
    color: #1a1a2e;
    border-color: #1a1a2e;
}

.btn-dark-outline:hover {
    background: #1a1a2e;
    color: #fff;
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* --- Container --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
}

.site-header.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo { max-height: 44px; width: auto; }

.site-logo {
    max-height: 52px;
    width: auto;
    display: block;
}

.site-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
    font-weight: 400;
    color: #1a1a2e;
    letter-spacing: -0.3px;
}

.site-description {
    display: none;
}

/* --- Navigation --- */
.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-navigation ul li a {
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #444;
    border-radius: 0;
    transition: color 0.2s, background 0.2s;
}

.main-navigation ul li a:hover {
    color: #1a1a2e;
    background: rgba(184, 150, 46, 0.06);
}

.main-navigation ul li.current-menu-item > a {
    color: #b8962e;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1a2e;
    border-radius: 0;
    transition: all 0.3s;
}

.header-cta {
    display: none;
}

@media (min-width: 768px) {
    .header-cta {
        display: inline-flex;
        padding: 10px 20px;
        font-size: 0.82rem;
        border-radius: 0;
    }
}

.nav-extra {
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid rgba(255,255,255,0.15);
}

.nav-extra .nav-link-faq {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav-extra .nav-link-faq:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .nav-extra {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: 12px;
    }
}
@media (max-width: 767px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 16px 24px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .main-navigation.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation ul li a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
        border-radius: 0;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    background: #1a1a2e url('/wp-content/themes/rerealty/assets/images/hero-bg.webp') center center / cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.88) 0%, rgba(26,58,92,0.85) 100%);
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    padding: 120px 24px 70px;
}

.hero-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.25;
}

.hero-title strong {
    color: #b8962e;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
    border-radius: 0;
}

.hero-actions .btn-outline:hover {
    background: #fff;
    color: #1a1a2e;
    border-color: #fff;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero { min-height: 70vh; }
    .hero-content { padding-top: 100px; }
}

/* --- Gold Border Accent --- */
.gold-border {
    border-top: 3px solid #b8962e;
}

.gold-border-bottom {
    border-bottom: 3px solid #b8962e;
}

/* --- Sections --- */
.section {
    padding: 70px 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}

.section-header h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    margin-bottom: 16px;
}

.section-header p {
    color: #666;
    font-size: 1.08rem;
    line-height: 1.7;
}

/* --- Stats Section --- */
.section-stats {
    background: #1a1a2e;
    padding: 50px 0;
    border-top: 3px solid #b8962e;
    border-bottom: 3px solid #b8962e;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    padding: 16px;
}

.stat-number {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.6rem;
    font-weight: 400;
    color: #b8962e;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-number { font-size: 2rem; }
}

/* --- Value Proposition Section (inspired by checkmy-house) --- */
.section-values {
    background: #f9f7f3;
    border-top: 1px solid #e8e2d4;
    border-bottom: 1px solid #e8e2d4;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.value-item {
    padding: 24px 16px;
}

.value-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 20px;
    color: #b8962e;
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-item h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.value-item p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* --- Services Grid --- */
.section-services {
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: #fff;
    padding: 32px 24px;
    border-radius: 0;
    border: 1px solid #e8e2d4;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-color: #b8962e;
}

.service-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    color: #b8962e;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.service-card p {
    color: #555;
    font-size: 0.93rem;
    margin-bottom: 16px;
    line-height: 1.7;
}

.service-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: #b8962e;
}

.service-link:hover {
    color: #9a7d22;
}

/* --- About Section --- */
.section-about {
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    border-radius: 0;
    border-left: 4px solid #b8962e;
}

.about-content h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    margin-bottom: 20px;
    border-bottom: 2px solid #b8962e;
    padding-bottom: 16px;
    display: inline-block;
}

.about-content p {
    color: #444;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-signature {
    margin-bottom: 24px;
}

.signature-name {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: #1a1a2e;
}

.signature-title {
    font-size: 0.88rem;
    color: #888;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* --- CTA Card (estimation) --- */
.section-cta {
    background: #f9f7f3;
    border-top: 1px solid #e8e2d4;
    border-bottom: 1px solid #e8e2d4;
}

.cta-card {
    text-align: center;
    padding: 50px 24px;
    border: 1px solid #e8e2d4;
    border-left: 4px solid #b8962e;
    border-radius: 0;
    background: #fff;
}

.cta-card h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 1.9rem;
    margin-bottom: 12px;
}

.cta-card p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 28px;
}

/* --- Testimonials --- */
.section-testimonials {
    background: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    padding: 28px 24px;
    background: #f9f7f3;
    border-radius: 0;
    border: 1px solid #e8e2d4;
    border-left: 3px solid #b8962e;
}

.testimonial-stars {
    color: #b8962e;
    font-size: 1rem;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.testimonial-text {
    color: #444;
    font-style: italic;
    font-size: 0.93rem;
    margin-bottom: 18px;
    line-height: 1.7;
}

.author-name {
    display: block;
    font-weight: 600;
    font-size: 0.93rem;
    color: #1a1a2e;
}

.author-location {
    font-size: 0.85rem;
    color: #888;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Final CTA --- */
.section-cta-final {
    background: #1a1a2e;
    text-align: center;
    border-top: 3px solid #b8962e;
}

.cta-final-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 24px;
}

.cta-final-content h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    color: #fff;
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-final-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-final-content .btn-primary {
    background: #b8962e;
    border-color: #b8962e;
}

.cta-final-content .btn-primary:hover {
    background: #9a7d22;
    border-color: #9a7d22;
}

/* --- Page Hero --- */
.page-hero {
    padding: 110px 0 50px;
    background: #f9f7f3;
    text-align: center;
    border-bottom: 2px solid #e8e2d4;
}

.page-hero-sm {
    padding: 90px 0 36px;
}

.page-hero-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.2rem;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 12px;
}

.page-hero-subtitle {
    font-size: 1.05rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-hero-title { font-size: 1.8rem; }
}

/* --- About Page --- */
.about-hero {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 0 40px;
}

.about-page-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 32px;
}

.about-page-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: #1a1a2e;
    margin-bottom: 24px;
}

.about-page-text {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
}

/* --- Services Page Grid --- */
.services-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.service-detailed-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 32px 28px;
    border-radius: 0;
    border: 1px solid #e8e2d4;
    border-left: 3px solid #b8962e;
}

.service-detailed-card h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 1.25rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e2d4;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.service-list li {
    padding: 8px 0;
    color: #555;
    font-size: 0.93rem;
    border-bottom: 1px solid #f0f0f0;
}

.service-list li::before {
    content: "\2713\00a0";
    color: #b8962e;
    font-weight: 700;
}

/* Spacer to push pricing to bottom */
.service-detailed-card > .service-list + .service-pricing {
    margin-top: auto;
}

/* Pricing section */
.service-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 20px;
    border-top: 1px solid #e8e2d4;
}

.service-price {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #b8962e;
    margin-bottom: 4px;
}

.service-price-note {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 16px;
}

.service-pricing .btn-block {
    width: 100%;
}

/* --- Valuation Page --- */
.valuation-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.valuation-info h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    margin-bottom: 16px;
}

.valuation-info p {
    color: #555;
}

.valuation-benefits {
    margin-top: 32px;
}

.valuation-benefit {
    margin-bottom: 24px;
}

.valuation-benefit strong {
    display: block;
    font-size: 1.05rem;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.valuation-benefit p {
    font-size: 0.93rem;
    color: #666;
    margin-bottom: 0;
}

.valuation-form-wrap {
    background: #f9f7f3;
    padding: 32px;
    border-radius: 0;
    border: 1px solid #e8e2d4;
    border-left: 4px solid #b8962e;
}

.valuation-form h3 {
    margin-bottom: 24px;
    font-size: 1.25rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
}

@media (max-width: 768px) {
    .valuation-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* --- Forms --- */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #b8962e;
    box-shadow: 0 0 0 3px rgba(184, 150, 46, 0.12);
}

.form-response {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 0;
    display: none;
}

.form-response.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-response.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* --- FAQ Section --- */
.section-faq {
    background: #f9f7f3;
    border-top: 1px solid #e8e2d4;
}

.section-faq h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    margin-bottom: 12px;
    border: 1px solid #e8e2d4;
    border-left: 3px solid #b8962e;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #1a1a2e;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(184, 150, 46, 0.04);
}

.faq-answer {
    display: none;
    padding: 0 24px 20px;
    color: #555;
    font-size: 0.93rem;
    line-height: 1.7;
}

.faq-answer p {
    margin-bottom: 12px;
}

.faq-answer strong {
    color: #1a1a2e;
}

/* --- Listes alimentées par les Articles étiquetés (FAQ, Pathologies) --- */
/*
 * Les questions et les fiches viennent d'une boucle de requête WordPress
 * (bloc Requête), qui enveloppe chaque élément dans
 * <ul class="wp-block-post-template"> et <li>. display: contents retire ces
 * deux conteneurs de la mise en page : les fiches redeviennent les enfants
 * directs des grilles du thème, exactement comme lorsqu'elles étaient écrites
 * dans la page. Sans ça, la grille des pathologies n'aurait qu'un seul enfant
 * et les 4 fiches s'empileraient en une colonne.
 */
.faq-grid .wp-block-query,
.pathologies-grid .wp-block-query,
.faq-grid .wp-block-post-template,
.pathologies-grid .wp-block-post-template,
.faq-grid .wp-block-post-template > li,
.pathologies-grid .wp-block-post-template > li {
    display: contents;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* --- FAQ Toggle --- */
/*
 * Le texte des réponses vient du bloc « Contenu de l'article », qui ajoute une
 * div .entry-content autour de chaque réponse. Les styles de .entry-content
 * (interligne 1.8, couleur #444, paragraphes espacés de 20px) écrasaient ceux
 * des réponses ; on les rétablit ici. Sélecteur plus précis que .entry-content,
 * donc indépendant de l'ordre des règles dans le fichier.
 */
.faq-answer .wp-block-post-content {
    color: #555;
    line-height: 1.7;
}

.faq-answer .wp-block-post-content p {
    margin-bottom: 12px;
}
.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    color: #b8962e;
    user-select: none;
    min-width: 28px;
}

.faq-plus,
.faq-minus {
    display: none;
}

.faq-question:not(.active) .faq-plus {
    display: block;
}

.faq-question.active .faq-minus {
    display: block;
}

@media (max-width: 768px) {
    .faq-question {
        font-size: 0.95rem;
        padding: 16px 20px;
    }
}

/* --- Contact Page --- */
/*
 * La grille s'appuie sur la classe `contact-layout` du bloc Groupe qui
 * enveloppe les coordonnées et le formulaire. Comme cette classe a déjà
 * disparu une fois du contenu de la page lors d'un import (voir functions.php),
 * on la double ici par une reconnaissance de structure : tout groupe dont
 * l'enfant direct est .contact-info est la grille Contact. Filet de sécurité
 * indépendant du contenu stocké.
 */
.contact-layout,
.wp-block-group:has(> .contact-info) {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-detail,
.contact-hours,
.contact-cta {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8e2d4;
}

.contact-detail h3,
.contact-hours h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    margin-bottom: 12px;
}

.contact-detail p,
.contact-hours p {
    color: #555;
    margin-bottom: 4px;
}

.contact-hours p:last-child {
    margin-bottom: 0;
}

.contact-cta p {
    color: #555;
    margin-bottom: 0;
}

.contact-form-wrap {
    background: #f9f7f3;
    padding: 32px;
    border-radius: 0;
    border: 1px solid #e8e2d4;
    border-left: 4px solid #b8962e;
}

@media (max-width: 768px) {
    .contact-layout,
    .wp-block-group:has(> .contact-info) {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* --- Archive / Posts Grid --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.post-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #e8e2d4;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.post-thumbnail img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.post-card-content {
    padding: 24px;
}

.post-categories {
    margin-bottom: 8px;
}

.post-categories a {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #b8962e;
}

.post-card-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.post-card-title a {
    color: #1a1a2e;
}

.post-card-title a:hover {
    color: #b8962e;
}

.post-meta {
    font-size: 0.83rem;
    color: #888;
    margin-bottom: 12px;
}

.post-excerpt {
    color: #666;
    font-size: 0.93rem;
    margin-bottom: 16px;
}

/* --- Single Post --- */
.single-article .single-thumbnail {
    margin-bottom: 32px;
    border-radius: 0;
    overflow: hidden;
}

.single-article .single-thumbnail img {
    width: 100%;
}

.entry-content {
    line-height: 1.8;
    color: #444;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2,
.entry-content h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    margin-top: 32px;
}

/* --- Footer --- */
.site-footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.75);
    border-top: 3px solid #b8962e;
}

.footer-main {
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-heading {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    color: #b8962e;
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-menu li a {
    display: block;
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-menu li a:hover {
    color: #b8962e;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.65);
}

.footer-contact-item a:hover {
    color: #b8962e;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Recommendation Banner (checkmy-house style) --- */
.recommend-banner {
    text-align: center;
    padding: 28px 24px;
    background: #f9f7f3;
    border: 1px solid #e8e2d4;
    border-left: 4px solid #b8962e;
}

.recommend-banner p {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.15rem;
    color: #1a1a2e;
    margin-bottom: 0;
}

.recommend-banner strong {
    color: #b8962e;
}

/* --- Legal / Assurances Section --- */
.section-legal {
    background: #fff;
}

.legal-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
}

.legal-parties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.legal-party-card {
    background: #f9f7f3;
    padding: 28px 24px;
    border: 1px solid #e8e2d4;
    border-top: 3px solid #b8962e;
}

.legal-party-card h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 1.15rem;
    margin-bottom: 16px;
    color: #1a1a2e;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e2d4;
    text-align: center;
}

.legal-insurance-item {
    margin-bottom: 16px;
}

.legal-insurance-item strong {
    display: block;
    color: #b8962e;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.legal-insurance-item p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0;
    line-height: 1.6;
}

.legal-article-box {
    max-width: 800px;
    margin: 0 auto 40px;
    background: #1a1a2e;
    color: #fff;
    padding: 32px;
    border-left: 4px solid #b8962e;
}

.legal-article-box h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    color: #b8962e;
    font-size: 1.15rem;
    margin-bottom: 16px;
    text-align: center;
}

.legal-article-box p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-article-box blockquote {
    font-style: italic;
    border-left: 2px solid #b8962e;
    padding-left: 20px;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.7);
}

.legal-article-box blockquote cite {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #b8962e;
    font-style: normal;
}

.legal-prevention-box {
    max-width: 800px;
    margin: 0 auto;
    background: #fffbeb;
    border: 1px solid #e8e2d4;
    padding: 32px;
    border-left: 4px solid #b8962e;
}

.legal-prevention-box h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    color: #1a1a2e;
    font-size: 1.15rem;
    margin-bottom: 16px;
    text-align: center;
}

.legal-prevention-box p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .legal-parties-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Pathologies Section --- */
.section-pathologies {
    background: #f9f7f3;
}

.pathologies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.pathology-card {
    background: #fff;
    padding: 28px;
    border: 1px solid #e8e2d4;
    border-top: 3px solid #b8962e;
}

.pathology-card h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 1.15rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e2d4;
    color: #1a1a2e;
}

.pathology-section {
    margin-bottom: 16px;
}

.pathology-section h4 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: #b8962e;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pathology-section p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .pathologies-grid {
        grid-template-columns: 1fr;
    }
}

/* --- RGA Focus Section --- */
.section-rga-focus {
    background: #1a1a2e;
    color: #fff;
}

.rga-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.rga-content h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    color: #b8962e;
    font-size: 2rem;
    margin-bottom: 24px;
}

.rga-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.rga-content .btn-primary {
    background: #b8962e;
    border-color: #b8962e;
}

/* --- Preparation Section --- */
.section-prep {
    background: #fff;
    border-top: 1px solid #e8e2d4;
}

.prep-list {
    max-width: 600px;
    margin: 0 auto;
}

.prep-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #e8e2d4;
}

.prep-item:last-child {
    border-bottom: none;
}

.prep-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8962e;
    font-size: 1.3rem;
}

.prep-text h4 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 1rem;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.prep-text p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

/* --- Commitments Section --- */
.section-commitments {
    background: #f9f7f3;
    border-top: 1px solid #e8e2d4;
}

.commitments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.commitment-item {
    text-align: center;
    padding: 24px 20px;
}

.commitment-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: #b8962e;
}

.commitment-item h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 1rem;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.commitment-item p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .commitments-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* --- Welcome Pitch Section --- */
.section-welcome {
    background: #fff;
    border-bottom: 1px solid #e8e2d4;
}

.welcome-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.welcome-content h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 1.75rem;
    color: #1a1a2e;
    margin-bottom: 24px;
}

.welcome-content p {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.welcome-image-wrap {
    width: 100%;
    border-radius: 0;
    border-left: 4px solid #b8962e;
}

.welcome-image {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* --- Who Is Section --- */
.section-who-is {
    background: #f9f7f3;
}

.who-is-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.who-is-image {
    width: 100%;
    border-radius: 0;
    border-left: 4px solid #b8962e;
}

.who-is-content h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 1.6rem;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.who-is-content p {
    color: #444;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .who-is-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* --- Zone Section --- */
.section-zone {
    background: #fff;
}

.zone-content {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.zone-content h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 1.6rem;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.zone-content p {
    color: #444;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .section-who-is h2,
    .section-zone h2 {
        font-size: 1.3rem;
    }
}
