/* ============================================================
   Lingofy Studio — French Language Training Institute
   Palette: ink #0B2E5E · azure #1A4FA0 · sky #E8F0FA · paper #FCFCFA
   Type: "Fraunces" display · "Inter" body
   ============================================================ */

:root {
  --ink:      #0B2E5E;
  --azure:    #1A4FA0;
  --azure-d:  #143E80;
  --sky:      #E8F0FA;
  --sky-2:    #D6E4F7;
  --paper:    #FCFCFA;
  --line:     #DCE3EC;
  --ink-soft: #4A5C75;
  --white:    #FFFFFF;

  --maxw: 1080px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11,46,94,.05), 0 8px 28px rgba(11,46,94,.06);
  --shadow-lift: 0 4px 10px rgba(11,46,94,.08), 0 18px 50px rgba(11,46,94,.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header (white bar, blue text) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(11,46,94,.05);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--azure);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name {
  color: var(--ink); font-family: var(--font-display);
  font-weight: 500; font-size: 20px; letter-spacing: .2px;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--ink-soft); font-size: 14.5px; font-weight: 500;
  transition: color .18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--azure); }
.btn-nav {
  background: var(--azure); color: var(--white) !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 600 !important;
  transition: transform .15s, box-shadow .15s;
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(26,79,160,.28); }
.nav-toggle { display: none; background: none; border: 0; color: var(--azure); font-size: 26px; cursor: pointer; }


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary { background: var(--azure); color: #fff; }
.btn-primary:hover { background: var(--azure-d); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ghost { background: transparent; color: var(--azure); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--azure); background: var(--sky); }
.btn-white { background: #fff; color: var(--azure); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 85% -10%, #245CB6 0%, var(--azure) 42%, var(--ink) 100%);
  color: #fff;
  padding: 84px 0 96px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(75% 70% at 70% 20%, #000 0%, transparent 75%);
          mask-image: radial-gradient(75% 70% at 70% 20%, #000 0%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--sky-2);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #6FA0E6; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500; font-size: clamp(38px, 6vw, 60px); line-height: 1.04;
  letter-spacing: -.5px; margin: 18px 0 0;
}
.hero h1 em { font-style: italic; color: #BBD3F2; }
.hero p.lead {
  font-size: 18px; color: #D7E3F4; margin: 22px 0 32px; max-width: 460px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; }
.hero-stats .s-num {
  font-family: var(--font-display); font-size: 30px; font-weight: 500; line-height: 1;
}
.hero-stats .s-lab { font-size: 13px; color: var(--sky-2); margin-top: 6px; }

/* Hero card */
.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px; padding: 26px;
  backdrop-filter: blur(6px);
}
.hero-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin-bottom: 4px; }
.hero-card p.sub { font-size: 13.5px; color: var(--sky-2); margin-bottom: 18px; }
.hc-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.12); color: inherit; transition: opacity .15s; }
.hc-row:hover { opacity: .85; }
.hc-row:first-of-type { border-top: 0; }
.hc-ico {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 9px;
  background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
}
.hc-row .t { font-size: 14.5px; font-weight: 600; }
.hc-row .m { font-size: 12.5px; color: var(--sky-2); }

/* ---------- Section scaffolding ---------- */
.section { padding: 80px 0; }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { color: var(--azure); }
.section-head .eyebrow .dot { background: var(--azure); }
.section-head h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.4px;
  margin: 14px 0 12px;
}
.section-head p { font-size: 17px; color: var(--ink-soft); }

/* ---------- Program cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px 26px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--sky-2); }
.card-ico {
  width: 52px; height: 52px; border-radius: 13px; background: var(--sky);
  display: flex; align-items: center; justify-content: center; color: var(--azure);
  margin-bottom: 18px;
}
.card-ico svg { width: 26px; height: 26px; display: block; }
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin-bottom: 8px; }
.card .lvl { font-size: 12.5px; font-weight: 600; color: var(--azure); letter-spacing: .4px; text-transform: uppercase; margin-bottom: 12px; }
.card p { font-size: 15px; color: var(--ink-soft); margin-bottom: 20px; flex: 1; }
.card-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 14.5px; color: var(--azure);
}
.card-link span { transition: transform .18s; }
.card:hover .card-link span { transform: translateX(4px); }

/* ---------- Programs section watermark ---------- */
#programs { position: relative; overflow: hidden; }
#programs .wrap { position: relative; z-index: 1; }
.lang-watermark {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.lang-watermark span {
  position: absolute; font-family: var(--font-display); font-style: italic;
  color: var(--azure); opacity: .05; white-space: nowrap; font-weight: 500;
}
.lang-watermark span:nth-child(1)  { top: 4%;  left: 3%;  font-size: 62px; }
.lang-watermark span:nth-child(2)  { top: 16%; left: 74%; font-size: 78px; }
.lang-watermark span:nth-child(3)  { top: 40%; left: 40%; font-size: 90px; }
.lang-watermark span:nth-child(4)  { top: 62%; left: 6%;  font-size: 70px; }
.lang-watermark span:nth-child(5)  { top: 80%; left: 78%; font-size: 58px; }
.lang-watermark span:nth-child(6)  { top: 8%;  left: 30%; font-size: 46px; }
.lang-watermark span:nth-child(7)  { top: 72%; left: 44%; font-size: 66px; }
.lang-watermark span:nth-child(8)  { top: 30%; left: 12%; font-size: 40px; }
.lang-watermark span:nth-child(9)  { top: 88%; left: 22%; font-size: 50px; }
.lang-watermark span:nth-child(10) { top: 50%; left: 82%; font-size: 44px; }
.lang-watermark span:nth-child(11) { top: 22%; left: 55%; font-size: 38px; }
.lang-watermark span:nth-child(12) { top: 58%; left: 62%; font-size: 42px; }

/* ---------- Course catalogue ---------- */
.cat-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:28px; }
.cat-tab {
  border:1.5px solid var(--line); background:#fff; color:var(--ink-soft);
  font-family:var(--font-body); font-size:14px; font-weight:600;
  padding:9px 20px; border-radius:999px; cursor:pointer; transition:all .15s;
}
.cat-tab:hover { border-color:var(--azure); color:var(--azure); }
.cat-tab.active { background:var(--azure); border-color:var(--azure); color:#fff; }
.batch-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
.batch-card {
  display:flex; flex-direction:column; background:#fff; border:1px solid var(--line);
  border-radius:var(--radius); padding:26px; transition:transform .2s, box-shadow .2s, border-color .2s;
}
.batch-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lift); border-color:var(--sky-2); }
.bc-top { display:flex; gap:10px; align-items:center; margin-bottom:12px; flex-wrap:wrap; }
.bc-program { font-size:12px; font-weight:600; letter-spacing:.4px; text-transform:uppercase; background:var(--sky); color:var(--azure); padding:4px 12px; border-radius:999px; }
.bc-level { font-size:12.5px; color:var(--ink-soft); }
.seat-badge { font-size:12px; font-weight:600; padding:4px 11px; border-radius:999px; margin-left:auto; }
.sb-ok { background:#E7F6EE; color:#1B6B3E; }
.sb-low { background:#FFF4E0; color:#9A6200; }
.sb-full { background:#FCEDEC; color:#A3271C; }
.batch-card h3 { font-family:var(--font-display); font-weight:500; font-size:21px; margin-bottom:14px; line-height:1.25; }
.bc-meta { display:grid; gap:8px; margin-bottom:18px; }
.bc-meta div { display:flex; justify-content:space-between; gap:14px; font-size:14px; border-bottom:1px solid var(--line); padding-bottom:8px; }
.bc-meta .k { color:var(--ink-soft); }
.bc-meta span:last-child { font-weight:500; text-align:right; }
.bc-foot { display:flex; justify-content:space-between; align-items:center; margin-top:auto; }
.bc-fee { font-family:var(--font-display); font-weight:500; font-size:22px; color:var(--ink); }
.bc-fee.muted { font-size:15px; color:var(--ink-soft); font-family:var(--font-body); }
.bc-cta { font-weight:600; font-size:14.5px; color:var(--azure); }
.cat-empty { grid-column:1/-1; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:48px 24px; text-align:center; color:var(--ink-soft); }
.cat-empty h3 { font-family:var(--font-display); font-weight:500; color:var(--ink); font-size:21px; margin-bottom:6px; }
@media (max-width:760px){ .batch-grid { grid-template-columns:1fr; } }

/* ---------- Steps (registration process) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 14px; }
.step-n {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  width: 52px; height: 52px; border-radius: 50%; background: var(--azure); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(26,79,160,.25);
}
.step h4 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; }

/* ---------- CTA band ---------- */
.band {
  background: var(--ink); color: #fff; border-radius: 20px;
  padding: 54px 48px; display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.band h2 { font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1.15; }
.band p { color: var(--sky-2); margin-top: 8px; max-width: 420px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 56px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: var(--sky-2); font-size: 14px; margin-top: 14px; max-width: 260px; }
.footer-col h5 { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #7E9AC4; margin-bottom: 16px; }
.footer-col a, .footer-col p { color: #C9D8EE; font-size: 14.5px; display: block; margin-bottom: 11px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: #7E9AC4;
}

/* ---------- Page header (interior pages) ---------- */
.page-head { background: var(--azure); color: #fff; padding: 56px 0; }
.page-head .eyebrow { color: var(--sky-2); }
.page-head .eyebrow .dot { background: #6FA0E6; }
.page-head h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 5vw, 46px); margin-top: 12px; letter-spacing: -.4px; }
.page-head p { color: var(--sky-2); margin-top: 12px; max-width: 560px; font-size: 17px; }
.crumbs { font-size: 13.5px; color: var(--sky-2); margin-bottom: 4px; }
.crumbs a:hover { color: #fff; }

/* ---------- Course detail ---------- */
.course-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.course-body h2 { font-family: var(--font-display); font-weight: 500; font-size: 26px; margin: 32px 0 14px; }
.course-body h2:first-child { margin-top: 0; }
.course-body p { color: var(--ink-soft); font-size: 16px; margin-bottom: 14px; }
.tick-list { list-style: none; display: grid; gap: 12px; margin: 6px 0 8px; }
.tick-list li { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink); }
.tick-list .tk { color: var(--azure); flex: 0 0 auto; font-weight: 700; }
.meta-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.meta-table td { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.meta-table td:first-child { color: var(--ink-soft); width: 130px; }
.meta-table td:last-child { font-weight: 500; }

.course-aside {
  position: sticky; top: 92px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.course-aside .price-note {
  background: var(--sky); border-radius: var(--radius-sm); padding: 13px 15px;
  font-size: 13.5px; color: var(--ink-soft); margin: 16px 0 20px;
}
.aside-row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.aside-row:last-of-type { border-bottom: 0; }
.aside-row .k { color: var(--ink-soft); }
.aside-row .v { font-weight: 600; }

/* ---------- Form ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field label .req { color: #C0392B; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(26,79,160,.13);
}
.field textarea { resize: vertical; min-height: 92px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14.5px; margin-bottom: 18px; }
.form-status.ok { display: block; background: #E7F6EE; color: #1B6B3E; border: 1px solid #B6E2C8; }
.form-status.err { display: block; background: #FCEDEC; color: #A3271C; border: 1px solid #F2C4C0; }
.form-status.sending { display: block; background: var(--sky); color: var(--azure-d); border: 1px solid var(--sky-2); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.form-side { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 30px; }
.form-side h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin-bottom: 18px; }
.fs-row { display: flex; gap: 13px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.fs-row:first-of-type { border-top: 0; padding-top: 0; }
.fs-n { font-family: var(--font-display); font-weight: 600; color: #8FB4E8; flex: 0 0 auto; font-size: 17px; }
.fs-row .t { font-size: 15px; font-weight: 600; }
.fs-row .m { font-size: 13px; color: var(--sky-2); margin-top: 2px; }

/* ---------- About strip ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feature { background: var(--sky); border-radius: var(--radius); padding: 26px; }
.feature .f-ico { font-size: 24px; color: var(--azure); margin-bottom: 12px; }
.feature h4 { font-family: var(--font-display); font-weight: 500; font-size: 18px; margin-bottom: 7px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .course-layout, .form-wrap { grid-template-columns: 1fr; }
  .cards, .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .course-aside { position: static; }
  .hero-card { order: -1; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; background: var(--white); padding: 18px 24px; gap: 16px;
    align-items: flex-start; border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(11,46,94,.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .cards, .feature-grid, .steps, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .hero-stats { gap: 22px; }
  .section { padding: 56px 0; }
  .band { padding: 36px 26px; }
}

/* ============================================================
   Polish layer — keyboard focus, icon hover, scroll reveal,
   loading skeletons. All motion respects prefers-reduced-motion.
   ============================================================ */

/* ---------- Keyboard focus rings (accessibility) ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible,
.cat-tab:focus-visible, .card:focus-visible, .batch-card:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
  border-radius: 6px;
}
/* Lighter ring on dark backgrounds so it stays visible */
.hero :focus-visible, .band :focus-visible, .site-footer :focus-visible,
.form-side :focus-visible, .page-head :focus-visible, .hero-card :focus-visible {
  outline-color: #BBD3F2;
}
/* Form fields keep their existing blue glow; don't double up */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
}

/* ---------- Program-card icon hover fill ---------- */
.card-ico { transition: background .22s ease, color .22s ease, transform .22s ease; }
.card:hover .card-ico { background: var(--azure); color: #fff; transform: scale(1.06); }

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Block elements rise + fade */
  .js-anim .reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity .55s ease, transform .55s cubic-bezier(.16,.84,.44,1);
  }
  .js-anim .reveal.is-visible { opacity: 1; transform: none; }
  /* Cards fade only — leaves `transform` free for the hover lift */
  .js-anim .reveal-fade { opacity: 0; transition: opacity .6s ease; }
  .js-anim .reveal-fade.is-visible { opacity: 1; }
}

/* ---------- Loading skeletons ---------- */
.skel {
  position: relative; overflow: hidden;
  background: var(--sky); border-radius: 8px;
}
.skel::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  animation: skel-shimmer 1.25s infinite;
}
@keyframes skel-shimmer { 100% { transform: translateX(100%); } }
.skel-card { pointer-events: none; }
/* Skeletons inside the frosted hero card need a lighter tone */
.hero-card .skel { background: rgba(255,255,255,.14); }
.hero-card .skel::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); }
@media (prefers-reduced-motion: reduce) { .skel::after { animation: none; } }
