/* Additions to the earthscapes.digital stylesheet: Earthscapes Digital product site.
   Palette (from the logo): Sky #3BA8DE, Ocean #2270A6, Navy #0A4A80, Ink #0B192E, Mist #F4F8FB. */

:root {
    --sky: #3BA8DE;
    --ocean: #2270A6;
    --navy: #0A4A80;
    --ink: #0B192E;
    --mist: #F4F8FB;
    --sky-tint: #E6F2FA;
    --line: #DCE6EF;
    --slate: #52667A;
    --nav-h: 76px;
}

body { color: var(--ink); }
.nav-logo h2 { color: var(--navy); }
.nav-logo img { mix-blend-mode: normal; }

/* ---------- Products dropdown ---------- */
.nav-item.has-dropdown { position: relative; }
.nav-item.has-dropdown > .nav-link i { font-size: 0.7em; margin-left: 0.3rem; transition: transform 0.2s ease; }
.dropdown {
    position: absolute;
    top: calc(100% + 0.9rem);
    left: 50%;
    transform: translate(-50%, 6px);
    min-width: 270px;
    list-style: none;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(11, 25, 46, 0.12);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.dropdown::before { content: ''; position: absolute; top: -1rem; left: 0; right: 0; height: 1rem; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-dropdown:hover > .nav-link i, .has-dropdown.open > .nav-link i { transform: rotate(180deg); }
.dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink);
}
.dropdown a:hover { background: var(--mist); }
.dropdown .dd-icon {
    width: 36px; height: 36px; flex: none;
    display: grid; place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--sky), var(--navy));
    color: white; font-size: 0.95rem;
}
.dropdown .dd-icon.has-logo { background: white; border: 1px solid var(--line); }
.dropdown .dd-icon img { width: 24px; height: 24px; object-fit: contain; }
.dropdown strong { display: block; font-weight: 600; font-size: 0.95rem; }
.dropdown small { display: block; color: var(--slate); font-size: 0.78rem; }

/* ---------- Hero: large square brand video on the same Mist background ---------- */
.hero { background: var(--mist); }
.hero::before { display: none; }
.hero-container { grid-template-columns: 1fr 1.05fr; gap: 3rem; }
.hero-image { display: flex; justify-content: center; }
.hero-video {
    width: 100%;
    max-width: 620px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* ---------- Product lines: one full screen each ---------- */
.products-intro { padding: 5rem 0 1rem; background: white; text-align: center; }
.products-intro .section-header { margin-bottom: 0; }

.product-line {
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--nav-h) + 2rem) 0 2.5rem;
    display: flex;
    align-items: center;
    background: white;
}
.product-line:nth-of-type(even) { background: var(--mist); }
.product-line > .container { width: 100%; max-width: 1320px; }
.line-layout { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: start; }

.line-header img { height: 52px; width: auto; margin-bottom: 1rem; }
.line-count { color: var(--slate); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.line-kicker { color: var(--ocean); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 1.5rem; }
.line-header h3 { font-size: 2.6rem; font-weight: 700; color: var(--navy); margin: 0.3rem 0 0.75rem; line-height: 1.1; }
.line-header p { color: var(--slate); font-size: 1.05rem; }
.line-next {
    display: inline-flex; align-items: center; gap: 0.6rem;
    margin-top: 2rem; color: var(--navy); font-weight: 600; text-decoration: none;
}
.line-next i {
    width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
    border: 2px solid var(--sky); color: var(--ocean); transition: transform 0.2s ease;
}
.line-next:hover i { transform: translateY(3px); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.product-card {
    position: relative;
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.1rem 1.1rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.product-line:nth-of-type(odd) .product-card { background: var(--mist); }
.product-card:hover { border-color: var(--sky); box-shadow: 0 12px 28px rgba(10, 74, 128, 0.10); transform: translateY(-2px); }
.product-icon {
    width: 44px; height: 44px; flex: none;
    display: grid; place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sky), var(--navy));
    color: white; font-size: 1.1rem;
}
.product-icon.has-logo { background: white; border: 1px solid var(--line); }
.product-icon img { width: 30px; height: 30px; object-fit: contain; }
.product-card h4 { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 0.05rem 0 0.2rem; line-height: 1.3; }
.product-card p {
    color: var(--slate); font-size: 0.86rem; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.badge {
    display: inline-block; margin-bottom: 0.4rem;
    background: var(--sky-tint); color: var(--navy);
    font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 0.15rem 0.5rem; border-radius: 50px;
}

/* Screen-by-screen scrolling on larger screens */
@media (min-width: 1024px) and (min-height: 680px) {
    html { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
    .hero, .products-intro, .product-line, .about, .contact { scroll-snap-align: start; }
    .footer { scroll-snap-align: end; }
    .about, .contact { min-height: 100vh; display: flex; align-items: center; padding-top: calc(var(--nav-h) + 2rem); }
    .about > .container, .contact > .container { width: 100%; }
    .contact { padding-bottom: 2rem; }
    .contact .section-header { margin-bottom: 2rem; }
    .contact .form-group { margin-bottom: 1rem; }
}

/* ---------- About, contact, footer ---------- */
.about-graphic { opacity: 1; }
.about-graphic img { width: 100%; max-width: 340px; }
.contact-item a, .footer-section a { color: inherit; text-decoration: none; }
.contact-item a:hover, .footer-section a:hover { color: var(--sky); }
.footer { background: var(--ink); }
.footer-section ul li a:hover, .social-links a:hover { color: white; }
.social-links a:hover { background: var(--ocean); }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-brand img { width: 40px; height: 40px; }

/* ---------- Careers page ---------- */
.page-hero { padding: 9rem 0 5rem; background: var(--mist); text-align: center; }
.page-hero h1 { font-size: 2.75rem; color: var(--navy); margin-bottom: 1rem; }
.page-hero p { color: var(--slate); font-size: 1.15rem; max-width: 640px; margin: 0 auto 2rem; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .line-layout { grid-template-columns: 260px 1fr; gap: 2rem; }
}
@media (max-width: 900px) {
    .line-layout { grid-template-columns: 1fr; }
    .line-header h3 { font-size: 2.1rem; }
    .product-line { min-height: 0; padding: 4rem 0; }
}
@media (max-width: 768px) {
    :root { --nav-h: 64px; }
    .hero-container { grid-template-columns: 1fr; padding-top: 6.5rem; padding-bottom: 3rem; gap: 1.5rem; }
    .hero-video { max-width: 420px; }
    .product-grid { grid-template-columns: 1fr; }
    .line-next { display: none; }
    .has-dropdown .dropdown {
        position: static; transform: none; opacity: 1; visibility: visible;
        display: none; box-shadow: none; border: none; margin: 0.5rem auto 0; text-align: left;
        max-width: 300px;
    }
    .has-dropdown.open .dropdown { display: block; transform: none; }
    .nav-menu { max-height: calc(100vh - 70px); overflow-y: auto; }
}
