/* ===== MAIN CSS - Base Styles for Emunah Lab Services ===== */
:root {
    /* Color Palette */
    --primary: #000000;
    --primary-dark: #000000;
    --primary-light: #1f1f1f;
    --teal: #00bf63;
    --teal-dark: #008a47;
    --teal-light: #7ef0bc;
    --gold: #ff751f;
    --dark: #111111;
    --gray: #666666;
    --gray-light: #999999;
    --light-gray: #e9ecef;
    --off-white: #f8f9fa;
    --white: #ffffff;
    --black: #000000;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    
    /* Typography */
    --font-heading: 'Jost', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Manrope', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 5rem;
    
    /* Borders & Shadows */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--teal);
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--teal-dark);
}

.text-teal {
    color: var(--teal);
}

.text-gold {
    color: var(--gold);
}

.text-white {
    color: var(--white);
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gold);
    color: var(--white);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: #e86412;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

/* Utility Bar */
.nav-utility-bar {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 0;
    font-size: 0.875rem;
    border-bottom: 2px solid var(--teal);
}

.utility-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.utility-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.utility-text i {
    color: var(--teal-light);
}

.utility-contact {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.utility-contact a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.utility-contact a:hover {
    color: var(--teal-light);
}

.social-icons {
    display: flex;
    gap: var(--space-sm);
}

.social-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-fast);
}

.social-icons a:hover {
    background: var(--teal);
    transform: translateY(-2px);
}

/* Main Navigation */
.nav-main-bar {
    padding: 1rem 0;
}

.nav-main-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo-main img {
    height: 96px;
    width: auto;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    width: 40px;
    height: 40px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 18px;
    position: relative;
}

.hamburger .bar {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--dark);
    transition: all var(--transition-medium);
}

.hamburger .bar:nth-child(1) {
    top: 0;
}

.hamburger .bar:nth-child(2) {
    top: 8px;
}

.hamburger .bar:nth-child(3) {
    top: 16px;
}

.close-icon {
    display: none;
    font-size: 1.5rem;
    color: var(--dark);
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--teal);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--dark);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0;
}

.dropdown-btn:hover {
    color: var(--teal);
}

.dropdown-btn i {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.dropdown-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.dropdown-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: var(--space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-medium);
    z-index: 100;
}

.dropdown-wrapper.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem var(--space-lg);
    color: var(--dark);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.dropdown-link:hover {
    background: var(--off-white);
    color: var(--teal);
}

.dropdown-link i {
    width: 20px;
    text-align: center;
    color: var(--teal);
}

/* ===== HERO SECTION ===== */
.hero-banner {
    padding: var(--space-xxl) 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.hero-title-line {
    display: block;
}

.highlight-pill {
    display: inline-block;
    background: var(--teal);
    padding: 0.25rem 1.5rem;
    border-radius: 50px;
    margin: 0.5rem 0;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: var(--space-lg);
    max-width: 500px;
}

.hero-values {
    display: flex;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    flex-wrap: wrap;
}

.value-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--off-white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.value-tag i {
    color: var(--teal);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.image-overlay {
    padding: 10px;
    text-align: center;
}

/* Hero Blobs */
.hero-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 191, 99, 0.14), rgba(255, 117, 31, 0.08));
    filter: blur(40px);
}

.blob-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -100px;
}

.blob-3 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ===== SECTION STYLES ===== */
section {
    padding: var(--space-xxl) 0;
}

.bg-off-white {
    background: var(--off-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== FEATURED SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: var(--space-lg);
}

.service-content h3 {
    margin-bottom: var(--space-sm);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--teal);
    font-weight: 600;
    margin-top: var(--space-md);
    text-decoration: none;
}

.service-link:hover {
    gap: 1rem;
}

.section-cta {
    text-align: center;
    margin-top: var(--space-xl);
}

/* ===== ABOUT SECTION ===== */
.about-preview {
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}

.image-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--teal);
    color: var(--white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.image-badge span {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.image-badge small {
    font-size: 0.875rem;
    opacity: 0.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--teal);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

/* ===== PAGE HERO ===== */
.page-hero {
    padding: var(--space-xxl) 0 var(--space-xl);
    background: linear-gradient(135deg, var(--primary) 0%, #1b1b1b 55%, var(--teal-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.page-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--teal-light);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb .separator {
    color: var(--teal-light);
}

.breadcrumb .current {
    color: var(--white);
    font-weight: 500;
}

.page-hero-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.page-hero-blobs .blob {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: var(--space-xxl) 0;
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    color: var(--gray);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.cta-blobs .blob {
    background: linear-gradient(135deg, rgba(0, 191, 99, 0.14), rgba(255, 117, 31, 0.08));
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--primary);
    color: var(--white);
    padding: var(--space-xxl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-col {
    margin-bottom: var(--space-lg);
}

.footer-about {
    max-width: 300px;
}

.footer-logo {
    margin-bottom: var(--space-lg);
}

.footer-logo-main img {
    height: 88px;
    width: auto;
    margin-bottom: 0;
}

.footer-subsidiary h4 {
    color: var(--white);
    margin-bottom: 0.25rem;
}

.footer-subsidiary p {
    color: var(--gray-light);
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
}

.footer-description {
    color: var(--gray-light);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.footer-contact {
    margin-bottom: var(--space-lg);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--gray-light);
    font-size: 0.875rem;
}

.footer-contact i {
    color: var(--teal);
    margin-top: 0.25rem;
}

.footer-contact a {
    color: var(--gray-light);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--teal);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--teal);
    transform: translateY(-2px);
}

.footer-heading {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--teal);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    color: var(--gray-light);
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-bottom-links a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-bottom-links a:hover {
    color: var(--teal);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .hero-text {
        order: 2;
        text-align: center;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-values {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Mobile Navigation */
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 150px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: var(--space-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-medium);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    
    .nav-link {
        display: block;
        padding: var(--space-sm) 0;
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown-btn {
        width: 100%;
        justify-content: space-between;
        padding: var(--space-sm) 0;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .dropdown-wrapper {
        position: static;
        box-shadow: none;
        padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
        opacity: 1;
        visibility: visible;
        transform: none;
        background: var(--off-white);
        border-radius: var(--border-radius);
        margin: var(--space-sm) 0;
        display: none;
    }
    
    .dropdown-wrapper.active {
        display: block;
    }
    
    /* Hide desktop-only elements */
    .desktop-only {
        display: none;
    }
    
    /* CTA buttons stack on mobile */
    .cta-buttons {
        flex-direction: column;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }

    .logo-main img {
        height: 76px;
    }

    .footer-logo-main img {
        height: 70px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-banner {
        padding: var(--space-xl) 0;
    }
    
    section {
        padding: var(--space-xl) 0;
    }
    
    .container {
        padding: 0 var(--space-sm);
    }

    .logo-main img {
        height: 66px;
    }

    .footer-logo-main img {
        height: 62px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}