/* ============================================================
   AAMANAR — Global Optimization Stylesheet
   Covers: Typography, Accessibility, Mobile UX, Forms,
           Animations, Performance, Focus States
   ============================================================ */

/* ── 1. BASE TYPOGRAPHY — Increased for readability ─────── */
body {
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ── HEADER: Desktop WhatsApp Button ── */
/* Hidden on mobile/tablet, shown only on desktop (1024px+) */
.wa-desktop-btn {
    display: none !important;
}
@media (min-width: 1024px) {
    .wa-desktop-btn {
        display: inline-flex !important;
    }
}

/* ── HEADER: Mobile Hamburger Button ── */
/* Shown on mobile/tablet, hidden on desktop (1024px+) */
.mobile-menu-hamburger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    background: #C79B42 !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    font-size: 20px !important;
}
.mobile-menu-hamburger i {
    font-size: 20px !important;
    color: #fff !important;
}
@media (min-width: 1024px) {
    .mobile-menu-hamburger {
        display: none !important;
    }
}



/* Paragraphs — comfortable reading size */
p {
    font-size: 0.9375rem; /* 15px — up from browser default 14px in Tailwind xs/sm */
    line-height: 1.75;
}

/* Small utility text — still readable */
.text-xs {
    font-size: 0.8125rem !important; /* 13px — up from 12px */
}

/* Card descriptions — improve readability */
.card-description,
.text-gray-600.text-xs.leading-relaxed {
    font-size: 0.875rem !important;
    line-height: 1.75 !important;
}

/* Navigation links — slightly larger */
nav a {
    font-size: 0.8125rem;
}

/* Footer text */
footer p,
footer li,
footer a {
    font-size: 0.875rem;
    line-height: 1.7;
}

/* Section headings — improved hierarchy */
h1 { line-height: 1.15; letter-spacing: -0.02em; }
h2 { line-height: 1.2; letter-spacing: -0.015em; }
h3 { line-height: 1.3; }
h4 { line-height: 1.4; }

/* ── 2. SKIP TO CONTENT — Accessibility ─────────────────── */
.skip-to-content {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    background: #C79B42;
    color: #0F172A;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 4px 4px;
    text-decoration: none;
    transition: top 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.skip-to-content:focus {
    top: 0;
    outline: 3px solid #0F172A;
    outline-offset: 2px;
}

/* ── 3. FOCUS STATES — Keyboard Accessibility ───────────── */
*:focus-visible {
    outline: 2px solid #C79B42;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Remove default outline only when using custom focus */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Focus for buttons */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #C79B42;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Focus for form controls */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C79B42;
    outline-offset: 0;
    border-color: #C79B42 !important;
    box-shadow: 0 0 0 3px rgba(199, 155, 66, 0.2) !important;
}

/* ── 4. TOUCH TARGETS — Mobile Accessibility ─────────────── */
/* Minimum 44px touch target for interactive elements */
button,
.btn-gold,
.btn-outline-white,
.btn-outline-dark,
a.btn-gold,
a.btn-outline-white,
a.btn-outline-dark {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Navigation touch targets */
nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}

/* Mobile menu links */
.mobile-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── 5. NO HORIZONTAL OVERFLOW — Mobile Fix ──────────────── */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Prevent any element from causing horizontal scroll */
.overflow-hidden {
    overflow-x: hidden !important;
}

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

/* ── 6. FORM STATES — Validation UI ──────────────────────── */

/* Default input styling improvements */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid #E2E8F0;
    border-radius: 2px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #FFFFFF;
    color: #0F172A;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #CBD5E1;
}

/* Error state */
.field-error input,
.field-error select,
.field-error textarea,
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
    border-color: #DC2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.field-error-msg {
    color: #DC2626;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.field-error-msg::before {
    content: '⚠';
    font-size: 0.75rem;
}

/* Success state */
.field-success input,
.field-success select,
.field-success textarea,
input.is-valid,
select.is-valid,
textarea.is-valid {
    border-color: #16A34A !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1) !important;
}

/* Form success banner */
.form-success-banner {
    background: linear-gradient(135deg, #16A34A, #15803D);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.4s ease;
}

/* Form error banner */
.form-error-banner {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.4s ease;
}

/* Loading state for submit button */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}
.btn-loading::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* File upload styling */
.file-upload-area {
    border: 2px dashed #E2E8F0;
    border-radius: 4px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #F8FAFC;
    font-size: 0.875rem;
    color: #64748B;
}
.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: #C79B42;
    background: rgba(199, 155, 66, 0.05);
    color: #C79B42;
}
.file-upload-area.has-file {
    border-color: #16A34A;
    background: rgba(22, 163, 74, 0.04);
}

.file-upload-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #F1F5F9;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}
.file-upload-preview .file-name {
    flex: 1;
    font-weight: 600;
    color: #0F172A;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-upload-preview .file-size {
    color: #64748B;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.file-remove-btn {
    background: none;
    border: none;
    color: #DC2626;
    cursor: pointer;
    padding: 0.25rem;
    flex-shrink: 0;
    font-size: 0.875rem;
    min-height: unset;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.file-remove-btn:hover {
    background: rgba(220, 38, 38, 0.1);
}

/* ── 8. PROFESSIONAL MOBILE RESPONSIVE & SERVICES CARDS ANIMATIONS ── */

/* Mobile Drawer Overlay Animations */
#mobile-drawer {
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
    will-change: transform;
}

#mobile-drawer.translate-x-full {
    transform: translateX(100%);
    pointer-events: none;
}

#mobile-drawer:not(.translate-x-full) {
    transform: translateX(0);
    pointer-events: auto;
}

/* Service Card Mobile & Desktop Animations */
.group {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
}

/* Touch feedback for mobile service cards */
@media (max-width: 1024px) {
    .group:active {
        transform: scale(0.98);
    }
}

/* Glowing Accent Border & Hover Shimmer for Service Cards */
.border-\[\#C79B42\],
.gold-border-glow {
    position: relative;
    border-color: rgba(199, 155, 66, 0.4) !important;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.group:hover .border-\[\#C79B42\],
.group:hover.gold-border-glow,
.gold-border-glow:hover {
    border-color: #C79B42 !important;
    box-shadow: 0 12px 30px -5px rgba(199, 155, 66, 0.35), 0 0 15px rgba(199, 155, 66, 0.2);
}

/* Image Zoom & Lighting Shimmer Animation on Mobile */
.group img {
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
}

.group:hover img {
    transform: scale(1.08);
    filter: brightness(1.08);
}

/* Gold Caret Item Pulse on Mobile Menu Card */
#mobile-services-dropdown a {
    position: relative;
    transition: all 0.25s ease;
}

#mobile-services-dropdown a:hover,
#mobile-services-dropdown a:active {
    background: rgba(199, 155, 66, 0.15);
    padding-left: 1rem;
    color: #C79B42;
}

/* Custom Scrollbar for Mobile Drawer */
#mobile-drawer ::-webkit-scrollbar {
    width: 5px;
}
#mobile-drawer ::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
}
#mobile-drawer ::-webkit-scrollbar-thumb {
    background: #C79B42;
    border-radius: 4px;
}


/* ══════════════════════════════════════════════════════════
   ── 9. PROFESSIONAL SCROLL-REVEAL ANIMATION SYSTEM ───────
   All cards, sections, headings animate as they scroll in
   ══════════════════════════════════════════════════════════ */

/* ── Base: Hidden state before animation triggers ── */
.sr-hidden {
    opacity: 0;
    will-change: opacity, transform;
}

/* Fade Up — default for cards, headings, paragraphs */
.sr-fade-up {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Fade In — subtle for badges, dividers */
.sr-fade {
    opacity: 0;
    transition: opacity 0.65s ease;
}

/* Slide from Left */
.sr-fade-left {
    opacity: 0;
    transform: translateX(-52px);
    transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Slide from Right */
.sr-fade-right {
    opacity: 0;
    transform: translateX(52px);
    transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scale In — for stat numbers, badges */
.sr-scale {
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.65s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Visible / Triggered state ── */
.sr-fade-up.sr-visible,
.sr-fade.sr-visible,
.sr-fade-left.sr-visible,
.sr-fade-right.sr-visible,
.sr-scale.sr-visible {
    opacity: 1;
    transform: none;
}

/* ── Staggered delay classes ── */
.sr-delay-1  { transition-delay: 0.08s; }
.sr-delay-2  { transition-delay: 0.16s; }
.sr-delay-3  { transition-delay: 0.24s; }
.sr-delay-4  { transition-delay: 0.32s; }
.sr-delay-5  { transition-delay: 0.40s; }
.sr-delay-6  { transition-delay: 0.48s; }
.sr-delay-7  { transition-delay: 0.56s; }
.sr-delay-8  { transition-delay: 0.64s; }
.sr-delay-9  { transition-delay: 0.72s; }
.sr-delay-10 { transition-delay: 0.80s; }
.sr-delay-11 { transition-delay: 0.88s; }
.sr-delay-12 { transition-delay: 0.96s; }

/* ── Section heading accent underline animate-in ── */
.sr-heading-line::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #C79B42, #F3E8CE);
    margin-top: 8px;
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.sr-visible .sr-heading-line::after,
.sr-heading-line.sr-visible::after {
    width: 64px;
}

/* ── Service Card — Premium Hover Lift ── */
.service-card {
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.38s ease;
    will-change: transform, box-shadow;
}
.service-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.22),
                0 0 0 1px rgba(199, 155, 66, 0.35),
                0 0 20px rgba(199, 155, 66, 0.15);
}
.service-card:hover .service-card-icon {
    transform: scale(1.15) rotate(-4deg);
    color: #C79B42;
}
.service-card-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                color 0.3s ease;
}

/* ── Stats card pulse animation ── */
@keyframes sr-counter-pop {
    0%   { transform: scale(0.7); opacity: 0; }
    70%  { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}
.sr-counter-pop.sr-visible {
    animation: sr-counter-pop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ── Gold shimmer line separator animation ── */
@keyframes sr-shimmer-line {
    0%   { width: 0; opacity: 0; }
    100% { width: 80px; opacity: 1; }
}
.sr-shimmer-separator.sr-visible {
    animation: sr-shimmer-line 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

/* ── Section background parallax fade ── */
.sr-section {
    opacity: 0;
    transition: opacity 0.5s ease;
}
.sr-section.sr-visible {
    opacity: 1;
}

/* ── Text word-by-word reveal effect for hero h1 ── */
@keyframes sr-word-in {
    from { opacity: 0; transform: translateY(20px); filter: blur(4px); }
    to   { opacity: 1; transform: none; filter: blur(0); }
}
.sr-word {
    display: inline-block;
    animation: none;
}
.sr-word.sr-visible {
    animation: sr-word-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Image zoom + reveal combo ── */
.sr-img-zoom {
    overflow: hidden;
    border-radius: inherit;
}
.sr-img-zoom img {
    transform: scale(1.08);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.7s ease;
}
.sr-img-zoom.sr-visible img {
    transform: scale(1);
    opacity: 1;
}

/* ── Reduce motion: honour prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
    .sr-fade-up,
    .sr-fade,
    .sr-fade-left,
    .sr-fade-right,
    .sr-scale,
    .sr-section,
    .sr-img-zoom img,
    .service-card {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ── MOBILE HORIZONTAL SCROLL FIX ─────────────────────────── */
@media (max-width: 1023px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
    * { box-sizing: border-box; }
    .animate-marquee-ltr { overflow: hidden; }
    header { overflow: visible; }
    /* Force mobile menu button visible */
    #mobile-menu-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 46px !important;
        height: 46px !important;
        background: #C79B42 !important;
        color: #fff !important;
        border: none !important;
        cursor: pointer !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }
    #mobile-menu-btn i { font-size: 20px !important; color: #fff !important; }
}

/* Desktop: hide hamburger */
@media (min-width: 1024px) {
    #mobile-menu-btn { display: none !important; }
}










































/* Mobile responsive lock */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }


/* Floating Animations for Contact Buttons */
@keyframes float-subtle-1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@keyframes float-subtle-2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.animate-float-1 {
    animation: float-subtle-1 4s ease-in-out infinite;
}
.animate-float-2 {
    animation: float-subtle-2 5s ease-in-out infinite;
}
