/* Escola Luis De Camoes - Premium Dark Luxury Styles */

:root {
    --burgundy-500: #de3b68;
    --burgundy-700: #a01840;
    --burgundy-900: #701733;
    --burgundy-950: #3d0716;
    --dark-900: #0f0f1a;
    --dark-800: #1a1a2e;
    --gold-400: #e8c25a;
    --gold-500: #d4a843;
    --gold-300: #f5d68a;
}

/* Reset & base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--dark-900);
    color: #f5f0eb;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: rgba(160, 24, 64, 0.4);
    color: #f5f0eb;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-900);
}

::-webkit-scrollbar-thumb {
    background: var(--burgundy-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--burgundy-500);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500), #c9a84c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gold shimmer animation */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.gold-shimmer {
    background: linear-gradient(90deg, var(--gold-400), var(--gold-300), var(--gold-400));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

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

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

.float-animation-delayed {
    animation: float-delayed 7s ease-in-out infinite;
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation glass effect */
.nav-glass {
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
}

/* Nav links */
.nav-link {
    position: relative;
    color: #d4c5b0;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--gold-400), var(--burgundy-500));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--gold-400);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Hamburger */
.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold-400);
    transition: all 0.3s ease;
}

.hamburger-line:nth-child(1) {
    transform: translateY(6px);
}

.hamburger-line:nth-child(3) {
    transform: translateY(-6px);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile nav links */
.mobile-nav-link {
    color: #d4c5b0;
    font-size: 1.125rem;
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
}

.mobile-nav-link:hover {
    color: var(--gold-400);
}

/* Stat cards */
.stat-card {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 168, 67, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(160, 24, 64, 0.2), 0 0 40px rgba(212, 168, 67, 0.05);
}

/* Gold line */
.gold-line {
    height: 2px;
    background: linear-gradient(90deg, var(--burgundy-500), var(--gold-400), var(--burgundy-500));
    border: none;
}

/* Section backgrounds */
.section-dark {
    background: var(--dark-900);
}

.section-darker {
    background: var(--dark-800);
}

.section-gradient {
    background: linear-gradient(180deg, var(--dark-900) 0%, #1e1020 50%, var(--dark-900) 100%);
}

/* Service cards */
.service-card {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(15, 15, 26, 0.95));
    border: 1px solid rgba(212, 168, 67, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(160, 24, 64, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    border-color: rgba(212, 168, 67, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(160, 24, 64, 0.15), 0 0 60px rgba(212, 168, 67, 0.05);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--burgundy-700), var(--burgundy-900));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--gold-400);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--burgundy-700), var(--burgundy-900));
    color: #f5f0eb;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--burgundy-500), var(--burgundy-700));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(160, 24, 64, 0.3);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--gold-400);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(212, 168, 67, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(212, 168, 67, 0.1);
    border-color: var(--gold-400);
    transform: translateY(-2px);
}

/* Form inputs */
.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(212, 168, 67, 0.15);
    border-radius: 12px;
    color: #f5f0eb;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: rgba(212, 197, 176, 0.4);
}

.form-input:focus {
    border-color: var(--gold-400);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Select styling */
.form-input select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e8c25a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-input select option {
    background: var(--dark-800);
    color: #f5f0eb;
}

/* Footer */
.footer {
    background: #050510;
    border-top: 1px solid rgba(212, 168, 67, 0.08);
}

/* Map container */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212, 168, 67, 0.15);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    filter: saturate(0.6) brightness(0.8) contrast(1.1);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: saturate(0.8) brightness(0.85) contrast(1.1);
}

/* Success message */
.success-message {
    display: none;
    padding: 1rem 1.5rem;
    background: rgba(212, 168, 67, 0.1);
    border: 1px solid rgba(212, 168, 67, 0.3);
    border-radius: 12px;
    color: var(--gold-400);
    text-align: center;
    margin-top: 1rem;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-card {
        padding: 1rem;
    }

    .service-card {
        padding: 1.75rem;
    }

    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--gold-400);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .nav-glass,
    .mobile-menu,
    .gold-orb,
    .hero-grid-lines {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
