/* Corporate Theme Styles - Hunter Green, Black, and White */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --hunter-green: #2d5016;
    --dark-hunter-green: #1a3009;
    --light-hunter-green: #3d6b1f;
    --accent-green: #4a7c2c;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --medium-gray: #333333;
    --light-gray: #666666;
    --white: #ffffff;
    --off-white: #f5f5f5;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--medium-gray);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--black);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .1rem .1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo .logo {
    width: 50px;
    height: 50px;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--hunter-green);
    letter-spacing: -0.5px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--medium-gray);
    font-weight: 600;
    font-size: 0.75rem;
    transition: var(--transition);
    position: relative;
    padding: .0rem .0rem;
    border-radius: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--hunter-green);
    background: var(--off-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--hunter-green);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--hunter-green);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Page Sections
   ---------------------------------------------------------------
   Sections are VISIBLE by default. They are only hidden once
   corporate-script.js has started and added `js-router` to <html>.
   If the script is blocked, 404s, or throws on startup, the site
   degrades into one long scrolling page with all content readable
   instead of a blank screen. */
.page {
    min-height: 100vh;
    padding: 120px 20px 80px;
}

.js-router .page {
    display: none;
}

.js-router .page.active {
    display: block;
    animation: fadeInUp 0.6s ease;
}

/* Without the router, sections need a visible boundary. */
html:not(.js-router) .page + .page {
    border-top: 1px solid #e6e6e6;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.page-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--hunter-green);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.page-header h2 {
    font-size: 2.8rem;
    color: var(--black);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--light-gray);
    font-weight: 400;
}

/* Home Page */
.hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: var(--hunter-green);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--hunter-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

.btn-primary:hover {
    background: var(--dark-hunter-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
}

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

.btn-secondary:hover {
    background: var(--hunter-green);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    border: 2px solid var(--off-white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--hunter-green);
}

.stat:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--hunter-green);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--hunter-green);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.stat p {
    color: var(--light-gray);
    font-weight: 600;
    font-size: 0.95rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.features-billboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-billboard {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--off-white);
    position: relative;
    overflow: hidden;
}

.feature-billboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--hunter-green);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-billboard:hover::before {
    transform: scaleX(1);
}

.feature-billboard:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--hunter-green);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--hunter-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}
.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--off-white);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--hunter-green);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--hunter-green);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--hunter-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    color: var(--black);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--light-gray);
    line-height: 1.7;
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.about-text h3 {
    color: var(--hunter-green);
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-size: 1.5rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--light-gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.values-list {
    list-style: none;
    padding-left: 0;
}

.values-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: var(--light-gray);
    line-height: 1.7;
}

.values-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--hunter-green);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    background: var(--off-white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    color: var(--light-gray);
    border: 2px solid var(--hunter-green);
    width: 100%;
}

.image-placeholder i {
    margin-bottom: 1rem;
    color: var(--hunter-green);
}

.certifications {
    background: var(--off-white);
    padding: 3rem;
    border-radius: 12px;
    border: 2px solid var(--hunter-green);
}

.certifications h3 {
    color: var(--hunter-green);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 2rem;
}

.cert-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.cert-item i {
    font-size: 2.5rem;
    color: var(--hunter-green);
    margin-bottom: 1rem;
}

.cert-item p {
    color: var(--light-gray);
    font-weight: 600;
}

/* Services Page */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--off-white);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--hunter-green);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--hunter-green);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--hunter-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.service-card h3 {
    color: var(--black);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-card ul {
    list-style: none;
    margin-top: 1rem;
}

.service-card li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--light-gray);
}

.service-card li::before {
    content: '→';
    color: var(--hunter-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Contact Page */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 2px solid var(--off-white);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--hunter-green);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--hunter-green);
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--black);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-card p {
    color: var(--light-gray);
    line-height: 1.6;
}

.contact-form-section {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 2px solid var(--off-white);
}

.contact-form-section h3 {
    color: var(--hunter-green);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--black);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px;
    border: 2px solid var(--off-white);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--medium-gray);
    font-family: 'Open Sans', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--hunter-green);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 100px 15px 50px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .page-header h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Methodology Page */
.methodology-overview {
    background: var(--off-white);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border: 2px solid var(--hunter-green);
}

.methodology-overview h3 {
    color: var(--hunter-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.methodology-overview p {
    color: var(--light-gray);
    line-height: 1.8;
}

.knowledge-areas h3 {
    color: var(--hunter-green);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
}

.ka-grid {
    display: grid;
    gap: 1rem;
}

.ka-item {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid var(--off-white);
}

.ka-item:hover {
    border-color: var(--hunter-green);
}

.ka-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    background: var(--off-white);
    transition: var(--transition);
}

.ka-header:hover {
    background: var(--white);
}

.ka-header i:first-child {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--hunter-green);
}

.ka-header h4 {
    flex: 1;
    margin: 0;
    color: var(--black);
    font-size: 1.1rem;
}

.toggle-icon {
    transition: var(--transition);
    color: var(--hunter-green);
}

.ka-item.active .toggle-icon {
    transform: rotate(180deg);
}

.ka-details {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--white);
}

.ka-item.active .ka-details {
    padding: 1.5rem;
    max-height: 500px;
}

.ka-details p {
    color: var(--light-gray);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.ka-details ul {
    list-style: none;
    margin-top: 1rem;
}

.ka-details li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--light-gray);
}

.ka-details li::before {
    content: '→';
    color: var(--hunter-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Team Page */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
}

.team-member {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--off-white);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--hunter-green);
}

.member-photo {
    width: 120px;
    height: 120px;
    background: var(--off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--light-gray);
    border: 3px solid var(--hunter-green);
    transition: var(--transition);
}

.team-member:hover .member-photo {
    transform: scale(1.05);
}

.team-member h3 {
    color: var(--black);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.title {
    font-weight: 600;
    color: var(--light-gray);
    margin-bottom: 0.5rem;
}

.credentials {
    color: var(--hunter-green);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.bio {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--light-gray);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--hunter-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--dark-hunter-green);
    transform: translateY(-2px);
}

/* Portfolio Page */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--hunter-green);
    background: transparent;
    color: var(--hunter-green);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--hunter-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid var(--off-white);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--hunter-green);
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-image {
    height: 200px;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--hunter-green), var(--accent-green));
    opacity: 0.1;
}

.portfolio-image i {
    font-size: 3rem;
    color: var(--hunter-green);
    z-index: 1;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    color: var(--black);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.client {
    color: var(--hunter-green);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.description {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--light-gray);
}

.project-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--hunter-green);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Resources Page */
.resource-categories {
    max-width: 900px;
    margin: 0 auto;
}

.resource-category {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 2px solid var(--off-white);
}

.category-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    background: var(--off-white);
    transition: var(--transition);
}

.category-header:hover {
    background: var(--white);
}

.category-header i:first-child {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--hunter-green);
}

.category-header h3 {
    flex: 1;
    margin: 0;
    color: var(--black);
    font-size: 1.2rem;
}

.category-header i:last-child {
    transition: var(--transition);
    color: var(--hunter-green);
}

.resource-category.active .category-header i:last-child {
    transform: rotate(180deg);
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.resource-category.active .category-content {
    max-height: 1000px;
}

.resource-list {
    padding: 1.5rem;
}

.resource-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--off-white);
    gap: 1.5rem;
}

.resource-item:last-child {
    border-bottom: none;
}

.resource-item i {
    font-size: 2rem;
    color: var(--hunter-green);
    min-width: 40px;
}

.resource-info {
    flex: 1;
}

.resource-info h4 {
    color: var(--black);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.resource-info p {
    color: var(--light-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Training Page */
.training-intro {
    background: var(--off-white);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    text-align: center;
    border: 2px solid var(--hunter-green);
}

.training-intro h3 {
    color: var(--hunter-green);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.training-intro p {
    color: var(--light-gray);
    line-height: 1.8;
}

.training-programs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.program-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 2px solid var(--off-white);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--hunter-green);
}

.program-card.featured {
    border: 3px solid var(--hunter-green);
    box-shadow: 0 0 20px rgba(45, 80, 22, 0.2);
}

.program-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--hunter-green);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.program-header {
    background: var(--off-white);
    padding: 2.5rem;
    text-align: center;
}

.program-header h3 {
    color: var(--black);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.program-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--hunter-green);
}

.program-details {
    padding: 2rem;
}

.program-details p {
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.program-features {
    list-style: none;
    margin: 1.5rem 0;
}

.program-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--light-gray);
}

.program-features i {
    color: var(--hunter-green);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.program-schedule {
    background: var(--off-white);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.program-schedule p {
    color: var(--light-gray);
    margin-bottom: 0.5rem;
}

.program-schedule p:last-child {
    margin-bottom: 0;
}

/* Careers Page */
.careers-intro {
    background: var(--off-white);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    text-align: center;
    border: 2px solid var(--hunter-green);
}

.careers-intro h3 {
    color: var(--hunter-green);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.careers-intro p {
    color: var(--light-gray);
    line-height: 1.8;
}

.company-culture {
    margin-bottom: 3rem;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
}

.culture-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--off-white);
}

.culture-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--hunter-green);
}

.culture-item i {
    font-size: 2.5rem;
    color: var(--hunter-green);
    margin-bottom: 1rem;
}

.culture-item h4 {
    color: var(--black);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.culture-item p {
    color: var(--light-gray);
    line-height: 1.7;
}

.job-openings h3 {
    color: var(--hunter-green);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
}

.jobs-list {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.job-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--off-white);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--hunter-green);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.job-header h4 {
    color: var(--black);
    margin: 0;
    font-size: 1.3rem;
}

.job-type {
    background: var(--hunter-green);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.job-details {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.job-details p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-gray);
    font-size: 0.95rem;
}

.job-details i {
    color: var(--hunter-green);
}

.job-description {
    margin-bottom: 1.5rem;
}

.job-description p {
    color: var(--light-gray);
    line-height: 1.7;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden {
    display: none;
}

.visible {
    display: block;
}
/* Footer Styles */
.site-footer {
    background: #2d5016;
    color: #000000;
    padding: 60px 0 0;
    margin-top: 80px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

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

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

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #4a7c2c;
    transform: translateX(5px);
}

.contact-info li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-info li i {
    color: #667eea;
    margin-top: 3px;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #667eea;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 0;
        margin-top: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* ============================================
   AI CHAT BUTTON & INTERFACE STYLES
   ============================================ */

/* Floating Chat Button */
.ai-chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--hunter-green) 0%, var(--accent-green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(45, 80, 22, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
    animation: pulse 2s infinite;
}

.ai-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(45, 80, 22, 0.6);
}

.ai-chat-button i {
    color: var(--white);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.ai-chat-button:hover i {
    transform: rotate(15deg);
}

.ai-chat-button.active i {
    transform: rotate(180deg);
}

/* Chat notification badge */
.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ff4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    font-weight: bold;
    animation: bounce 1s infinite;
}

/* Chat Container */
.ai-chat-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 998;
    animation: slideUp 0.3s ease;
}

.ai-chat-container.active {
    display: flex;
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, var(--hunter-green) 0%, var(--accent-green) 100%);
    color: var(--white);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hunter-green);
    font-weight: bold;
    font-size: 1.2rem;
}

.chat-header-text h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--white);
}

.chat-header-text p {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.9;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chat-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

.chat-close:hover {
    transform: rotate(90deg);
}

/* Chat Messages Area */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--hunter-green);
    border-radius: 3px;
}

/* Message Bubbles */
.message {
    display: flex;
    gap: 10px;
    animation: fadeInMessage 0.3s ease;
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.message.bot .message-avatar {
    background: linear-gradient(135deg, var(--hunter-green) 0%, var(--accent-green) 100%);
    color: var(--white);
}

.message.user .message-avatar {
    background: var(--medium-gray);
    color: var(--white);
}

.message-content {
    max-width: 70%;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    line-height: 1.5;
}

.message.bot .message-bubble {
    background: var(--white);
    color: var(--medium-gray);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.message.user .message-bubble {
    background: linear-gradient(135deg, var(--hunter-green) 0%, var(--accent-green) 100%);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 0.7rem;
    color: var(--light-gray);
    margin-top: 4px;
    padding: 0 5px;
}

/* Typing Indicator */
.typing-indicator {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.typing-indicator.active {
    display: flex;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--hunter-green);
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Quick Replies */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 10px;
}

.quick-reply-btn {
    padding: 8px 16px;
    background: var(--white);
    border: 2px solid var(--hunter-green);
    color: var(--hunter-green);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-reply-btn:hover {
    background: var(--hunter-green);
    color: var(--white);
    transform: translateY(-2px);
}

/* Chat Input Area */
.chat-input-area {
    padding: 15px 20px;
    background: var(--white);
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.chat-input:focus {
    border-color: var(--hunter-green);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--hunter-green) 0%, var(--accent-green) 100%);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.4);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

/* Welcome Message */
.welcome-message {
    text-align: center;
    padding: 20px;
    color: var(--light-gray);
}

.welcome-message i {
    font-size: 3rem;
    color: var(--hunter-green);
    margin-bottom: 10px;
}

.welcome-message h4 {
    color: var(--black);
    margin: 10px 0;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(45, 80, 22, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(45, 80, 22, 0.6);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Responsive Chat */
@media (max-width: 480px) {
    .ai-chat-container {
        width: calc(100vw - 20px);
        height: calc(100vh - 120px);
        right: 10px;
        bottom: 90px;
    }

    .ai-chat-button {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .message-content {
        max-width: 80%;
    }
}

/* ===================================
   Navigation Auth Buttons
   =================================== */

.nav-auth {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 30px;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.auth-btn i {
    font-size: 1rem;
}

.login-btn {
    color: var(--hunter-green);
    background: transparent;
    border-color: var(--hunter-green);
}

.login-btn:hover {
    background: var(--hunter-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.signup-btn {
    background: linear-gradient(135deg, var(--hunter-green) 0%, #2d5016 100%);
    color: white;
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.4);
}

/* Responsive Auth Buttons */
@media (max-width: 968px) {
    .nav-auth {
        position: absolute;
        right: 80px;
        top: 50%;
        transform: translateY(-50%);
        gap: 10px;
    }

    .auth-btn span {
        display: none;
    }

    .auth-btn {
        padding: 10px;
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .auth-btn i {
        font-size: 1.1rem;
    }
}

@media (max-width: 640px) {
    .nav-auth {
        right: 70px;
    }

    .auth-btn {
        padding: 8px;
        width: 36px;
        height: 36px;
    }
}



/* ==================================================================
   RESILIENCE LAYER
   Added to keep the site usable when fonts, icons, scripts, or the
   network are unavailable, and to meet the accessibility floor.
   Appended last so it wins the cascade.
   ================================================================== */

/* --- Font fallbacks -------------------------------------------------
   If Google Fonts is blocked, text still renders in a comparable face
   rather than dropping to Times New Roman. */
:root {
    --font-body: 'Open Sans', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont,
                 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Montserrat', 'Segoe UI Semibold', 'Helvetica Neue', Arial Black,
                    Arial, sans-serif;
    --error-red: #b3261e;
    --success-green: #2d5016;
}

body {
    font-family: var(--font-body);
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.company-name,
.hero-title {
    font-family: var(--font-display);
}

/* --- Media never overflows its container --------------------------- */
img,
svg,
video {
    max-width: 100%;
    height: auto;
}

/* --- Long words and URLs wrap instead of forcing a scrollbar -------- */
p, li, h1, h2, h3, h4, td, .message-bubble {
    overflow-wrap: break-word;
}

/* --- Screen-reader-only text --------------------------------------- */
.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;
}

/* --- Skip link ------------------------------------------------------ */
.skip-link {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -120%);
    z-index: 2000;
    padding: 12px 24px;
    background: var(--hunter-green);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 6px 6px;
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translate(-50%, 0);
}

#main:focus {
    outline: none;
}

/* --- Visible keyboard focus everywhere ------------------------------ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid var(--accent-green);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Headings receive focus on route change; don't draw a ring for that. */
.page-header h2:focus:not(:focus-visible),
.hero-title:focus:not(:focus-visible) {
    outline: none;
}

/* --- noscript banner ------------------------------------------------ */
.noscript-banner {
    margin: 0;
    padding: 90px 20px 16px;
    background: #fff8e1;
    border-bottom: 1px solid #f0e0a0;
    color: var(--dark-gray);
    text-align: center;
    font-size: 0.95rem;
}

/* --- Accordion headers are interactive ------------------------------ */
[data-accordion] {
    cursor: pointer;
    user-select: none;
}

/* --- Hamburger open state ------------------------------------------- */
.hamburger {
    background: none;
    border: 0;
    padding: 8px;
    /* Comfortable touch target on mobile */
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Nav logo is now a link ----------------------------------------- */
.nav-logo {
    text-decoration: none;
    color: inherit;
}

/* --- Contact form states -------------------------------------------- */
.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field-error {
    margin-top: 6px;
    color: var(--error-red);
    font-size: 0.85rem;
    font-weight: 600;
}

.contact-form input.has-error,
.contact-form textarea.has-error {
    border-color: var(--error-red);
    background: #fff5f5;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    min-height: 1.4em;
}

.form-status.is-error   { color: var(--error-red); }
.form-status.is-success { color: var(--success-green); }
.form-status.is-info    { color: var(--light-gray); }

.contact-form button[disabled] {
    opacity: 0.6;
    cursor: progress;
}

/* --- Placeholder links shouldn't look clickable ---------------------- */
[aria-disabled="true"] {
    cursor: default;
    opacity: 0.7;
}

/* --- Chat widget ----------------------------------------------------- */
.ai-chat-container[hidden] {
    display: none;
}

.chat-send-btn,
.chat-close {
    min-width: 40px;
    min-height: 40px;
}

/* --- Contact links inherit the surrounding style ---------------------- */
.contact-card a,
.footer-column a[href^="mailto:"],
.footer-column a[href^="tel:"] {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.contact-card a {
    border-bottom-color: rgba(45, 80, 22, 0.35);
}

.contact-card a:hover,
.footer-column a[href^="mailto:"]:hover,
.footer-column a[href^="tel:"]:hover {
    border-bottom-style: solid;
    opacity: 0.85;
}

/* --- Reduced motion --------------------------------------------------
   Honour the OS-level setting instead of animating regardless. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .js-router .page.active {
        animation: none;
    }
}

/* --- High contrast / forced colors ------------------------------------ */
@media (forced-colors: active) {
    .btn,
    .filter-btn,
    .hamburger {
        border: 1px solid ButtonText;
    }
}

/* --- Print ------------------------------------------------------------
   Printing should produce the whole document, not one section. */
@media print {
    .navbar,
    .hamburger,
    .ai-chat-button,
    .ai-chat-container,
    .skip-link,
    .portfolio-filters,
    .noscript-banner {
        display: none !important;
    }

    .js-router .page,
    .page {
        display: block !important;
        min-height: 0;
        padding: 24px 0;
        page-break-after: always;
    }

    .ka-details,
    .category-content {
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        word-break: break-all;
    }
}

/* --- Narrow-viewport overflow guards ---------------------------------
   The nav is a flex row; flex items default to min-width:auto, which
   lets long labels push the hamburger off-screen. */
.nav-container {
    min-width: 0;
    gap: 8px;
    padding: 4px 12px;
}

.nav-logo,
.nav-auth {
    min-width: 0;
}

.nav-logo .company-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hamburger {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    /* The CV link duplicates a Team-section link; drop the label and keep
       the icon so the hamburger always has room. */
    .nav-auth .auth-btn span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .nav-logo .company-name {
        font-size: 1.15rem;
    }
}

@media (max-width: 380px) {
    .nav-logo .logo {
        width: 38px;
        height: 38px;
    }
}

/* --- Footer contact list ---------------------------------------------
   These are flex rows containing long email addresses. Flex items default
   to min-width:auto, so an unbreakable address widens the whole document
   and creates a horizontal scrollbar on every page. */
.contact-info li {
    min-width: 0;
}

.contact-info li i {
    flex: 0 0 auto;
}

.contact-info li a,
.contact-info li br + a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-info li > *:not(i) {
    min-width: 0;
}

/* Same protection for the contact cards in the Contact section. */
.contact-card a[href^="mailto:"] {
    overflow-wrap: anywhere;
}

/* --- Footer contrast --------------------------------------------------
   The bottom bar used white at 60% opacity over the hunter-green
   background, which lands at 4.49:1 — just under the WCAG AA floor of
   4.5:1 for body text. 75% clears it. */
.footer-bottom p,
.footer-links a {
    color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #ffffff;
}

/* Chat widget troubleshooting patch */
.ai-chat-container[hidden] { display: none !important; }
.chat-close, .chat-send-btn, .ai-chat-button, .quick-reply-btn { touch-action: manipulation; }
.chat-input:disabled { background: #f3f4f6; cursor: wait; }
.message-time { text-align: left; }
.message.user .message-time { text-align: right; }
@media (max-width: 480px) {
  .ai-chat-container { max-height: calc(100dvh - 110px); }
  .quick-replies { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 12px; }
}
