/* ==========================================================================
   Miraana Design System - main.css
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: #E63946;          /* Red from logo */
    --primary-hover: #C52B37;
    --primary-rgb: 230, 57, 70;
    
    --bg-dark: #202020;          /* Deep dark background */
    --bg-charcoal: #2D2D2D;      /* Standard brand background */
    --surface: #3A3A3A;          /* Surface card background */
    --surface-light: #4A4A4A;    /* Lighter surface */
    
    --accent: #F5F5F5;           /* Off-white */
    --accent-dark: #CCCCCC;
    --text-heading: #FFFFFF;
    
    --success: #2A9D8F;          /* Muted teal success */
    --warning: #F4A261;          /* Warm orange warning */
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Glassmorphism & Borders */
    --glass-bg: rgba(58, 58, 58, 0.65);
    --glass-bg-hover: rgba(74, 74, 74, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-focus: rgba(230, 57, 70, 0.5);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Shadows & Glows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
    --glow-primary: 0 0 20px rgba(230, 57, 70, 0.4);
    --glow-primary-strong: 0 0 30px rgba(230, 57, 70, 0.65);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-charcoal);
    color: var(--accent);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Override inline padding-top for navbar height change */
main[style*="padding-top: 80px"] {
    padding-top: 65px !important;
}


/* Typography Presets */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin-bottom: 1rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--accent-dark);
    margin-bottom: 1.25rem;
    font-weight: 300;
}

p.lead {
    font-size: 1.15rem;
    line-height: 1.8;
}

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

a:hover {
    color: var(--primary);
}

ul, ol {
    list-style: none;
}

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

/* Core Layout Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

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

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-white { color: #FFFFFF; }
.text-muted { color: var(--accent-dark); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.align-center { align-items: center; }

.grid {
    display: grid;
    gap: 30px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
}

.gap-sm { gap: 15px; }
.gap-md { gap: 30px; }
.gap-lg { gap: 50px; }

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--surface-light);
    border-radius: var(--radius-full);
}

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

/* Glass panel base */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.glass-panel:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Light Theme variables and overrides
   ========================================================================== */
.light-theme {
    --bg-dark: #ECECEC;           /* Crisp light off-white background */
    --bg-charcoal: #F5F5F5;       /* Main light background */
    --surface: #FFFFFF;           /* Pure white card backgrounds */
    --surface-light: #EBEBEB;     /* Slightly darker light gray */
    
    --accent: #202020;            /* Dark slate body text */
    --accent-dark: #4A4A4A;       /* Secondary details text */
    --text-heading: #111111;      /* Dark headings */
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-hover: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.08);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Custom Overrides for Light Theme Components */
.light-theme .header {
    background: rgba(245, 245, 245, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.light-theme .header.scrolled {
    background: rgba(245, 245, 245, 0.98);
}

.light-theme .logo {
    color: #111111;
}

.light-theme .logo span {
    background: linear-gradient(135deg, #111111 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.light-theme .nav-link {
    color: #555555;
}

.light-theme .nav-link:hover {
    color: #111111;
}

.light-theme .lang-btn {
    color: #111111;
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

.light-theme .lang-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.light-theme .hamburger span {
    background-color: #111111;
}

.light-theme .quote-service-card {
    background: rgba(0, 0, 0, 0.02);
}

.light-theme .quote-service-card:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}

.light-theme .glass-panel:hover {
    border-color: rgba(0, 0, 0, 0.12);
}

.light-theme .faq-header {
    color: #111111;
}

.light-theme .card h3 {
    color: #111111;
}

.light-theme input,
.light-theme textarea,
.light-theme select {
    background: #FFFFFF !important;
    color: #202020 !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

.light-theme input::placeholder,
.light-theme textarea::placeholder {
    color: #888888 !important;
}

/* Premium Inline Header Theme Toggle Button */
.theme-toggle-btn {
    position: relative;
    background: linear-gradient(135deg, #F6E7C1 0%, #D4AF37 100%);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    outline: none;
    padding: 0;
}

.theme-toggle-btn::before {
    content: '';
    position: absolute;
    top: 1.5px;
    left: 1.5px;
    right: 1.5px;
    bottom: 1.5px;
    background: var(--surface);
    border-radius: 50%;
    z-index: 1;
    transition: all var(--transition-normal);
}

.theme-toggle-btn:hover {
    transform: scale(1.08) rotate(15deg);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.45);
}

.theme-toggle-btn:hover::before {
    background: rgba(212, 175, 55, 0.05); /* Subtle inner golden glow overlay */
}

.theme-toggle-btn svg {
    position: relative;
    z-index: 2;
    width: 16px;
    height: 16px;
    transition: all var(--transition-normal);
}

/* Dark mode: show sun (invite to switch to light) */
.theme-toggle-btn .icon-sun  { display: block; fill: #D4AF37; }
.theme-toggle-btn .icon-moon { display: none;  fill: #8899bb; }

/* Light mode: show moon (invite to switch to dark) */
.light-theme .theme-toggle-btn .icon-sun  { display: none;  }
.light-theme .theme-toggle-btn .icon-moon { display: block; }

.theme-toggle-btn svg path {
    fill: inherit;
}

.theme-toggle-btn:hover svg {
    filter: drop-shadow(0 0 5px rgba(246, 231, 193, 0.95));
}

/* Luxurious pale champagne-gold radial gradient background for the light theme */
body.light-theme {
    background: radial-gradient(circle at top right, rgba(246, 231, 193, 0.35), transparent 60%), 
                radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.15), transparent 50%), 
                #F8F9FA !important;
}

/* ==========================================================================
   Light Theme Components Overrides
   ========================================================================== */
.light-theme .btn-secondary {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #202020;
}

.light-theme .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.hero-slider .btn-secondary {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
}

.hero-slider .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
}

.light-theme .footer,
.light-theme .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   Industry-Grade Component Additions
   ========================================================================== */

/* 1. Trust & Compliance Badges Strip */
.trust-strip {
    background: #1A1A1A;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .trust-grid { grid-template-columns: 1fr; } }

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.trust-badge-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    background: rgba(230, 57, 70, 0.15);
}
.trust-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(230, 57, 70, 0.2);
    border: 1px solid rgba(230, 57, 70, 0.4);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.trust-badge-text h5 {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF !important;
    margin-bottom: 3px;
    letter-spacing: 0.01em;
}
.trust-badge-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0;
    line-height: 1.3;
    font-weight: 400;
}

/* 2. Client & Partner Logos Bar */
.partners-bar {
    padding: 36px 0 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 36px;
}
.partner-section-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.partners-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}
.partner-logo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 13.5px;
    color: #FFFFFF;
    letter-spacing: 0.3px;
    transition: all var(--transition-fast);
}
.partner-logo-item:hover {
    color: #FFFFFF;
    border-color: var(--primary);
    background: rgba(230, 57, 70, 0.2);
}
.partner-logo-item span.partner-icon {
    font-size: 18px;
}

/* Light Theme Overrides for High Contrast */
.light-theme .trust-strip,
body.light-theme .trust-strip {
    background: #1E293B;
    border-top-color: #334155;
    border-bottom-color: #334155;
}
.light-theme .partners-bar,
body.light-theme .partners-bar {
    border-top-color: rgba(0, 0, 0, 0.12);
}
.light-theme .partner-section-label,
body.light-theme .partner-section-label {
    color: #1E293B;
    font-weight: 800;
}
.light-theme .partner-logo-item,
body.light-theme .partner-logo-item {
    background: rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.2);
    color: #0F172A;
    font-weight: 700;
}
.light-theme .partner-logo-item:hover,
body.light-theme .partner-logo-item:hover {
    background: rgba(230, 57, 70, 0.12);
    border-color: var(--primary);
    color: var(--primary);
}
.light-theme .stat-label,
body.light-theme .stat-label {
    color: #1E293B !important;
    font-weight: 700 !important;
}

/* 4. Collapsible Accordion FAQ */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}
.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.faq-item:hover,
.faq-item.active {
    border-color: rgba(230, 57, 70, 0.35);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    color: var(--text-heading);
    font-family: var(--font-heading);
    font-size: 15.5px;
    font-weight: 700;
}
.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: transform var(--transition-normal), background var(--transition-fast);
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: var(--primary);
    color: #fff;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    padding: 0 24px;
    color: var(--accent-dark);
    font-size: 14px;
    line-height: 1.6;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px 24px;
}

