/* CodeAspen Studios — Global Stylesheet */
/* Redesign: dark hero / light body consultancy aesthetic */
/* Branch: redesign/consultancy-v1 */

/* ========== Design Tokens ========== */
:root {
    /* Brand palette (shared with CodeAspen Solutions) */
    --brand-navy: #07122A;
    --brand-navy-soft: #0C162F;
    --brand-blue: #2A7AFF;
    --brand-blue-dark: #1D4F8A;
    --brand-amber: #F59E0B;
    --brand-amber-light: #FBBF24;
    --brand-amber-rgb: 245, 158, 11;
    --brand-white: #FFFFFF;
    --brand-slate: #6A8BAA;
    --brand-steel: #3A5872;

    /* Light section tokens */
    --surface-light: #F8FAFC;
    --surface-white: #FFFFFF;
    --text-dark: #07122A;
    --text-body: #334155;
    --text-muted-light: #64748B;
    --border-light: #E2E8F0;

    /* Semantic */
    --success-green: #22c55e;

    /* Typography */
    --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Barlow', 'Helvetica Neue', sans-serif;
    --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--surface-light);
    -webkit-font-smoothing: antialiased;
}

/* ========== Accessibility ========== */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--brand-amber);
    color: var(--brand-navy);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
}
.skip-to-content:focus { left: 0; }

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

/* ========== Scroll Reveal ========== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Eyebrow Label ========== */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-amber);
    margin-bottom: 12px;
    display: block;
}

/* ========== Navigation ========== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--brand-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--brand-white);
}
.logo-mark { width: 32px; height: 32px; }
.logo-wordmark {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.logo-wordmark-main {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand-white);
}
.logo-wordmark-sub {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--brand-slate);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-slate);
    text-decoration: none;
    transition: color 150ms ease;
}
.nav-links a:hover { color: var(--brand-amber); }
.nav-links .nav-cta {
    padding: 8px 20px;
    border: 2px solid var(--brand-amber);
    color: var(--brand-amber);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background 150ms ease, color 150ms ease;
}
.nav-links .nav-cta:hover {
    background: var(--brand-amber);
    color: var(--brand-navy);
}
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--brand-white);
    transition: transform 200ms ease, opacity 200ms ease;
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--brand-navy);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 0;
    transition: right 250ms ease;
}
.mobile-menu.active { right: 0; }
.mobile-menu a {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-slate);
    text-decoration: none;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 150ms ease;
}
.mobile-menu a:hover { color: var(--brand-amber); }
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
}

/* ========== Buttons ========== */
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--brand-amber);
    color: var(--brand-navy);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 2px solid var(--brand-amber);
    border-radius: 2px;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}
.btn-primary:hover {
    background: var(--brand-amber-light);
    border-color: var(--brand-amber-light);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--brand-amber);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 2px solid var(--brand-amber);
    border-radius: 2px;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}
.btn-secondary:hover {
    background: var(--brand-amber);
    color: var(--brand-navy);
}

/* Variant: buttons on light backgrounds */
.light-section .btn-secondary {
    color: var(--brand-amber);
    border-color: var(--brand-amber);
}
.light-section .btn-secondary:hover {
    background: var(--brand-amber);
    color: var(--brand-navy);
}

/* ========== Section System ========== */
.dark-section {
    background: var(--brand-navy);
    color: var(--brand-white);
}
.light-section {
    background: var(--surface-light);
    color: var(--text-dark);
}
.white-section {
    background: var(--surface-white);
    color: var(--text-dark);
}

.section-padding {
    padding: 80px 0;
}
.section-padding-sm {
    padding: 48px 0;
}

/* ========== Hero ========== */
.hero {
    padding: 120px 0 48px;
    background: var(--brand-navy);
    color: var(--brand-white);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15;
    color: var(--brand-white);
    margin-bottom: 16px;
}
.hero-sub {
    font-size: 16px;
    color: var(--brand-slate);
    max-width: 480px;
    margin-bottom: 24px;
    line-height: 1.7;
}
.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-image {
    border: 1px dashed rgba(var(--brand-amber-rgb), 0.3);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    color: var(--brand-slate);
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Industry tags (below hero, still dark) */
.industry-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 24px 0 48px;
    background: var(--brand-navy);
}
.industry-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand-slate);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid var(--brand-steel);
    border-radius: 2px;
    transition: color 150ms ease, border-color 150ms ease;
}
.industry-tag:hover {
    color: var(--brand-amber);
    border-color: var(--brand-amber);
}

@media (max-width: 768px) {
    .hero { padding: 100px 0 32px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-image { min-height: 200px; }
    .industry-tags { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 32px; }
}

/* ========== How It Works ========== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 32px;
}
.step {
    text-align: center;
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--brand-amber);
    border-radius: 2px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    color: var(--brand-amber);
    margin-bottom: 16px;
}
.step h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.step p {
    font-size: 14px;
    color: var(--text-muted-light);
}

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

/* ========== Services (Table Rows) ========== */
.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    transition: background 150ms ease;
}
.service-row:first-child {
    border-top: 1px solid var(--border-light);
}
.service-row:hover {
    background: var(--surface-light);
    padding-left: 12px;
    padding-right: 12px;
    margin-left: -12px;
    margin-right: -12px;
}
.service-row-text h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.service-row-text p {
    font-size: 14px;
    color: var(--text-muted-light);
}
.service-row-arrow {
    font-size: 18px;
    color: var(--brand-amber);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 150ms ease;
}
.service-row:hover .service-row-arrow {
    transform: translateX(4px);
}

/* ========== Stats Bar ========== */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 0;
}
.stat-item {
    text-align: center;
    padding: 0 40px;
    border-right: 1px solid var(--border-light);
}
.stat-item:last-child {
    border-right: none;
}
.stat-item h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 36px;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-item:first-child h3 {
    color: var(--brand-amber);
}
.stat-item p {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted-light);
}

/* Testimonial */
.testimonial-quote {
    font-family: var(--font-body);
    font-size: 18px;
    font-style: italic;
    color: var(--text-dark);
    text-align: center;
    max-width: 640px;
    margin: 32px auto 12px;
    line-height: 1.7;
}
.testimonial-attribution {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted-light);
    text-align: center;
}

@media (max-width: 768px) {
    .stats-row { flex-wrap: wrap; gap: 24px; }
    .stat-item { border-right: none; padding: 0 24px; flex: 0 0 50%; }
    .stat-item h3 { font-size: 28px; }
}

/* ========== CTA Band ========== */
.cta-band {
    background: var(--brand-navy);
    color: var(--brand-white);
    padding: 64px 0;
    text-align: center;
}
.cta-band h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 20px;
}

/* ========== Footer ========== */
footer {
    background: var(--brand-navy);
    color: var(--brand-slate);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand p {
    font-size: 14px;
    color: var(--brand-slate);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}
.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-amber);
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--brand-slate);
    text-decoration: none;
    padding: 4px 0;
    transition: color 150ms ease;
}
.footer-col a:hover {
    color: var(--brand-white);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
.footer-bottom a {
    color: var(--brand-slate);
    text-decoration: none;
    transition: color 150ms ease;
}
.footer-bottom a:hover {
    color: var(--brand-amber);
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ========== Page Hero (Inner Pages) ========== */
.page-hero {
    padding: 120px 0 48px;
    background: var(--brand-navy);
    color: var(--brand-white);
}
.page-hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    color: var(--brand-white);
    margin-bottom: 16px;
}
.page-hero p {
    font-size: 16px;
    color: var(--brand-slate);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .page-hero { padding: 100px 0 32px; }
}

/* ========== Deliverables Table ========== */
.deliverables-table {
    width: 100%;
    border-collapse: collapse;
}
.deliverables-table tr:nth-child(even) {
    background: var(--surface-light);
}
.deliverables-table tr:nth-child(odd) {
    background: var(--surface-white);
}
.deliverables-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
}
.deliverables-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
    width: 40%;
}
.deliverables-table td:last-child {
    color: var(--text-body);
}

/* ========== Two-Column Content ========== */
.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.content-split .media-placeholder {
    border: 1px dashed rgba(var(--brand-amber-rgb), 0.3);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    color: var(--brand-slate);
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--surface-light);
}

@media (max-width: 768px) {
    .content-split { grid-template-columns: 1fr; gap: 24px; }
}

/* ========== Contact / Forms ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.contact-form h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    color: var(--brand-white);
    margin-bottom: 8px;
}
.contact-form .form-subtitle {
    font-size: 14px;
    color: var(--brand-slate);
    margin-bottom: 24px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-slate);
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--brand-navy-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    color: var(--brand-white);
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    transition: border-color 200ms ease;
}
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
    border-color: var(--brand-amber);
    outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--brand-steel);
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.form-group select option {
    background: var(--brand-navy);
}
.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--brand-amber);
    color: var(--brand-navy);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid var(--brand-amber);
    border-radius: 2px;
    cursor: pointer;
    transition: background 150ms ease;
}
.submit-btn:hover {
    background: var(--brand-amber-light);
    border-color: var(--brand-amber-light);
}
.form-note {
    font-size: 12px;
    color: var(--brand-slate);
    margin-top: 12px;
    text-align: center;
}

/* Honeypot field — hidden from users, visible to bots */
.form-hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* ========== Focus Styles ========== */
:focus-visible {
    outline: 2px solid var(--brand-amber);
    outline-offset: 3px;
}

/* ========== Reduced Motion ========== */
@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;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ========== Compat styles for legacy pages ========== */
/* These classes support pages that intentionally remain on the older      */
/* hub markup pattern: industries/index.html (industries hub) and          */
/* drone-data-analytics-houston/index.html. Phase 2 converted the 7 inner  */
/* pages to the construction-template pattern; the rules below are the    */
/* subset still required by those two non-converted pages. Remove          */
/* individual rules only after confirming neither remaining page uses it.  */

/* Section headers (old page-header pattern) */
.section-header {
    max-width: 700px;
    margin: 0 auto 48px;
    text-align: center;
}
.section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-amber);
    margin-bottom: 16px;
    display: block;
}
.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(24px, 4vw, 36px);
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}
.section-desc {
    font-size: 16px;
    color: var(--text-muted-light);
    line-height: 1.8;
}

/* Dark-section overrides for old section headers */
.dark-section .section-title {
    color: var(--brand-white);
}
.dark-section .section-desc {
    color: var(--brand-slate);
}

/* Benefit icon (used on drone-data-analytics-houston deliverable cards) */
.benefit-icon {
    width: 48px;
    height: 48px;
    background: rgba(var(--brand-amber-rgb), 0.08);
    border: 1px solid rgba(var(--brand-amber-rgb), 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 16px;
}

/* Page hero compat for inner pages using old class names */
.page-hero-glow {
    display: none; /* Suppress old glow element — no longer used */
}
.gradient-text {
    color: var(--brand-amber); /* Fallback: amber instead of gradient */
}

/* Old industries grid */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}
.industry-card {
    display: block;
    background: var(--surface-white);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 36px;
    text-decoration: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}
.industry-card:hover {
    border-color: var(--brand-amber);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.industry-icon { font-size: 36px; margin-bottom: 16px; }
.industry-card h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}
.industry-card p {
    font-size: 15px;
    color: var(--text-muted-light);
    line-height: 1.7;
    margin-bottom: 16px;
}
.industry-card .learn-more {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-amber);
}

/* Industries link pills */
.industries-link {
    background: var(--surface-light);
    padding: 60px 0;
    text-align: center;
}
.industries-link p {
    font-size: 16px;
    color: var(--text-muted-light);
    margin-bottom: 24px;
}
.industries-pills {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.industries-pills a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--surface-white);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-muted-light);
    text-decoration: none;
    transition: border-color 200ms ease, color 200ms ease;
}
.industries-pills a:hover {
    border-color: var(--brand-amber);
    color: var(--brand-amber);
}

/* Intro section */
.intro-section {
    background: var(--surface-light);
    padding: 80px 0;
}
.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.intro-content h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(24px, 4vw, 32px);
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}
.intro-content p {
    font-size: 17px;
    color: var(--text-muted-light);
    line-height: 1.9;
    margin-bottom: 24px;
}

/* Mobile responsive — compat grids */
@media (max-width: 768px) {
    .industries-grid { grid-template-columns: 1fr; }
}

/* ========== END LEGACY COMPAT ========== */
