/* ====== BASE ====== */
body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #e5e5e5;
}
html { scroll-behavior: smooth; }

.text-outline {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    color: transparent;
}

/* ====== SCROLLBAR ====== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.anim {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    animation-play-state: paused;
}
.d1 { animation-delay: .1s; }
.d2 { animation-delay: .2s; }
.d3 { animation-delay: .3s; }
.d4 { animation-delay: .4s; }
.d5 { animation-delay: .5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.float { animation: float 6s ease-in-out infinite; }

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 44, 0.15); }
    50% { box-shadow: 0 0 40px rgba(255, 107, 44, 0.35); }
}
.glow { animation: pulseGlow 3s ease-in-out infinite; }

@keyframes spin {
    to { transform: rotate(360deg); }
}
.spin { animation: spin 1s linear infinite; }

/* ====== MODALS ====== */
.modal-bg {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-bg.open {
    opacity: 1;
    pointer-events: auto;
}
.modal-box {
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-bg.open .modal-box {
    transform: translateY(0) scale(1);
}

/* ====== COOKIE BANNER ====== */
.cookie-bar {
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-bar.show {
    transform: translateY(0);
}

/* ====== TOGGLE SWITCHES ====== */
.toggle-track {
    width: 48px;
    height: 24px;
    border-radius: 12px;
    background: #404040;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
}
.toggle-track.active {
    background: #ff6b2c;
}
.toggle-dot {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #a3a3a3;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.toggle-track.active .toggle-dot {
    left: auto;
    right: 2px;
    background: #ffffff;
}
.toggle-track.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ====== FORM INPUTS ====== */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    color-scheme: dark;
}

/* ====== CUSTOM CHECKBOX ====== */
input[type="checkbox"] {
    accent-color: #ff6b2c;
}

/* ====== GALLERY 4-COL GRID ====== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.gallery-grid .gallery-item:nth-child(2) {
    margin-top: 3rem;
}
@media (max-width: 767px) {
    .gallery-grid .gallery-item:nth-child(2) {
        margin-top: 0;
    }
}
/* ====== SPREEFORM DARK MODE ====== */
#sf-container,
#sf-container form,
.sf-form-wrapper {
    background: transparent !important;
    color: #e5e5e5 !important;
}
#sf-container label {
    color: #a3a3a3 !important;
    font-size: 0.875rem !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}
#sf-container input[type="text"],
#sf-container input[type="email"],
#sf-container input[type="tel"],
#sf-container input[type="number"],
#sf-container select,
#sf-container textarea {
    background: rgba(38, 38, 38, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    color: #ffffff !important;
    font-size: 0.875rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.3s ease !important;
}
#sf-container input:focus,
#sf-container select:focus,
#sf-container textarea:focus {
    outline: none !important;
    border-color: rgba(255, 107, 44, 0.5) !important;
}
#sf-container input::placeholder,
#sf-container textarea::placeholder {
    color: #525252 !important;
}
#sf-container select option {
    background: #171717 !important;
    color: #ffffff !important;
}
#sf-container button[type="submit"] {
    background: linear-gradient(to right, #e65214, #ff6b2c) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 0.875rem 1.5rem !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}
#sf-container button[type="submit"]:hover {
    background: linear-gradient(to right, #ff6b2c, #ff8c57) !important;
    box-shadow: 0 10px 25px -5px rgba(255, 107, 44, 0.3) !important;
}
#sf-container .sf-checkbox-label {
    color: #737373 !important;
    font-size: 0.75rem !important;
}
#sf-container .sf-checkbox-label a {
    color: #ff6b2c !important;
}
#sf-container .sf-success,
#sf-container .sf-success-message {
    background: rgba(34, 197, 94, 0.1) !important;
    border: 1px solid rgba(34, 197, 94, 0.2) !important;
    border-radius: 1rem !important;
    color: #4ade80 !important;
    padding: 1rem !important;
    text-align: center !important;
}
#sf-container .sf-error,
#sf-container .sf-error-message {
    color: #f87171 !important;
    font-size: 0.75rem !important;
}
#sf-container .sf-field {
    margin-bottom: 1.25rem !important;
}
#sf-container .sf-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.25rem !important;
}
@media (max-width: 639px) {
    #sf-container .sf-row {
        grid-template-columns: 1fr !important;
    }
}