/* =========================================
   1. BASE & RESET (Common)
   ========================================= */
:root {
    --primary: #c6c6c6;
    --background: #0f1418;
    --surface: #1b2025;
    --on-surface: #dfe3e9;
    --on-surface-variant: #cfc4c5;
    --secondary: #adc6ff;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--on-surface);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, .font-space {
    font-family: 'Space Grotesk', sans-serif;
    color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* =========================================
   2. MOBILE STYLES (Default)
   ========================================= */

/* Header */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 20, 24, 0.6);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -1px;
}

header .btn {
    width: auto;
    padding: 0 16px;
    font-size: 13px;
    height: 32px; /* Matches the visual height of the logo */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    height: 44px;
    font-size: 14px;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
}

/* Main Content */
main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

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

.contact-info h1 {
    font-size: clamp(32px, 8vw, 48px);
    line-height: 1.1;
    margin-bottom: 24px;
}

.contact-info p {
    font-size: 16px;
    color: var(--on-surface-variant);
    max-width: 500px;
    margin: 0 auto;
}

/* Form */
.form-container {
    background: #000000;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.form-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(173, 198, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.form-group {
    margin-bottom: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
    margin-left: 4px;
}

input, textarea {
    width: 100%;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 20px;
    color: #ffffff;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
    font-size: 16px;
}

input:focus, textarea:focus {
    border-color: rgba(173, 198, 255, 0.5);
}

textarea {
    resize: none;
}

/* Custom Select */
.custom-select-container {
    position: relative;
    z-index: 20;
}

.select-trigger {
    width: 100%;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 20px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.options-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.hidden {
    display: none;
}

.option-item {
    padding: 14px 20px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.option-item:last-child {
    border-bottom: none;
}

.option-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    margin-top: 16px;
}

/* Footer */
footer {
    padding: 60px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo-col {
    grid-column: 1 / -1;
    margin-bottom: 24px;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-label {
    font-size: 14px;
    color: var(--on-surface-variant);
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 15px;
    color: #ffffff;
    font-weight: 500;
}

.footer-connect-section {
    margin-bottom: 48px;
}

.footer-connect-header {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.footer-connect-header .footer-label {
    margin-bottom: 0;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--on-surface-variant);
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.desktop-only {
    display: none;
}

.footer-cert {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-cert .material-symbols-outlined {
    font-size: 16px;
    color: var(--secondary);
}

.back-to-top {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-weight: 500;
}

.back-to-top .material-symbols-outlined {
    font-size: 18px;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    border-radius: 4px;
    margin-bottom: 24px;
}

.cookie-option-label {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    display: block;
}

.cookie-option-desc {
    color: #666;
    font-size: 12px;
}

.toggle-disabled {
    opacity: 0.5;
    cursor: default;
}

.social-links {
    display: flex;
    gap: 24px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    z-index: 2000;
    transition: transform 0.5s ease;
}

.translate-y-full {
    transform: translateY(150%);
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cookie-title {
    font-size: 18px;
}

.cookie-desc {
    font-size: 13px;
    color: var(--on-surface-variant);
    margin-bottom: 24px;
}

.cookie-options {
    margin-bottom: 24px;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.toggle {
    width: 40px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}

.toggle-circle {
    width: 16px;
    height: 16px;
    background: #666;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: var(--transition);
}

.toggle.active {
    background: rgba(173, 198, 255, 0.5);
}

.toggle.active .toggle-circle {
    left: 22px;
    background: #ffffff;
}

.cookie-actions {
    display: grid;
    gap: 12px;
}

/* =========================================
   3. DESKTOP STYLES (min-width: 1024px)
   ========================================= */
@media (min-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .logo {
        font-size: 24px;
    }

    header .btn {
        padding: 0 20px;
        font-size: 14px;
        height: 36px; /* Matches the visual height of the logo on desktop */
    }

    .btn-primary:hover {
        transform: scale(0.95);
        background: #e2e2e2;
    }

    /* Main Content */
    main {
        padding-bottom: 80px;
    }

    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 80px;
    }

    .contact-info {
        text-align: left;
    }

    .contact-info h1 {
        font-size: clamp(32px, 5vw, 64px);
        margin-bottom: 32px;
    }

    .contact-info p {
        font-size: 18px;
        margin: 0;
    }

    /* Form */
    .form-container {
        padding: 48px;
        border-radius: 24px;
    }

    .grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .select-trigger:hover {
        border-color: rgba(255, 255, 255, 0.2);
    }

    /* Footer */
    footer {
        padding: 80px 0 40px;
    }

    .footer-main-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 80px;
        margin-bottom: 80px;
    }

    .footer-logo-col {
        grid-column: auto;
        margin-bottom: 0;
    }

    .footer-connect-section {
        margin-bottom: 0;
        max-width: none;
    }

    .footer-connect-header {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 20px;
    }

    .footer-bottom {
        padding-top: 40px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        font-size: 14px;
    }

    .footer-bottom-left {
        flex-direction: row;
        gap: 24px;
    }

    .footer-bottom-right {
        justify-self: end;
    }

    .desktop-only {
        display: flex;
    }

    /* Form */
    .cookie-banner {
        bottom: 32px;
        right: 32px;
        left: auto;
        width: 400px;
        padding: 32px;
    }

    .cookie-title {
        font-size: 20px;
    }

    .cookie-desc {
        font-size: 14px;
        margin-bottom: 32px;
    }

    .cookie-options {
        margin-bottom: 32px;
    }

    .cookie-option {
        margin-bottom: 24px;
    }
}
