/* Soft Modern Aesthetic — rounded corners, pastels, micro-shadows, gentle blur */
/* Glass Overlay Cards — full-bleed image with a translucent panel over it */

:root {
    /* Colors */
    --clr-bg: #FDFBF7; /* warm off-white */
    --clr-surface: #FFFFFF;
    --clr-text-main: #2D332F; /* soft dark green/grey */
    --clr-text-muted: #5C6660;
    
    --clr-accent-primary: #BBD1C5; /* soft sage */
    --clr-accent-primary-hover: #A5C0B2;
    --clr-accent-secondary: #E2BDBE; /* blush pink */
    
    --clr-glass-panel: rgba(253, 251, 247, 0.85);
    --clr-border: rgba(45, 51, 47, 0.1);
    
    /* Spacing (4, 8, 16, 24, 40, 64px) */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 16px;
    --sp-4: 24px;
    --sp-5: 40px;
    --sp-6: 64px;

    /* Typography */
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Borders & Shadows */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-micro: 0 4px 12px rgba(45, 51, 47, 0.04);
    --shadow-soft: 0 8px 24px rgba(45, 51, 47, 0.08);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

body, h1, h2, h3, h4, p, ul, li, figure {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Prevent horizontal scroll on body, but not layout masking on children */
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

img, svg {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Accessibility & Focus */
:focus-visible {
    outline: 2px solid var(--clr-text-main);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--clr-text-main);
    color: var(--clr-bg);
}
.btn-primary:hover {
    background-color: #1a1e1b;
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-text-main);
    border: 1px solid var(--clr-border);
}
.btn-outline:hover {
    background-color: rgba(45, 51, 47, 0.05);
}

.btn-compact {
    padding: var(--sp-2) var(--sp-3);
    font-size: 0.875rem;
    background-color: var(--clr-accent-primary);
    color: var(--clr-text-main);
}
.btn-compact:hover {
    background-color: var(--clr-accent-primary-hover);
}

.btn-block {
    width: 100%;
}

/* Typography Scale */
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: var(--sp-4); overflow-wrap: anywhere; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: var(--sp-3); overflow-wrap: anywhere;}
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--sp-2); }
h4 { font-size: 1rem; font-weight: 600; margin-bottom: var(--sp-2); }
p { margin-bottom: var(--sp-3); }

/* Header */
.site-header {
    min-height: 64px;
    background-color: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-border);
    position: relative;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-weight: 600;
    font-size: 1.125rem;
    z-index: 102;
}
.brand-name {
    overflow-wrap: anywhere;
}

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

.nav-list {
    display: flex;
    gap: var(--sp-4);
    align-items: center;
}

.nav-list a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--clr-text-muted);
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
    color: var(--clr-text-main);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--clr-text-main);
    cursor: pointer;
    padding: var(--sp-2);
    z-index: 102;
}

/* Home Hero */
.hero-section {
    max-width: 1200px;
    margin: var(--sp-6) auto;
    padding: 0 var(--sp-4);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
    align-items: center;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-4);
    max-width: 480px;
}

.hero-image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4/3;
    min-width: 0;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Guides Section */
.guides-section, .supporting-section {
    max-width: 1200px;
    margin: var(--sp-6) auto;
    padding: 0 var(--sp-4);
}

.section-header {
    margin-bottom: var(--sp-5);
    text-align: center;
}
.section-header p {
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp-4);
}

/* Glass Overlay Card */
.glass-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-micro);
    display: flex;
    flex-direction: column;
    aspect-ratio: 3/4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.glass-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.card-overlay {
    margin-top: auto;
    position: relative;
    z-index: 2;
    background: var(--clr-glass-panel);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: var(--sp-4);
    border-top: 1px solid rgba(255,255,255,0.4);
}

.card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-2);
}

.card-overlay h3 {
    margin-bottom: var(--sp-2);
}
.card-overlay p {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    margin: 0;
}

/* Supporting Section */
.supporting-content {
    background-color: var(--clr-surface);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    box-shadow: var(--shadow-micro);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Article Layouts (Sub-pages) */
.article-layout .content-wrapper,
.legal-layout .content-wrapper {
    max-width: 800px;
    margin: var(--sp-6) auto;
    padding: 0 var(--sp-4);
}

.article-header {
    margin-bottom: var(--sp-5);
    text-align: center;
}

.lead {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-5);
}

.article-hero-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    margin-bottom: var(--sp-5);
}

.article-body h2 {
    margin-top: var(--sp-6);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--clr-border);
}
.article-body h3 {
    margin-top: var(--sp-4);
}
.article-body p, .article-body ul {
    font-size: 1.0625rem;
    color: var(--clr-text-muted);
}
.article-body ul {
    margin-bottom: var(--sp-4);
    padding-left: var(--sp-4);
    list-style-type: disc;
}
.article-body li {
    margin-bottom: var(--sp-2);
}
.article-body strong {
    color: var(--clr-text-main);
}

/* Comparison Block */
.comparison-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
    margin: var(--sp-5) 0;
}
.comparison-item {
    background-color: var(--clr-surface);
    padding: var(--sp-4);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-micro);
    min-width: 0;
}
.comparison-item h4 {
    color: var(--clr-text-main);
    margin-bottom: var(--sp-3);
}
.comparison-item ul {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* Legal Pages */
.legal-date {
    color: var(--clr-text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--sp-5);
}
.legal-layout section {
    margin-bottom: var(--sp-5);
}
.legal-layout h2 {
    font-size: 1.5rem;
    margin-bottom: var(--sp-3);
}
.legal-layout p, .legal-layout ul {
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-3);
}
.legal-layout ul {
    padding-left: var(--sp-4);
    list-style-type: disc;
}
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: var(--sp-4);
}
.data-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: var(--clr-surface);
}
.data-table th, .data-table td {
    padding: var(--sp-3);
    text-align: left;
    border-bottom: 1px solid var(--clr-border);
}
.data-table th {
    font-weight: 600;
    color: var(--clr-text-main);
    background: rgba(45, 51, 47, 0.03);
}
.data-table td {
    color: var(--clr-text-muted);
    font-size: 0.9375rem;
}

/* Contact Page */
.contact-container {
    max-width: 1200px;
    margin: var(--sp-6) auto;
    padding: 0 var(--sp-4);
}
.contact-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--sp-6);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
    align-items: start;
}
.info-block {
    background: var(--clr-surface);
    padding: var(--sp-4);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-micro);
    margin-bottom: var(--sp-4);
}
.info-block h3 {
    margin-bottom: var(--sp-2);
}
.info-block p {
    color: var(--clr-text-muted);
    margin: 0;
}
.sub-text {
    font-size: 0.875rem;
    margin-top: var(--sp-2) !important;
}
.map-block {
    padding: 0;
    overflow: hidden;
    height: 200px;
}

/* Forms */
.contact-form-wrapper {
    background: var(--clr-surface);
    padding: var(--sp-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}
.form-group {
    margin-bottom: var(--sp-4);
}
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--sp-2);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--sp-3);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: var(--clr-bg);
    color: var(--clr-text-main);
    transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-accent-primary);
}
.error-msg {
    display: none;
    color: #D9534F;
    font-size: 0.875rem;
    margin-top: var(--sp-1);
}
.is-invalid input:invalid,
.is-invalid select:invalid,
.is-invalid textarea:invalid {
    border-color: #D9534F;
}
.is-invalid input:invalid ~ .error-msg,
.is-invalid select:invalid ~ .error-msg,
.is-invalid textarea:invalid ~ .error-msg {
    display: block;
}

/* Footer */
.site-footer {
    background-color: var(--clr-surface);
    padding: var(--sp-6) var(--sp-4) var(--sp-4);
    border-top: 1px solid var(--clr-border);
    margin-top: var(--sp-6);
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--sp-5);
}
.company-details, .contact-email {
    color: var(--clr-text-muted);
    font-size: 0.875rem;
    margin-top: var(--sp-3);
    margin-bottom: 0;
}
.footer-links h3 {
    font-size: 1rem;
    margin-bottom: var(--sp-3);
}
.footer-links li {
    margin-bottom: var(--sp-2);
}
.footer-links a {
    color: var(--clr-text-muted);
    font-size: 0.875rem;
}
.footer-links a:hover {
    color: var(--clr-text-main);
}
.footer-bottom {
    max-width: 1200px;
    margin: var(--sp-5) auto 0;
    padding-top: var(--sp-4);
    border-top: 1px solid var(--clr-border);
    text-align: center;
    color: var(--clr-text-muted);
    font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: var(--sp-4);
    left: var(--sp-4);
    right: var(--sp-4);
    max-width: 800px;
    margin: 0 auto;
    background: var(--clr-surface);
    padding: var(--sp-4);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
    align-items: center;
    justify-content: space-between;
}
.cookie-banner[hidden] {
    display: none !important;
}
.cookie-content {
    flex: 1 1 300px;
}
.cookie-content h3 {
    font-size: 1rem;
    margin-bottom: var(--sp-1);
}
.cookie-content p {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    margin: 0;
}
.cookie-actions {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
}
.cookie-actions button {
    font-size: 0.875rem;
    padding: var(--sp-2) var(--sp-3);
}

/* Responsive */
@media (max-width: 767px) {
    .header-container {
        height: 52px;
    }
    .menu-toggle {
        display: block;
    }
    .header-cta {
        display: none;
    }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--clr-surface);
        padding: var(--sp-4);
        border-bottom: 1px solid var(--clr-border);
        box-shadow: var(--shadow-soft);
    }
    .site-nav.is-visible {
        display: block;
    }
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-3);
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        gap: var(--sp-4);
        margin: var(--sp-4) auto;
    }
    .hero-content {
        text-align: center;
    }
    .hero-content p {
        margin: 0 auto var(--sp-4);
    }
    
    .comparison-block {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-4);
    }
    
    .cookie-banner {
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
}

@media (max-width: 399px) {
    :root {
        --sp-6: 40px;
        --sp-5: 24px;
    }
    h1 {
        font-size: 2rem;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }
    .cookie-actions button {
        width: 100%;
    }
    .article-layout .content-wrapper,
    .legal-layout .content-wrapper,
    .contact-container {
        padding: 0 var(--sp-3);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* ENDFILE */