/* 
 * main.css
 * Global styles, design system variables, and component styles for Mentor Rajveer
 */

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

:root {
    /* Color Palette */
    --color-ink: #0a1128;           /* Deep ink/midnight navy (Primary background for dark sections) */
    --color-ink-light: #1c2541;
    --color-surface: #fdfaf6;       /* Warm ivory/soft off-white (Primary background) */
    --color-surface-soft: #f4efeb;  /* Slightly darker surface for cards/sections */
    --color-primary: #0a1128;       /* Primary text/brand color */
    --color-accent: #c68a47;        /* Restrained warm metallic/amber */
    --color-accent-hover: #b0783a;
    --color-muted: #64748b;         /* Slate/muted neutral for secondary text */
    --color-border: #e2e8f0;
    --color-success: #10b981;
    --color-white: #ffffff;
    
    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Spacing System */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 2rem;     /* 32px */
    --space-lg: 4rem;     /* 64px */
    --space-xl: 8rem;     /* 128px */
    --section-spacing-desktop: 160px;
    --section-spacing-mobile: 72px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-soft: 0 10px 40px rgba(10, 17, 40, 0.03);
    --shadow-hover: 0 20px 60px rgba(10, 17, 40, 0.08);
    
    /* Layout */
    --container-width: 1280px;
    --header-height: 100px;
    
    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-surface);
    color: var(--color-primary);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
}

p {
    font-size: 1.125rem;
    color: var(--color-muted);
    margin-bottom: var(--space-sm);
    max-width: 70ch; /* ~55-70 characters per line */
}

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

a:hover, a:focus-visible {
    color: var(--color-accent);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

ul, ol {
    list-style: none;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Layout Classes */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--section-spacing-desktop) 0;
}

.section-dark {
    background: linear-gradient(135deg, var(--color-ink) 0%, #152243 100%);
    color: var(--color-white);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
    color: var(--color-white);
}

.section-dark p {
    color: #94a3b8; /* Lighter muted for dark background */
}

.section-soft {
    background-color: var(--color-surface-soft);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-light {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-light:hover {
    background-color: var(--color-white);
    color: var(--color-ink);
}

.btn-text {
    padding: 0;
    background: transparent;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-accent);
    border-radius: 0;
    padding-bottom: 4px;
}

.btn-text:hover {
    color: var(--color-accent);
}

.section-dark .btn-text {
    color: var(--color-white);
}

.section-dark .btn-text:hover {
    color: var(--color-accent);
}

/* Eyebrow Label */
.eyebrow {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    display: block;
}

/* The Leadership Line Motif */
.leadership-line {
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: var(--space-md) 0;
    display: block;
}

.leadership-line-center {
    margin: var(--space-md) auto;
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(253, 250, 246, 0.95); /* Off-white */
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
    border-bottom: 1px solid rgba(10, 17, 40, 0.05);
}

.site-header.scrolled {
    background-color: rgba(253, 250, 246, 0.98);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-primary);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Dropdown */
.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius-sm);
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    padding: var(--space-sm) 0;
    z-index: 1001;
}

.nav-item:hover .dropdown-menu, .nav-item:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.5rem 1.5rem;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9375rem;
}

.dropdown-link:hover {
    background-color: var(--color-surface-soft);
    color: var(--color-accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1002;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    transition: all var(--transition-fast);
}

.section-dark-header.site-header:not(.scrolled) .mobile-menu-btn span {
    background-color: var(--color-white);
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 9px; }
.mobile-menu-btn span:nth-child(3) { top: 18px; }

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
    background-color: var(--color-primary);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
    background-color: var(--color-primary);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-md);
}

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

/* Footer */
.site-footer {
    background-color: var(--color-ink);
    color: var(--color-white);
    padding: var(--section-spacing-desktop) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    display: block;
    color: var(--color-white);
}

.footer-text {
    color: #94a3b8;
    margin-bottom: var(--space-md);
}

.footer-heading {
    color: var(--color-white);
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--color-white);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background-color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-md);
}

.footer-bottom-links a {
    color: #94a3b8;
}

.footer-bottom-links a:hover {
    color: var(--color-white);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-white);
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Modal Popup - Professional Light UI */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 17, 40, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #ffffff;
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    width: 95%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--color-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.modal-close:hover {
    background: #e2e8f0;
    color: var(--color-primary);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.modal-header h3 {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-size: 1.75rem;
}

.modal-header p {
    color: var(--color-muted);
    line-height: 1.5;
}

/* Modal Form Inputs */
.modal-content .form-control {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--color-primary);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.modal-content .form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(230, 184, 119, 0.2);
    outline: none;
}

.modal-content .form-label {
    font-size: 0.875rem;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.modal-content .form-group {
    margin-bottom: 1.25rem;
}

/* WhatsApp Submit Button */
.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
    transition: all var(--transition-fast);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
    background: #20b858;
}

@media (max-width: 576px) {
    .modal-content {
        padding: var(--space-lg);
    }
    .modal-header h3 {
        font-size: 1.5rem;
    }
}

/* Custom Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--color-accent);
}

.checkbox-group label {
    font-size: 0.9375rem;
    color: var(--color-muted);
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform var(--transition-fast);
}

.whatsapp-widget:hover {
    transform: scale(1.1);
    color: white;
}

.whatsapp-widget svg {
    width: 32px;
    height: 32px;
}

/* Mobile CTA Bar */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 998;
    padding: 0.75rem var(--space-sm);
    gap: 0.5rem;
}

.mobile-cta-bar .btn {
    flex: 1;
    padding: 0.75rem;
    font-size: 0.875rem;
}

/* Cards */
.card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: auto;
    border: 1px solid rgba(10, 17, 40, 0.04);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 48px;
    height: 48px;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.card-title {
    margin-bottom: var(--space-sm);
}

.card-body {
    flex: 1;
}

.card-link {
    margin-top: var(--space-md);
    align-self: flex-start;
}

/* Accordion/FAQ */
.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.5rem 0;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-fast);
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.accordion-content-inner {
    padding-bottom: 1.5rem;
    color: #333333;
    font-size: 1rem;
    line-height: 1.6;
}

.accordion-content-inner p {
    color: #333333 !important;
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Generic Slider */
.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 2rem; /* space for dots */
}

.slider-track {
    display: flex;
    align-items: stretch;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.slider-card {
    flex: 0 0 calc(100% - 20px); /* Default to 1 per row for mobile */
    min-width: 0; /* Fix flex overflow */
}

@media (min-width: 768px) {
    .slider-card {
        flex: 0 0 calc(50% - 10px); /* 2 per row for tablet */
    }
}

@media (min-width: 992px) {
    .slider-card {
        flex: 0 0 calc(33.333% - 13.333px); /* 3 per row for desktop */
    }
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-border);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.slider-dot.active {
    background-color: var(--color-accent);
}

/* Animations */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}
