/* Brand Color Variables */
:root {
    /* Brand Colors */
    --primary-brand: #ca3e6b;
    --primary-hover: #8b2545;
    --primary-light: #d5668a;
    --accent-base: #ffd280;
    --accent-light: #ffe4b3;
    --accent-extra-light: #fff6e6;

    /* Neutral Colors */
    --neutral-dark: #222222;
    --neutral-base: #444444;
    --neutral-light: #666666;
    --neutral-border: #dddddd;
    --neutral-background: #f5f5f5;

    /* Status Colors */
    --success: #4caf50;
    --warning: #ffc107;
    --error: #a72e55;

    /* Legacy variables for compatibility */
    --background: var(--accent-extra-light);
    --foreground: var(--neutral-dark);
}

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

body {
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--neutral-dark);
    background-color: var(--accent-extra-light);
}

/* Base Styles */
.min-h-screen {
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.bg-gradient-to-br {
    background: linear-gradient(
        to bottom right,
        var(--from-color),
        var(--via-color),
        var(--to-color)
    );
}

.from-slate-900 {
    --from-color: var(--neutral-dark);
}

.via-purple-900 {
    --via-color: var(--primary-brand);
}

.to-slate-900 {
    --to-color: var(--neutral-dark);
}

/* Typography Colors */
.text-white {
    color: #ffffff;
}

.text-gray-300 {
    color: var(--neutral-light);
}

.text-gray-400 {
    color: var(--neutral-light);
}

.text-gray-500 {
    color: var(--neutral-light);
}

.text-purple-400 {
    color: var(--primary-light);
}

.text-red-400 {
    color: var(--error);
}

.text-green-400 {
    color: var(--success);
}

/* Background Colors */
.bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05);
}

.bg-red-500\/10 {
    background-color: rgba(167, 46, 85, 0.1);
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2);
}

.border-red-400 {
    border-color: var(--error);
}

.border-red-400\/20 {
    border-color: rgba(167, 46, 85, 0.2);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Gradient Backgrounds */
.bg-gradient-to-r {
    background: linear-gradient(to right, var(--from-grad), var(--to-grad));
}

.from-purple-400 {
    --from-grad: var(--primary-light);
}

.to-pink-400 {
    --to-grad: var(--accent-base);
}

.from-purple-500 {
    --from-grad: var(--primary-brand);
}

.to-pink-500 {
    --to-grad: var(--accent-base);
}

.from-purple-600 {
    --from-grad: var(--primary-hover);
}

.to-pink-600 {
    --to-grad: var(--accent-base);
}

.from-blue-500 {
    --from-grad: var(--primary-brand);
}

.to-cyan-500 {
    --to-grad: var(--accent-base);
}

.from-green-500 {
    --from-grad: var(--success);
}

.to-emerald-500 {
    --to-grad: var(--accent-base);
}

.from-orange-500 {
    --from-grad: var(--accent-base);
}

.to-red-500 {
    --to-grad: var(--primary-brand);
}

.from-indigo-500 {
    --from-grad: var(--primary-brand);
}

.from-pink-500 {
    --from-grad: var(--primary-light);
}

.to-rose-500 {
    --to-grad: var(--primary-brand);
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent;
}

/* Layout and Spacing */
.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-8 {
    padding: 2rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.w-4 {
    width: 1rem;
}

.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.w-12 {
    width: 3rem;
}

.w-16 {
    width: 4rem;
}

.w-full {
    width: 100%;
}

.h-4 {
    height: 1rem;
}

.h-6 {
    height: 1.5rem;
}

.h-8 {
    height: 2rem;
}

.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

/* SVG Logo Styles */
.logo-svg {
    height: 2.5rem;
    width: auto;
    max-width: 280px;
    transition: transform 0.3s ease;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.logo-svg:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Ensure SVG logo text is crisp */
.logo-svg path {
    shape-rendering: geometricPrecision;
}

/* Typography */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

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

/* Flexbox and Grid */
.flex {
    display: flex;
}

.grid {
    display: grid;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-full {
    border-radius: 9999px;
}

.border {
    border-width: 1px;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-lg {
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px var(--ring-color, var(--primary-brand));
}

.focus\:ring-purple-500:focus {
    --ring-color: var(--primary-brand);
}

.focus\:ring-offset-2:focus {
    outline-offset: 2px;
}

.focus\:border-transparent:focus {
    border-color: transparent;
}

.hover\:from-purple-600:hover {
    --from-grad: var(--primary-hover);
}

.hover\:to-pink-600:hover {
    --to-grad: var(--accent-base);
}

.hover\:bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:text-purple-300:hover {
    color: var(--primary-light);
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.transform {
    transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1)
        scaleY(1);
}

.animate-spin {
    animation: spin 1s linear infinite;
}

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

.hidden {
    display: none;
}

/* Media Queries */
@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .md\:text-2xl {
        font-size: 1.5rem;
    }

    .md\:text-5xl {
        font-size: 3rem;
    }

    .md\:text-7xl {
        font-size: 4.5rem;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Brand-specific Form Styling */
.bg-white\/10 {
    background-color: var(--accent-light);
}

.bg-neutral-light {
    background-color: var(--neutral-background);
}

input[type="text"],
input[type="email"] {
    color: var(--neutral-dark) !important;
    background-color: var(--neutral-background) !important;
    border: 1px solid var(--neutral-border) !important;
}

input[type="text"]:focus,
input[type="email"]:focus {
    border-color: var(--primary-brand) !important;
    box-shadow: 0 0 0 2px rgba(167, 46, 85, 0.1) !important;
}

/* Brand Cards */
.brand-card {
    background-color: var(--accent-light);
    border: 1px solid var(--neutral-border);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.brand-card:hover {
    background-color: var(--accent-base);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(167, 46, 85, 0.12);
    border-color: var(--primary-light);
}

/* Brand Buttons */
.btn-primary {
    background: linear-gradient(
        135deg,
        var(--primary-brand),
        var(--primary-light)
    );
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(
        135deg,
        var(--primary-hover),
        var(--primary-brand)
    );
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(167, 46, 85, 0.3);
}

/* Glass-like Header/Navigation */
.glass-header {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-header.scrolled {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
    .glass-header {
        background-color: rgba(255, 246, 230, 0.95);
    }

    .glass-header.scrolled {
        background-color: rgba(255, 246, 230, 0.98);
    }
}

/* Hero Section Updates */
.hero-background {
    background: linear-gradient(
        135deg,
        var(--accent-extra-light) 0%,
        var(--accent-light) 50%,
        var(--accent-base) 100%
    );
}

/* Cookie consent styling */
#cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--neutral-border);
}

#cookie-consent p {
    color: var(--neutral-light);
}

#cookie-consent #accept-cookies {
    background: linear-gradient(
        135deg,
        var(--primary-brand),
        var(--primary-light)
    );
    color: white;
    border: none;
}

#cookie-consent #accept-cookies:hover {
    background: linear-gradient(
        135deg,
        var(--primary-hover),
        var(--primary-brand)
    );
}

#cookie-consent #decline-cookies {
    background-color: var(--neutral-background);
    color: var(--neutral-base);
    border: 1px solid var(--neutral-border);
}

#cookie-consent #decline-cookies:hover {
    background-color: var(--neutral-border);
}

/* Success states */
.success-message {
    background-color: var(--accent-light);
    border: 1px solid var(--success);
    color: var(--neutral-dark);
}

/* Error states */
.error-message {
    background-color: rgba(167, 46, 85, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

/* Brand icon backgrounds */
.icon-bg-primary {
    background: linear-gradient(
        135deg,
        var(--primary-brand),
        var(--primary-light)
    );
}

.icon-bg-accent {
    background: linear-gradient(
        135deg,
        var(--accent-base),
        var(--accent-light)
    );
}

.icon-bg-success {
    background: linear-gradient(135deg, var(--success), #66bb6a);
}

.icon-bg-warning {
    background: linear-gradient(135deg, var(--warning), #ffeb3b);
}

/* Fixed header positioning */
.fixed {
    position: fixed;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.z-50 {
    z-index: 50;
}

/* Main content padding for fixed header */
.pt-20 {
    padding-top: 5rem;
}

/* Mobile responsive styles */
@media (max-width: 640px) {
    .logo-svg {
        height: 1.75rem;
        max-width: 200px;
        width: auto;
    }

    .glass-header .container {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .hero-bg {
        padding-top: 4rem;
    }

    .text-5xl {
        font-size: 2rem;
    }

    .text-xl {
        font-size: 1.125rem;
    }

    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .gap-8 {
        gap: 1.5rem;
    }

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

    .brand-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo-svg {
        height: 1.5rem;
        max-width: 180px;
        width: auto;
    }

    .glass-header .flex {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .glass-header .btn-primary {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .text-5xl {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .max-w-4xl {
        max-width: 100%;
    }

    .px-8 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .py-4 {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}
