/* DentTax Berlin - Custom Styles */

/* ======================
   GLOBAL STYLES
   ====================== */

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fcfbf9; /* Warm Paper background */
}

/* ======================
   GLASS EFFECTS
   ====================== */

.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ======================
   TEXT UTILITIES
   ====================== */

.text-balance {
    text-wrap: balance;
}

/* ======================
   SELECTION COLOR
   ====================== */

::selection {
    background: #cba17a;
    color: white;
}

/* ======================
   SCROLLBAR HIDING
   ====================== */

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ======================
   FOCUS STYLES
   ====================== */

:focus-visible {
    outline: 2px solid #cba17a;
    outline-offset: 2px;
}

/* ======================
   REDUCED MOTION
   ====================== */

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

/* ======================
   CUSTOM ANIMATIONS
   ====================== */

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

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

/* Apply animations */
.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 1.2s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-in-right {
    animation: slideInRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
    animation: float 8s ease-in-out infinite;
}

.animate-blink {
    animation: blink 1s step-end infinite;
}

/* ======================
   BUTTON STYLES
   ====================== */

button,
.button {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

button:disabled,
.button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ======================
   FORM STYLES
   ====================== */

input,
textarea,
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* ======================
   UTILITIES
   ====================== */

/* Tabular numbers for counters */
.tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* Prevent text selection */
.select-none {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ======================
   RESPONSIVE IMAGES
   ====================== */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ======================
   SMOOTH TRANSITIONS
   ====================== */

a,
button {
    transition: all 0.3s ease;
}

/* ======================
   CUSTOM SCROLLBAR
   ====================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #fcfbf9;
}

::-webkit-scrollbar-thumb {
    background: #cba17a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8906a;
}

/* ======================
   LOADING STATES
   ====================== */

.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* ======================
   HERO SECTION SPECIFIC
   ====================== */

#hero {
    position: relative;
    overflow: hidden;
}

/* ======================
   GRADIENT OVERLAYS
   ====================== */

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.6), transparent, transparent);
    pointer-events: none;
}

/* ======================
   CARD HOVER EFFECTS
   ====================== */

.card-hover {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ======================
   BACKDROP BLUR SUPPORT
   ====================== */

@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
    .glass-nav {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

/* ======================
   PRINT STYLES
   ====================== */

@media print {
    header,
    footer,
    #cookie-banner {
        display: none;
    }

    body {
        background: white;
    }

    a {
        text-decoration: underline;
    }

    a[href^="#"]::after {
        content: "";
    }
}

/* ======================
   DARK MODE SUPPORT (Optional)
   ====================== */

@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* ======================
   HIGH CONTRAST MODE
   ====================== */

@media (prefers-contrast: high) {
    .glass-nav {
        background: rgba(255, 255, 255, 0.95);
    }

    button,
    a {
        text-decoration: underline;
    }
}

/* ======================
   COOKIE MODAL CHECKBOXES
   ====================== */

/* Custom checkbox styling */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    background-color: white;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

input[type="checkbox"]:checked {
    background-color: #cba17a;
    border-color: #cba17a;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 0.3rem;
    top: 0.05rem;
    width: 0.35rem;
    height: 0.65rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

input[type="checkbox"]:focus {
    outline: 2px solid #cba17a;
    outline-offset: 2px;
}

/* ======================
   ACCESSIBILITY
   ====================== */

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0f172a;
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    z-index: 100;
    font-weight: 600;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #cba17a;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(203, 161, 122, 0.2);
}

/* High visibility focus for keyboard users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Ensure visible focus for all interactive elements */
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid #cba17a;
    outline-offset: 2px;
}

/* ======================
   PERFORMANCE OPTIMIZATIONS
   ====================== */

/* GPU acceleration for animations */
.animate-fade-in-up,
.animate-scale-in,
.animate-slide-in-right {
    will-change: transform, opacity;
}

/* Contain paint for better performance */
section {
    contain: layout style paint;
}
