/* ==========================================================================
   Nile Lingua Lab — homepage layouts
   Shared tokens and components (header, footer, buttons, maps, CTA band)
   live in site.css.
   ========================================================================== */

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

.nll-hero {
    position: relative;
    overflow: hidden;
    color: var(--nll-on-dark);
    background-color: var(--nll-navy);
    background-image:
        radial-gradient(60% 70% at 78% 45%, rgb(73 179 160 / 16%), transparent 70%),
        radial-gradient(40% 50% at 12% 0%, rgb(224 168 79 / 9%), transparent 70%);
}
.nll-hero::before {
    /* Fine survey grid, faded towards the edges */
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgb(255 255 255 / 3.5%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 3.5%) 1px, transparent 1px);
    background-size: 56px 56px;
    content: "";
    -webkit-mask-image: radial-gradient(70% 80% at 70% 45%, #000, transparent 75%);
    mask-image: radial-gradient(70% 80% at 70% 45%, #000, transparent 75%);
    pointer-events: none;
}
.nll-hero-grid {
    position: relative;
    display: grid;
    padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px);
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}
.nll-hero-copy { position: relative; z-index: 2; }
.nll-hero-copy h1 {
    max-width: 15ch;
    margin: 24px 0 24px;
    color: #FFFFFF;
    font-family: var(--serif);
    font-size: clamp(40px, 5.2vw, 68px);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.04;
}
.nll-hero-copy h1 .nll-nowrap { color: var(--nll-gold); font-style: italic; font-weight: 500; }
.nll-hero-subhead { max-width: 30ch; margin: 0 0 16px; color: #EDEBE3; font-family: var(--serif); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; }
.nll-hero-intro { max-width: 58ch; margin: 0; color: var(--nll-on-dark-muted); font-size: 16px; line-height: 1.75; }
.nll-hero-note { display: flex; margin: 32px 0 0; align-items: center; gap: 12px; color: #CFDCDB; font-size: 14px; font-weight: 500; }
.nll-hero-note > span { width: 32px; height: 1px; background: var(--nll-gold); }

.nll-hero-visual { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.nll-hero-stage { position: relative; width: min(100%, 520px); aspect-ratio: 410 / 430; }
.nll-hero-caption { color: #8FA4A7; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.nll-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    aspect-ratio: 1;
    border: 1px solid rgb(255 255 255 / 7%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.nll-orbit-one { width: 112%; }
.nll-orbit-two { width: 82%; border-style: dashed; border-color: rgb(224 168 79 / 12%); }

/* Floating "3D" glass cards */
.nll-float {
    position: absolute;
    z-index: 3;
    display: grid;
    width: 196px;
    padding: 14px 16px 16px;
    gap: 6px;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 14px;
    color: #FFFFFF;
    background: linear-gradient(155deg, rgb(255 255 255 / 15%), rgb(255 255 255 / 4%) 60%), rgb(10 30 40 / 62%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 30px 50px -22px rgb(0 0 0 / 70%), 0 10px 18px -12px rgb(0 0 0 / 50%);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    animation: nll-float 9s ease-in-out infinite;
}
.nll-float-translate { top: 4%; left: -4%; --tilt: perspective(900px) rotateY(10deg) rotateX(4deg); transform: var(--tilt); }
.nll-float-audio { bottom: 5%; left: -2%; --tilt: perspective(900px) rotateY(10deg) rotateX(-4deg); transform: var(--tilt); animation-delay: -4.5s; }
.nll-float-label { color: #9FB4B6; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nll-float-label span { color: var(--nll-gold); }
.nll-float-source { color: #C9D6D6; font-size: 13px; }
.nll-float-target { color: #FFFFFF; font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.nll-float-check { display: inline-flex; white-space: nowrap; width: fit-content; margin-top: 4px; padding: 3px 9px; align-items: center; gap: 6px; border-radius: 6px; color: #BFEBE1; background: rgb(73 179 160 / 18%); font-size: 11px; font-weight: 650; }
.nll-float-check::before { content: "✓"; }
.nll-wave { display: flex; height: 38px; align-items: center; gap: 3px; }
.nll-wave i { width: 3px; height: var(--h); border-radius: 2px; background: linear-gradient(180deg, var(--nll-gold), var(--nll-teal-bright)); }
.nll-float-tags { display: flex; gap: 6px; }
.nll-float-tags span { padding: 3px 8px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 6px; color: #DCE6E5; font-size: 11px; }

.nll-hero-bottom {
    position: relative;
    display: flex;
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--nll-dark-line);
    color: #9DB0B2;
    font-size: 13px;
}
.nll-hero-bottom a { display: inline-flex; align-items: center; gap: 8px; color: var(--nll-on-dark); font-weight: 600; }
.nll-hero-bottom a span { color: var(--nll-gold); transition: transform .25s var(--nll-ease); }
.nll-hero-bottom a:hover span { transform: translateY(3px); }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.nll-service-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.nll-service {
    --accent: var(--nll-teal);
    --accent-soft: var(--nll-teal-soft);
    position: relative;
    display: flex;
    min-width: 0;
    padding: clamp(26px, 3vw, 36px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--nll-line);
    border-radius: var(--nll-radius);
    background: var(--nll-surface);
    box-shadow: var(--nll-shadow);
    transition: transform .3s var(--nll-ease), box-shadow .3s ease, border-color .3s ease;
}
.nll-service::before {
    position: absolute;
    top: 0;
    left: clamp(26px, 3vw, 36px);
    width: 48px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--accent);
    content: "";
}
.nll-service:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 35%, var(--nll-line)); box-shadow: var(--nll-shadow-hover); }
.nll-service > * { position: relative; z-index: 1; }
.nll-service-localization { grid-column: span 7; min-height: 360px; }
.nll-service-translation { grid-column: span 5; min-height: 360px; --accent: var(--nll-terracotta); --accent-soft: var(--nll-terracotta-soft); }
.nll-service-audiovisual { grid-column: span 6; --accent: var(--nll-gold-text); --accent-soft: var(--nll-gold-soft); }
.nll-service-data { grid-column: span 6; }

.nll-service-top { display: flex; align-items: center; gap: 14px; }
.nll-service-icon { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: var(--accent); background: var(--accent-soft); }
.nll-service-icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.nll-service-kicker { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nll-service-title { max-width: 22ch; margin: 24px 0 12px; color: var(--nll-ink); font-family: var(--serif); font-size: clamp(23px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.015em; line-height: 1.18; }
.nll-service-copy { max-width: 54ch; margin: 0; color: var(--nll-copy); font-size: 16px; line-height: 1.7; }
.nll-service .nll-link { margin-top: auto; padding-top: 24px; color: var(--accent); }
.nll-service-art {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 0;
    width: 190px;
    height: auto;
    stroke: var(--accent);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
    opacity: .4;
    transition: opacity .3s ease, transform .4s var(--nll-ease);
}
.nll-service-art .nll-art-fill { fill: var(--accent-soft); }
.nll-service:hover .nll-service-art { opacity: .65; transform: translateY(-4px); }
.nll-service-translation .nll-service-art { width: 130px; }

.nll-deliverables { display: grid; margin: 24px 0 0; padding: 0; list-style: none; }
.nll-deliverables li { border-top: 1px solid var(--nll-line); }
.nll-deliverables li > a { display: grid; margin-inline: -12px; padding: 16px 12px 16px; border-radius: var(--nll-radius-sm); transition: background-color .2s ease; }
.nll-deliverables li:not(:has(> a)) { display: grid; padding: 16px 0; }
.nll-deliverables li > a:hover { background: var(--accent-soft); }
.nll-deliverable-title { display: block; color: var(--nll-ink); font-size: 16px; font-weight: 700; line-height: 1.4; }
.nll-deliverable-body { margin-top: 4px; color: var(--nll-copy); font-size: 15px; line-height: 1.6; }
.nll-deliverable-link { display: inline-flex; margin-top: 8px; align-items: center; gap: 8px; color: var(--accent); font-size: 14px; font-weight: 650; }

/* AI data card: the signature, dark treatment */
.nll-service-data {
    --accent: var(--nll-teal-bright);
    --accent-soft: rgb(73 179 160 / 14%);
    border-color: transparent;
    color: var(--nll-on-dark);
    background:
        radial-gradient(80% 60% at 100% 0%, rgb(73 179 160 / 20%), transparent 70%),
        var(--nll-navy);
}
.nll-service-data:hover { border-color: rgb(73 179 160 / 45%); }
.nll-service-data .nll-service-title,
.nll-service-data .nll-deliverable-title { color: #FFFFFF; }
.nll-service-data .nll-service-copy,
.nll-service-data .nll-deliverable-body { color: var(--nll-on-dark-muted); }
.nll-service-data .nll-deliverables li { border-color: var(--nll-dark-line); }

/* --------------------------------------------------------------------------
   Language coverage
   -------------------------------------------------------------------------- */

.nll-languages {
    position: relative;
    overflow: hidden;
    padding-block: clamp(80px, 10vw, 128px);
    color: var(--nll-on-dark);
    background-color: var(--nll-navy);
    background-image: radial-gradient(55% 65% at 75% 50%, rgb(73 179 160 / 14%), transparent 70%);
}
.nll-languages-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(40px, 6vw, 88px); }
.nll-languages-copy h2 {
    max-width: 12ch;
    margin: 18px 0 20px;
    color: #FFFFFF;
    font-family: var(--serif);
    font-size: clamp(38px, 4.8vw, 60px);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.04;
}
.nll-languages-copy h2 em { color: var(--nll-gold); font-style: italic; font-weight: 500; }
.nll-languages-copy > p { max-width: 50ch; margin: 0; color: var(--nll-on-dark-muted); font-size: 17px; line-height: 1.75; }
.nll-stat {
    display: flex;
    margin: 36px 0;
    padding-block: 24px;
    align-items: center;
    gap: 20px;
    border-block: 1px solid var(--nll-dark-line);
}
.nll-stat-number { color: var(--nll-gold); font-family: var(--serif); font-size: clamp(72px, 8vw, 96px); font-weight: 500; letter-spacing: -.04em; line-height: .85; }
.nll-stat-label { display: grid; gap: 4px; color: #FFFFFF; font-size: 20px; font-weight: 650; }
.nll-stat-label small { color: var(--nll-on-dark-muted); font-size: 14px; font-weight: 500; }

.nll-coverage { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.nll-coverage-map { position: relative; width: min(100%, 540px); aspect-ratio: 410 / 430; }
.nll-coverage-labels { margin: 0; padding: 0; list-style: none; }
.nll-coverage .nll-chip { padding: 8px 14px 8px 12px; font-size: 14px; }
.nll-coverage-note { margin: 0; color: var(--nll-on-dark-muted); font-size: 14px; }

/* --------------------------------------------------------------------------
   Why organizations choose NLL
   -------------------------------------------------------------------------- */

.nll-why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: clamp(40px, 6vw, 96px); }
.nll-why-intro { position: sticky; top: 120px; }
.nll-why-list { margin: 0; padding: 0; list-style: none; }
.nll-why-list > li {
    display: grid;
    padding-block: 32px;
    grid-template-areas: "icon index" "icon body";
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 24px;
    border-top: 1px solid var(--nll-line);
}
.nll-why-list > li:first-child { padding-top: 8px; border-top: 0; }
.nll-why-list > li:last-child { padding-bottom: 0; }
.nll-why-index { grid-area: index; color: var(--nll-gold-text); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.nll-why-icon { display: grid; width: 56px; height: 56px; grid-area: icon; place-items: center; border: 1px solid var(--nll-line); border-radius: 14px; color: var(--nll-teal); background: var(--nll-surface); }
.nll-why-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.nll-why-list > li > div { grid-area: body; }
.nll-why-list h3 { margin: 6px 0 10px; color: var(--nll-ink); font-family: var(--serif); font-size: clamp(22px, 2vw, 26px); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.nll-why-list p { max-width: 60ch; margin: 0; color: var(--nll-copy); font-size: 16px; line-height: 1.75; }
.nll-why-list .nll-link { padding-top: 14px; }

/* --------------------------------------------------------------------------
   Tools & file compatibility
   -------------------------------------------------------------------------- */

.nll-tools { border-block: 1px solid var(--nll-line); background: var(--nll-sand); }
.nll-tools-note { display: flex; margin: 28px 0 0; align-items: center; gap: 10px; color: var(--nll-copy); font-size: 16px; }
.nll-tools-note > span { color: var(--nll-gold-text); font-size: 18px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .nll-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
    .nll-float { width: 172px; padding: 12px 14px; }
    .nll-float-target { font-size: 18px; }
    .nll-service-localization,
    .nll-service-translation { grid-column: span 6; }
}

@media (max-width: 860px) {
    .nll-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .nll-hero-copy h1 { max-width: 16ch; }
    .nll-hero-visual { width: min(100%, 520px); margin-inline: auto; }
    .nll-service-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .nll-service-localization,
    .nll-service-translation,
    .nll-service-audiovisual,
    .nll-service-data { grid-column: auto; min-height: 0; }
    .nll-service-art { width: 150px; }
    .nll-service-translation .nll-service-art { width: 110px; }
    .nll-languages-grid { grid-template-columns: minmax(0, 1fr); }
    .nll-coverage-map { width: min(100%, 480px); }
    .nll-why-grid { grid-template-columns: minmax(0, 1fr); }
    .nll-why-intro { position: static; }
}

@media (max-width: 600px) {
    .nll-hero-copy h1 { margin-block: 20px; font-size: clamp(34px, 9.4vw, 44px); }
    .nll-hero-subhead { font-size: 19px; }
    .nll-hero-intro { font-size: 15.5px; }
    .nll-hero-note { margin-top: 24px; }
    .nll-chip { padding: 4px 9px 4px 8px; gap: 6px; font-size: 11.5px; }
    .nll-coverage .nll-chip { padding: 5px 10px 5px 9px; font-size: 12.5px; }
    .nll-float { width: 140px; padding: 10px 12px; gap: 4px; border-radius: 12px; }
    .nll-float-label { font-size: 9px; }
    .nll-float-source { font-size: 11px; }
    .nll-float-target { font-size: 15px; }
    .nll-float-check { font-size: 10px; }
    .nll-float-translate { top: 0; left: -2%; }
    .nll-float-audio { bottom: 2%; left: -2%; }
    .nll-wave { height: 28px; gap: 2px; }
    .nll-wave i { height: calc(var(--h) * .75); }
    .nll-float-tags { display: none; }
    .nll-hero-bottom { min-height: 56px; font-size: 12px; }
    .nll-hero-bottom > span { display: none; }

    .nll-service-title { margin-top: 20px; }
    .nll-service-copy { font-size: 15.5px; }
    .nll-service-art { display: none; }

    .nll-stat { margin: 28px 0; gap: 16px; }
    .nll-stat-label { font-size: 18px; }
    .nll-hq-label { font-size: 9.5px; }

    .nll-why-list > li { grid-template-areas: "icon index" "body body"; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; align-items: center; padding-block: 28px; }
    .nll-why-icon { width: 48px; height: 48px; border-radius: 12px; }
    .nll-why-list > li > div { margin-top: 10px; }

    .nll-tools-note { align-items: flex-start; font-size: 15px; }
}

@media (max-width: 480px) {
    /* Keep room for the language labels that sit beside the map */
    .nll-hero-stage,
    .nll-coverage-map { width: 90%; align-self: flex-start; }
    .nll-float { width: 150px; }
}

/* Custom text sections added from the admin dashboard */
.nll-home-text.is-sand { background: var(--nll-sand); }
.nll-home-text-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: clamp(28px, 5vw, 80px); }
.nll-home-text h2 { margin: 14px 0 0; color: var(--nll-ink); font-family: var(--serif); font-size: clamp(32px, 3.6vw, 48px); font-weight: 600; line-height: 1.08; }
.nll-home-text h2 em { color: var(--nll-gold-text); font-style: italic; }
.nll-home-text-body p { margin: 0 0 18px; color: var(--nll-copy); font-size: 17px; line-height: 1.75; }
.nll-home-text-body p a { color: var(--nll-teal); text-decoration: underline; text-underline-offset: 3px; }
.nll-home-text-body .nll-actions { margin-top: 26px; }
@media (max-width: 900px) {
    .nll-home-text-inner { grid-template-columns: minmax(0, 1fr); }
}
