/* =============================================
   LOSADA SURVEY SERVICES, INC.
   Template B: Dynamic Style (customized)
   Brand colors pulled from company logo:
   Charcoal #363030 / Red #c8201f
   ============================================= */

:root {
    --primary: #363030;          /* Charcoal - from logo wordmark */
    --primary-light: #4a4242;
    --accent: #c8201f;           /* Red - from logo compass mark */
    --accent-light: #e14b3f;
    --gold: #fbbf24;

    --white: #ffffff;
    --gray-100: #f5f4f3;
    --gray-200: #e6e3e1;
    --gray-300: #d1cdca;
    --gray-400: #9c9591;
    --gray-600: #56504d;
    --gray-700: #453f3d;
    --gray-800: #292423;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --section-pad: 5rem 0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--gray-800); background: var(--white); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--primary); }
a { color: inherit; text-decoration: none; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.slide-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.6s ease, transform 0.6s ease; }
.slide-right { opacity: 0; transform: translateX(50px); transition: opacity 0.6s ease, transform 0.6s ease; }
.slide-left.visible, .slide-right.visible { opacity: 1; transform: translateX(0); }

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(41, 36, 35, 0.96);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* BIG, prominent logo container -- required to be large and visible */
.logo-container {
    background: var(--white);
    border-radius: 12px;
    padding: 0.6rem 1.4rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo-container img {
    height: 64px;
    width: auto;
    display: block;
}
/* Fallback text logo shown until files/logo.png is uploaded */
.logo-container .logo-text {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.logo-container .logo-text span { color: var(--accent); }

.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { color: rgba(255, 255, 255, 0.9); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }

/* Credentials in nav */
.nav-creds {
    display: flex;
    gap: 1rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    font-weight: 600;
}
.nav-creds a { color: var(--accent-light); }
.nav-creds a:hover { text-decoration: underline; }

/* Capabilities Statement CTA button */
.nav-cta {
    background: var(--accent);
    color: var(--white) !important;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--primary); color: var(--white) !important; }

/* ==========================================
   HERO
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #201c1c 100%);
}
.hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(41, 36, 35, 0.55) 0%, rgba(41, 36, 35, 0.75) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 8rem 2rem 4rem;
    max-width: 900px;
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    color: var(--white);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.hero-tagline {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.25rem;
    max-width: 640px;
    margin: 0 auto 2rem;
}
.hero-creds {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.cred-pill {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    padding: 0.6rem 1.3rem;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
}
.cred-pill a { color: var(--white); }

/* ==========================================
   ABOUT with stat-large-number
   ========================================== */
.about { padding: var(--section-pad); background: var(--white); }
.about-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: start;
}

.stat-large { text-align: center; }
.stat-large .number {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.stat-large .label {
    font-size: 1.15rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.stat-large .sublabel {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--gray-600);
}

.about-content h2 { margin-bottom: 1.5rem; }
.about-content p { color: var(--gray-600); margin-bottom: 1rem; }

.target-market { margin-top: 2rem; }
.target-market h3 { font-size: 1rem; color: var(--primary); margin-bottom: 1rem; }
.target-market ul { list-style: none; }
.target-market li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--gray-700);
}
.target-market li::before {
    content: '\2713';
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ==========================================
   SERVICE AREA - county chips
   ========================================== */
.service-area {
    padding: var(--section-pad);
    background: var(--white);
    text-align: center;
    border-top: 1px solid var(--gray-200);
}
.service-area h2 { margin-bottom: 0.5rem; }
.service-area p { color: var(--gray-600); margin-bottom: 2rem; }
.county-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    max-width: 900px;
    margin: 0 auto;
}
.county-chip {
    background: var(--gray-100);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
}

/* ==========================================
   PAST PERFORMANCE - project cards
   ========================================== */
.performance { padding: var(--section-pad); background: var(--gray-100); }
.perf-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}
.perf-header h2 { margin-bottom: 1rem; }
.perf-header p { color: var(--gray-600); font-style: italic; }

.perf-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.perf-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-top: 4px solid var(--accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.perf-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.perf-card .perf-value {
    display: inline-block;
    background: var(--gray-100);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}
.perf-card h4 { font-size: 1.25rem; color: var(--primary); margin-bottom: 0.25rem; }
.perf-card .perf-client { color: var(--accent); font-weight: 600; font-size: 0.95rem; margin-bottom: 1rem; }
.perf-card .perf-scope { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 1rem; }
.perf-card .perf-impact { color: var(--gray-700); font-size: 0.95rem; }
.perf-card .perf-impact strong { color: var(--primary); }

/* ==========================================
   COMPETENCIES - comp-cards-3col
   ========================================== */
.competencies { padding: var(--section-pad); background: var(--white); }
.comp-header { text-align: center; margin-bottom: 3rem; }
.comp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.comp-card {
    background: var(--gray-100);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}
.comp-card:hover {
    background: var(--white);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
.comp-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.comp-card h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 0.75rem; }
.comp-card p { color: var(--gray-600); font-size: 0.9rem; }

/* ==========================================
   NAICS CODE
   ========================================== */
.codes { padding: var(--section-pad); background: var(--gray-100); }
.codes-header {
    text-align: center;
    margin-bottom: 2rem;
}
.codes-header h2 { margin-bottom: 0.5rem; }
.codes-header .subtitle { color: var(--gray-600); margin-bottom: 0.5rem; }
.codes-header .creds-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
}

.codes-wrap { max-width: 700px; margin: 0 auto; }
.code-card-single {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.code-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.code-icon i { font-size: 2rem; color: var(--white); }
.code-info h3 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.35rem;
}
.code-info p { color: var(--gray-600); }
.license-note {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ==========================================
   DIFFERENTIATORS
   ========================================== */
.differentiators { padding: var(--section-pad); background: var(--primary); }
.diff-content { max-width: 900px; margin: 0 auto; text-align: center; }
.diff-content h2 { color: var(--white); margin-bottom: 0.75rem; }
.diff-content > p { color: rgba(255,255,255,0.75); margin-bottom: 3rem; }
.diff-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: left;
}
.diff-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: rgba(255,255,255,0.9);
}
.diff-list li i {
    color: var(--accent-light);
    font-size: 1.5rem;
    margin-top: 0.1rem;
}
.diff-list li strong { display: block; margin-bottom: 0.3rem; color: var(--white); }

/* ==========================================
   CONTACT
   ========================================== */
.contact { padding: var(--section-pad); background: var(--white); }
.contact h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}
.contact-subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 3rem;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.contact-info h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.contact-info h3 i { color: var(--accent); }
.contact-details { margin-bottom: 2rem; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}
.contact-item a, .contact-item span { color: var(--gray-800); }
.contact-item a:hover { color: var(--accent); }

.contact-market h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.contact-market ul { list-style: none; }
.contact-market li {
    padding: 0.4rem 0;
    color: var(--gray-600);
}
.contact-market li strong { color: var(--gray-800); }

/* Credentials panel replacing map */
.credentials-panel {
    background: var(--gray-100);
    border-radius: 16px;
    padding: 2.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.credentials-panel h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.cred-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.cred-box {
    background: var(--white);
    border-radius: 10px;
    padding: 1rem;
}
.cred-box .label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}
.cred-box .value {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}
.credentials-panel .cred-full {
    background: var(--white);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.credentials-panel .cred-full .label { display: block; font-size: 0.75rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.25rem; }
.credentials-panel .cred-full .value { display: block; font-size: 0.95rem; font-weight: 600; color: var(--primary); }
.credentials-panel .sba-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    font-size: 0.9rem;
}
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1rem;
    transition: background 0.2s ease;
}
.download-btn:hover { background: var(--primary); color: var(--white); }

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--primary);
    padding: 2rem 0;
    text-align: center;
}
.footer p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin: 0.25rem 0; }
.footer a { color: rgba(255,255,255,0.8); }
.footer a:hover { color: var(--white); text-decoration: underline; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .stat-large { margin-bottom: 2rem; }
    .comp-grid { grid-template-columns: repeat(2, 1fr); }
    .perf-cards { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links, .nav-creds { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .comp-grid { grid-template-columns: 1fr; }
    .diff-list { grid-template-columns: 1fr; }
    .cred-row { grid-template-columns: 1fr; }
    .logo-container img { height: 48px; }
    .logo-container { padding: 0.5rem 1rem; }
}
