/* DENTU - Centralized CSS Styles */

/* CSS Variables (Root) */
:root {
    --base-font-size: 14px;
    --primary-color: #f59e0b; /* amber-500 */
    --primary-hover: #d97706; /* amber-600 */
    --text-primary: #1e293b; /* slate-800 */
    --text-secondary: #64748b; /* slate-600 */
    --text-muted: #94a3b8; /* slate-400 */
    --bg-light: #f8fafc; /* slate-50 */
    --bg-white: #ffffff;
    --bg-dark: #0f172a; /* slate-900 */
    --bg-card: #ffffff;
    --border-light: #e2e8f0; /* slate-200 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Base Styles */
html {
    font-size: var(--base-font-size);
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* Typography */
.text-balance {
    text-wrap: balance;
}

/* Layout Utilities */
.section-padding {
    padding-top: 72px;
    padding-bottom: 72px;
}

@media (max-width: 1024px) {
    .section-padding {
        padding-top: 56px;
        padding-bottom: 56px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

/* Header Styles */
#header-container {
    transition: all 0.3s ease;
}

#header-container.scrolled .main-nav {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

/* Navigation */
.main-nav {
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 700;
}

/* Buttons */
.cta-button {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    transform: translateY(0);
    display: inline-block;
    text-decoration: none;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-light);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.card-hover-lift:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(
        to top,
        rgba(17, 24, 39, 0.85) 0%,
        rgba(17, 24, 39, 0.4) 60%,
        rgba(17, 24, 39, 0.85) 100%
    );
}

/* Animated Text */
#animated-text-container {
    display: inline-block;
}

.cursor {
    display: inline-block;
    background-color: var(--primary-color);
    margin-left: 0.1rem;
    width: 4px;
    animation: blink 1s infinite;
}

.cursor.typing {
    animation: none;
}

@keyframes blink {
    50% {
        background-color: transparent;
    }
}

/* Mobile Menu */
.mobile-menu {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-light);
}

.mobile-menu a {
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu a:hover {
    background-color: var(--bg-light);
    color: var(--text-primary);
}

.mobile-menu a.active {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-muted);
}

.footer h4 {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
}

/* Cookie Banner */
.cookie-banner {
    background-color: var(--bg-dark);
    color: var(--text-muted);
    border-top: 1px solid #374151;
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease;
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */

@media (max-width: 768px) {
    :root {
        --base-font-size: 13px;
    }

    .section-padding {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hero-gradient {
        background: linear-gradient(
            to top,
            rgba(17, 24, 39, 0.9) 0%,
            rgba(17, 24, 39, 0.6) 50%,
            rgba(17, 24, 39, 0.9) 100%
        );
    }
}

@media (max-width: 640px) {
    .cta-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Utility Classes */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.bg-primary { background-color: var(--primary-color); }
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }
.bg-dark { background-color: var(--bg-dark); }

/* Focus States for Accessibility */
.cta-button:focus,
.btn-secondary:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== CONTAINER WIDTH & SPACING ===== */
.container {
    max-width: 1120px !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}
@media (max-width: 768px) {
    .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

/* ===== REFINED DESIGN OVERRIDES ===== */
/* Reduce section padding for a tighter, more refined layout */
.section-padding {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
}
@media (max-width: 1024px) {
    .section-padding {
        padding-top: 44px !important;
        padding-bottom: 44px !important;
    }
}
@media (max-width: 768px) {
    .section-padding {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }
}

/* Refine CTA buttons */
.cta-button {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.875rem !important;
    border-radius: 9999px;
}

/* Tighter card spacing */
.service-card,
[class*="rounded-xl"][class*="shadow"] {
    box-shadow: 0 2px 12px rgba(0,0,0,0.07) !important;
}

/* Softer image shadows */
[class*="shadow-2xl"] {
    box-shadow: 0 4px 24px rgba(0,0,0,0.10) !important;
}

/* Print Styles */
@media print {
    .fixed,
    .cookie-banner,
    .mobile-menu {
        display: none !important;
    }

    body {
        background-color: white !important;
        color: black !important;
    }
}