/* === Base & Reset === */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #d4a017;
    color: #0a1628;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.2s;
}

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

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #1e3a6e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a017;
}

/* === Typography === */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

p, span, a, button, input, textarea, select, label {
    font-family: 'Outfit', system-ui, sans-serif;
}

/* === Nav Links === */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4a017;
    transition: width 0.3s ease;
}

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

/* === Gold Button === */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #d4a017 0%, #e8be33 50%, #b8860f 100%);
    color: #0a1628;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 160, 23, 0.3);
    text-decoration: none;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 160, 23, 0.4);
    background: linear-gradient(135deg, #e8be33 0%, #f0c940 50%, #d4a017 100%);
}

.btn-gold:active {
    transform: translateY(0);
}

/* === Outline Button === */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: #d4a017;
    color: #d4a017;
    background: rgba(212, 160, 23, 0.05);
}

/* === Outline Dark Button === */
.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: #0a1628;
    border: 1.5px solid rgba(10, 22, 40, 0.3);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline-dark:hover {
    border-color: #0a1628;
    background: rgba(10, 22, 40, 0.05);
}

/* === Navy Button === */
.btn-navy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #0a1628;
    color: #d4a017;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-navy:hover {
    background: #132748;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(10, 22, 40, 0.4);
}

/* === Form Inputs === */
.input-field {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    color: #ffffff;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.input-field:hover {
    border-color: rgba(212, 160, 23, 0.3);
}

.input-field:focus {
    border-color: #d4a017;
    background: rgba(212, 160, 23, 0.04);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

.input-field option {
    background: #132748;
    color: #ffffff;
}

textarea.input-field {
    resize: vertical;
    min-height: 100px;
}

/* === Service Cards === */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* === Gallery Items === */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.gallery-item:hover::after {
    border-color: rgba(212, 160, 23, 0.5);
}

/* === FAQ === */
.faq-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-content.open {
    max-height: 300px;
}

/* === Mobile Menu === */
.mobile-menu-open .mobile-nav-link {
    animation: fadeSlideIn 0.3s ease forwards;
    opacity: 0;
}

.mobile-menu-open .mobile-nav-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu-open .mobile-nav-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu-open .mobile-nav-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu-open .mobile-nav-link:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu-open .mobile-nav-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Hamburger Animation === */
.menu-open #bar1 {
    transform: translateY(3px) rotate(45deg);
}

.menu-open #bar2 {
    opacity: 0;
}

.menu-open #bar3 {
    transform: translateY(-3px) rotate(-45deg);
    width: 1.5rem;
}

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: #d4a017;
    color: #0a1628;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.3s ease;
    z-index: 40;
    box-shadow: 0 4px 20px rgba(212, 160, 23, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(212, 160, 23, 0.5);
}

/* === Reveal Animations === */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .reveal.visible[data-reveal] {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger delays */
.reveal[data-reveal] {
    transition-delay: 0ms;
}

.service-card:nth-child(1) { transition-delay: 0ms; }
.service-card:nth-child(2) { transition-delay: 80ms; }
.service-card:nth-child(3) { transition-delay: 160ms; }
.service-card:nth-child(4) { transition-delay: 240ms; }
.service-card:nth-child(5) { transition-delay: 320ms; }
.service-card:nth-child(6) { transition-delay: 400ms; }

.gallery-item:nth-child(1) { transition-delay: 0ms; }
.gallery-item:nth-child(2) { transition-delay: 80ms; }
.gallery-item:nth-child(3) { transition-delay: 160ms; }
.gallery-item:nth-child(4) { transition-delay: 240ms; }
.gallery-item:nth-child(5) { transition-delay: 320ms; }
.gallery-item:nth-child(6) { transition-delay: 400ms; }

.faq-item { transition-delay: 0ms; }
.faq-item:nth-child(2) { transition-delay: 80ms; }
.faq-item:nth-child(3) { transition-delay: 160ms; }
.faq-item:nth-child(4) { transition-delay: 240ms; }
.faq-item:nth-child(5) { transition-delay: 320ms; }

/* === Responsive === */
@media (max-width: 767px) {
    .font-display {
        line-height: 1.1;
    }
}
