/* ============================================
   PROPOSTA 3: TYPOGRAPHIC IMMERSIVE
   Inspired by chiaraluzzana.com
   — Serif display, lots of white space, poetry
   ============================================ */
:root {
    --ink: #0C0C0C;
    --charcoal: #2E2E2E;
    --mid: #888888;
    --light: #C8C8C8;
    --off-white: #F6F4F0;
    --white: #FFFFFF;
    --green: #3A6B47;
    --green-light: #6FAF7E;
    --green-pale: #EBF4EE;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', sans-serif;
    --display: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--white);
    color: var(--charcoal);
    overflow-x: hidden;
    cursor: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Custom cursor */
.cursor {
    position: fixed;
    width: 14px;
    height: 14px;
    background: rgba(45, 106, 79, 0.7);
    /* dark green, slight transparency */
    border: 1px solid var(--green);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
    z-index: 9999;
}

.cursor--hover {
    width: 48px;
    height: 48px;
    background: rgba(82, 183, 136, 0.2);
    /* light green transparent */
    border-color: rgba(82, 183, 136, 0.8);
    backdrop-filter: blur(2px);
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    padding: 28px 5%;
    transition: all 0.4s;
}

.header.header--scrolled {
    background: rgba(246, 244, 240, 0.96);
    backdrop-filter: blur(12px);
    padding: 18px 5%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.header__logo {
    height: 44px;
    /* increased by ~30% from 34px */
    object-fit: contain;
}

.header__nav {
    display: flex;
    gap: 40px;
}

.header__nav a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mid);
    transition: color 0.3s;
}

.header__nav a:hover {
    color: var(--ink);
}

/* LABELS */
.label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 16px;
}

/* HEADING SERIF — Chiara style */
.heading-serif {
    font-family: var(--serif);
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

.heading-serif em {
    font-style: italic;
    color: var(--green);
}

.centered {
    text-align: center;
}

.centered-sub {
    text-align: center;
    color: var(--mid);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 64px;
    line-height: 1.7;
}

/* Buttons */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--ink);
    padding: 14px 28px;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s;
    margin-top: 32px;
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--white);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--green);
    color: var(--white);
    padding: 16px 36px;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-submit:hover {
    background: var(--ink);
    transform: translateY(-2px);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 380px;
    grid-template-rows: auto 1fr auto;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero__bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shape--circle {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(58, 107, 71, 0.1);
    top: -100px;
    right: -100px;
}

.shape--arc {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(58, 107, 71, 0.07);
    bottom: 80px;
    left: 5%;
}

.hero__content {
    grid-column: 1;
    grid-row: 1 / 3;
    padding: 80px 0 40px 8%;
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mid);
    margin-bottom: 48px;
}

.hero__title {
    font-family: var(--serif);
    font-size: clamp(5rem, 9vw, 10rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.word-line {
    display: block;
}

.word-line--italic {
    font-style: italic;
    color: var(--green);
}

.hero__footer {
    grid-column: 1;
    grid-row: 3;
    padding: 40px 0 60px 8%;
    display: flex;
    align-items: flex-end;
    gap: 60px;
    z-index: 1;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-left: 8%;
    margin-right: 40px;
}

.hero__desc {
    max-width: 400px;
    font-size: 1rem;
    color: var(--mid);
    line-height: 1.7;
}

.scroll-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex-shrink: 0;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mid);
    transition: color 0.3s;
}

.scroll-cta:hover {
    color: var(--ink);
}

.scroll-cta__line {
    width: 1px;
    height: 60px;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.scroll-cta__line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: var(--green);
    animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
    0% {
        transform: translateY(-30px);
    }

    100% {
        transform: translateY(60px);
    }
}

.hero__img-panel {
    grid-column: 2;
    grid-row: 1 / 4;
    background: var(--off-white);
    overflow: hidden;
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    opacity: 0.9;
}

/* ABOUT SECTION */
.section-about {
    padding: 160px 0;
}

.about-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.about-numbers {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-top: 16px;
}

.big-number {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 32px;
}

.big-number:last-child {
    border-bottom: none;
}

.num {
    font-family: var(--serif);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.num-lbl {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mid);
    margin-top: 8px;
}

/* TOOLS SECTION */
.section-tools {
    background: var(--off-white);
    padding: 140px 0;
}

.tools-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
    align-items: end;
}

.tools-header p {
    font-size: 1.15rem;
    color: var(--mid);
    line-height: 1.7;
}

.tools-items {
    display: flex;
    flex-direction: column;
}

.tool-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
    padding: 48px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    transition: background 0.3s;
}

.tool-item:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tool-item__num {
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--light);
    font-weight: 600;
    padding-top: 8px;
}

.tool-item__body h3 {
    font-family: var(--serif);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}

.tool-item__body p {
    color: var(--charcoal);
    line-height: 1.65;
    margin-bottom: 16px;
}

.tool-item__body ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.tool-item__body ul li {
    font-size: 0.9rem;
    color: var(--mid);
    padding-left: 16px;
    position: relative;
}

.tool-item__body ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--green);
}

.tool-link {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green);
    transition: letter-spacing 0.3s;
}

.tool-link:hover {
    letter-spacing: 0.15em;
}

/* NETWORKS */
.section-networks {
    padding: 140px 0;
}

.networks-list {
    display: flex;
    flex-direction: column;
    margin-top: 60px;
}

.network-item {
    display: grid;
    grid-template-columns: 60px 280px 1fr;
    gap: 40px;
    padding: 32px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    align-items: center;
    transition: background 0.2s;
}

.network-item:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.n-num {
    font-family: var(--serif);
    font-size: 0.9rem;
    color: var(--light);
}

.network-item h4 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
}

.network-item p {
    font-size: 0.95rem;
    color: var(--mid);
    line-height: 1.5;
}

/* COURSES */
.section-courses {
    padding: 140px 0;
    background: var(--off-white);
}

.courses-split {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 100px;
    align-items: start;
}

.courses-left p {
    font-size: 1.1rem;
    color: var(--mid);
    line-height: 1.7;
    margin-top: 20px;
}

.course-row {
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.course-row:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.course-type {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--mid);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.course-row h3 {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
}

.course-row p {
    font-size: 0.95rem;
    color: var(--charcoal);
    line-height: 1.6;
}

/* CONTACT */
.section-contact {
    padding: 140px 0;
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 100px;
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.contact-details p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--charcoal);
}

.contact-details strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mid);
    margin-bottom: 4px;
}

.contact-details a {
    color: var(--green);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mid);
}

.form-group input,
.form-group textarea {
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid var(--light);
    font-family: var(--sans);
    font-size: 1rem;
    color: var(--ink);
    background: transparent;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--ink);
}

.form-group textarea {
    resize: vertical;
}

/* FOOTER */
.footer {
    padding: 60px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

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

.footer__logo {
    height: 28px;
    filter: grayscale(100%);
    opacity: 0.4;
}

.footer__text {
    font-size: 0.85rem;
    color: var(--mid);
}

.footer__links {
    display: flex;
    gap: 32px;
}

.footer__links a {
    font-size: 0.85rem;
    color: var(--mid);
    transition: color 0.3s;
}

.footer__links a:hover {
    color: var(--ink);
}

.footer__institutional {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: center;
}

.footer__links--inst {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer__links--inst a {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero__img-panel {
        height: 45vh;
        grid-column: 1;
        grid-row: auto;
    }

    .hero__content {
        padding: 100px 5% 40px;
    }

    .hero__footer {
        margin-left: 0;
        padding: 32px 5%;
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .tools-header {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tool-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .courses-split {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-split {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

    .header__nav {
        display: none;
    }

    .network-item {
        grid-template-columns: 40px 1fr;
    }

    .network-item p {
        grid-column: 2;
    }
}

/* ============================================
   OVERLAY NAV MENU — Hello Monday style
   ============================================ */

/* Hamburger button */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 999;
    position: relative;
}

/* When overlay is open, hamburger bars turn white */
.nav-toggle.is-open .nav-toggle__bar {
    background: rgba(255, 255, 255, 0.9);
}

.nav-toggle__bar {
    display: block;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transform-origin: right center;
    transition: width 0.4s var(--ease), transform 0.4s var(--ease), opacity 0.3s;
}

.nav-toggle__bar:nth-child(1) {
    width: 28px;
}

.nav-toggle__bar:nth-child(2) {
    width: 20px;
}

.nav-toggle__bar:nth-child(3) {
    width: 24px;
}

/* When open: animate to X */
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
    width: 28px;
    transform: rotate(-45deg) translateY(1px);
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
    width: 0;
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
    width: 28px;
    transform: rotate(45deg) translateY(-1px);
}

/* Close (X) button inside overlay */
.nav-overlay__close {
    position: absolute;
    top: 28px;
    right: 8%;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    font-size: 2.2rem;
    line-height: 1;
    padding: 8px;
    transition: color 0.2s, transform 0.2s;
    z-index: 10;
}

.nav-overlay__close:hover {
    color: white;
    transform: rotate(90deg);
}

/* Full-screen overlay panel */
.nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--ink);
    z-index: 250;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 8% 40px;
    pointer-events: none;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1),
        opacity 0.4s ease;
}

.nav-overlay.is-open {
    pointer-events: all;
    opacity: 1;
    transform: translateX(0);
}

/* Nav links inside overlay */
.nav-overlay__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
}

.nav-overlay__item {
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-overlay__item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-overlay__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2.8vw, 2.8rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1),
        color 0.3s ease;
    line-height: 1.1;
}

.nav-overlay__link:hover {
    color: var(--green-light);
}

.nav-overlay__link .link-num {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.3);
    align-self: flex-start;
    margin-top: 10px;
}

/* Staggered entry animations */
.nav-overlay.is-open .nav-overlay__link {
    transform: translateY(0);
}

.nav-overlay.is-open .nav-overlay__item:nth-child(1) .nav-overlay__link {
    transition-delay: 0.15s;
}

.nav-overlay.is-open .nav-overlay__item:nth-child(2) .nav-overlay__link {
    transition-delay: 0.22s;
}

.nav-overlay.is-open .nav-overlay__item:nth-child(3) .nav-overlay__link {
    transition-delay: 0.29s;
}

.nav-overlay.is-open .nav-overlay__item:nth-child(4) .nav-overlay__link {
    transition-delay: 0.36s;
}

.nav-overlay.is-open .nav-overlay__item:nth-child(5) .nav-overlay__link {
    transition-delay: 0.43s;
}

.nav-overlay.is-open .nav-overlay__item:nth-child(6) .nav-overlay__link {
    transition-delay: 0.50s;
}

.nav-overlay.is-open .nav-overlay__item:nth-child(7) .nav-overlay__link {
    transition-delay: 0.57s;
}

/* Footer inside overlay */
.nav-overlay__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.55s, transform 0.5s ease 0.55s;
}

.nav-overlay.is-open .nav-overlay__footer {
    opacity: 1;
    transform: translateY(0);
}

.nav-overlay__footer-logo {
    height: 28px;
    filter: brightness(0) invert(1);
    opacity: 0.4;
}

.nav-overlay__footer-info {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

.nav-overlay__footer-contacts a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

.nav-overlay__footer-contacts a:hover {
    color: var(--white);
}

/* Hide default nav on all sizes — use overlay only */
.header__nav {
    display: none;
}

/* ============================================
   PRELOADER (CARTOON ANIMATION)
   ============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.preloader__svg {
    width: 180px;
    /* increased by 50% from 120px */
    height: 180px;
}

.draw-line {
    fill: none;
    stroke: var(--ink);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
}

.draw-line--fast {
    animation: draw 1.5s ease forwards;
}

.draw-line--med {
    animation: draw 2s ease 0.5s forwards;
}

.draw-line--slow {
    animation: draw 2.5s ease 0.8s forwards;
}

.sun-circle {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw 1s ease 1s forwards;
}

.sun-ray {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: draw 0.8s ease 1.5s forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.preloader__text {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mid);
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ============================================
   LIQUID EFFECT (SVG FILTER ANIMATION)
   ============================================ */
.liquid-hover {
    display: inline-block;
    transition: transform 0.3s;
    filter: url(#liquid);
    /* Pre-apply */
}

.liquid-hover:hover {
    transform: scale(1.02);
}

/* liquid filter on nav links is optional — active when SVG filter div is present */