
:root {
  --primary: #0052cc;
  --secondary: #0b1f44;
  --text: #1a1a1a;
  --bg: #ffffff;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
}

button {
  border-radius: var(--radius);
  cursor: pointer;
}

/* ===============================
   HERO SLIDER (DROP-IN)
   =============================== */

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* SLIDER */
.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* SLIDES */
.slide {
    position: absolute;
    inset: 0;
    display: none;
}

.slide.active {
    display: block;
}

/* IMAGE */
.slider-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* DARK OVERLAY */
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15); /* White overlay with 50% opacity */
    z-index: 1;
}

/* CONTENT — MOVED UP TOTAL 120px */
.hero-content {
    position: absolute;
    left: 6vw;
    bottom: calc(22% + 120px);
    max-width: 720px;
    z-index: 2;
    color: white;
}

/* HEADLINE */
.hero-headline {
    font-size: 3.2rem;
    margin: 0 0 0.8rem 0;
    opacity: 0;
    color: #4e5b66; /* Set H1 text color to a darker grey */
}

/* PARAGRAPH */
.hero-text {
    font-size: 1.9rem;
    font-weight: 300;
    color: #36454f; /* Set text color to the same dark grey */
    margin: 0;
    opacity: 0;
}

/* ENTER ANIMATION */
@keyframes heroEnter {
    from {
        transform: translateY(80px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* FADE OUT */
@keyframes heroExit {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* FIXED CTA — UNCHANGED (100px UP) */
.hero-cta {
    position: absolute;
    left: 6vw;
    bottom: calc(10% + 100px);
    z-index: 3;
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 1s;
}

/* CTA FADE */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===============================
   MOBILE
   =============================== */

@media (max-width: 768px) {

    .hero-content {
        left: 5vw;
        bottom: calc(30% + 120px);
        max-width: 90%;
    }

    .hero-headline {
        font-size: 2.1rem;
    }

    .hero-text {
        font-size: 1.3rem;
    }

    /* CTA stays where it was */
    .hero-cta {
        left: 5vw;
        bottom: calc(14% + 100px);
    }
}

/* ===============================
   HERO SECTION (Inner Pages) — FIXED, CONSISTENT
================================ */

.hero--page {
    position: relative;
    width: 100%;
    height: 70vh;
    background-color: #427FC0;
}

/* REMOVE OVERLAY COMPLETELY */
.hero--page::before {
    content: none;
}

/* CONTENT WRAPPER — SINGLE ANCHOR POINT */
.hero--page .hero-content {
    position: absolute;
    top: 170px;          /* 🔒 ONE fixed value for ALL pages */
    left: 5vw;
    max-width: 30%;
    text-align: left;
}

/* H1 — POSITION NEVER CHANGES */
.hero--page h1 {
    font-size: 3.1rem;
    font-weight: 600;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 0.6rem 0;
}

/* P — OPTIONAL, DOES NOT AFFECT H1 */
.hero--page p {
    font-size: 1.3rem;
    font-weight: 100;
    line-height: 1.0;
    color: #ffffff;
    margin: 0;
}

/* ===============================
   MOBILE — STILL FIXED
================================ */
@media (max-width: 768px) {

    .hero--page {
        height: auto;
        padding-top: 8rem;
        padding-bottom: 6rem;
    }

    .hero--page .hero-content {
        position: absolute;   /* ❗ DO NOT change to relative */
        top: 120px;           /* mobile-specific fixed offset */
        left: 6vw;
        max-width: 90%;
    }

    .hero--page h1 {
        font-size: 2.2rem;
    }

    .hero--page p {
        font-size: 1.35rem;
        line-height: 1.3;
    }
}
