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

:root {
    --bg-canvas: #f7f1e8;
    --bg-muted: #efe5d8;
    --surface-1: #fffaf3;
    --surface-2: #f6ede1;
    --surface-3: #e9ddd0;
    --text-1: #2f241d;
    --text-2: #5f5246;
    --text-3: #7b6c5f;
    --accent-primary: #ba633a;
    --accent-primary-hover: #9e4f2a;
    --accent-secondary: #2f6d65;
    --accent-secondary-soft: #dcebe8;
    --border-soft: #dbcab7;
    --border-strong: #ccb49d;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 1.75rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --shadow-soft: 0 6px 18px rgba(82, 55, 36, 0.06);
    --shadow-mid: 0 12px 26px rgba(82, 55, 36, 0.1);
    --font-body: "Avenir Next", "Nunito Sans", "Trebuchet MS", sans-serif;
    --font-heading: "Avenir Next", "Nunito Sans", "Trebuchet MS", sans-serif;
}

body {
    font-family: var(--font-body);
    background: radial-gradient(circle at 10% 12%, rgba(186, 99, 58, 0.07), transparent 40%), linear-gradient(160deg, var(--bg-canvas) 0%, #f4ecdf 52%, #f8f3eb 100%);
    color: var(--text-1);
    min-height: 100vh;
    line-height: 1.6;
}

body.home {
    overflow: hidden;
}

a {
    color: inherit;
}

.container {
    width: min(1160px, 92vw);
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-8) 0 var(--space-10);
    opacity: 0;
    animation: fade-in 0.7s ease-out 0.15s forwards;
}

body:not(.home) .container {
    min-height: auto;
    justify-content: flex-start;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-6);
    margin-bottom: var(--space-10);
    padding: 0.68rem 0.95rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: rgba(255, 250, 243, 0.9);
    box-shadow: var(--shadow-soft);
}

.logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.logo img {
    display: block;
    width: clamp(56px, 8vw, 74px);
    height: auto;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
}

nav a {
    text-decoration: none;
    color: var(--text-2);
    font-weight: 600;
    font-size: 0.96rem;
    padding: 0.45rem 0.62rem;
    border-radius: var(--radius-sm);
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

nav a:hover,
nav a:focus-visible {
    color: var(--accent-secondary);
    background: rgba(47, 109, 101, 0.09);
}

.reassurance-strip {
    margin: -0.25rem 0 var(--space-8);
    padding: 0.6rem 0.8rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    background: rgba(255, 250, 243, 0.72);
}

.reassurance-strip ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.reassurance-strip li {
    color: var(--text-2);
    font-size: 0.9rem;
    line-height: 1.45;
    padding: 0.22rem 0.5rem;
    border-radius: var(--radius-pill);
    background: rgba(47, 109, 101, 0.08);
}

.reassurance-strip strong {
    color: var(--accent-secondary);
}

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5.2vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: var(--space-5);
    color: var(--text-1);
    letter-spacing: -0.01em;
    font-weight: 800;
}

h1 span {
    color: var(--accent-primary);
}

.subtitle {
    font-size: clamp(1.06rem, 2vw, 1.32rem);
    color: var(--text-2);
    max-width: 64ch;
    margin-bottom: var(--space-8);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn {
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 0.78rem 1.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 8px 16px rgba(186, 99, 58, 0.2);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--accent-primary-hover);
    border-color: var(--accent-primary-hover);
    box-shadow: 0 10px 20px rgba(158, 79, 42, 0.24);
}

.btn-secondary {
    background: rgba(47, 109, 101, 0.06);
    color: var(--accent-secondary);
    border-color: rgba(47, 109, 101, 0.45);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(47, 109, 101, 0.14);
    border-color: rgba(47, 109, 101, 0.64);
}

:focus-visible {
    outline: 3px solid rgba(47, 109, 101, 0.35);
    outline-offset: 2px;
}

.floating-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.22;
    animation: drift 15s ease-in-out infinite;
}

.shape-1 {
    width: 240px;
    height: 240px;
    top: -56px;
    right: 7%;
    background: radial-gradient(circle at 32% 32%, rgba(186, 99, 58, 0.34), rgba(186, 99, 58, 0));
}

.shape-2 {
    width: 180px;
    height: 180px;
    bottom: 8%;
    left: 4%;
    background: radial-gradient(circle at 46% 42%, rgba(47, 109, 101, 0.3), rgba(47, 109, 101, 0));
    animation-duration: 18s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 42%;
    left: 52%;
    background: radial-gradient(circle at 30% 30%, rgba(150, 112, 82, 0.22), rgba(150, 112, 82, 0));
    animation-duration: 20s;
}

footer {
    margin-top: var(--space-12);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-soft);
    color: var(--text-3);
    font-size: 0.92rem;
    text-align: center;
}

.footer-links {
    margin-top: 0.55rem;
}

.footer-links a {
    color: var(--text-2);
    margin: 0 0.45rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

.loading-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(145deg, #f2e5d6, #f9f4ed);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.7s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    position: relative;
    width: 116px;
    height: 116px;
}

.loader svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(47, 109, 101, 0.25));
}

.circle-1 {
    animation: spin 2s linear infinite;
    transform-origin: 50% 50%;
}

.circle-2 {
    animation: spin-reverse 2.8s linear infinite;
    transform-origin: 50% 50%;
}

.circle-3 {
    animation: pulse 1.6s ease-in-out infinite;
}

.loading-text {
    position: absolute;
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--accent-secondary);
    letter-spacing: 0.2em;
}

.loading-text span {
    animation: blink 1.4s infinite;
}

.loading-text span:nth-child(2) {
    animation-delay: 0.18s;
}

.loading-text span:nth-child(3) {
    animation-delay: 0.36s;
}

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    background: rgba(255, 247, 237, 0.95);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-mid);
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    padding: 1rem 1.1rem;
}

.cookie-banner-content p {
    margin: 0;
    color: var(--text-2);
    font-size: 0.92rem;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-btn {
    min-width: 118px;
    padding: 0.62rem 0.92rem;
    font-size: 0.86rem;
}

.cookie-customization {
    border-top: 1px solid var(--border-soft);
    padding: 0.95rem 1.1rem 1.1rem;
}

.cookie-customization h3 {
    margin-bottom: 0.55rem;
    color: var(--accent-secondary);
    font-size: 1rem;
}

.cookie-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.46rem 0;
    color: var(--text-2);
    font-size: 0.92rem;
}

.cookie-option input {
    accent-color: var(--accent-secondary);
}

.cookie-option.disabled {
    opacity: 0.76;
}

.cookie-save {
    margin-top: 0.7rem;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes drift {
    0%,
    100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(18px, -12px);
    }
    50% {
        transform: translate(-10px, -20px);
    }
    75% {
        transform: translate(14px, 8px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.36;
    }
    50% {
        opacity: 1;
    }
}

@keyframes blink {
    0%,
    100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .container {
        width: min(1180px, 94vw);
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.85rem 1rem;
    }
    nav {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.95rem, 10vw, 3rem);
    }
    .subtitle {
        font-size: 1.03rem;
    }
    .cta-buttons {
        width: 100%;
    }
    .btn {
        width: 100%;
    }
    nav a {
        font-size: 0.9rem;
        padding: 0.47rem 0.72rem;
    }
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .reassurance-strip {
        margin-bottom: var(--space-6);
        padding: 0.65rem;
    }
    .reassurance-strip ul {
        gap: 0.45rem;
    }
    .reassurance-strip li {
        width: 100%;
        border-radius: var(--radius-sm);
    }
}

@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;
    }
}