/* ============================================================
   InterAction — Reference Layout: Utility Bar, Dark Nav, Hero
   ------------------------------------------------------------
   Loaded after design-system.css. Implements the requested
   reference composition:
     • thin dark utility bar (phone, hours, email + social)
     • dark navigation with a gold primary CTA
     • full-bleed photographic hero, left-aligned headline,
       gold rule, three proof points, gold + ghost buttons
   ============================================================ */

/* ------------------------------------------------------------
   Palette additions for this layout
   ------------------------------------------------------------ */
:root {
    --nav-ink: #071715;
    --nav-ink-soft: #0c201d;
    --nav-line: rgba(255, 255, 255, 0.1);
    --nav-text: rgba(255, 255, 255, 0.86);
    --gold: #f0a22e;
    --gold-hover: #d9891a;
    --gold-ink: #241604;
}

/* ------------------------------------------------------------
   1. Utility bar
   ------------------------------------------------------------ */
.topbar {
    background: #0a1513;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--ds-font-ui);
    position: relative;
    z-index: 1002;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 42px;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.topbar-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.topbar-contact li,
.topbar-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.775rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.4;
}

.topbar-contact a:hover {
    color: var(--gold);
}

.topbar-contact i {
    font-size: 0.72rem;
    color: var(--gold);
    opacity: 0.95;
}

.topbar-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.8rem;
    border-radius: 4px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.topbar-social a:hover {
    color: var(--gold);
    transform: translateY(-1px);
}

/* ------------------------------------------------------------
   2. Dark navigation
   ------------------------------------------------------------ */
/* Keep the utility bar, nav and page content on one shared grid */
.topbar .container,
.navbar .container {
    max-width: var(--ds-container);
    padding-left: var(--ds-gutter);
    padding-right: var(--ds-gutter);
}

@media (min-width: 1401px) {
    .topbar .container,
    .navbar .container {
        max-width: var(--ds-container);
    }
}

.header {
    background: rgba(8, 25, 23, 0.97) !important;
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--nav-line);
    box-shadow: none !important;
}

.header.scrolled,
.header:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34) !important;
}

.navbar {
    padding: 0.7rem 0;
}

/* Brand: seal + white wordmark with gold initials */
.header .nav-brand span {
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    text-shadow: none;
}

.header .nav-brand .brand-letter-i,
.header .nav-brand .brand-letter-a {
    -webkit-text-fill-color: var(--gold) !important;
    color: var(--gold) !important;
}

.header .nav-brand .brand-text-inter,
.header .nav-brand .brand-text-action {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
}

/* Hide the decorative underline artefacts on a dark bar */
.header .brand-letter-i::before,
.header .brand-accent,
.header .brand-text-wave {
    display: none !important;
}

.header .nav-brand .brand-logo {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Menu links */
.header .nav-menu > li > a {
    color: var(--nav-text) !important;
    background: transparent !important;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    padding: 0.55rem 0.9rem;
    border-radius: 4px;
}

.header .nav-menu > li > a:hover,
.header .nav-menu > li > a.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

/* Gold underline accent replaces the old gradient bar */
.header .nav-menu > li > a::before {
    background: var(--gold) !important;
    height: 2px;
    border-radius: 2px;
}

/* Dropdown panels stay light for legibility on the dark bar */
.header .dropdown-menu {
    background: #ffffff;
    border: 1px solid rgba(12, 26, 36, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.header .dropdown-menu a {
    color: var(--ink-700);
}

.header .dropdown-menu a:hover {
    background: rgba(240, 162, 46, 0.1);
    color: var(--ink-900);
    border-left-color: var(--gold);
}

.header .dropdown-menu a i {
    color: var(--gold);
}

/* Header action cluster on dark */
.header .btn-language,
.header .btn-docs,
.header .btn-login {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 4px;
    font-size: 0.82rem;
    padding: 0.5rem 0.75rem;
}

.header .btn-language:hover,
.header .btn-docs:hover,
.header .btn-login:hover {
    color: #ffffff !important;
    border-color: var(--gold) !important;
    background: rgba(240, 162, 46, 0.12) !important;
}

/* Primary CTA — gold, matching the reference */
.header .btn-consultancy {
    background: var(--gold) !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold-ink) !important;
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: 0.015em;
    padding: 0.62rem 1.15rem;
    border-radius: 4px;
    box-shadow: none;
}

.header .btn-consultancy:hover {
    background: var(--gold-hover) !important;
    border-color: var(--gold-hover) !important;
    color: var(--gold-ink) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(240, 162, 46, 0.26);
}

/* Cart sits with the chrome, gold-tinted to stay on-palette */
.header .btn-cart {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    font-size: 0.82rem;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
}

.header .btn-cart:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: var(--gold) !important;
}

.header .btn-cart .cart-count {
    background: var(--gold);
    color: var(--gold-ink);
    border-color: #0b1f1d;
}

/* Mobile toggle on dark */
.header .mobile-menu-toggle {
    color: #ffffff !important;
}

.header .mobile-menu-toggle:hover {
    color: var(--gold) !important;
}

/* ------------------------------------------------------------
   3. Photographic hero
   ------------------------------------------------------------ */
.hero {
    position: relative;
    display: block;
    min-height: clamp(560px, 76vh, 720px);
    padding: 0;
    background: #06110f !important;
    overflow: hidden;
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-irrigation.jpg');
    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(96deg, rgba(4, 14, 13, 0.94) 0%, rgba(4, 14, 13, 0.82) 34%, rgba(4, 14, 13, 0.5) 62%, rgba(4, 14, 13, 0.34) 100%),
        linear-gradient(180deg, rgba(4, 14, 13, 0.5) 0%, rgba(4, 14, 13, 0.12) 45%, rgba(4, 14, 13, 0.7) 100%);
    z-index: 1;
}

/* Suppress inherited decorative layers */
.hero::before,
.hero::after,
.hero .water-droplets,
.hero .water-waves,
.hero .hero-overlay {
    display: none !important;
}

/* Large faint monogram watermark, like the reference */
.hero-watermark {
    position: absolute;
    top: 50%;
    right: clamp(-2rem, 4vw, 8rem);
    transform: translateY(-50%);
    font-family: var(--ds-font-display);
    font-size: clamp(18rem, 34vw, 30rem);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.06em;
    color: var(--gold);
    opacity: 0.13;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}

.hero-inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    min-height: clamp(560px, 76vh, 720px);
    padding-top: clamp(3rem, 6vw, 4.5rem);
    padding-bottom: clamp(3.5rem, 7vw, 5rem);
}

.hero .hero-content {
    max-width: 760px;
    text-align: left;
    padding: 0;
    margin: 0;
}

/* Small eyebrow line above the headline */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--ds-font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    background: none;
    border: 0;
    padding: 0;
    margin-bottom: 1.1rem;
    backdrop-filter: none;
}

.hero-eyebrow::before {
    content: '';
    width: 26px;
    height: 1px;
    border-radius: 0;
    background: var(--gold);
    box-shadow: none;
}

.hero .hero-title {
    font-family: var(--ds-font-display);
    font-size: clamp(2.15rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin: 0 0 1.35rem;
    text-shadow: 0 2px 26px rgba(0, 0, 0, 0.45);
    max-width: 15ch;
}

/* Gold rule under the headline */
.hero-rule {
    display: block;
    width: 74px;
    height: 3px;
    border-radius: 2px;
    background: var(--gold);
    margin-bottom: 1.6rem;
}

/* Proof points */
.hero-proof {
    list-style: none;
    margin: 0 0 2.1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 620px;
}

.hero-proof li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-family: var(--ds-font-ui);
    font-size: clamp(0.88rem, 1.05vw, 0.97rem);
    line-height: 1.6;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.87);
}

.hero-proof li::before {
    content: '\2713';
    flex: 0 0 18px;
    height: 18px;
    margin-top: 0.22rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--gold);
    border: 1.5px solid rgba(240, 162, 46, 0.75);
    border-radius: 50%;
}

/* Hero buttons — gold primary + ghost secondary */
.hero .hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero .btn {
    padding: 0.85rem 1.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    border-radius: 4px;
    box-shadow: none;
}

.hero .btn-primary {
    background: var(--gold) !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold-ink) !important;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.hero .btn-primary:hover {
    background: var(--gold-hover) !important;
    border-color: var(--gold-hover) !important;
    color: var(--gold-ink) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.hero .btn-secondary {
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    color: var(--nav-ink) !important;
    backdrop-filter: none;
}

.hero .btn-secondary:hover {
    background: #f3f6f6 !important;
    border-color: #f3f6f6 !important;
    color: var(--nav-ink) !important;
    transform: translateY(-2px);
}

/* Faint large wordmark along the hero base, as in the reference */
.hero-wordmark {
    position: absolute;
    left: 50%;
    bottom: -0.35em;
    transform: translateX(-50%);
    margin: 0;
    font-family: var(--ds-font-display);
    font-size: clamp(2.6rem, 8.5vw, 6rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.14);
    z-index: 2;
    pointer-events: none;
    user-select: none;
}

/* ------------------------------------------------------------
   4. Responsive
   ------------------------------------------------------------ */
@media (max-width: 1100px) {
    .hero .hero-title {
        max-width: 18ch;
    }

    .hero-watermark {
        opacity: 0.1;
    }
}

@media (max-width: 968px) {
    /* Anchor the drawer to the header itself (not the viewport) so it
       stays flush beneath the nav once the utility bar scrolls away. */
    .header .nav-menu {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: auto;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        z-index: 1001;
        background: #ffffff !important;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4) !important;
    }

    .header .nav-menu.active {
        right: 0;
    }

    /* Header layout: brand | actions | hamburger (no floating collision) */
    .navbar .container {
        gap: 0.5rem;
    }

    .nav-brand {
        order: 1;
    }

    .nav-actions {
        order: 2;
        margin-left: auto;
        position: static !important;
        bottom: auto !important;
        right: auto !important;
        flex-direction: row !important;
        align-items: center;
        gap: 0.35rem;
        z-index: auto !important;
    }

    .mobile-menu-toggle {
        order: 3;
        margin-left: 0.15rem;
    }

    /* Compact, tap-friendly icon buttons in the header */
    .header .nav-actions .btn-language,
    .header .nav-actions .btn-consultancy,
    .header .nav-actions .btn-cart {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        border-radius: 8px;
        font-size: 0.9rem;
        box-shadow: none;
    }

    /* Docs and Login move into the slide-out drawer only */
    .header .nav-actions .btn-docs,
    .header .nav-actions .btn-login {
        display: none !important;
    }

    .header .nav-actions .btn-consultancy span,
    .header .nav-actions .btn-cart > span:not(.cart-count) {
        display: none;
    }

    /* Language menu must not collapse to the width of an icon button */
    .language-switcher .language-dropdown {
        right: 0;
        left: auto;
        width: auto;
        min-width: 178px;
    }

    .header .nav-menu > li > a {
        color: var(--ink-800) !important;
        border-radius: 0;
        padding: 1rem 1.5rem;
    }

    .header .nav-menu > li > a:hover,
    .header .nav-menu > li > a.active {
        color: var(--ink-900) !important;
        background: rgba(240, 162, 46, 0.1) !important;
    }

    .header .nav-dropdown .dropdown-menu {
        background: #f7faf9 !important;
        border: none;
    }

    .header .nav-dropdown .dropdown-menu a {
        color: var(--ink-700) !important;
    }

    .topbar-hours {
        display: none !important;
    }

    .hero-inner {
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero .hero-title {
        max-width: 22ch;
    }
}

@media (max-width: 768px) {
    .topbar-inner {
        min-height: 38px;
        gap: 0.75rem;
    }

    .topbar-contact {
        gap: 0.9rem;
    }

    .topbar-contact li,
    .topbar-contact a {
        font-size: 0.7rem;
    }

    .topbar-email {
        display: none !important;
    }

    .topbar-social {
        gap: 0.7rem;
    }

    .hero,
    .hero-inner {
        min-height: 0;
    }

    .hero-inner {
        padding-top: 2.75rem;
        padding-bottom: 3.25rem;
    }

    .hero .hero-content {
        padding: 0;
    }

    .hero .hero-title {
        font-size: clamp(1.85rem, 7.6vw, 2.5rem);
        max-width: 100%;
        margin-bottom: 1.15rem;
    }

    .hero-scrim {
        background:
            linear-gradient(180deg, rgba(4, 14, 13, 0.9) 0%, rgba(4, 14, 13, 0.78) 55%, rgba(4, 14, 13, 0.92) 100%);
    }

    .hero-media {
        background-position: center 38%;
    }

    .hero-watermark {
        font-size: 16rem;
        right: -2.5rem;
        opacity: 0.09;
    }

    .hero-wordmark {
        display: none;
    }

    .hero .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
    }

    .hero .btn {
        width: 100%;
    }

    .hero-proof li {
        font-size: 0.87rem;
    }
}

@media (max-width: 520px) {
    .topbar-contact li span {
        font-size: 0.68rem;
    }

    .header .btn-consultancy {
        padding: 0.5rem 0.7rem;
        font-size: 0.78rem;
    }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
    .hero-media,
    .hero-watermark,
    .hero-wordmark {
        transition: none !important;
    }
}

/* Print: drop photographic chrome */
@media print {
    .topbar,
    .hero-media,
    .hero-scrim,
    .hero-watermark,
    .hero-wordmark {
        display: none !important;
    }

    .header {
        background: #fff !important;
    }

    .header .nav-brand span,
    .header .nav-brand .brand-letter-i,
    .header .nav-brand .brand-letter-a,
    .header .nav-menu > li > a {
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
    }

    .hero {
        background: #fff !important;
    }

    .hero .hero-title,
    .hero-proof li {
        color: #000 !important;
    }
}
