/* Global Reset & Theme Variables — load brand-colors.css via <link> in HTML */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --text-dark: #111111;
    --text-muted: #555555;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-brand);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    display: block;
    height: 3px;
    background: var(--brand-gradient);
}

#about,
#products,
#contact {
    scroll-margin-top: 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

/* Header Navigation */
header {
    width: 100%;
    padding: 18px clamp(20px, 5vw, 64px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background-color: var(--bg-light);
    border-bottom: 1px solid rgba(13, 148, 136, 0.15);
}

/* Stacked lockup: mark → wordmark → tagline (same as letterheads) */
.logo-lockup {
    display: inline-grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: start;
    align-content: start;
    row-gap: 6px;
    column-gap: 0;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    line-height: 1;
}

.logo-lockup:hover {
    opacity: 1;
}

.logo-mark {
    grid-row: 1;
    width: 40px;
    height: 40px;
    display: block;
}

.logo-wordmark {
    grid-row: 2;
    display: block;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--brand-navy);
    white-space: nowrap;
}

.logo-wordmark .labs {
    font-weight: 300;
}

.logo-tagline {
    grid-row: 3;
    display: block;
    margin: 0;
    padding: 0;
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--text-dark);
    line-height: 1.3;
    white-space: nowrap;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul li a {
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s ease, opacity 0.2s ease;
}

nav ul li a:hover {
    opacity: 1;
    color: var(--brand-teal);
}

nav ul li a:focus-visible {
    outline: 2px solid var(--brand-teal);
    outline-offset: 4px;
}

/* Hero Split Section Layout */
.hero-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: auto;
    align-items: start;
    padding: 32px clamp(20px, 5vw, 64px) 64px;
    gap: 48px;
}

.hero-text-content {
    padding-top: 8px;
    max-width: 620px;
}

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-teal);
    margin-bottom: 16px;
}

.hero-text-content h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
    color: var(--brand-navy);
}

.hero-text-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-weight: 400;
    max-width: 540px;
    letter-spacing: -0.01em;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    min-height: 360px;
    max-height: 520px;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Products */
.products-section {
    padding: 100px 80px;
    background-color: var(--white);
    border-top: 1px solid rgba(13, 148, 136, 0.12);
}

.products-container {
    max-width: 640px;
}

.products-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-teal);
    margin-bottom: 12px;
}

.products-section h2 {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--brand-navy);
    margin-bottom: 8px;
}

.products-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--brand-teal);
    margin-bottom: 14px;
}

.products-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.products-link {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--brand-teal);
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.products-link:hover {
    opacity: 1;
    color: var(--brand-navy);
}

.products-legal {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* CTA — solid yellow, black type (reference layout) */
.cta-section {
    background-color: var(--accent-yellow);
    background-image: none;
    padding: 140px clamp(20px, 5vw, 80px);
    color: var(--text-dark);
}

.cta-container {
    max-width: 800px;
}

.cta-section h2 {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
    color: var(--text-dark);
    line-height: 1.12;
}

.cta-section p {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.65;
    max-width: 620px;
}

@media print {
    .cta-section {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Footer — reference: brand | location | contact */
footer {
    background-color: var(--white, #ffffff);
    padding: 80px clamp(20px, 5vw, 80px) 60px;
    border-top: none;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: clamp(48px, 8vw, 120px);
    align-items: start;
}

/* Legal pages */
.legal-page {
    padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 80px) clamp(64px, 10vw, 120px);
}

.legal-container {
    max-width: 720px;
    margin: 0 auto;
}

.legal-eyebrow {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-teal);
    margin-bottom: 16px;
}

.legal-page h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.legal-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.legal-page h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--text-dark);
}

.legal-page p,
.legal-page li {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.legal-page p {
    margin-bottom: 16px;
}

.legal-page ul {
    margin: 0 0 16px 1.25rem;
}

.legal-page li {
    margin-bottom: 8px;
}

.legal-page a {
    text-decoration: underline;
    text-underline-offset: 4px;
    color: var(--brand-navy);
}

.legal-page a:hover {
    opacity: 0.75;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand .footer-wordmark {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin: 0 0 12px;
    line-height: 1.1;
}

.footer-brand .footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 32px;
    max-width: 280px;
}

.footer-brand .footer-legal-id {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 16px;
}

.footer-brand .copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-muted);
    margin: 0 0 20px;
    line-height: 1.2;
}

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

.footer-column ul li {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-column ul li:last-child {
    margin-bottom: 0;
}

.footer-column ul li a {
    text-decoration: underline;
    text-underline-offset: 4px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-column ul li a:hover {
    color: var(--text-dark);
}

/* Responsive Adaptations */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-image-container {
        padding-right: 0;
    }
    .hero-text-content h1 {
        font-size: 2.8rem;
    }
    .products-section {
        padding: 80px 40px;
    }
    .cta-section {
        padding: 80px 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        align-items: flex-start;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .logo-tagline {
        white-space: normal;
        max-width: min(100%, 240px);
    }

    .logo-wordmark {
        white-space: normal;
    }

    nav ul {
        gap: 20px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .logo-wordmark {
        font-size: 1.2rem;
    }

    .hero-section {
        padding-bottom: 48px;
    }
    .hero-text-content h1 {
        font-size: 2.2rem;
    }
    .products-section {
        padding: 60px 20px;
    }
    .products-section h2 {
        font-size: 2rem;
    }
    .cta-section {
        padding: 80px 20px;
    }
    .cta-section h2 {
        font-size: 2rem;
    }
    footer {
        padding: 60px 20px;
    }
}