/* ==================================================
   Growth Consultancy - Custom Styles
   ================================================== */

/* ----- CSS Custom Properties ----- */
:root {
    /* Primary Colors */
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    
    /* Neutral Colors */
    --color-white: #ffffff;
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --color-slate-950: #020617;
    
    /* Accent Colors */
    --color-accent: #dc2626;
    --color-success: #16a34a;
    
    /* Typography */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-section: 6rem;
    --spacing-container: 1.5rem;
    
    /* Transitions */
    --transition-base: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Base Styles ----- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-slate-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ----- Typography Utilities ----- */
.font-display {
    font-family: var(--font-display);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
}

/* ----- Animation Keyframes ----- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ----- Animation Classes ----- */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ----- Focus Styles for Accessibility ----- */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ----- Form Styles ----- */
input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
}

input::placeholder,
textarea::placeholder {
    color: var(--color-slate-400);
}

/* ----- Button Hover Effects ----- */
.btn-primary {
    transition: all var(--transition-base);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ----- Card Hover Effects ----- */
.card-hover {
    transition: all var(--transition-base);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

/* ----- Icon Transitions ----- */
.icon-transition {
    transition: all var(--transition-base);
}

.group:hover .icon-transition {
    transform: translateX(4px);
}

/* ----- FAQ Accordion Styles ----- */
details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-icon {
    transition: transform var(--transition-base);
}

/* ----- Image Cover Utility ----- */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ----- Gradient Overlays ----- */
.gradient-overlay {
    background: linear-gradient(
        to right,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(15, 23, 42, 0.7) 50%,
        transparent 100%
    );
}

/* ----- Statistics Card Animation ----- */
.stat-card {
    transition: transform var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
}

/* ----- Testimonial Card Styles ----- */
.testimonial-card {
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ----- Mobile Menu Animation ----- */
.mobile-menu {
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-menu.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ----- Responsive Container Padding ----- */
@media (max-width: 640px) {
    :root {
        --spacing-section: 4rem;
        --spacing-container: 1rem;
    }
}

/* ----- Selection Styles ----- */
::selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ----- Custom Scrollbar ----- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-slate-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-slate-400);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-slate-500);
}
