:root {
    --primary-color: #0f1f16; /* Dark Forest */
    --secondary-color: #1a3326; /* Medium Forest */
    --accent-color: #f5a623; /* Amber — replaces gold */
    --accent-dark: #7a5000; /* Amber darkened for use on light/white backgrounds — 7:1 vs white (AAA) */
    --text-color: #333;
    --bg-color: #f4f7f4;
    --white: #fff;
}

/* Skip link — visible only on keyboard focus */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--white);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 0 0 4px 4px;
    font-weight: 700;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.logo span { color: var(--accent-color); }
nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}
nav a:hover { color: var(--accent-color); }

/* Hamburger button — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 8px;
}
.nav-toggle span {
    display: block;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 4px;
    border-radius: 2px;
}

.hero {
    position: relative;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 120px 20px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 31, 22, 0.90);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.hero p.tagline {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-color);
    margin-bottom: 30px;
}
.hero p.desc {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e8ecea;
}

/* Button: black text on #f5a623 = 10.4:1 (AAA) */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #000000;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}
/* Hover bg #cb871a: black text = 7.0:1 (AAA) */
.btn:hover {
    background-color: #cb871a;
    transform: translateY(-2px);
}
/* Dark outline: 10.4:1 vs button surface and 17:1 vs hero bg (1.4.11 passes on both) */
.btn:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

section { padding: 80px 5%; scroll-margin-top: 70px; }
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
/* Targets h4 now that card headings are h4 under h3 subsections */
.card h4 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.card p { color: #555; }

.quick-facts {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 5%;
}
.quick-facts .section-title { color: var(--white); margin-bottom: 40px; }
.fact-box {
    text-align: center;
    padding: 25px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
}
/* h3, bold, 1.2rem (~19px) = large text; #f5a623 on #1a3326 = 6.7:1 (AAA large) */
.fact-box h3 { color: var(--accent-color); font-size: 1.2rem; margin-top: 0; margin-bottom: 15px; text-transform: uppercase; }
.fact-box p { margin: 0; font-size: 1.05rem; line-height: 1.6; }

.about-container {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto;
    border-left: 5px solid var(--accent-color);
}
.about-text { flex: 1; }
.about-text h3 { color: var(--primary-color); font-size: 1.8rem; margin-top: 0; margin-bottom: 5px; }
.about-text .title { color: #777; font-weight: 500; margin-bottom: 25px; display: inline-block; }
.about-text ul { list-style-type: none; padding-left: 0; }
.about-text li { margin-bottom: 15px; padding-left: 30px; position: relative; font-size: 1.05rem; }
.about-text li::before {
    content: '■'; color: var(--accent-color); position: absolute; left: 0; font-size: 0.8rem; top: 4px;
}

.passion {
    background-color: var(--bg-color);
    text-align: center;
}
.passion-intro {
    max-width: 700px;
    margin: -20px auto 50px;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}
.passion-card {
    max-width: 680px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-top: 4px solid var(--accent-color);
    overflow: hidden;
}
.passion-card-body {
    padding: 40px;
}
.passion-card-body h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}
.passion-card-tagline {
    color: var(--accent-dark) !important; /* --accent-dark = #7a5000: 7:1 vs white (AAA) */
    font-style: italic;
    font-size: 1.1rem !important;
    margin-bottom: 20px !important;
}
.passion-card-body p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
}
.passion-apps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
    text-align: left;
}
.passion-app {
    background: var(--bg-color);
    border-radius: 6px;
    padding: 20px;
    border-left: 3px solid var(--accent-color);
}
.passion-app h4 {
    color: var(--primary-color);
    margin: 0 0 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.passion-app p {
    color: #555;
    font-size: 0.95rem !important;
    line-height: 1.6;
    margin: 0 !important;
}
.passion-btn {
    font-size: 1rem;
}

.contact {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}
.contact .section-title { color: var(--white); }
.contact-card {
    background: rgba(255,255,255,0.05);
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}
.contact-card p { font-size: 1.2rem; margin: 15px 0; }
/* #f5a623 on #0f1f16 = 8.4:1 (AAA) */
.contact-card a { color: var(--accent-color); text-decoration: none; font-weight: bold; }
.contact-card a:hover { text-decoration: underline; }
.contact-card a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 2px;
}

.contact-card-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 5px;
}
.contact-card-subtitle {
    color: #c8dece;
    margin-top: 0;
}
.contact-card-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 25px 0;
}

/* #aaaaaa on #0a1510 = 7.48:1 (AAA) */
footer {
    text-align: center;
    padding: 25px;
    background-color: #0a1510;
    color: #aaaaaa;
    font-size: 0.9rem;
}

.subsection-title {
    color: var(--primary-color);
    margin: 20px 0 30px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
}

.subsection-title-spaced {
    margin-top: 80px;
}

/* Global focus-visible styles for keyboard navigation */
/* Dark outline (~16:1 on white, ~18:1 on light-green bg) meets 1.4.11 on all light surfaces */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 2px;
}
/* On dark backgrounds (header), switch to amber so the ring is visible */
nav a:focus-visible,
.nav-toggle:focus-visible {
    outline-color: var(--accent-color);
}

@media (max-width: 768px) {
    .about-container { flex-direction: column; }
    .hero h1 { font-size: 2.5rem; }

    /* Hide nav links by default on mobile; shown when .nav-open is toggled */
    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        padding: 1rem 5%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    nav.nav-open { display: flex; }
    nav a {
        margin-left: 0;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1.1rem;
    }
    nav a:last-child { border-bottom: none; }

    .nav-toggle { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}
