/* --- CSS Variables for Theming --- */
:root {
    --bg-color: #FFFFFF;
    --text-color: #1A1A1A;
    --heading-color: #000000;
    --accent-primary: #DAA520; /* Goldenrod - A more vibrant gold */
    --accent-secondary: #B8860B; /* Darker Gold - For subtle gradient/hover */
    --section-bg: #F8F8F8; /* Slightly off-white for sections */
    --border-color: #E0E0E0; /* Lighter border for a fresher look */
    --modal-bg: #FFFFFF;
    --text-light-gray: #777777;
    --text-dark-gray: #444444;
    --gradient-start-light: #FDFDFD;
    --gradient-end-light: #F0F0F0;
}

/* --- Base Reset & Global Styles (Inspired by Tailwind's Preflight) --- */
*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: var(--border-color); /* Use theme variable */
}
html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: sans-serif; /* Default sans-serif fallback */
}
body {
    margin: 0;
    line-height: inherit;
    font-family: 'League Spartan', sans-serif; /* Primary font */
    background-color: var(--bg-color); /* Use theme variable */
    color: var(--text-color); /* Use theme variable */
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
    line-height: 1.7; /* Enhanced readability */
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth theme transition */
}
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    font-family: 'Playfair Display', serif; /* Elegant serif for headings */
    letter-spacing: 0.02em; /* Subtle letter spacing */
    color: var(--heading-color); /* Use theme variable */
}
a {
    color: inherit;
    text-decoration: inherit;
}
button {
    background-color: transparent;
    background-image: none;
    cursor: pointer;
}
ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}
input, textarea, button {
    font-family: inherit;
    font-size: 100%;
    margin: 0;
    padding: 0;
    line-height: inherit;
    color: inherit;
}
/* Focus ring reset */
:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}
:focus:not(:focus-visible) {
    outline: none;
}

/* --- Accessibility Utility --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--section-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* --- Layout & Spacing Utilities (Tailwind-like) --- */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem; /* px-4 */
}
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.grid { display: grid; }

/* Gaps */
.gap-12 { gap: 3rem; }
.gap-8 { gap: 2rem; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }

/* Padding */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }

/* Margins */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mr-2 { margin-right: 0.5rem; }

/* Sizing */
.w-full { width: 100%; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-32 { width: 8rem; }
.h-32 { height: 8rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; /* 800px */ }
.max-h-\[90vh\] { max-height: 90vh; }
.min-h-120px { min-height: 120px; } /* For textarea */

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }
.z-90 { z-index: 90; } /* Custom for mobile menu */
.z-100 { z-index: 100; } /* Custom for WhatsApp button */

/* Display & Visibility */
.hidden { display: none; }
.block { display: block; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* Borders & Corners */
.border { border-width: 1px; border-style: solid; }
.border-transparent { border-color: transparent; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.box-shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); } /* For general use */

/* Typography */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; } /* Adjusted for Playfair Display */
.tracking-wide { letter-spacing: 0.025em; }
.leading-tight { line-height: 1.25; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }

/* Backgrounds */
.bg-white { background-color: var(--bg-color); }
.bg-black { background-color: var(--heading-color); } /* Using heading color for black in dark theme */
.bg-opacity-75 { background-color: rgba(0, 0, 0, 0.75); } /* Still needs to be absolute black for modals */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-from, var(--gradient-start-light)), var(--tw-gradient-to, var(--gradient-end-light)));
}
.from-accent-primary { --tw-gradient-from: var(--accent-primary); }
.to-accent-secondary { --tw-gradient-to: var(--accent-secondary); }


/* Transitions & Animations */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.transform { transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1); }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Focus States */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--tw-ring-color); }
.focus\:ring-B8860B:focus { --tw-ring-color: var(--accent-primary); }
.focus\:border-transparent:focus { border-color: transparent; }

/* Hover States */
.hover\:border-accent-primary:hover { border-color: var(--accent-primary); }
.hover\:underline:hover { text-decoration-line: underline; }
.hover\:text-B8860B:hover { color: var(--accent-primary); }
.hover\:bg-A07A00:hover { background-color: var(--accent-secondary); }
.hover\:-translate-y-2:hover { transform: translateY(-0.5rem); }
.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
/* New Premium Button Hover Effect */
.btn-primary:hover {
    transform: translateY(-5px) scale(1.02); /* More pronounced lift and slight scale */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); /* Stronger shadow */
    background-color: var(--accent-secondary); /* Darker Gold on hover */
    background-image: linear-gradient(to bottom right, var(--accent-secondary), color-mix(in srgb, var(--accent-secondary) 80%, transparent)); /* Darker gradient on hover */
}


/* --- Responsive Media Queries for Layout (Tailwind-like) --- */
@media (min-width: 640px) { /* Small devices (sm) */
    .container { max-width: 640px; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) { /* Medium devices (md) */
    .container { max-width: 768px; }
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:w-1\/3 { width: 33.333333%; }
    .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:flex-row { flex-direction: row; }
}
@media (min-width: 1024px) { /* Large devices (lg) */
    .container { max-width: 1024px; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1280px) { /* Extra large devices (xl) */
    .container { max-width: 1280px; }
}
@media (min-width: 1536px) { /* 2xl devices */
    .container { max-width: 1536px; }
}


/* --- Existing Custom CSS Classes (adapted for theming) --- */
.section-padding {
    padding: 8rem 1.5rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-color); /* Default, overridden by sections */
}
@media (min-width: 768px) {
    .section-padding {
        padding: 10rem 4rem;
    }
}
@media (min-width: 1024px) {
    .section-padding {
        padding: 12rem 8rem;
    }
}

.header-nav {
    background-color: color-mix(in srgb, var(--bg-color) 95%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 80%, transparent);
}
.header-nav.scrolled {
    background-color: color-mix(in srgb, var(--bg-color) 99%, transparent);
    border-bottom-color: color-mix(in srgb, var(--border-color) 100%, transparent);
}

.nav-link {
    transition: color 0.3s ease, background-color 0.3s ease;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}
.nav-link:hover {
    color: var(--accent-primary);
    background-color: color-mix(in srgb, var(--heading-color) 3%, transparent);
}

.accent-primary-text { color: var(--accent-primary); }
.accent-secondary-text { color: var(--accent-secondary); }
.black-text { color: var(--heading-color); }
.dark-gray-text { color: var(--text-dark-gray); }
.medium-gray-text { color: var(--text-light-gray); }
.border-light-gray { border-color: var(--border-color); }
.bg-light-section { background-color: var(--section-bg); }

.font-light-spartan { font-weight: 300; }
.font-medium-spartan { font-weight: 500; }
.font-semibold-spartan { font-weight: 600; }
.font-bold-spartan { font-weight: 700; }

/* Animation for elements appearing on scroll */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
/* More subtle, premium fade-in-up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1.0s; }
.delay-1100 { animation-delay: 1.1s; }
.delay-1200 { animation-delay: 1.2s; }


/* Animated item for scroll-in effects */
.animated-item {
    opacity: 0; /* Default hidden state for elements that should animate in */
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animated-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* For elements that should animate immediately on load */
.hero-animated-item {
    opacity: 0;
    animation: fadeInUp 0.8s forwards ease-out; /* Use the fadeInUp for hero elements */
}
.hero-animated-item.delay-0 { animation-delay: 0s; }
.hero-animated-item.delay-1 { animation-delay: 0.3s; }
.hero-animated-item.delay-2 { animation-delay: 0.6s; }
.hero-animated-item.delay-3 { animation-delay: 0.9s; }


.pricing-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--heading-color) 8%, transparent); /* Softer shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 18px 45px color-mix(in srgb, var(--heading-color) 15%, transparent); /* More prominent shadow on hover */
}
.pricing-card-title {
    color: var(--heading-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
}
.pricing-card-price {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 1.5rem;
}
.pricing-card-price span {
    font-size: 2.5rem;
    font-weight: 500;
}
.pricing-card-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    text-align: left;
    width: 100%;
    max-width: 300px;
}
.pricing-card-list li {
    padding: 0.8rem 0;
    color: var(--text-dark-gray);
    display: flex;
    align-items: center;
    font-weight: 300;
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 50%, transparent);
}
.pricing-card-list li:last-child {
    border-bottom: none;
}
.pricing-card-list li i {
    margin-right: 0.8rem;
    color: var(--accent-primary);
    font-size: 1.35rem;
}

.team-circle-1 { background-color: var(--accent-primary); color: var(--bg-color); }
.team-circle-2 { background-color: var(--accent-secondary); color: var(--bg-color); }
.team-circle-3 { background-color: color-mix(in srgb, var(--accent-primary) 70%, transparent); color: var(--bg-color); }
.team-circle-4 { background-color: var(--border-color); color: var(--text-color); }
.team-circle-5 { background-color: color-mix(in srgb, var(--border-color) 70%, transparent); color: var(--text-color); }

.infographic-label {
    font-size: 0.95rem;
    color: var(--text-dark-gray);
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.contact-form-container {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--heading-color) 8%, transparent);
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form-input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    outline: none;
    transition: all 0.2s ease;
    color: var(--text-color);
    background-color: var(--section-bg); /* Use section-bg for input background */
}
.contact-form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-primary) 50%, transparent);
    border-color: transparent;
}
.contact-form-textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    outline: none;
    transition: all 0.2s ease;
    min-height: 120px;
    color: var(--text-color);
    background-color: var(--section-bg); /* Use section-bg for textarea background */
}
.contact-form-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-primary) 50%, transparent);
    border-color: transparent;
}
.btn-primary { /* Re-using btn-primary for contact-form-button */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--bg-color); /* Text color should contrast with button background */
    background-color: var(--accent-primary); /* Base Gold */
    background-image: linear-gradient(to bottom right, var(--accent-primary), var(--accent-secondary)); /* Subtle gradient */
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, background-image 0.3s ease, color 0.3s ease;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-primary) 30%, transparent);
    border: none; /* Ensure no default button border */
}


/* FAQ Accordion Styling */
.faq-item {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--heading-color) 5%, transparent);
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item summary {
    display: block; /* Make summary take full width */
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--heading-color);
    font-size: 1.125rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    position: relative;
    user-select: none;
    -webkit-user-select: none; /* Safari */
}
.faq-item summary:hover {
    background-color: var(--section-bg);
    color: var(--accent-primary);
}
.faq-item summary::marker, .faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker */
}
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent-primary);
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
    content: '-';
    transform: translateY(-50%) rotate(0deg); /* No rotation needed for simple minus */
}
.faq-item-content {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-dark-gray);
    font-weight: 300;
    line-height: 1.6;
}

/* Pricing Toggle Button */
.price-toggle-btn {
    background-color: var(--section-bg);
    border: 1px solid var(--border-color);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: 1rem;
}
.price-toggle-btn.active {
    background-color: var(--accent-primary);
    color: var(--bg-color);
    border-color: var(--accent-primary);
}
.price-toggle-btn:hover:not(.active) {
    background-color: color-mix(in srgb, var(--accent-primary) 20%, transparent);
    color: var(--accent-secondary);
}
.price-currency {
    display: none; /* Hidden by default */
}
.price-currency.active {
    display: block;
}

/* Adjusting header for logo alignment and theme toggle */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensure content spans the container width */
}
/* Style for the "AI" part of the logo */
.logo-ai {
    color: var(--accent-primary);
    font-weight: 600; /* Slightly bolder for AI */
    margin-left: 0.2rem;
    font-family: 'Playfair Display', serif; /* Keep the elegant serif font for AI */
}