:root {
    --primary-color: #0d1520;
    --secondary-color: #1a2a3a;
    --accent-color: #c6a87c;
    --accent-hover: #e0c296;
    --text-color: #333333;
    --text-light: #666666;
    --light-bg: #f0f4f8;
    --white: #ffffff;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    color: var(--primary-color);
    line-height: 1.2;
}

header {
    background-color: rgba(26, 42, 58, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 32px;
    width: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.logo img:hover {
    transform: scale(1.05);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-selector {
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: transparent;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
}

.lang-selector:hover {
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-selector option {
    background-color: var(--primary-color);
    font-size: 1.2rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 24px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    transition: var(--transition-smooth);
    display: inline-block;
    box-shadow: 0 4px 15px rgba(198, 168, 124, 0.4);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-align: center;
}

button.btn-primary,
.btn-secondary,
button.btn-secondary,
.footer-link-button {
    font: inherit;
    cursor: pointer;
}

.header-login {
    min-width: 110px;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(198, 168, 124, 0.2);
}

.btn-pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(198, 168, 124, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(198, 168, 124, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(198, 168, 124, 0);
    }
}

section {
    padding: 100px 5%;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e2e6ea 100%);
    padding-top: 120px;
    gap: 50px;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-light);
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(26, 42, 58, 0.15);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    background-color: var(--primary-color);
    padding: 80px 5%;
    flex-wrap: wrap;
    position: relative;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(198, 168, 124, 0.2);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    color: var(--white);
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    transform: translateY(-10px);
}

.stat-box h3 {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.features-grid-section {
    background-color: var(--white);
    padding: 100px 5%;
    text-align: center;
}

.section-header {
    margin-bottom: 70px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-top: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-item {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: left;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(198, 168, 124, 0.15);
    background: var(--white);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.4s ease;
    color: var(--accent-color);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) translateY(-5px);
}

.feature-item h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-item p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

.split-section {
    display: flex;
    align-items: center;
    gap: 80px;
    background-color: var(--white);
    overflow: hidden;
}

.split-section.reverse {
    flex-direction: row-reverse;
    background-color: var(--light-bg);
}

.split-section.dark {
    background-color: var(--primary-color);
    color: var(--white);
}

.split-section.dark h2,
.split-section.dark p {
    color: var(--white);
}

.split-section.dark .feature-list li {
    color: #e2e6ea;
}

.split-content {
    flex: 1;
}

.split-content h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.split-content h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.split-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    margin-top: 30px;
}

.img-container {
    flex: 1;
    perspective: 1000px;
}

.img-3d {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
    transform-style: preserve-3d;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 20px;
    padding-left: 45px;
    position: relative;
    font-size: 1.15rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.feature-list li::before {
    content: "\2713";
    color: var(--white);
    background-color: var(--accent-color);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(198, 168, 124, 0.4);
}

.cta-section {
    text-align: center;
    background-image: linear-gradient(rgba(13, 21, 32, 0.9), rgba(26, 42, 58, 0.9)), url("../images/home/img10.jpg");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--white);
    padding: 150px 20px;
}

.cta-section h2 {
    color: var(--white);
    font-size: 3.8rem;
    margin-bottom: 25px;
}

.cta-section p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #e2e6ea;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid rgba(13, 21, 32, 0.18);
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.public-flash {
    max-width: 760px;
    margin: 25px auto 0;
    padding: 16px 18px;
    border-radius: 16px;
    text-align: left;
    line-height: 1.5;
}

.public-flash-success {
    background: rgba(198, 168, 124, 0.14);
    border: 1px solid rgba(198, 168, 124, 0.28);
    color: #fff8ee;
}

.public-flash-error {
    background: rgba(255, 91, 91, 0.08);
    border: 1px solid rgba(255, 91, 91, 0.2);
    color: #7a1111;
    margin: 0 0 20px;
}

.site-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1200;
}

.site-modal.is-open {
    display: flex;
}

.site-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 12, 0.78);
    backdrop-filter: blur(6px);
}

.site-modal-panel {
    position: relative;
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #f8fafc;
    color: var(--text-color);
    border-radius: 26px;
    padding: 36px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    z-index: 1;
}

.cookie-modal-panel {
    width: min(640px, 100%);
}

.modal-copy h2 {
    font-size: 2.1rem;
    margin-bottom: 12px;
}

.modal-copy p {
    color: var(--text-light);
}

.modal-eyebrow {
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.modal-note {
    margin-top: 14px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(13, 21, 32, 0.08);
    color: var(--primary-color);
    font-size: 1.4rem;
    line-height: 1;
}

.modal-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 22px;
}

.modal-actions-stacked {
    margin-top: 26px;
}

.contact-form {
    margin-top: 28px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-field-full {
    grid-column: 1 / -1;
}

.contact-field span {
    font-weight: 600;
    color: var(--primary-color);
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 1px solid rgba(13, 21, 32, 0.14);
    border-radius: 14px;
    padding: 14px 16px;
    background: var(--white);
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(198, 168, 124, 0.12);
    outline: none;
}

.contact-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    color: var(--text-light);
}

.contact-checkbox input {
    margin-top: 4px;
}

.contact-checkbox a,
.cookie-modal-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cookie-preferences-form {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.cookie-option {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid rgba(13, 21, 32, 0.08);
    border-radius: 16px;
    padding: 16px 18px;
}

.cookie-option input {
    margin-top: 4px;
}

.cookie-option span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cookie-option small {
    color: var(--text-light);
    line-height: 1.5;
}

.cookie-modal-footer {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    color: var(--text-light);
}

.cookie-saved-message {
    color: var(--primary-color);
    font-weight: 600;
}

.site-footer {
    background-color: #05080c;
    color: #cfd6dd;
    padding: 60px 5%;
}

.footer-shell {
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 34px;
    align-items: start;
}

.footer-andrea-logo {
    width: 170px;
    height: auto;
    margin-bottom: 18px;
}

.footer-brand-copy {
    font-size: 1.05rem;
    color: #eef2f6;
}

.footer-brand-copy strong,
.footer-company-column h3 {
    color: var(--white);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin-top: 18px;
}

.footer-links a,
.footer-link-button {
    color: #e2e6ea;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
}

.footer-links a:hover,
.footer-link-button:hover {
    color: var(--accent-hover);
}

.footer-note {
    margin-top: 20px;
    color: #9aa8b5;
    font-size: 0.95rem;
}

.footer-company-column {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(198, 168, 124, 0.18);
    border-radius: 20px;
    padding: 24px;
}

.footer-company-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.footer-company-list div {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-company-list dt {
    color: #9aa8b5;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.footer-company-list dd,
.footer-company-list dd a {
    color: var(--white);
    text-decoration: none;
}

.footer-group-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.footer-group-label {
    color: #9aa8b5;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
}

.footer-group-logo {
    width: min(240px, 100%);
    height: auto;
    object-fit: contain;
}

.legal-hero {
    min-height: 52vh;
    padding: 140px 5% 70px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #dfe6ee 100%);
}

.legal-hero-copy {
    max-width: 860px;
    margin: 0 auto;
}

.legal-eyebrow {
    color: var(--accent-color);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 16px;
}

.legal-hero h1 {
    font-size: 3.4rem;
    margin-bottom: 18px;
}

.legal-hero p {
    font-size: 1.12rem;
    color: var(--text-light);
}

.legal-updated {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-top: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(13, 21, 32, 0.08);
    border-radius: 999px;
    padding: 10px 18px;
}

.legal-sheet {
    padding: 0 5% 90px;
    background: linear-gradient(180deg, #eef3f8 0%, #f8fafc 25%, #f8fafc 100%);
}

.legal-card {
    max-width: 1120px;
    margin: 0 auto 24px;
    background: var(--white);
    border: 1px solid rgba(13, 21, 32, 0.06);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.04);
}

.legal-card h2 {
    font-size: 1.65rem;
    margin-bottom: 14px;
}

.legal-card p + p {
    margin-top: 14px;
}

.legal-card p {
    color: var(--text-light);
}

.legal-card-heading p {
    max-width: 820px;
}

.legal-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.legal-details-grid div {
    background: var(--light-bg);
    border-radius: 18px;
    padding: 18px;
}

.legal-details-grid dt {
    color: #536273;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.legal-details-grid dd,
.legal-details-grid dd a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.legal-list {
    list-style: none;
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.legal-list li {
    position: relative;
    padding-left: 22px;
    color: var(--text-light);
}

.legal-list li::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
}

.animate-on-scroll {
    opacity: 0;
    filter: blur(10px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up {
    transform: translateY(60px);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.fade-left {
    transform: translateX(60px);
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

.fade-right {
    transform: translateX(-60px);
}

.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

.scale-up {
    transform: scale(0.85);
}

.scale-up.visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.title-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.title-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.img-reveal {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.img-reveal.visible {
    clip-path: inset(0 0 0 0);
}

@media (max-width: 1024px) {
    .hero,
    .split-section,
    .split-section.reverse {
        flex-direction: column;
        text-align: center;
    }

    .hero {
        padding-top: 140px;
    }

    .split-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .feature-list li {
        text-align: left;
    }

    .stats-container {
        margin-top: 0;
        padding: 60px 5%;
    }

    .cta-section {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: row !important;
        justify-content: space-between !important;
        padding: 10px 5% !important;
        height: 70px;
    }

    .logo {
        flex: 1;
    }

    .logo img {
        height: auto !important;
        max-width: 150px !important;
        display: block;
    }

    .header-controls {
        flex: 0;
        justify-content: flex-end;
        gap: 10px;
    }

    header .btn-primary {
        display: inline-block !important;
        padding: 8px 16px;
        font-size: 0.95rem;
        min-width: 92px;
    }

    .lang-selector {
        padding: 4px 8px !important;
        font-size: 1.2rem !important;
        margin-left: 0;
    }

    .hero {
        padding-top: 130px !important;
        min-height: auto;
        padding-bottom: 60px;
        text-align: center;
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2.6rem !important;
        margin-top: 20px !important;
    }

    .hero p {
        font-size: 1.15rem;
    }

    .hero .btn-primary {
        display: inline-block !important;
        width: 100%;
    }

    .stat-box {
        min-width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .split-section,
    .split-section.reverse,
    .split-section.dark {
        padding: 60px 5%;
        gap: 40px;
    }

    .split-content h2 {
        font-size: 2.2rem;
    }

    .cta-section {
        padding: 80px 20px;
    }

    .cta-section h2 {
        font-size: 2.4rem;
    }

    .site-modal-panel {
        padding: 28px 22px;
    }

    .contact-form-grid,
    .legal-details-grid,
    .footer-shell {
        grid-template-columns: 1fr;
    }

    .cookie-modal-footer,
    .modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-group-column {
        align-items: flex-start;
    }

    .legal-hero h1 {
        font-size: 2.5rem;
    }

    .legal-card {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-width: 130px !important;
    }

    header .btn-primary {
        padding: 7px 12px;
        font-size: 0.9rem;
        min-width: 80px;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .stat-box h3 {
        font-size: 2.8rem;
    }

    .split-content h2 {
        font-size: 1.8rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .feature-item {
        padding: 30px 20px;
    }
}
