/*
Theme Name: Train LDN
Theme URI: https://www.trainldn.net/
Author: Viktor for Train LDN
Description: Lightweight custom WordPress theme for Train LDN and Train Canary Wharf.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: trainldn
*/

    :root {
      --black: #000000;
      --ink: #0b0b0b;
      --panel: #11100f;
      --panel-2: #181614;
      --gold: #c29f74;
      --gold-soft: #908170;
      --white: #ffffff;
      --muted: #bbb5ad;
      --line: rgba(194, 159, 116, .28);
      --line-white: rgba(255, 255, 255, .12);
      --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      --serif: ui-serif, Georgia, "Times New Roman", serif;
      --wrap: min(1180px, calc(100vw - 40px));
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; background: var(--black); }
    body {
      margin: 0;
      color: var(--white);
      background:
        radial-gradient(circle at 85% 12%, rgba(194,159,116,.13), transparent 28rem),
        radial-gradient(circle at 7% 56%, rgba(194,159,116,.06), transparent 25rem),
        var(--black);
      font-family: var(--font);
      line-height: 1.5;
      text-rendering: optimizeLegibility;
    }
    body.menu-open { overflow: hidden; }
    a { color: inherit; text-decoration: none; }
    button, input, select, textarea { font: inherit; }
    button { color: inherit; }
    img { display: block; max-width: 100%; }
    :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
    .skip {
      position: absolute; left: 20px; top: -60px; z-index: 100;
      background: var(--gold); color: var(--black); padding: 10px 14px; font-weight: 800;
    }
    .skip:focus { top: 12px; }
    .wrap { width: var(--wrap); margin-inline: auto; }
    .eyebrow {
      display: inline-flex; align-items: center; gap: 10px;
      color: var(--gold); font-size: .76rem; font-weight: 800;
      letter-spacing: .2em; text-transform: uppercase;
    }
    .eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 10px;
      min-height: 52px; padding: 0 23px; border: 1px solid var(--gold);
      font-size: .82rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
      transition: .2s ease; cursor: pointer;
    }
    .btn span { font-size: 1.15rem; transition: transform .2s ease; }
    .btn:hover span { transform: translateX(3px); }
    .btn-gold { background: var(--gold); color: var(--black); }
    .btn-gold:hover { background: #d6b487; border-color: #d6b487; }
    .btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.28); }
    .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
    .gold { color: var(--gold); }

    header {
      position: sticky; top: 0; z-index: 50;
      border-bottom: 1px solid transparent;
      transition: background .2s ease, border-color .2s ease;
    }
    header.scrolled { background: rgba(0,0,0,.92); backdrop-filter: blur(14px); border-color: var(--line-white); }
    .nav { height: 82px; display: flex; align-items: center; justify-content: space-between; }
    .brand img { width: 172px; height: auto; }
    .nav-links { display: flex; align-items: center; gap: 29px; }
    .nav-links > a:not(.btn) { color: #d4d0ca; font-size: .79rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
    .nav-links > a:not(.btn):hover { color: var(--gold); }
    .nav-links .btn { min-height: 44px; padding-inline: 18px; }
    .menu-btn {
      display: none; width: 44px; height: 44px; border: 1px solid var(--line-white);
      background: transparent; align-items: center; justify-content: center; cursor: pointer;
    }
    .menu-icon, .menu-icon::before, .menu-icon::after {
      display: block; width: 20px; height: 1px; background: var(--white); position: relative; transition: .2s ease;
    }
    .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
    .menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }

    .hero {
      min-height: calc(100svh - 82px); display: grid; align-items: center;
      padding: 72px 0 60px; position: relative; overflow: hidden;
    }
    .hero::after {
      content: ""; position: absolute; right: -13vw; top: 10%; width: 48vw; height: 48vw;
      border: 1px solid rgba(194,159,116,.16); transform: rotate(18deg); pointer-events: none;
    }
    .hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); gap: clamp(42px, 7vw, 100px); align-items: center; position: relative; z-index: 2; }
    .hero h1 {
      margin: 22px 0 22px; max-width: 820px; font-size: clamp(3.1rem, 7vw, 6.8rem);
      line-height: .92; letter-spacing: -.055em; font-weight: 760;
    }
    .hero h1 em { display: block; color: var(--gold); font-family: var(--serif); font-weight: 400; }
    .hero-copy > p { max-width: 650px; margin: 0; color: #c9c4bd; font-size: clamp(1.05rem, 1.5vw, 1.23rem); line-height: 1.65; }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
    .trust-row { display: flex; flex-wrap: wrap; gap: 17px 27px; margin-top: 35px; color: #e6e1db; font-size: .79rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
    .trust-row span { display: inline-flex; align-items: center; gap: 9px; }
    .trust-row span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(194,159,116,.1); }
    .hero-card {
      position: relative; padding: 43px 37px 36px;
      background: linear-gradient(155deg, rgba(28,25,22,.96), rgba(8,8,8,.98));
      border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.45);
    }
    .hero-card::before {
      content: "01"; position: absolute; top: -35px; right: 8px;
      font-family: var(--serif); font-size: 6.5rem; color: rgba(194,159,116,.12); line-height: 1;
    }
    .hero-card h2 { margin: 13px 0 12px; font-size: 2rem; letter-spacing: -.035em; line-height: 1.05; }
    .hero-card p { margin: 0 0 23px; color: var(--muted); }
    .mini-list { margin: 0 0 29px; padding: 0; list-style: none; border-top: 1px solid var(--line-white); }
    .mini-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line-white); color: #ebe7e2; font-size: .9rem; }
    .mini-list b { color: var(--gold); }
    .hero-card .btn { width: 100%; }
    .micro { margin-top: 12px !important; font-size: .72rem !important; text-align: center; color: #8e8983 !important; }

    .proof-bar { border-block: 1px solid var(--line-white); background: rgba(255,255,255,.025); }
    .proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
    .proof { padding: 29px 24px; border-right: 1px solid var(--line-white); }
    .proof:first-child { border-left: 1px solid var(--line-white); }
    .proof strong { display: block; color: var(--gold); font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1; }
    .proof span { display: block; margin-top: 8px; color: #b9b4ad; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }

    section { padding: clamp(88px, 10vw, 145px) 0; }
    .section-head { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: end; margin-bottom: 65px; }
    .section-head h2 { margin: 17px 0 0; max-width: 660px; font-size: clamp(2.5rem, 4.7vw, 4.7rem); line-height: .98; letter-spacing: -.05em; }
    .section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.75; max-width: 590px; }

    .problem { background: linear-gradient(180deg, #050505, #0d0c0b); }
    .statements { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
    .statement { padding: 38px 32px 30px 0; border-right: 1px solid var(--line); }
    .statement + .statement { padding-left: 32px; }
    .statement:last-child { border-right: 0; }
    .statement .num { color: var(--gold); font-family: var(--serif); font-size: 1.08rem; }
    .statement h3 { margin: 34px 0 13px; font-size: 1.45rem; letter-spacing: -.025em; }
    .statement p { margin: 0; color: #a9a49d; font-size: .92rem; line-height: 1.7; }

    .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
    .step { min-height: 355px; padding: 30px; position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line-white); counter-increment: step; }
    .step::after {
      content: "0" counter(step); position: absolute; right: -3px; bottom: -34px;
      font-family: var(--serif); font-size: 9rem; color: rgba(194,159,116,.08); line-height: 1;
    }
    .step-icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); color: var(--gold); font-weight: 900; }
    .step h3 { margin: 67px 0 13px; font-size: 1.6rem; letter-spacing: -.03em; }
    .step p { margin: 0; max-width: 280px; color: var(--muted); line-height: 1.72; }

    .experience { overflow: hidden; position: relative; }
    .experience::before {
      content: "TRAIN"; position: absolute; left: -1vw; bottom: -4vw;
      font-size: 20vw; line-height: .7; font-weight: 900; letter-spacing: -.08em; color: rgba(255,255,255,.018); pointer-events: none;
    }
    .experience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 8vw, 120px); align-items: center; position: relative; z-index: 1; }
    .frame {
      aspect-ratio: 4/5; position: relative; display: grid; place-items: center;
      background:
        linear-gradient(145deg, transparent 38%, rgba(194,159,116,.11) 38%, rgba(194,159,116,.11) 62%, transparent 62%),
        linear-gradient(180deg, #1b1815, #070707);
      border: 1px solid var(--line);
    }
    .frame::before, .frame::after { content: ""; position: absolute; border: 1px solid var(--gold); width: 48%; height: 56%; }
    .frame::before { left: 15%; top: 13%; border-right: 0; }
    .frame::after { right: 15%; bottom: 13%; border-left: 0; }
    .frame-mark { position: relative; z-index: 2; text-align: center; }
    .frame-mark strong { display: block; font-family: var(--serif); color: var(--gold); font-size: 7rem; font-weight: 400; line-height: .8; }
    .frame-mark span { display: block; margin-top: 21px; font-size: .74rem; font-weight: 850; letter-spacing: .19em; text-transform: uppercase; }
    .experience-copy h2 { margin: 18px 0 23px; font-size: clamp(2.7rem, 5vw, 5.2rem); line-height: .96; letter-spacing: -.055em; }
    .experience-copy > p { margin: 0 0 34px; max-width: 620px; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
    .feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-bottom: 36px; border-top: 1px solid var(--line-white); }
    .feature { padding: 20px 0; border-bottom: 1px solid var(--line-white); }
    .feature b { display: block; margin-bottom: 5px; font-size: .9rem; }
    .feature span { color: #96918b; font-size: .82rem; }

    .for-you { background: #0b0a09; border-block: 1px solid var(--line-white); }
    .persona-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: start; }
    .persona-copy h2 { margin: 18px 0 23px; font-size: clamp(2.7rem, 5vw, 5rem); line-height: .96; letter-spacing: -.05em; }
    .persona-copy p { max-width: 640px; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
    .personas { border-top: 1px solid var(--line); }
    .persona { display: grid; grid-template-columns: 45px 1fr; gap: 16px; padding: 23px 0; border-bottom: 1px solid var(--line-white); }
    .persona span { color: var(--gold); font-family: var(--serif); font-size: 1.15rem; }
    .persona b { display: block; font-size: 1rem; }
    .persona p { margin: 5px 0 0; color: #96918b; font-size: .85rem; }

    .stories-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 45px; }
    .stories h2 { margin: 17px 0 0; font-size: clamp(2.8rem, 5vw, 5rem); line-height: .96; letter-spacing: -.05em; }
    .stories-head > p { max-width: 470px; margin: 0; color: var(--muted); }
    .story-grid { display: grid; grid-template-columns: 1.35fr .825fr .825fr; gap: 17px; }
    .story {
      min-height: 390px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between;
      position: relative; overflow: hidden; border: 1px solid var(--line-white);
      background: linear-gradient(150deg, #1d1916 0%, #0a0908 66%);
    }
    .story:first-child { min-height: 480px; }
    .story::before {
      content: ""; width: 220px; height: 220px; position: absolute; right: -80px; top: -80px;
      border: 1px solid var(--line); transform: rotate(34deg);
    }
    .play { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); padding-left: 3px; }
    .story small { color: var(--gold); font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
    .story h3 { margin: 10px 0 0; font-size: 1.5rem; letter-spacing: -.03em; }
    .preview-note {
      margin-top: 18px; padding: 12px 16px; display: inline-flex; gap: 9px; align-items: center;
      border: 1px dashed var(--line); color: #aaa49d; font-size: .76rem;
    }
    .preview-note b { color: var(--gold); }

    .faq { background: linear-gradient(180deg, #0a0908, #000); }
    .faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
    .faq-title { position: sticky; top: 120px; }
    .faq-title h2 { margin: 18px 0 20px; font-size: clamp(3rem, 5vw, 5rem); line-height: .95; letter-spacing: -.055em; }
    .faq-title p { color: var(--muted); max-width: 440px; }
    details { border-top: 1px solid var(--line-white); }
    details:last-child { border-bottom: 1px solid var(--line-white); }
    summary { list-style: none; cursor: pointer; padding: 23px 44px 23px 0; position: relative; font-weight: 750; font-size: 1rem; }
    summary::-webkit-details-marker { display: none; }
    summary::after { content: "+"; position: absolute; right: 4px; top: 17px; color: var(--gold); font-family: var(--serif); font-size: 1.8rem; font-weight: 400; }
    details[open] summary::after { content: "–"; }
    details p { margin: 0; padding: 0 45px 23px 0; color: var(--muted); line-height: 1.7; }

    .consult { padding-bottom: 70px; }
    .consult-shell {
      display: grid; grid-template-columns: .85fr 1.15fr; gap: 75px; padding: clamp(35px, 6vw, 75px);
      background: linear-gradient(145deg, #211c18, #0c0b0a 62%); border: 1px solid var(--line);
      position: relative; overflow: hidden;
    }
    .consult-shell::after {
      content: ""; position: absolute; width: 260px; height: 260px; left: -170px; bottom: -170px;
      border: 45px solid rgba(194,159,116,.08); transform: rotate(25deg);
    }
    .consult-copy { position: relative; z-index: 1; }
    .consult-copy h2 { margin: 18px 0 20px; font-size: clamp(2.8rem, 5vw, 5rem); line-height: .94; letter-spacing: -.055em; }
    .consult-copy p { color: var(--muted); line-height: 1.75; }
    .contact-options { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
    .contact-options a { display: inline-flex; align-items: center; gap: 12px; color: #ddd8d1; font-size: .88rem; }
    .contact-options a:hover { color: var(--gold); }
    .contact-options i { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line); color: var(--gold); font-style: normal; font-size: .78rem; }
    form { position: relative; z-index: 1; }
    .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
    .field { display: flex; flex-direction: column; gap: 8px; }
    .field.full { grid-column: 1 / -1; }
    label { font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #d9d3cb; }
    input, select, textarea {
      width: 100%; min-height: 52px; border: 1px solid rgba(255,255,255,.17);
      background: rgba(0,0,0,.35); color: var(--white); padding: 13px 14px; border-radius: 0;
    }
    textarea { min-height: 92px; resize: vertical; }
    input::placeholder, textarea::placeholder { color: #77726c; }
    option { color: #000; }
    .consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; margin: 17px 0 19px; align-items: start; }
    .consent input { width: 17px; min-height: 17px; margin: 2px 0 0; accent-color: var(--gold); }
    .consent label { color: #99938c; font-size: .7rem; line-height: 1.5; letter-spacing: 0; text-transform: none; font-weight: 500; }
    form .btn { width: 100%; border: 0; }
    .form-status { min-height: 21px; margin: 12px 0 0; color: var(--gold); font-size: .8rem; text-align: center; }

    footer { border-top: 1px solid var(--line-white); padding: 54px 0 27px; background: #000; }
    .footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 60px; padding-bottom: 45px; }
    .footer-logo { width: 190px; margin-bottom: 17px; }
    .footer-intro p { max-width: 400px; margin: 0; color: #8f8a84; font-size: .87rem; line-height: 1.7; }
    footer h3 { margin: 8px 0 17px; color: var(--gold); font-size: .73rem; letter-spacing: .15em; text-transform: uppercase; }
    footer address { color: #b5afa8; font-size: .86rem; line-height: 1.8; font-style: normal; }
    .footer-links { display: flex; flex-direction: column; gap: 10px; color: #b5afa8; font-size: .86rem; }
    .footer-links a:hover { color: var(--gold); }
    .footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-top: 25px; border-top: 1px solid var(--line-white); color: #6e6963; font-size: .72rem; }

    @media (max-width: 980px) {
      .nav-links {
        display: none; position: fixed; inset: 82px 0 0; background: rgba(0,0,0,.98);
        padding: 38px 20px; flex-direction: column; align-items: stretch; gap: 0;
      }
      .nav-links.open { display: flex; }
      .nav-links > a:not(.btn) { padding: 18px 5px; border-bottom: 1px solid var(--line-white); font-size: .95rem; }
      .nav-links .btn { margin-top: 24px; }
      .menu-btn { display: inline-flex; }
      .hero { min-height: auto; }
      .hero-grid, .experience-grid, .persona-grid, .consult-shell { grid-template-columns: 1fr; }
      .hero-card { max-width: 620px; }
      .hero::after { width: 80vw; height: 80vw; right: -40vw; }
      .section-head, .faq-grid { grid-template-columns: 1fr; gap: 24px; }
      .section-head p { max-width: 680px; }
      .statements, .steps { grid-template-columns: 1fr; }
      .statement, .statement + .statement { border-right: 0; border-bottom: 1px solid var(--line); padding: 30px 0; }
      .statement h3 { margin-top: 18px; }
      .step { min-height: 290px; }
      .step h3 { margin-top: 46px; }
      .frame { max-width: 620px; width: 100%; aspect-ratio: 5/4; }
      .story-grid { grid-template-columns: 1fr 1fr; }
      .story:first-child { grid-column: 1 / -1; min-height: 390px; }
      .faq-title { position: static; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
      .footer-intro { grid-column: 1 / -1; }
    }
    @media (max-width: 650px) {
      :root { --wrap: min(100% - 28px, 1180px); }
      .nav { height: 72px; }
      .brand img { width: 148px; }
      .nav-links { inset: 72px 0 0; }
      .hero { padding-top: 52px; }
      .hero h1 { font-size: clamp(3.05rem, 16vw, 4.6rem); }
      .hero-grid { gap: 50px; }
      .hero-actions .btn { width: 100%; }
      .hero-card { padding: 34px 23px 27px; }
      .proof-grid { grid-template-columns: 1fr 1fr; }
      .proof { padding: 24px 18px; border-bottom: 1px solid var(--line-white); }
      .proof:nth-child(odd) { border-left: 1px solid var(--line-white); }
      section { padding-block: 84px; }
      .section-head { margin-bottom: 43px; }
      .feature-list, .fields { grid-template-columns: 1fr; }
      .story-grid { grid-template-columns: 1fr; }
      .story:first-child { grid-column: auto; }
      .stories-head { align-items: start; flex-direction: column; }
      .consult-shell { gap: 42px; padding: 30px 21px; }
      .footer-grid { grid-template-columns: 1fr; gap: 35px; }
      .footer-intro { grid-column: auto; }
      .footer-bottom { flex-direction: column; gap: 8px; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    }
  
/* WordPress production additions */
.admin-bar header { top: 32px; }
body { overflow-x: hidden; }
.ghl-form-shell { position: relative; z-index: 1; min-height: 660px; padding: 22px; background: #fff; }
.ghl-form-shell iframe { width: 100%; height: 630px; border: 0; display: block; }
.story-video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-video { border: 1px solid var(--line-white); background: var(--panel); padding: 18px; }
.story-video h3 { margin: 18px 5px 5px; font-size: 1.25rem; }
.video-embed { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; }
.generic-page { min-height: 65vh; padding-top: 150px; padding-bottom: 100px; }
.generic-page h1 { font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -.05em; }
.generic-page .entry-content, .generic-page article { max-width: 820px; }
.generic-page p, .generic-page li { color: #c2bcb5; }
.landing-page { padding-top: 100px; }
@media (max-width: 980px) { .story-video-grid { grid-template-columns: 1fr; } }
@media (max-width: 782px) { .admin-bar header { top: 46px; } }
@media (max-width: 650px) { .ghl-form-shell { padding: 8px; min-height: 690px; } .ghl-form-shell iframe { height: 675px; } }
