/* ==========================================================
   HERO SLIDER – underwater video + service tiles
   ========================================================== */
.hero-ocean {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    background: #04204a;
    color: #fff;
    font-family: 'Nunito Sans', 'Segoe UI', Roboto, Arial, sans-serif;
    padding: 0;                  /* beats template's global  section{padding:120px 0} */
    margin-top: -123px;          /* slide UNDER the transparent header (same as .top-position1) */
}

/* ---------- background video ---------- */
.hero-ocean__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-ocean__shade {              /* darkens toward the bottom like the reference */
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(2,22,60,.55) 0, rgba(2,22,60,0) 220px),
        linear-gradient(180deg, rgba(3,30,70,.05) 0%, rgba(3,30,70,.25) 45%, rgba(2,22,64,.85) 100%),
        linear-gradient(90deg, rgba(3,30,70,.35) 0%, rgba(3,30,70,0) 60%);
}

/* ---------- content ---------- */
.hero-ocean__inner {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 123px 2.2% 0;       /* 123px = header height, keeps heading clear of the nav */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-ocean__title {
    margin: 0 0 22px;
    font-size: clamp(38px, 5.6vw, 84px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 4px 22px rgba(0,20,60,.45);
}
.hero-ocean__line {
    display: block;
    opacity: 0;
    transform: translateY(26px);
    animation: heroRise .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-ocean__line:nth-child(1) { color: #e6f1fa; animation-delay: .3s; }
.hero-ocean__line:nth-child(2) { color: #2fb4e8; animation-delay: .9s; }
.hero-ocean__line:nth-child(3) { color: #eef5fb; animation-delay: 1.4s; }
/* 2nd line = blue accent (extra specificity so template h1/span colours can't override) */
.hero-ocean .hero-ocean__title .hero-ocean__line { color: #eef5fb; }
.hero-ocean .hero-ocean__title .hero-ocean__line--accent { color: #2fb4e8; }

.hero-ocean__sub {
    max-width: 640px;
    margin: 0 0 44px;
    font-size: clamp(15px, 1.35vw, 21px);
    line-height: 1.5;
    font-weight: 400;
    color: rgba(255,255,255,.92);
    opacity: 0;
    animation: heroRise .9s ease forwards;
    animation-delay: 1.9s;
}

/* ---------- tiles ---------- */
.hero-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(12px, 1.6vw, 26px);
}
.hero-tile {
    position: relative;
    flex: 0 0 auto;
    width: clamp(120px, 10.9vw, 170px);
    aspect-ratio: 1 / 1.04;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(70,170,240,.85);
    box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 8px 24px rgba(0,10,40,.45), 0 0 14px rgba(47,180,232,.35);
    background: #0a3a72;
    text-decoration: none;
    color: #fff;
    opacity: 0;
    transform: translateY(22px) scale(.94);
    animation: tileIn .7s cubic-bezier(.2,.8,.2,1) forwards;
    animation-delay: calc(2.3s + var(--i) * .22s);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, filter .3s ease;
}
.hero-tile:hover {
    transform: translateY(-6px) scale(1.04);
    border-color: #7fd2ff;
    box-shadow: 0 12px 30px rgba(0,10,40,.55), 0 0 22px rgba(80,200,255,.65);
    color: #fff;
}
.hero-tile.is-dim { filter: grayscale(.7) brightness(.55); }

.hero-tile__imgs,
.hero-tile__imgs img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero-tile__imgs img {
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.1s ease;
}
.hero-tile__imgs img.is-active { opacity: 1; }

.hero-tile::after {               /* readable label */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,20,60,0) 45%, rgba(0,20,60,.8) 100%);
}
.hero-tile__label {
    position: absolute;
    left: 10px;
    right: 8px;
    bottom: 10px;
    z-index: 2;
    font-size: clamp(12px, 1vw, 15px);
    font-weight: 700;
    line-height: 1.22;
    text-shadow: 0 1px 6px rgba(0,0,0,.7);
}

/* ---------- search pill ---------- */
.hero-search {
    margin: 0 0 clamp(28px, 4vh, 48px);
    width: clamp(260px, 26vw, 460px);
    opacity: 0;
    transform: translateY(20px);
    animation: heroRise .8s ease forwards;
    animation-delay: 2.2s;
}
.hero-search input {
    width: 100%;
    height: 40px;
    padding: 0 20px;
    border-radius: 20px;
    border: 1px solid rgba(120,190,255,.55);
    background: rgba(8,40,95,.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.hero-search input::placeholder { color: rgba(255,255,255,.65); }
.hero-search input:focus {
    border-color: #7fd2ff;
    background: rgba(8,40,95,.8);
    box-shadow: 0 0 0 3px rgba(47,180,232,.25);
}

/* ---------- keyframes ---------- */
@keyframes heroRise { to { opacity: 1; transform: none; } }
@keyframes tileIn   { to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .hero-ocean { height: auto; min-height: 100vh; margin-top: -73px; padding-bottom: 60px; }
    .hero-ocean__inner { padding-top: 73px; height: auto; min-height: 100vh; }
}
@media (max-width: 575px) {
    .hero-tiles { gap: 10px; }
    .hero-tile  { width: calc(50% - 5px); }
    .hero-search { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-ocean *, .hero-ocean *::before { animation-duration: .01s !important; animation-delay: 0s !important; }
}

/* ---------- tile description on hover ---------- */
.hero-tile__desc {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    padding: 10px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 500;
    background: linear-gradient(180deg, rgba(4,40,95,.15), rgba(4,30,80,.32));
    opacity: 0;
    transition: opacity .3s ease;
}
.hero-tile:hover .hero-tile__desc { opacity: 1; }
.hero-tile:hover .hero-tile__label { opacity: 0; }
img.hero-ocean__video { display: block; }

/* ---------- tile video ---------- */
.hero-tile__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;      /* square video fills the tile */
    display: block;
}

/* ==========================================================
   LAPTOP ONLY  (desktop width, but short screen: ≤ 900px high)
   Desktop and mobile styles above are NOT changed.
   ========================================================== */
@media (min-width: 992px) and (max-height: 900px) {
    .hero-ocean__inner { max-width: none; padding: 150px 100px 28px 100px ; }

    .hero-ocean__title {
        font-size: clamp(40px, min(6vw, 10.6vh), 100px);
        margin-bottom: clamp(12px, 2.2vh, 24px);
    }
    .hero-ocean__sub {
        font-size: clamp(15px, min(1.35vw, 2.6vh), 22px);
        max-width: 720px;
        margin-bottom: clamp(14px, 3vh, 34px);
    }
    .hero-search {
        margin-bottom: clamp(16px, 3.2vh, 38px);
        width: clamp(260px, min(26vw, 60vh), 460px);
    }
    .hero-search input { height: clamp(36px, 4.8vh, 44px); }

    /* tiles: one row, equal width, fill left edge to right edge */
    .hero-tiles {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        gap: clamp(14px, 1.5vw, 28px);
        width: 100%;
    }
    .hero-tile {
        width: auto;
        aspect-ratio: auto;
        height: clamp(130px, 21vh, 230px);
    }
    .hero-tile__label { font-size: clamp(12px, min(1.05vw, 2vh), 17px); left: 12px; bottom: 12px; }
    .hero-tile__desc  { font-size: clamp(10px, min(.9vw, 1.7vh), 13px); }
}