/* ==========================================================================
   Enerlab Precision — landing page styles
   Colors below were sampled directly from the provided logo file
   (enerlab-logo-enhanced.png), not invented:
     --el-blue-light : #089BD7  (top diamond)
     --el-blue-deep   : #026FB1  (right diamond / wordmark)
     --el-navy        : #033E82  (wordmark lower strokes)
     --el-orange      : #FE5302  (front diamond)
     --el-silver      : #B8B7B6  (left diamond)
     --el-canvas       : #F5F3F3  (the logo file's own background)
   ========================================================================== */

:root {
    --el-blue-light: #089bd7;
    --el-blue-deep: #026fb1;
    --el-navy: #033e82;
    --el-orange: #fe5302;
    --el-silver: #b8b7b6;
    --el-canvas: #f5f3f3;

    /* Matches the logo file's own flat background (#F5F3F3, sampled above)
       exactly, so the raster image's edges disappear into the page instead
       of reading as a visible box/card. */
    --bg: #f5f3f3;
    --bg-panel: #ffffff;
    --text: #1c2530;
    --text-muted: #6b7280;
    --border: #e5e7eb;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* A faint industrial texture: a top hairline in the deep blue, and a
   whisper-subtle diagonal accent in the corner — nothing loud, nothing
   animated. Keeps the page from feeling like a bare white void while still
   reading as "clean." */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8vh 6vw;
    background: var(--bg);
    border-top: 3px solid var(--el-blue-deep);
}

.hero-logo {
    display: block;
    width: 100%;
    max-width: 640px;
}

.hero-logo img {
    display: block;
    width: 100%;
    height: auto;
}

/* ==========================================================================
   Future content sections — structurally present, visually inert until
   real content is added. is-empty keeps them out of layout/accessibility
   tree entirely (display:none + aria-hidden on the element itself).
   ========================================================================== */
.content-section.is-empty {
    display: none;
}

.content-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 64px 6vw;
}

/* ==========================================================================
   Contact / Contáctanos
   Uses the same spacing system as .content-section (already applied above);
   panel + field styling echoes the clean, industrial light theme and the
   brand colors sampled from the logo.
   ========================================================================== */
.contact-section {
    border-top: 1px solid var(--border);
}

.contact-inner {
    max-width: 620px;
    margin: 0 auto;
}

.contact-eyebrow {
    margin: 0 0 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--el-blue-deep);
}

.contact-title {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.15;
    font-weight: 700;
    color: var(--text);
}

.contact-lead {
    margin: 0 0 32px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.contact-form {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 1px 2px rgba(3, 62, 130, 0.04), 0 12px 32px rgba(3, 62, 130, 0.06);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-field {
    margin-bottom: 10px;
    text-align: left;
}

/* last field (textarea) sits directly above the button — let the button's
   own margin-top be the only gap */
.contact-form .form-field:last-of-type {
    margin-bottom: 0;
}

.form-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}

.form-field input,
.form-field textarea {
    width: 100%;
    font: inherit;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 9px 13px;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #9aa2ad;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--el-blue-deep);
    box-shadow: 0 0 0 3px rgba(2, 111, 177, 0.15);
}

.form-field textarea {
    resize: vertical;
    height: 78px;
    min-height: 78px;
}

.form-field input.is-invalid,
.form-field textarea.is-invalid {
    border-color: var(--el-orange);
    box-shadow: 0 0 0 3px rgba(254, 83, 2, 0.12);
}

.field-error {
    display: block;
    margin-top: 5px;
    min-height: 1em;
    font-size: 0.75rem;
    color: var(--el-orange);
}

/* honeypot — visually and physically removed from the page for humans */
.contact-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    margin-top: 12px;
    padding: 11px 22px;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--el-blue-deep);
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.18s, transform 0.12s, opacity 0.18s;
}

.contact-submit:hover:not(:disabled) {
    background: var(--el-navy);
    transform: translateY(-1px);
}

.contact-submit:focus-visible {
    outline: 2px solid var(--el-blue-deep);
    outline-offset: 2px;
}

.contact-submit:disabled {
    opacity: 0.6;
    cursor: progress;
}

.form-status {
    margin: 16px 0 0;
    font-size: 0.88rem;
    line-height: 1.5;
    text-align: left;
}

.form-status.is-success {
    color: #0a7d40;
}

.form-status.is-error {
    color: var(--el-orange);
}

.footer-nav {
    margin: 0 0 8px;
    font-size: 0.82rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: var(--el-blue-deep);
    text-decoration: underline;
}

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

    .contact-form {
        padding: 22px;
    }

    .contact-submit {
        width: 100%;
    }
}

/* ==========================================================================
   Footer — minimal: an empty legal line (reserved for later) and the
   required Eureka Tech credit link.
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 14px 6vw;
    text-align: center;
    background: var(--bg-panel);
}

.footer-legal {
    margin: 0 0 4px;
    min-height: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-legal:empty {
    display: none;
}

.footer-powered {
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.footer-powered a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-powered a:hover,
.footer-powered a:focus-visible {
    opacity: 0.75;
    text-decoration: underline;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 640px) {
    .hero {
        padding: 10vh 8vw;
    }

    .hero-logo {
        max-width: 420px;
    }
}

@media (max-width: 400px) {
    .hero-logo {
        max-width: 300px;
    }
}
