/* ClearPath CSS - Off-white background with orange highlights */

:root {
    --bg-primary: #EEEEEC;      /* Main background - muted light gray */
    --bg-secondary: #E0E0DE;    /* Secondary background - darker gray */
    --color-primary: #F69200;   /* Updated orange */
    --color-accent: #D57E00;    /* Darker orange for hover */
    --text-primary: #333333;    /* Dark gray text */
    --text-secondary: #666666;  /* Medium gray text */
    --white: #F5F5F3;           /* Card background - softer off-white */
    --border: #D0D0D0;          /* Softer border */
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: var(--bg-primary);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    display: block;
    height: auto;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    width: 40px;
    height: 40px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px auto;
    transition: all 0.3s ease;
    position: relative;
}

/* Hamburger animation */
.nav-open .mobile-menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-open .mobile-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
    color: white;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero .lead {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.8);
}

.hero-actions {
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--color-primary);
    color: var(--text-primary);
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
    color: var(--text-primary);
}

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

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

/* Service Cards */
.services {
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.service-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Certifications */
.cert-badge {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

/* CTA Section */
.cta {
    background-color: var(--color-primary);
    color: var(--text-primary);
    padding: 3rem 0;
    text-align: center;
}

.cta h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta p {
    color: var(--text-primary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

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

.cta .btn:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Footer */
.site-footer {
    background-color: var(--text-primary);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-align: left;
}

.footer-section {
    text-align: left;
}

.footer-section p {
    text-align: left;
    margin: 0;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    text-align: left;
}

.footer-section a {
    color: var(--white);
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    /* Navigation */
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 20px var(--shadow);
        display: none;
        gap: 0.5rem;
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }
    
    .nav-menu a:hover {
        background-color: var(--bg-secondary);
    }
    
    /* Typography adjustments */
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .hero {
        min-height: 60vh;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Service Cards */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* Why ClearPath section */
    .why-clearpath > div > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section {
        text-align: center !important;
    }
    
    .footer-section h3 {
        text-align: center !important;
    }
    
    .footer-section p,
    .footer-section ul {
        text-align: center !important;
    }
    
    /* Container padding */
    .container {
        padding: 0 15px;
    }
    
    /* Section padding */
    .services,
    .why-clearpath,
    .cta {
        padding: 3rem 0;
    }
    
    /* Buttons */
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Logo */
    .logo img {
        max-width: 150px;
        height: auto;
    }
}

/* Small phones */
@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    
    .hero {
        min-height: 50vh;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
}

/* Form improvements for mobile */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
        width: 100%;
    }
    
    /* Touch-friendly tap targets */
    button,
    .btn,
    a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Smooth scrolling for iOS */
    * {
        -webkit-overflow-scrolling: touch;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Grid layout utilities */
.grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.grid-1-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .grid-2-1,
    .grid-1-1 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}