/* --- Global Variables & Portland.gov Civic Theme --- */
:root {
    --pd-teal-dark: #004b49;    
    --pd-teal-light: #065c5a;   
    --pd-sand: #f4f1ea;         
    --pd-sand-dark: #e8e4d9;
    --pd-charcoal: #1a202c;     
    --pd-charcoal-light: #2d3748;
    --pd-text-muted: #4a5568;   
    --pd-text-light-muted: #a0aec0;
    --pd-white: #ffffff;
    --pd-border: #e2e8f0;
    --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: var(--pd-white);
    color: var(--pd-charcoal-light);
    overflow-x: hidden;
}

body {
    line-height: 1.7;
    overflow-x: hidden;
    color: var(--pd-charcoal-light);
}

/* --- Typography & Utilities --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--pd-teal-dark);
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-text { max-width: 800px; margin: 0 auto; font-size: 1.15rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 0.75rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pd-sand);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--pd-sand);
    padding-bottom: 0.25rem;
}

.h2-subtle { color: var(--pd-charcoal); margin-bottom: 1.5rem; }

.text-selectable { user-select: all; }
.text-muted { color: var(--pd-text-muted); }

.divider {
    width: 60px;
    height: 4px;
    background: var(--pd-teal-dark);
    margin: 1.5rem auto 3rem auto;
    border-radius: 2px;
}
.divider.bg-sand { background: var(--pd-sand); }

/* --- Navigation & Logo --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    z-index: 9999;
    border-bottom: 1px solid var(--pd-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--pd-teal-dark);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img { height: 32px; width: auto; border-radius: 4px; display: block; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    color: var(--pd-text-muted);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s var(--ease-smooth);
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0; left: 0;
    background: var(--pd-teal-dark);
    transition: width 0.3s var(--ease-smooth);
}
.nav-links a:hover { color: var(--pd-teal-dark); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle, .nav-toggle-label { display: none; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s var(--ease-smooth);
    cursor: pointer;
}

.btn-primary {
    background: var(--pd-teal-dark);
    color: var(--pd-white);
    border: 2px solid var(--pd-teal-dark);
}
.btn-primary:hover {
    background: var(--pd-teal-light);
    border-color: var(--pd-teal-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 75, 73, 0.2);
}

.btn-outline-light {
    background: transparent;
    color: var(--pd-white);
    border: 2px solid var(--pd-white);
}
.btn-outline-light:hover {
    background: var(--pd-white);
    color: var(--pd-teal-dark);
    transform: translateY(-2px);
}

/* --- Layouts & Sections --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; position: relative; }
section { padding: 7rem 0; position: relative; }

.section-light { background: var(--pd-white); }
.section-sand { background: var(--pd-sand); }
.section-teal { background: var(--pd-teal-dark); color: var(--pd-white); }
.section-teal h2, .section-teal h4 { color: var(--pd-white); }
.section-teal p { color: var(--pd-sand); opacity: 0.9; }

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

/* --- Hero Section (Centering & Readability Fix) --- */
.hero {
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center; 
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    background-color: var(--pd-teal-dark);
}

.hero-abstract-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 15% 50%, rgba(6, 92, 90, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(45, 55, 72, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(244, 241, 234, 0.1) 0%, transparent 60%);
    filter: blur(40px);
    z-index: 1;
    animation: drift 15s ease-in-out infinite alternate;
}

@keyframes drift {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, 2%); }
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.hero h1 { 
    font-size: 3.5rem; 
    margin-bottom: 1.5rem; 
    color: var(--pd-white); 
    letter-spacing: -0.5px; 
    line-height: 1.2;
}

.hero p { 
    font-size: 1.25rem; 
    color: var(--pd-sand); 
    margin-bottom: 2.5rem; 
    font-weight: 300;
    max-width: 700px; 
}

.hero-actions { 
    display: flex; 
    gap: 1.5rem; 
    justify-content: center;
}

.intro-icon { font-size: 3rem; color: var(--pd-teal-dark); margin-bottom: 1rem; }

/* --- Services Layout --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.service-card {
    background: var(--pd-white);
    border: 1px solid var(--pd-border);
    border-radius: 6px;
    padding: 3rem;
    transition: all 0.4s var(--ease-smooth);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--pd-teal-light);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--pd-border);
    padding-bottom: 1.5rem;
}

.card-icon {
    font-size: 3rem;
    color: var(--pd-teal-dark);
    background: var(--pd-sand);
    padding: 1rem;
    border-radius: 8px;
    display: inline-flex;
}

.naics-badge {
    background: var(--pd-sand-dark);
    color: var(--pd-charcoal);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-top: 0.5rem;
}

.feature-list { list-style: none; }
.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--pd-text-muted);
}
.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--pd-teal-dark);
    font-weight: bold;
}
.feature-list strong { color: var(--pd-charcoal); }

/* --- Differentiators (3 Column) --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.diff-card {
    text-align: center;
    padding: 2rem;
    transition: transform 0.4s var(--ease-smooth);
}
.diff-card i {
    font-size: 3.5rem;
    color: var(--pd-sand);
    margin-bottom: 1.5rem;
}
.diff-card:hover { transform: translateY(-10px); }

/* --- Past Performance Timeline --- */
.timeline {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 38px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--pd-teal-dark);
    opacity: 0.2;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    transition: transform 0.3s var(--ease-smooth);
}
.timeline-item:hover { transform: translateX(10px); }

.timeline-icon {
    width: 80px;
    height: 80px;
    background: var(--pd-white);
    border: 2px solid var(--pd-teal-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--pd-teal-dark);
    z-index: 2;
    flex-shrink: 0;
}

.timeline-content {
    background: var(--pd-white);
    padding: 2.5rem;
    border-radius: 6px;
    border: 1px solid var(--pd-border);
    flex-grow: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.timeline-content p { color: var(--pd-text-muted); }
.timeline-content strong { color: var(--pd-charcoal); }
.highlight-text { 
    background: var(--pd-sand); 
    padding: 1rem; 
    border-left: 3px solid var(--pd-teal-dark); 
    border-radius: 0 4px 4px 0;
}

/* --- Contact Card Center --- */
.contact-card-centered {
    background: var(--pd-sand);
    padding: 5rem 3rem;
    border-radius: 8px;
    border-top: 6px solid var(--pd-teal-dark);
    max-width: 700px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.contact-personnel strong { font-size: 1.25rem; color: var(--pd-charcoal); }

.email-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--pd-white);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--pd-border);
}
.email-block i { font-size: 1.5rem; color: var(--pd-teal-dark); }
.email-text { font-size: 1.25rem; font-weight: 700; color: var(--pd-teal-dark); }

/* --- High-Contrast Centralized Action Layout --- */
.contact-action-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.contact-action-container h2 {
    margin-bottom: 0;
}

/* --- Clean, Bold Standalone Contact Button --- */
.btn-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: var(--pd-charcoal-light); 
    color: var(--pd-white); 
    border: 1px solid var(--pd-charcoal-light);
    border-radius: 50px; 
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s var(--ease-smooth);
    cursor: pointer;
}

.btn-contact-submit:hover {
    background-color: var(--pd-charcoal); 
    border-color: var(--pd-charcoal);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 32, 44, 0.15);
}

/* --- Mobile Responsiveness Safety Rule --- */
@media (max-width: 968px) {
    .btn-contact-submit {
        width: 100%;
        max-width: 100%;
        font-size: 0.95rem;
        padding: 1rem 1.25rem;
        word-break: break-all; 
    }
}

/* --- Procurement Footer --- */
.site-footer {
    background: var(--pd-charcoal);
    color: var(--pd-text-light-muted);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 2rem;
}

.footer-grid h4 {
    color: var(--pd-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-list { list-style: none; }
.footer-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}
.footer-list li::before {
    content: '•';
    color: var(--pd-teal-light);
    margin-right: 0.5rem;
    font-weight: bold;
}

.footer-bottom { font-size: 0.9rem; }

/* --- CSS-Only Scroll Reveal Effects --- */
@supports (animation-timeline: view()) {
    .section-scroll {
        animation: reveal linear both;
        animation-timeline: view();
        animation-range: entry 5% cover 20%;
    }
    @keyframes reveal {
        from { opacity: 0; transform: translateY(40px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* --- Mobile Responsiveness & Flawless Navigation --- */
@media (max-width: 968px) {
    .hero { padding-top: 6rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 400px; margin: 0 auto; gap: 1rem; }
    .hero .btn { width: 100%; }
    
    .services-grid, .grid-3, .footer-grid { grid-template-columns: 1fr; flex-direction: column; text-align: center; gap: 1.5rem; }
    .footer-list li { justify-content: center; }
    
    .timeline::before { display: none; }
    .timeline-item { flex-direction: column; gap: 1rem; text-align: center; }
    .timeline-icon { margin: 0 auto; width: 60px; height: 60px; font-size: 1.5rem; }
    
    .contact-card-centered { padding: 3rem 1.5rem; }
    .contact-card-centered .btn { width: 100%; display: inline-block; text-align: center; word-break: break-all; font-size: 0.95rem; padding: 1rem 1.25rem !important; }
    
    /* Clean, JavaScript-Controlled Mobile Toggle Architecture */
    .nav-toggle-label { 
        display: block; 
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 10000;
    }
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: var(--pd-teal-dark);
        height: 2px;
        width: 2em;
        border-radius: 2px;
        position: relative;
        transition: all 0.3s var(--ease-smooth);
    }
    .nav-toggle-label span::before { content: ''; position: absolute; top: -8px; left: 0; }
    .nav-toggle-label span::after { content: ''; position: absolute; top: 8px; left: 0; }

    .nav-links {
        position: fixed;
        top: 60px; 
        left: 0;
        width: 100%;
        height: calc(100vh - 60px); 
        background: var(--pd-white);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        
        /* Starts smoothly hidden straight above the content box */
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.35s var(--ease-smooth), opacity 0.3s ease, visibility 0.3s;
        border-bottom: 1px solid var(--pd-border);
    }
  
    .nav-links a { 
        padding: 1.25rem; 
        width: 100%; 
        text-align: center; 
        border-top: 1px solid var(--pd-border); 
        display: block; 
    }
    
    /* Display state panel wrapper triggers */
    .nav-links.active { 
        transform: translateY(0);
        opacity: 1; 
        visibility: visible; 
    }

    /* Animate menu icon lines directly into an 'X' close graphic */
    .nav-toggle-label.active span { background: transparent; }
    .nav-toggle-label.active span::before { transform: rotate(45deg); top: 0; }
    .nav-toggle-label.active span::after { transform: rotate(-45deg); top: 0; }
}