/* ============================================
   HIRE INDIA - Global Stylesheet
   Brand Guidelines Compliant
   ============================================ */

/* ============================================
   CSS VARIABLES - Brand Colors & Typography
   ============================================ */
:root {
    /* Primary Colors - from Brand Guidelines */
    --primary-blue: #1E3A5F;
    --secondary-blue: #2E5A8F;
    --accent-orange: #FF9933;
    --accent-orange-dark: #FF6B35;
    
    /* Logo Colors - Three Peaks */
    --logo-teal: #1A8A82;
    --logo-teal-light: #5DDDD0;
    --logo-orange: #FF8C42;
    --logo-orange-light: #FFCC80;
    
    /* Neutrals */
    --dark-gray: #3D3D3D;
    --medium-gray: #6C757D;
    --light-gray: #F8F9FA;
    --cream: #FFFBF7;
    --white: #FFFFFF;
    
    /* Status Colors */
    --success-green: #28A745;
    --warning-yellow: #FFC107;
    --error-red: #DC3545;
    
    /* Typography - Montserrat for display, Source Sans 3 for body */
    --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(30, 58, 95, 0.08);
    --shadow-md: 0 4px 20px rgba(30, 58, 95, 0.1);
    --shadow-lg: 0 10px 40px rgba(30, 58, 95, 0.12);
    --shadow-xl: 0 20px 60px rgba(30, 58, 95, 0.15);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--dark-gray);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-blue);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    color: var(--medium-gray);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--medium-gray);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 16px 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: visible; /* Allow logo to extend below */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo - Oversized with mountain peaks extending below header */
.logo {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1001; /* Above other navbar elements */
}

.logo:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-links li {
    position: relative;
    flex-shrink: 0;
}

.nav-links a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-blue);
    transition: color 0.3s ease;
    padding: 8px 0;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

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

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 12px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.nav-dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: var(--white);
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    margin-top: 8px;
}

.nav-dropdown-content a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    color: var(--dark-gray);
    transition: all 0.2s ease;
}

.nav-dropdown-content a:hover {
    background: var(--light-gray);
    color: var(--accent-orange);
}

/* Navigation CTA Button */
.nav-cta {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-md);
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.3);
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.4);
    color: var(--white) !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 153, 51, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 153, 51, 0.4);
}

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

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

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

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

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

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

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 4px rgba(255, 153, 51, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--medium-gray);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    height: 30px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin: 0;
}

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-column ul a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-orange);
    transform: translateY(-3px);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-blue); }
.text-orange { color: var(--accent-orange); }
.text-teal { color: var(--logo-teal); }
.text-gray { color: var(--medium-gray); }
.text-white { color: var(--white); }

.bg-white { background: var(--white); }
.bg-light { background: var(--light-gray); }
.bg-cream { background: var(--cream); }
.bg-primary { background: var(--primary-blue); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 0;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links > li {
        border-bottom: 1px solid #eee;
    }
    
    .nav-links > li:last-child {
        border-bottom: none;
    }
    
    .nav-links > li > a {
        display: block;
        padding: 12px 0;
        font-weight: 600;
    }
    
    /* Make dropdown toggle area larger and more obvious on mobile */
    .nav-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }
    
    .nav-dropdown > a::after {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid currentColor;
        margin-left: 8px;
        transition: transform 0.2s;
    }
    
    .nav-dropdown.open > a::after {
        transform: rotate(180deg);
    }
    
    .nav-dropdown-content {
        display: none !important;
        position: static;
        transform: none;
        box-shadow: none;
        background: var(--light-gray);
        margin: 0;
        padding: 8px 0;
        border-radius: var(--radius-sm);
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .nav-dropdown.open .nav-dropdown-content {
        display: block !important;
    }
    
    .nav-dropdown:hover .nav-dropdown-content {
        display: none !important;
    }
    
    .nav-dropdown.open:hover .nav-dropdown-content {
        display: block !important;
    }
    
    .nav-dropdown-content a {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .nav-dropdown-content::before {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-cta {
        margin-top: 8px;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Footer mobile fix - override inline styles */
@media (max-width: 768px) {
    .footer .container > div:first-child {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
    }
    .footer .container > div:first-child > div:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer .container > div:first-child {
        grid-template-columns: 1fr !important;
    }
    .footer .container > div:first-child > div {
        text-align: center;
    }
    .footer .container > div:last-child {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }
}
