/*
 * Eternal Blue — shared CSS (single source of truth).
 * Rules confirmed identical across all pages. Page-specific rules
 * (homepage hero, about h1 override, etc.) stay in each page's <style>.
 * Loaded AFTER style.css.
 */

body {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
}

/* <picture> is a load-time wrapper, not a layout box. Removing it from the
   layout tree keeps percentage/object-fit sizing on the <img>
   (w-full / h-full / object-cover / max-h-full) resolving against the very
   same parent it used before the WebP refactor. */
picture { display: contents; }

/* Mobile menu button: full 44x44 touch target (WCAG target-size best
   practice). The negative margin keeps the 24px icon optically flush with
   the container edge exactly where it sat before. */
#mobileMenuBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
}

/* Visually hidden, still announced by screen readers. Used for section
   headings that keep the document outline sequential without changing
   the visual design. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.section-heading {
    font-size: 2.25rem;
    font-weight: 800;
    color: #002B66;
    text-transform: uppercase;
    letter-spacing: -0.025em;
}
@media (min-width: 768px) {
    .section-heading { font-size: 3.75rem; }
}

.decorative-line {
    width: 60px;
    height: 4px;
    background-color: #3b82f6;
    margin: 1.5rem auto;
}

.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
    transform: translateY(-8px);
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.contact-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Reveal is hidden ONLY when JS is on (the .js class is added in <head>).
   If JavaScript never runs, content stays visible. */
.js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}
.js .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.btn-primary {
    background-color: #002B66;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}
.btn-primary:hover {
    background-color: #1e40af;
    transform: scale(1.05);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); }

@media (max-width: 767px) {
    .section-heading {
        font-size: 1.875rem;
        line-height: 1.15;
        word-break: break-word;
    }
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-float svg { width: 1.75rem; height: 1.75rem; }
}

/* Anchor offset so fixed nav never covers section headings */
section[id], #top { scroll-margin-top: 6rem; }

/* Respect reduced-motion preferences (a11y + Lighthouse).
   .js .reveal keeps parity with the (0,2,0) hiding rule above so
   reduced-motion users still see content immediately. */
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}
