/* =========================================
   VARIABLES & DESIGN TOKENS
   ========================================= */
   :root {
    /* Colors */
    --color-primary: #0C1E3A; /* Deep Navy Blue */
    --color-primary-light: #1A3054;
    --color-secondary: #D4AF37; /* Subtle Gold Accent */
    --color-secondary-hover: #C5A028;
    --color-text-main: #2D3748; /* Dark Gray for readability, avoiding pure black for text */
    --color-text-muted: #4A5568;
    --color-text-light: #FFFFFF;
    --color-bg-main: #FFFFFF;
    --color-bg-light: #F8F9FA; /* Light Gray */
    --color-border: #E2E8F0;
    --color-whatsapp: #25D366;
    --color-whatsapp-hover: #1EBE5D;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Borders & Shadows */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --shadow-sm: 0 2px 4px rgba(12, 30, 58, 0.05);
    --shadow-md: 0 4px 12px rgba(12, 30, 58, 0.08);
    --shadow-lg: 0 10px 24px rgba(12, 30, 58, 0.12);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base size */
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.section-padding {
    padding: var(--space-lg) 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.text-center {
    text-align: center;
}

/* =========================================
   TYPOGRAPHY UTILITIES
   ========================================= */
.section-subtitle {
    display: block;
    color: var(--color-secondary);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.section-title {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    min-height: 44px; /* Touch target size */
    border: none;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: var(--color-secondary-hover);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: var(--color-text-light);
}

.btn-whatsapp:hover {
    background-color: var(--color-whatsapp-hover);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.logo span {
    color: var(--color-secondary);
}

.nav-menu {
    display: none; /* Hidden on mobile */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions .btn-outline {
    display: none; /* Hidden on mobile */
}

.mobile-menu-btn {
    background: transparent;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg-main);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform var(--transition-base);
}

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

.close-menu-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: var(--color-primary);
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    padding-top: 100px; /* Account for sticky header */
    padding-bottom: var(--space-lg);
    background-color: var(--color-bg-light);
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-subtitle {
    color: var(--color-secondary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0;
}

.hero-text {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.hero-image-wrapper {
    width: 100%;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.about-features {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 500;
}

.about-features svg {
    color: var(--color-secondary);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-box {
    background: var(--color-bg-main);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background-color: var(--color-bg-main);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.1); /* Light Gold BG */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-desc {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

/* =========================================
   WHY US SECTION
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.feature-item p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.testimonial-card {
    background-color: var(--color-bg-light);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
}

.stars {
    color: var(--color-secondary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
}

.testimonial-author h4 {
    margin-bottom: 0;
    font-size: 1rem;
    font-family: var(--font-body);
}

.testimonial-author span {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: var(--space-xl) var(--space-sm);
}

.cta-section h2 {
    color: var(--color-text-light);
    font-size: 2rem;
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.125rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-details svg {
    color: var(--color-secondary);
    margin-top: 2px;
}

.contact-details strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.contact-details a, .contact-details span {
    color: var(--color-text-muted);
}

.contact-details a:hover {
    color: var(--color-secondary);
}

.contact-form-wrapper {
    background-color: var(--color-bg-light);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding-top: var(--space-lg);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: var(--space-lg);
}

.logo-footer {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
}

.logo-footer span {
    color: var(--color-secondary);
}

.footer-brand p {
    opacity: 0.8;
    font-size: 0.9375rem;
}

.footer h4 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* =========================================
   FLOATING WHATSAPP
   ========================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--color-whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: transform var(--transition-fast);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

/* =========================================
   MEDIA QUERIES (DESKTOP)
   ========================================= */
@media (min-width: 768px) {
    .section-padding {
        padding: var(--space-xl) 0;
    }

    .section-title {
        font-size: 2.5rem;
    }

    /* Header */
    .nav-menu {
        display: block;
    }
    
    .nav-menu ul {
        display: flex;
        gap: 2rem;
    }

    .nav-menu a {
        color: var(--color-text-main);
        font-weight: 500;
    }

    .nav-menu a:hover {
        color: var(--color-secondary);
    }

    .header-actions .btn-outline {
        display: inline-flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    /* Hero */
    .hero-container {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }

    .hero-content {
        flex: 1;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .hero-image-wrapper {
        flex: 1;
    }

    /* About */
    .about-container {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }
    
    .about-text {
        flex: 1;
    }
    
    .about-stats {
        flex: 1;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Why Us */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* CTA */
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }

    /* Contact */
    .contact-container {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    /* Services */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================
   INTERNAL PAGES & FORMS
   ========================================= */
.page-header {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 120px 0 60px 0;
}
.page-header .section-subtitle {
    color: var(--color-secondary);
}
.page-header .hero-title {
    color: var(--color-text-light);
}

/* Form Styles */
.form-fieldset {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    background-color: var(--color-bg-light);
}

.form-fieldset legend {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-primary);
    padding: 0 1rem;
    font-weight: 600;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.half-width {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 250px;
}

.third-width {
    flex: 1 1 calc(33.333% - 1rem);
    min-width: 150px;
}

.error-msg {
    display: none;
    color: #E53E3E;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #E53E3E;
    background-color: #FFF5F5;
}

.form-group.has-error .error-msg {
    display: block;
}

/* Service Details */
.service-detail h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
.service-detail p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}
.service-detail ul {
    margin-bottom: 2rem;
}

/* =========================================
   PREMIUM ANIMATIONS
   ========================================= */

/* --- 1. Keyframes --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pulse-whatsapp {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70%  { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- 2. Hero fade-in stagger --- */
.hero-subtitle {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.1s;
}

.hero-title {
    opacity: 0;
    animation: fadeInUp 0.7s ease forwards;
    animation-delay: 0.25s;
}

.hero-text {
    opacity: 0;
    animation: fadeInUp 0.7s ease forwards;
    animation-delay: 0.4s;
}

.hero-buttons {
    opacity: 0;
    animation: fadeInUp 0.7s ease forwards;
    animation-delay: 0.55s;
}

.hero-image-wrapper {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.3s;
}

/* --- 3. Scroll-reveal base class --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger delay helpers */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- 4. Improved button hover transitions --- */
.btn {
    transition: background-color 0.25s ease,
                color 0.25s ease,
                transform 0.25s ease,
                box-shadow 0.25s ease,
                filter 0.25s ease;
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary:hover {
    filter: brightness(1.05);
}

/* --- 5. Service card elevation --- */
.service-card {
    transition: transform 0.3s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    will-change: transform;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(12, 30, 58, 0.14);
}

/* --- 6. Testimonial cards hover --- */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* --- 7. Nav underline hover effect --- */
.nav-menu a {
    position: relative;
    padding-bottom: 4px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* --- 8. Mobile nav overlay smooth transition --- */
.mobile-nav-overlay {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease;
    opacity: 0;
}

.mobile-nav-overlay.active {
    opacity: 1;
}

/* --- 9. Form focus premium glow --- */
.form-group input,
.form-group select,
.form-group textarea {
    transition: border-color 0.25s ease,
                box-shadow 0.25s ease,
                background-color 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    outline: none;
}

/* --- 10. WhatsApp floating button pulse --- */
.floating-whatsapp {
    animation: pulse-whatsapp 3s ease-in-out infinite;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.12);
    animation: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

/* --- 11. Respect prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
