/* ================================================================
   AGATHOS GROUP — style.css
   ================================================================ */

/* --- Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

/* --- Design Tokens ------------------------------------------------ */
:root {
    --bg:           #07102A;
    --bg-alt:       #060e24;
    --bg-surface:   #0c1638;
    --bg-contact:   #050c1e;
    --border:       #162248;
    --border-light: rgba(22, 34, 72, 0.5);

    --accent:       #d3af37;
    --accent-dim:   rgba(211, 175, 55, 0.12);
    --accent-glow:  rgba(211, 175, 55, 0.05);

    --text:         #d8e4f2;
    --text-dim:     #9ab0c8;
    --text-muted:   #5a7490;
    --white:        #f0f4ff;

    --font-display: 'Cormorant', Georgia, serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;

    --max-width: 1200px;
    --pad-x:     clamp(1.5rem, 5vw, 3rem);
    --section-y: clamp(5rem, 10vw, 8rem);
    --gap:       clamp(2rem, 5vw, 4rem);

    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Base --------------------------------------------------------- */
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- Layout ------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

/* --- Typography --------------------------------------------------- */
.heading-display {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.25;
    color: var(--white);
    letter-spacing: 0.01em;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: background 0.4s var(--ease), border-color 0.4s;
}

.nav.scrolled {
    background: rgba(7, 9, 14, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav.menu-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.nav__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav__logo-img {
    height: 30px;
    width: auto;
    display: block;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav__links a {
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: color 0.2s;
    position: relative;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease);
}

.nav__links a:hover,
.nav__links a.active { color: var(--white); }

.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px; height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    z-index: 101;
}

.nav__toggle span {
    display: block;
    height: 1px;
    background: var(--text);
    transition: transform 0.3s var(--ease), opacity 0.3s;
    transform-origin: center;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 50% 35%,
            rgba(15, 40, 100, 0.5) 0%,
            transparent 65%),
        radial-gradient(ellipse 50% 50% at 75% 75%,
            rgba(211, 175, 55, 0.04) 0%,
            transparent 60%);
}

.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 75%);
}

.hero__bg::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 30%;
    background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    padding: 0 2rem;
}

.hero__rule {
    width: 50px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    margin: 1.5rem auto;
    opacity: 0;
    animation: heroFadeIn 0.8s var(--ease) 0.5s forwards;
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7.5vw, 6rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: var(--white);
    opacity: 0;
    animation: heroFadeUp 1s var(--ease) 0.4s forwards;
}

.hero__sub {
    font-size: clamp(0.875rem, 1.6vw, 1rem);
    font-weight: 300;
    color: var(--text-dim);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.9;
    opacity: 0;
    animation: heroFadeUp 1s var(--ease) 0.8s forwards;
}

.hero__cta {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 0.75rem 2.25rem;
    border: 1px solid rgba(176, 140, 87, 0.35);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    transition: background 0.3s, border-color 0.3s;
    opacity: 0;
    animation: heroFadeUp 1s var(--ease) 1s forwards;
}

.hero__cta:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
}

.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    opacity: 0;
    animation: heroFadeIn 1s var(--ease) 1.5s forwards;
}

.hero__scroll span {
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scrollBounce 2.5s ease-in-out infinite;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scrollBounce {
    0%, 100% { transform: scaleY(1); opacity: 0.4; }
    50%       { transform: scaleY(0.6); opacity: 0.8; }
}

/* ================================================================
   SECTION SHELL
   ================================================================ */
.section {
    padding: var(--section-y) 0;
}

.section--alt {
    background: var(--bg-alt);
}

.section--contact {
    background: var(--bg-contact);
}

.section__header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section__label {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}

.section__rule {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section__intro {
    font-size: 0.975rem;
    color: var(--text-dim);
    max-width: 660px;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.85;
}

/* ================================================================
   THE FIRM
   ================================================================ */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    align-items: start;
}

.about__sticky {
    position: sticky;
    top: 7rem;
}

.about__quote--display {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.4;
    color: var(--white);
    padding-left: 1.5rem;
    border-left: 2px solid var(--accent);
}

.about__body p {
    color: var(--text-dim);
    font-size: 0.975rem;
    margin-bottom: 1.5rem;
}

/* ================================================================
   MISSION
   ================================================================ */
.mission {
    margin-top: clamp(3rem, 6vw, 5rem);
    padding-top: clamp(3rem, 6vw, 5rem);
    border-top: 1px solid var(--border);
    scroll-margin-top: clamp(2rem, 4vw, 3rem);
}

.mission__body {
    max-width: 720px;
}

.mission__body p {
    color: var(--text-dim);
    font-size: 0.975rem;
    margin-bottom: 1.5rem;
    line-height: 1.85;
}

/* ================================================================
   SERVICES
   ================================================================ */
.services__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.service-card {
    background: var(--bg-alt);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    transition: background 0.3s;
}

.service-card:hover {
    background: var(--bg-surface);
}

.service-card__index {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.service-card__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1.1rem;
    line-height: 1.2;
}

.service-card__divider {
    width: 28px;
    height: 1px;
    background: var(--accent);
    margin-bottom: 1.4rem;
    opacity: 0.45;
}

.service-card__list li {
    font-size: 0.875rem;
    color: var(--text-dim);
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.service-card__list li:last-child {
    border-bottom: none;
}

.service-card__list li::before {
    content: '—';
    color: var(--accent);
    opacity: 0.45;
    flex-shrink: 0;
    font-size: 0.75rem;
}

/* ================================================================
   OPERATIONAL REACH
   ================================================================ */
.reach__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--gap);
    align-items: start;
}

.reach__body p {
    color: var(--text-dim);
    font-size: 0.975rem;
    margin-bottom: 1.5rem;
}

.reach__regions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    align-self: start;
}

.reach__region {
    background: var(--bg);
    padding: 0.8rem 1.1rem;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: background 0.2s, color 0.2s;
}

.reach__region:hover {
    background: var(--bg-surface);
    color: var(--white);
}

/* ================================================================
   TRAINING
   ================================================================ */
.training__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--gap);
    align-items: start;
}

.training__body p {
    color: var(--text-dim);
    font-size: 0.975rem;
    margin-bottom: 1.5rem;
}

.training__emphasis {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem !important;
    color: var(--text) !important;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.training__pillars {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
}

.training__pillar {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.training__pillar:last-child { border-bottom: none; }

.training__pillar:hover { background: var(--bg-surface); }

.training__pillar-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.training__pillar p {
    font-size: 0.875rem;
    color: var(--text-dim);
    line-height: 1.7;
}

/* ================================================================
   APPROACH
   ================================================================ */
.approach__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.approach__item {
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
    transition: border-color 0.3s;
}

.approach__item:hover {
    border-color: var(--accent);
}

.approach__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0.9rem;
}

.approach__item p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.8;
}

/* --- Credentials --- */
.credentials {
    margin-top: clamp(3rem, 6vw, 5rem);
    padding-top: clamp(3rem, 6vw, 5rem);
    border-top: 1px solid var(--border);
}

.credentials__header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.credentials__intro {
    font-size: 0.9rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.credentials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.credential {
    background: var(--bg);
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.5;
    transition: background 0.2s, color 0.2s;
}

.credential:hover {
    background: var(--bg-surface);
    color: var(--text);
}

/* ================================================================
   CONTACT
   ================================================================ */
.contact__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--gap);
    align-items: center;
}

.contact__text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.contact__text p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.contact__panel {
    border: 1px solid var(--border);
    background: var(--bg-surface);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact__label {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.contact__value {
    font-size: 0.975rem;
    color: var(--text);
    transition: color 0.2s;
}

a.contact__value:hover { color: var(--white); }

.contact__linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact__divider {
    height: 1px;
    background: var(--border);
}

/* ================================================================
   PRIVACY
   ================================================================ */
.section--privacy {
    background: var(--bg-alt);
    padding: clamp(3rem, 6vw, 4rem) 0;
}

.privacy__inner {
    max-width: 680px;
}

.privacy__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.privacy__inner p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 1rem;
}

.privacy__inner p:last-child { margin-bottom: 0; }

.privacy__inner a {
    color: var(--text-dim);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.privacy__inner a:hover { color: var(--white); }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

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

.footer__brandmark {
    height: 28px;
    width: auto;
    opacity: 0.6;
}

.footer__kvk {
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.footer__copy {
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* ================================================================
   SCROLL ANIMATIONS
   ================================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }

.stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
    .about__grid,
    .reach__grid,
    .training__grid,
    .contact__grid {
        grid-template-columns: 1fr;
    }

    .about__sticky { position: static; }

    .approach__grid { grid-template-columns: 1fr 1fr; }
    .credentials__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    .nav__links {
        display: none;
    }

    .nav__links.open {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(7, 9, 14, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        z-index: 99;
        overflow-y: auto;
    }

    .nav__links.open a {
        font-size: 0.8rem;
        letter-spacing: 0.2em;
        color: var(--text-dim);
    }

    .nav__toggle {
        display: flex;
    }

    .services__grid { grid-template-columns: 1fr; }
    .reach__regions { grid-template-columns: 1fr; }
    .approach__grid { grid-template-columns: 1fr; }
    .credentials__grid { grid-template-columns: 1fr; }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
}
