/*
Theme Name: Cabinet Dentaire Schmitt
Theme URI:
Author: pacschmitt
Author URI:
Description: Thème sur mesure pour le Cabinet Dentaire Schmitt (Nyon & Bassins).
Version: 1.0.0
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 8.3
Text Domain: dentiste-schmitt
Domain Path: /languages
Tags: health, medical, two-columns, right-sidebar, custom-colors, translation-ready

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    /* New Palette - Premium Terracotta Identity */
    --color-bg-primary: #F7F1EB;   /* Warm Luminous Ivory */
    --color-bg-secondary: #EDE1D6; /* Soft Beige - Sections */
    --color-bg-surface: #FFF9F4;   /* Light Cards */

    --color-primary: #7C402B;      /* Terracotta - Dominant Identity */
    --color-primary-dark: #6B3524; /* Intense Terracotta - Hover */
    --color-primary-rgb: 124, 64, 43; /* For rgba usage */

    --color-accent: #5A2B1E;       /* Deep Rust - Details */
    --color-border: #D6C4B7;       /* Soft Beige Line */

    --color-text: #2B2522;         /* Deep Warm Black */
    --color-text-light: #6A605A;   /* Warm Grey */

    --color-white: #FFF9F4;        /* Warm Ivory (replaces pure white) */
    --color-white-pure: #FFFFFF;   /* Keep for specific text/icons if needed */

    /* Mappings & Config */
    --color-bg: var(--color-bg-primary);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --container-width: 1200px;
    --header-height: 90px;
    --spacing-unit: 1rem;
    --border-radius: 8px; /* Slightly more squared for premium feel */
    --shadow-sm: 0 1px 3px rgba(var(--color-primary-rgb), 0.15);
    --shadow-md: 0 4px 12px -2px rgba(var(--color-primary-rgb), 0.2);
    --shadow-lg: 0 20px 30px -5px rgba(var(--color-primary-rgb), 0.2);
        --header-height: 72px;
    }
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6; /* Improved readability */
    font-size: 16px; /* Slightly larger */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: left;
}

/* Mobile-friendly defaults */
html {
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .section-padding {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }

    .lead {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    /* Buttons: keep tappable but not oversized */
    .btn {
        padding: 14px 20px;
        border-radius: 16px;
    }
}

h1 {
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
}

h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
}

/* Safety net: ensure titles stay centered even inside left-aligned sections */
main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
    text-align: center;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

p {
    margin-bottom: 1.5rem;
}

p:last-child {
    margin-bottom: 0;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.entry-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Header logo */
.site-branding {
    display: flex;
    align-items: center;
    min-width: 0;
}

.site-branding .custom-logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 350px; /* Increased width */
    overflow: hidden;
}

.site-branding img.custom-logo {
    display: block;
    max-height: 80px !important; /* Increased size */
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0;
}

/* Extra safety: prevent the logo container from overflowing the header */
.site-header .site-branding,
.site-header .site-branding .custom-logo-link {
    max-height: calc(var(--header-height) - 10px);
    overflow: hidden;
}

@media (max-width: 768px) {
    .site-branding img.custom-logo {
        max-height: 55px !important; /* Larger on mobile */
    }

    .site-branding .custom-logo-link {
        max-width: 250px;
    }
}

.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

/* Responsive map embeds */
.map-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 360px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #eee;
}

.map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Empty responsive separator */
.separator {
    height: 48px;
}

@media (max-width: 768px) {
    .separator {
        height: 28px;
    }
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    overflow-x: clip;
    background: #FAF8F5;
}

.carousel-track {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 100% !important;
    width: 100%;
    height: 100%;
    transition: transform 300ms ease;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.carousel-slide {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
    position: relative;
}

.carousel-slide img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 0;
}

.carousel-slide {
    display: block;
}

@media (max-width: 768px) {
    .carousel-slide img {
        height: 240px;
    }
}

.carousel-nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 12px;
}

.carousel-btn {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 249, 244, 0.7);
    background: rgba(var(--color-primary-rgb), 0.9);
    color: var(--color-white-pure);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.carousel-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 12px 0 0;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    padding: 0 !important;
    min-width: 0 !important;
    border-radius: 999px;
    border: 0;
    background: rgba(var(--color-primary-rgb), 0.3) !important;
    cursor: pointer;
    box-shadow: none !important;
}

.carousel-dot.is-active,
.carousel-dot[aria-current="true"] {
    background: var(--color-primary) !important;
}

@media (max-width: 768px) {
    .map-embed {
        min-height: 280px;
    }
}

/* Generalized Button Styles to catch all buttons */
button:not(.carousel-btn):not(.menu-toggle):not(.carousel-dot),
input[type="button"],
input[type="reset"],
input[type="submit"],
.wp-block-button__link,
.btn {
    display: inline-block;
    padding: 16px 32px;
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    border-radius: 20px;
    font-weight: 600;
    text-align: center;
    border: 2px solid var(--color-primary) !important;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.5px;
    line-height: normal;
    text-decoration: none !important;
}

button:not(.carousel-btn):not(.menu-toggle):not(.carousel-dot):hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.btn:hover {
    background-color: var(--color-primary-dark) !important;
    border-color: var(--color-primary-dark) !important;
    color: var(--color-white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent !important;
    color: var(--color-primary) !important;
    border: 2px solid var(--color-primary) !important;
}

.btn-outline:hover {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 249, 244, 0.95); /* Ivory surface */
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.site-header .header-inner {
    min-height: var(--header-height);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.site-branding {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.site-branding a {
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    line-height: 1;
    padding: 0;
}

/* Prevent WordPress custom-logo-link default spacing from enlarging the hit area */
.site-branding .custom-logo-link {
    line-height: 1;
}

.main-navigation {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
}

/* Fix if WordPress adds a container div */
.main-navigation > div {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: auto !important;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 1.1rem; /* Increased font size */
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.main-navigation .current-menu-item > a {
    color: var(--color-primary);
}

.main-navigation .current-menu-item > a::after {
    width: 100%;
}

.lang-switcher {
    margin-left: 0;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-switcher a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.lang-switcher a:hover,
.lang-switcher a.current-lang {
    color: var(--color-primary);
}

.lang-switcher .sep {
    color: var(--color-border);
    font-weight: normal;
}

/* Floating CTA Button */
.floating-cta {
    display: inline-block !important;
    position: fixed !important;
    bottom: 30px;
    right: 30px;
    z-index: 2147483647; /* Max z-index */
    background-color: var(--color-primary); /* Terracotta */
    color: var(--color-white) !important;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
    border: 2px solid var(--color-white);
    text-decoration: none;
    opacity: 1 !important;
    visibility: visible !important;
}

.floating-cta:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.3);
    color: var(--color-white) !important;
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
    padding: 0;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    /* Keep nav visible (for hamburger), only dropdown panel overlays */
    .main-navigation {
        display: flex;
        align-items: center;
        gap: 12px;
        position: static;
    }

    /* Hide dropdown contents by default on mobile */
    .main-navigation .nav-menu,
    .main-navigation > ul,
    .main-navigation .lang-switcher {
        display: none;
    }

    /* JS toggles the class on #site-navigation (nav), not on .site-header */
    .main-navigation.toggled {
        animation: slideDown 0.3s ease-out forwards;
    }

    /* Dropdown panel */
    .main-navigation.toggled .nav-menu,
    .main-navigation.toggled > ul,
    .main-navigation.toggled .lang-switcher {
        display: flex;
    }

    .main-navigation.toggled {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: var(--color-bg-surface);
        box-shadow: 0 4px 6px rgba(var(--color-primary-rgb), 0.1);
        padding: 16px;
        border-top: 1px solid rgba(0,0,0,0.05);
        z-index: 1001;
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .main-navigation a {
        display: block;
        padding: 10px 0;
        font-size: 1.25rem; /* Increased font size for mobile */
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: 20px;
        padding-top: 20px;
        padding-left: 0;
        border-left: none;
        border-top: 2px solid var(--color-border);
        justify-content: center;
        width: 100%;
        font-size: 1.1rem;
    }

    .floating-cta {
        bottom: 20px;
        right: 20px;
        padding: 14px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .floating-cta {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: calc(100% - 32px);
        text-align: center;
        padding: 14px 16px;
        border-radius: 999px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Modal / Popup Styles
   ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
    border-top: 4px solid var(--color-accent);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--color-text-light);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--color-primary);
}

.modal-title {
    color: var(--color-text);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.modal-body {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        width: calc(100% - 32px);
        max-height: calc(100dvh - 32px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-title {
        font-size: 1.4rem;
        margin-bottom: 14px;
    }

    .modal-body {
        font-size: 1rem;
    }
}

/* Make cards clickable */
.soins-grid .card {
    cursor: pointer;
    position: relative;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 112px 0 72px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 104px 0 64px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

.soins-grid .card::after {
    content: '+';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background-color: var(--color-white);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

@media (max-width: 480px) {
    .carousel-nav {
        padding: 0 8px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

.soins-grid .card:hover::after {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ==========================================================================
   Front Page Sections
   ========================================================================== */
/* New Welcome Hero */
.welcome-hero {
    position: relative;
    height: 70vh; /* Slightly reduced height as it's below header */
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end; /* Align content to bottom */
    justify-content: center;
    padding-bottom: 15vh; /* 1/4 (approx) from bottom */
    color: var(--color-white);
    background-color: var(--color-primary); /* fallback */
    width: 100%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(43, 37, 34, 0.3); /* Dark brown overlay for readability */
    z-index: 1;
}

.welcome-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    padding: 0 20px;
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.2;
    margin: 0;

    /* Frame Style for readability */
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--color-white);
    background-color: rgba(43, 37, 34, 0.4); /* Dark warm overlay */
    backdrop-filter: blur(1px);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .welcome-hero {
        height: 50vh;
        min-height: 350px;
        padding-bottom: 20vh; /* Adjust for mobile */
    }

    .welcome-title {
        font-size: 2rem;
        padding: 20px 24px;
        border-width: 2px;
    }
}

/* Old Hero (now Locations) */
.hero-section {
    background-color: var(--color-bg-secondary); /* Soft Beige */
    color: var(--color-text);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Use warm ivory for the gentle glow */
    background: radial-gradient(circle at center, rgba(247, 241, 235, 0.8) 0%, rgba(247, 241, 235, 0) 60%);
    opacity: 0.4;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-content h1 {
    color: var(--color-text);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3.5rem;
    opacity: 1;
    font-weight: 400;
    color: var(--color-text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-start;
}

.hero-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-address {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
    max-width: 250px;
    line-height: 1.4;
}

/* Generic Section */
.section-padding {
    padding-top: 120px;
    padding-bottom: 120px;
}

.bg-light {
    background-color: var(--color-bg-secondary);
}

.lead {
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.8;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

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

.card {
    background: var(--color-bg-surface); /* Light Card Surface */
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.03);
    border-top: 4px solid var(--color-primary); /* Terracotta Identity */
    position: relative;
    top: 0;
    min-width: 0; /* Fix for grid item sizing */
    overflow: hidden; /* Prevent content overflow */
}

@media (max-width: 768px) {
    .card {
        padding: 24px 16px; /* Reduced padding for mobile */
    }
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.card p {
    color: var(--color-text-light);
    font-size: 1.05rem;
}

/* Two Columns Grid */
.two-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 992px) {
    .two-columns-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.two-columns-grid .text-content {
    text-align: left; /* Keep readable text left-aligned */
}

/* Center headings in sections by default if desired, or use utility */
.section-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .two-columns-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center; /* Center on mobile */
    }

    .two-columns-grid .text-content {
        text-align: center;
    }

    .section-padding {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* Footer */
.site-footer {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-light);
    padding: 100px 0 40px;
    font-size: 1rem;
    border-top: 4px solid var(--color-primary); /* Terracotta */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
    text-align: center; /* Center footer items as requested */
}

.footer-column {
    min-width: 0;
}

.footer-column a {
    word-break: break-word; /* Remove overflow-wrap: anywhere to encourage natural flow before breaking */
}

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

.footer-column h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 16px;
}

.footer-column a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.footer-column a:hover {
    color: var(--color-primary);
}

.site-info {
    border-top: 1px solid var(--color-border);
    padding-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--color-text-light);
}

/* ==========================================================================
   WordPress Core
   ========================================================================== */
.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Utilities */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-accent) !important; }
.text-muted { color: var(--color-text-light) !important; }
.font-weight-bold { font-weight: 700; }

/* Polish */
::selection {
    background: var(--color-primary);
    color: var(--color-white);
}

input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   FAQ Section Styles
   ========================================================================== */
.faq-section details {
    background-color: var(--color-bg-secondary, #F9F7F3);
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-section details[open] {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.faq-section summary {
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--color-text);
    list-style: none; /* Hide default arrow in some browsers */
    position: relative;
    padding: 15px 40px 15px 20px;
    transition: background-color 0.2s;
}

.faq-section summary:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Custom arrow for summary */
.faq-section summary::-webkit-details-marker {
    display: none;
}

.faq-section summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.faq-section details[open] summary::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.faq-section details .faq-content {
    animation: fadeInDown 0.3s ease-in-out;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-section details p {
    margin-top: 0;
    margin-bottom: 0;
    color: var(--color-text-light);
    line-height: 1.6;
    border-left: 2px solid var(--color-border, #E2DFD8);
    padding-left: 15px;
}
