/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Primary */
    --primary: #546351;
    --primary-dim: #485746;
    --primary-container: #d7e7d1;
    --on-primary: #edfee7;
    --on-primary-container: #475645;

    /* Secondary */
    --secondary: #635f52;
    --secondary-container: #e8e2d1;
    --on-secondary-container: #555245;

    /* Tertiary */
    --tertiary: #635f53;
    --tertiary-container: #fdf6e7;

    /* Error */
    --error: #a73b21;
    --error-container: #fd795a;

    /* Surfaces */
    --surface: #fbf9f5;
    --surface-dim: #dadad4;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f5f4ee;
    --surface-container: #efeee8;
    --surface-container-high: #e9e8e2;
    --surface-container-highest: #e3e3dc;
    --surface-variant: #e3e3dc;
    --inverse-surface: #0e0e0c;

    /* Text */
    --on-surface: #31332f;
    --on-surface-variant: #5e605a;
    --on-background: #31332f;
    --outline: #7a7b76;
    --outline-variant: #b2b2ac;
}

body {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--on-surface);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--on-surface);
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--primary-container); }

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: var(--surface);
    transition: box-shadow 0.3s;
}

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

.header-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--on-surface);
    letter-spacing: -0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-family: 'Manrope', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--on-surface);
    letter-spacing: -0.5px;
    margin-left: 0.6rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav a {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--on-surface-variant);
    transition: color 0.2s;
    letter-spacing: -0.2px;
}

.nav a:hover { color: var(--on-surface); }
.nav a.nav-active { color: var(--primary); font-weight: 700; }
.nav a.nav-cta.nav-active { color: #fff !important; }

.nav-cta {
    background: linear-gradient(to bottom, var(--primary), var(--primary-dim));
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600 !important;
    box-shadow: inset 0 -2px 0 rgba(49,51,47,0.1);
    transition: all 0.2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(84, 99, 81, 0.25), inset 0 -2px 0 rgba(49,51,47,0.1);
    color: #fff !important;
}

.header-phone {
    font-size: 0.85rem;
    color: var(--on-surface-variant);
}

.header-phone a {
    color: var(--primary);
    font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Manrope', sans-serif;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(to bottom, var(--primary), var(--primary-dim));
    color: var(--on-primary);
    box-shadow: inset 0 -2px 0 rgba(49,51,47,0.1);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(84, 99, 81, 0.25), inset 0 -2px 0 rgba(49,51,47,0.1);
}

.btn-secondary {
    background: var(--secondary-container);
    color: var(--on-secondary-container);
}

.btn-secondary:hover {
    background: var(--surface-container-highest);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.3);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* ===== SECTIONS ===== */
.section {
    padding: 6rem 3rem;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    flex: 1;
}

.section-label {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--on-surface);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--on-surface-variant);
    font-weight: 400;
    margin-bottom: 3rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--surface-container);
    padding: 5rem 3rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 1.25rem;
}

.footer p, .footer li {
    color: var(--on-surface-variant);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.6rem; }

.footer a {
    color: var(--on-surface-variant);
    transition: color 0.2s;
    text-decoration: none;
}

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

.footer-bottom {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    text-align: center;
    color: var(--on-surface-variant);
    font-size: 0.8rem;
}

.memberships {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.membership-badge {
    background: var(--surface-container-high);
    padding: 0.4rem 0.8rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    color: var(--on-surface-variant);
}

.credential-logos {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.credential-logos-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.credential-logos img {
    height: 22px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.credential-logos a:hover img { opacity: 1; }

/* Portal badges */
.portal-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.portal-badges span {
    font-size: 0.85rem;
    color: var(--on-surface-variant);
}

.portal-badge {
    text-decoration: none;
    transition: opacity 0.2s;
}

.portal-badge:hover { opacity: 0.7; }

.portal-badge img {
    height: 40px;
    width: auto;
    display: block;
}

/* Social icons */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--primary);
    font-size: 1.25rem;
    transition: opacity 0.2s;
}

.social-links a:hover { opacity: 0.7; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-container-lowest);
    padding: 1.5rem 3rem;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
    z-index: 1000;
}

.cookie-content {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p { margin: 0; flex: 1; font-size: 0.9rem; color: var(--on-surface-variant); }

/* ===== GLASS EFFECT ===== */
.glass-effect {
    background: rgba(245, 244, 238, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .header-content { padding: 1rem 1.5rem; }
    .section { padding: 4rem 1.5rem; }
    .footer { padding: 3rem 1.5rem 0; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header { position: relative; }
    .header-content { flex-direction: column; gap: 0.75rem; }
    .nav { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .footer-content > div:first-child { grid-column: 1 / -1; }
    .footer-content > div:last-child { grid-column: 1 / -1; }
    .portal-badges { flex-direction: column; gap: 1rem; }
    .cookie-content { flex-direction: column; text-align: center; }
}
