/* ==========================================================================
   PREMIUM CA WEBSITE - CORE STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700&display=swap');

:root {
    /* Color Palette */
    --primary: #0F172A;
    --secondary: #2563EB;
    --accent: #D4AF37;
    --bg-light: #F8FAFC;
    --card-light: #FFFFFF;
    --text-light: #334155;
    --text-muted: #64748B;
    
    /* Dark Mode Overrides */
    --bg-dark: #090D16;
    --card-dark: #1E293B;
    --text-dark: #F1F5F9;
    
    /* Layout Variables */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --shadow-premium: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    --border-radius: 8px;
}

/* Base Adjustments & Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-theme {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

body.dark-theme h1, body.dark-theme h2, body.dark-theme h3, body.dark-theme h4 {
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    width: 0%;
    z-index: 1000;
}

/* Header & Sticky Navigation */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 24px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    transition: var(--transition-smooth);
}

.header-nav.sticky {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 8%;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(10px);
}

body.dark-theme .header-nav.sticky {
    background-color: rgba(9, 13, 22, 0.95);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Premium Buttons */
.btn-premium {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    border: 2px solid var(--secondary);
    background-color: var(--secondary);
    color: #ffffff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-premium:hover {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: var(--primary);
    border-color: #ffffff;
}

/* Hero Section */
.hero-viewport {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 8%;
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85)), url('../images/hero-bg.jpg') center/cover no-repeat;
    color: #ffffff;
}

.hero-content {
    max-width: 650px;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Core Structural Sections */
.section-padding {
    padding: 100px 8%;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
    margin: 10px auto 0;
}

/* Premium Component Cards Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.premium-card {
    background-color: var(--card-light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    border: 1px solid rgba(15, 23, 42, 0.03);
}

body.dark-theme .premium-card {
    background-color: var(--card-dark);
    border-color: rgba(255, 255, 255, 0.05);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
    border-color: rgba(37, 99, 243, 0.2);
}

.card-icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.premium-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Interactive Accordion Utilities */
.accordion-item {
    background-color: var(--card-light);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

body.dark-theme .accordion-item {
    background-color: var(--card-dark);
}

.accordion-trigger {
    width: 100%;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    color: inherit;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 0 30px;
}

.accordion-content p {
    padding-bottom: 24px;
    color: var(--text-muted);
}

/* Floating Utilities */
.utility-trays {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 998;
}

.btn-float {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: var(--transition-smooth);
}

.btn-float:hover {
    transform: scale(1.1);
}

.float-whatsapp { background-color: #25D366; }
.float-top { 
    background-color: var(--primary); 
    opacity: 0;
    visibility: hidden;
}
.float-top.visible {
    opacity: 1;
    visibility: visible;
}