/* SM Empire — Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: #1B2A4A;
    background-color: #F8F6F1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: #C9A84C;
    color: white;
}

/* Header scroll state */
.header-scrolled {
    box-shadow: 0 1px 20px rgba(27, 42, 74, 0.06);
}

/* Mobile dropdown */
.mobile-dropdown.open .mobile-dropdown-content {
    display: block;
}
.mobile-dropdown.open svg {
    transform: rotate(180deg);
}

/* Fade-in animation */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger > .fade-up:nth-child(1) { transition-delay: 0s; }
.stagger > .fade-up:nth-child(2) { transition-delay: 0.1s; }
.stagger > .fade-up:nth-child(3) { transition-delay: 0.2s; }
.stagger > .fade-up:nth-child(4) { transition-delay: 0.3s; }
.stagger > .fade-up:nth-child(5) { transition-delay: 0.4s; }
.stagger > .fade-up:nth-child(6) { transition-delay: 0.5s; }

/* Gold CTA hover glow */
.cta-gold {
    position: relative;
    overflow: hidden;
}
.cta-gold::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}
.cta-gold:hover::after {
    opacity: 1;
}

/* Service card hover */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(27, 42, 74, 0.08);
}

/* FAQ Accordion */
.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding-top: 0.75rem;
}
.faq-item .faq-icon {
    transition: transform 0.3s ease;
}
.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

/* Trust bar logos - subtle grayscale */
.trust-logo {
    filter: grayscale(100%);
    opacity: 0.4;
    transition: all 0.3s;
}
.trust-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Stat counter animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.stat-number {
    animation: countUp 0.6s ease forwards;
}

/* Form focus states */
.form-input {
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
    border-color: #C9A84C;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
    outline: none;
}

/* Breadcrumb separator */
.breadcrumb-sep::after {
    content: '›';
    margin: 0 0.5rem;
    color: rgba(27, 42, 74, 0.3);
}

/* WhatsApp pulse */
#whatsapp-float {
    animation: waPulse 3s ease-in-out infinite;
}
@keyframes waPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(201, 168, 76, 0.5); }
}

/* Decorative line */
.accent-line {
    width: 48px;
    height: 2px;
    background-color: #C9A84C;
}

/* Image placeholder styling */
.img-placeholder {
    background: linear-gradient(135deg, #E8E4DA 0%, #DDD8CC 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(27, 42, 74, 0.2);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
}

/* Responsive typography scale */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.25rem;
        line-height: 1.15;
    }
}
@media (min-width: 769px) {
    .hero-headline {
        font-size: 3.5rem;
        line-height: 1.1;
    }
}
@media (min-width: 1024px) {
    .hero-headline {
        font-size: 3.875rem;
        line-height: 1.08;
    }
}

/* Service section dividers */
.service-section-divider {
    border-top: 1px solid rgba(27, 42, 74, 0.08);
}
