@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
    --navy: #123456;
    --navy-deep: #0a2438;
    --navy-mid: #1a4a6e;
    --gold: #c4a35a;
    --gold-soft: #d4b978;
    --ink: #1c2834;
    --muted: #5a6b7d;
    --surface: #eef2f6;
    --surface-2: #e4ebf2;
    --white: #f7f9fb;
    --line: rgba(18, 52, 86, 0.12);
    --radius: 4px;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Outfit", "Segoe UI", sans-serif;
    --shadow: 0 12px 40px rgba(10, 36, 56, 0.12);
    --header-h: 3.75rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--ink);
    color-scheme: only light;
    line-height: 1.55;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    overflow-wrap: break-word;
}

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

a {
    color: var(--navy-mid);
    overflow-wrap: anywhere;
}

.container {
    width: min(92%, 1040px);
    margin-inline: auto;
}

/* ----- Header ----- */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 36, 56, 0.94);
    backdrop-filter: blur(12px);
    color: var(--white);
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(196, 163, 90, 0.25);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

header h1,
header .logo {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

header h1 a,
header .logo a {
    color: inherit;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
    width: 2.6rem;
    height: 2.6rem;
    border-radius: var(--radius);
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.7rem;
    justify-content: flex-end;
}

nav a {
    color: rgba(247, 249, 251, 0.88);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

nav a:hover,
nav a:focus-visible {
    color: var(--gold-soft);
}

nav a:hover::after,
nav a:focus-visible::after {
    transform: scaleX(1);
}

nav a.nav-portal {
    color: var(--gold-soft);
    font-weight: 600;
}

nav a.nav-portal::after {
    transform: scaleX(1);
    opacity: 0.55;
}

nav a.nav-portal:hover,
nav a.nav-portal:focus-visible {
    color: var(--gold);
}

/* ----- Hero ----- */

.page-hero {
    position: relative;
    isolation: isolate;
    color: var(--white);
    text-align: left;
    padding: clamp(2.75rem, 7vw, 4.5rem) 0;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(10, 36, 56, 0.92) 18%, rgba(18, 52, 86, 0.72) 55%, rgba(18, 52, 86, 0.45) 100%),
        linear-gradient(to top, rgba(10, 36, 56, 0.55), transparent 45%),
        url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=2000&q=80") center / cover no-repeat;
    min-height: min(52vh, 420px);
    display: flex;
    align-items: flex-end;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 20%, rgba(196, 163, 90, 0.18), transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.home-hero {
    min-height: min(62vh, 520px);
    align-items: center;
    padding-top: clamp(2.5rem, 6vw, 4rem);
    padding-bottom: clamp(2.25rem, 5vw, 3.25rem);
    background:
        linear-gradient(105deg, rgba(10, 36, 56, 0.94) 12%, rgba(18, 52, 86, 0.78) 48%, rgba(18, 52, 86, 0.4) 100%),
        url("https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&w=2000&q=80") center / cover no-repeat;
    animation: heroFade 1.1s ease both;
}

.home-hero .hero-brand {
    margin: 0 0 0.65rem;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 6vw, 3.75rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 12ch;
    animation: riseIn 0.9s ease 0.15s both;
}

.home-hero .hero-headline {
    margin: 0 0 0.65rem;
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    font-weight: 400;
    line-height: 1.35;
    max-width: 28ch;
    color: rgba(247, 249, 251, 0.95);
    animation: riseIn 0.9s ease 0.3s both;
}

.home-hero .hero-lede {
    margin: 0 0 1.35rem;
    font-size: 0.98rem;
    font-weight: 300;
    max-width: 38ch;
    color: rgba(247, 249, 251, 0.8);
    animation: riseIn 0.9s ease 0.45s both;
}

.home-hero .btn {
    animation: riseIn 0.9s ease 0.6s both;
}

.page-hero h2 {
    margin: 0 0 0.55rem;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4.2vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    max-width: 18ch;
}

.page-hero p {
    margin: 0 0 1rem;
    font-size: 0.98rem;
    font-weight: 300;
    max-width: 42ch;
    color: rgba(247, 249, 251, 0.85);
}

/* ----- Sections ----- */

.section {
    padding: clamp(2.25rem, 5vw, 3.5rem) 0;
    background-color: var(--white);
}

.light-bg {
    background-color: var(--surface);
}

.section h2 {
    color: var(--navy);
    margin: 0 0 0.65rem;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.section > .container > p:first-of-type {
    font-size: 1rem;
    color: var(--muted);
    max-width: 58ch;
}

.section p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.section ul {
    margin: 0.85rem 0;
    padding-left: 1.15rem;
}

.section li {
    margin-bottom: 0.3rem;
}

.section-intro {
    display: grid;
    gap: 1rem 2.25rem;
    align-items: start;
}

@media (min-width: 800px) {
    .section-intro {
        grid-template-columns: 1fr 1.2fr;
    }

    .section-intro h2 {
        margin-top: 0.2rem;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ----- Buttons ----- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: var(--navy);
    color: var(--white);
    text-decoration: none;
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    background-color: var(--navy-deep);
    transform: translateY(-1px);
}

.btn-accent {
    background-color: var(--gold);
    color: var(--navy-deep);
}

.btn-accent:hover {
    background-color: var(--gold-soft);
    color: var(--navy-deep);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--white);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
}

.enquiry-btn {
    display: inline-flex;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    margin-top: 0.65rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

/* ----- Feature / card grids ----- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1px;
    margin-top: 1.35rem;
    background: var(--line);
    border: 1px solid var(--line);
}

.card {
    background: var(--white);
    padding: 1.25rem 1.15rem;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    transition: background-color 0.25s ease;
}

.light-bg .card {
    background: var(--white);
}

.card:hover {
    background: #f3f7fb;
}

.card h3 {
    color: var(--navy);
    margin: 0 0 0.45rem;
    font-size: 1.1rem;
}

.card p {
    color: var(--muted);
    flex: 1;
    margin-bottom: 0.9rem;
    font-size: 0.92rem;
}

.card .btn {
    align-self: flex-start;
    padding: 0.55rem 0.95rem;
    font-size: 0.85rem;
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--line);
}

.card .btn:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
    transform: none;
}

/* Audience strip — cleaner than cards */

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 1.15rem;
    margin-top: 1.35rem;
}

.audience-item {
    padding-top: 0.9rem;
    border-top: 2px solid var(--navy);
}

.audience-item h3 {
    margin: 0 0 0.35rem;
    color: var(--navy);
    font-size: 1.1rem;
}

.audience-item p {
    color: var(--muted);
    margin-bottom: 0.6rem;
    font-size: 0.92rem;
}

.audience-item a {
    font-weight: 600;
    text-decoration: none;
    color: var(--navy);
    font-size: 0.9rem;
}

.audience-item a:hover {
    color: var(--gold);
}

/* Values */

.values-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    gap: 1.35rem;
    margin-top: 1.35rem;
}

.value-item h3 {
    margin: 0 0 0.3rem;
    color: var(--navy);
    font-size: 1.05rem;
}

.value-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.value-item::before {
    content: "";
    display: block;
    width: 1.75rem;
    height: 3px;
    background: var(--gold);
    margin-bottom: 0.7rem;
}

/* ----- CTA ----- */

.cta {
    background:
        linear-gradient(120deg, var(--navy-deep), var(--navy-mid));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::after {
    content: "";
    position: absolute;
    inset: auto -10% -40% auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(196, 163, 90, 0.15);
    pointer-events: none;
}

.cta h2 {
    color: var(--white);
}

.cta p {
    color: rgba(247, 249, 251, 0.85);
    max-width: 40ch;
    margin-inline: auto;
}

.cta .btn {
    background-color: var(--gold);
    color: var(--navy-deep);
    margin-top: 0.5rem;
}

.cta .btn:hover {
    background-color: var(--gold-soft);
}

/* ----- Footer ----- */

footer {
    background-color: var(--navy-deep);
    color: rgba(247, 249, 251, 0.75);
    padding: 1.75rem 0;
    text-align: center;
    font-size: 0.88rem;
}

footer p {
    margin: 0.25rem 0;
    line-height: 1.5;
}

footer p:first-child {
    color: var(--white);
    font-weight: 500;
}

/* ----- Motion ----- */

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(1.4rem);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes heroFade {
    from {
        opacity: 0.65;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .home-hero,
    .home-hero .hero-brand,
    .home-hero .hero-headline,
    .home-hero .hero-lede,
    .home-hero .btn,
    .reveal {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ----- Tablet / mobile nav (desktop keeps full horizontal menu) ----- */

@media (max-width: 1080px) {
    .nav-toggle {
        display: inline-flex;
    }

    header .container {
        flex-wrap: wrap;
    }

    nav {
        display: none;
        width: 100%;
        padding-top: 0.75rem;
    }

    nav.is-open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    nav a {
        display: block;
        padding: 0.75rem 0;
        font-size: 0.95rem;
        white-space: normal;
    }

    nav a::after {
        display: none;
    }

    .page-hero,
    .home-hero {
        min-height: auto;
        text-align: left;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
        text-align: center;
    }
}
