/* ==========================================================================
   Base Theme Variables (Injected dynamically via HTML head)
   These provide fallbacks for the IDE preview
   ========================================================================== */
:root {
    --background: #09090b;
    --foreground: #fafafa;
    --primary: #fafafa;
    --primary-foreground: #18181b;
    --card: #09090b;
    --card-foreground: #fafafa;
    --muted: #27272a;
    --muted-foreground: #a1a1aa;
    --accent: #27272a;
    --accent-foreground: #fafafa;
    --border: #27272a;
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-scale: 8px;
    --spacing-scale: 1;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    background-color: var(--background);
    color: var(--foreground);
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 16px;
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--foreground); }
p { color: var(--muted-foreground); margin-bottom: calc(1rem * var(--spacing-scale)); }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }

/* Layout & Spacing */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: calc(5rem * var(--spacing-scale)) 1.5rem; }
.bg-alt { background-color: rgba(0, 0, 0, 0.2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.accent-line { width: 3rem; height: 0.25rem; background-color: var(--primary); border-radius: 99px; margin: 0 auto; }

/* ==========================================================================
   Buttons (Randomized Variants)
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.875rem; font-weight: 600; cursor: pointer;
    height: 2.5rem; padding: 0 1rem; border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}
.btn-lg { height: 3.5rem; padding: 0 2rem; font-size: 1.125rem; }
.btn-block { width: 100%; }

/* Default Primary */
.btn-primary { background-color: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }

/* Default Outline */
.btn-outline { background-color: transparent; border-color: var(--border); color: var(--foreground); }
.btn-outline:hover { background-color: var(--accent); color: var(--accent-foreground); }

/* Button Styles Variants */
.btn-rounded { border-radius: 6px; }
.btn-sharp { border-radius: 0; }
.btn-pill { border-radius: 9999px; }
.btn-ghost-bordered { background: transparent; border: 2px solid var(--primary); color: var(--primary); border-radius: var(--radius-scale); }
.btn-ghost-bordered:hover { background: var(--primary); color: var(--primary-foreground); }

/* ==========================================================================
   Navigation Header (Randomized Variants)
   ========================================================================== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    height: 4.5rem; transition: all 0.3s ease;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { font-size: 1.25rem; font-weight: 700; font-family: var(--font-heading); }
.logo-highlight { color: var(--primary); }
.logo-text { color: var(--foreground); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) { font-size: 0.9rem; font-weight: 500; color: var(--muted-foreground); transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--foreground); }
.mobile-menu-toggle { display: none; background: none; border: none; color: var(--foreground); cursor: pointer; }

/* Nav Variants */
.nav-fixed-top .header { background-color: var(--background); border-bottom: 1px solid var(--border); }
.nav-sticky-minimal .header { background: rgba(var(--background-rgb), 0.8); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-transparent .header { background: transparent; border-bottom: none; }
.nav-transparent .header.scrolled { background-color: var(--background); border-bottom: 1px solid var(--border); }

.mobile-nav {
    position: fixed; top: 4.5rem; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--border);
    display: none; flex-direction: column; padding: 1.5rem; z-index: 40; box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 1rem 0; border-bottom: 1px solid var(--border); font-weight: 500; }
.mobile-nav a.btn { margin-top: 1rem; border: none; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-toggle { display: block; }
}

/* ==========================================================================
   Hero Section (Randomized Variants)
   ========================================================================== */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 4.5rem; overflow: hidden; position: relative; }
.hero-content { display: grid; gap: 4rem; align-items: center; position: relative; z-index: 10; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1.5rem; color: var(--foreground); line-height: 1.1; }
.hero-subtitle { font-size: 1.25rem; color: var(--muted-foreground); margin-bottom: 2.5rem; max-width: 600px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image-wrapper { position: relative; overflow: hidden; border-radius: var(--radius-scale); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }
.hero-image { width: 100%; height: 100%; object-fit: cover; }

/* Hero Layout Archetypes */
.theme-hero-split .hero-content { grid-template-columns: 1fr 1fr; }
.theme-hero-center .hero-content { grid-template-columns: 1fr; text-align: center; max-width: 800px; margin: 0 auto; }
.theme-hero-center .hero-cta { justify-content: center; }
.theme-hero-center .hero-subtitle { margin-left: auto; margin-right: auto; }
.theme-hero-right .hero-content { grid-template-columns: 1fr 1.2fr; direction: rtl; }
.theme-hero-right .hero-text { direction: ltr; }
.theme-stacked .hero-content { grid-template-columns: 1fr; text-align: center; }
.theme-stacked .hero-image-wrapper { max-height: 500px; max-width: 1000px; margin: 0 auto; }
.theme-asymmetric .hero-content { grid-template-columns: 5fr 7fr; gap: 2rem; }

@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr !important; text-align: center !important; direction: ltr !important; }
    .hero-cta { justify-content: center !important; }
    .hero-subtitle { margin-left: auto !important; margin-right: auto !important; }
}

/* Hero Visual Styles */
.hero-gradient-bg { background: radial-gradient(circle at top right, var(--muted), transparent 60%); }
.hero-image-overlay .hero-image-wrapper::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, var(--background) 0%, transparent 100%); }
.hero-minimal .hero-image-wrapper { box-shadow: none; border: 1px solid var(--border); }
.hero-diagonal { position: relative; }
.hero-diagonal::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 20%; background: var(--muted); transform: skewY(-3deg); transform-origin: top left; z-index: 0; }

/* ==========================================================================
   Sections & Cards (Randomized Variants)
   ========================================================================== */
.section-header { text-align: center; margin-bottom: calc(4rem * var(--spacing-scale)); }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }

/* About Section */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.about-content { font-size: 1.125rem; line-height: 1.8; }
.trust-badges { display: flex; flex-direction: column; gap: 1.5rem; }
.trust-card { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.trust-card i { color: var(--primary); width: 2rem; height: 2rem; }
.trust-card h3 { font-size: 1.125rem; margin: 0; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: calc(2rem * var(--spacing-scale)); }
.service-card { padding: 2rem; display: flex; flex-direction: column; height: 100%; }
.service-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; background-color: var(--muted); color: var(--primary); margin-bottom: 1.5rem; }
.service-card h3 { font-size: 1.35rem; margin-bottom: 1rem; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: calc(2rem * var(--spacing-scale)); }
.testimonial-card { padding: 2.5rem; display: flex; flex-direction: column; height: 100%; }
.stars { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; color: #fbbf24; }
.stars i { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.testimonial-content { font-size: 1.125rem; font-style: italic; flex-grow: 1; margin-bottom: 2rem; color: var(--foreground); }
.testimonial-author strong { display: block; font-size: 1.1rem; }
.testimonial-author span { font-size: 0.9rem; color: var(--muted-foreground); }

/* Card Styles */
.card-bordered { border: 1px solid var(--border); background: transparent; border-radius: var(--radius-scale); }
.card-elevated { background: var(--card); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5); border-radius: var(--radius-scale); border: 1px solid rgba(255,255,255,0.02); }
.card-glass { background: rgba(255,255,255,0.03); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius-scale); }
.card-minimal { background: var(--muted); border-radius: var(--radius-scale); }
.card-outlined { border: 2px solid var(--border); background: transparent; border-radius: var(--radius-scale); }
.card-gradient-border { position: relative; background: var(--card); border-radius: var(--radius-scale); z-index: 1; }
.card-gradient-border::before { content: ''; position: absolute; inset: -2px; border-radius: calc(var(--radius-scale) + 2px); background: linear-gradient(45deg, var(--border), var(--primary)); z-index: -1; opacity: 0.3; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--card); border-radius: var(--radius-scale); overflow: hidden; }
.faq-question { padding: 1.5rem; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question h3 { font-size: 1.125rem; margin: 0; }
.faq-icon { color: var(--muted-foreground); transition: transform 0.2s; }
details[open] .faq-icon { transform: rotate(180deg); color: var(--primary); }
.faq-answer { padding: 0 1.5rem 1.5rem; color: var(--muted-foreground); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding: 4rem; }
@media (max-width: 992px) { .contact-grid { grid-template-columns: 1fr; padding: 2rem; } }
.contact-info h2 { font-size: 2.25rem; margin-bottom: 1rem; }
.social-links { margin-top: 2rem; border-left: 3px solid var(--primary); padding-left: 1.5rem; font-style: normal; }
.location-info { margin-top: 1rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea { width: 100%; background: var(--background); border: 1px solid var(--border); border-radius: 4px; padding: 0.75rem 1rem; color: var(--foreground); font-family: inherit; font-size: 1rem; transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }

/* ==========================================================================
   Footer (Randomized Variants)
   ========================================================================== */
.footer { border-top: 1px solid var(--border); }
.footer-minimal { text-align: center; }
.footer-minimal .footer-content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; margin-bottom: 3rem; }
.footer-multi-column .footer-content { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-dark-band { background: #000; border-top: none; }
.footer-dark-band .footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; flex-wrap: wrap; gap: 2rem; }

.footer-brand h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--foreground); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted-foreground); font-weight: 500; }
.footer-links a:hover { color: var(--foreground); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 2rem; text-align: center; font-size: 0.9rem; color: var(--muted-foreground); }

/* ==========================================================================
   Animations (Scroll Observer driven)
   ========================================================================== */
.anim-fade-up .animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.anim-fade-up .animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

.anim-slide-in .animate-on-scroll { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.anim-slide-in .animate-on-scroll.is-visible { opacity: 1; transform: translateX(0); }

.anim-blur-in .animate-on-scroll { opacity: 0; filter: blur(10px); transition: opacity 0.8s ease, filter 0.8s ease; }
.anim-blur-in .animate-on-scroll.is-visible { opacity: 1; filter: blur(0); }

/* Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
