/* ==========================================================================
   Erisha EduSupport LLP — stylesheet
   Identity taken from the corporate profile: crimson + deep blue swoosh,
   uppercase headings held between red rules, diamond format tiles.
   ========================================================================== */

:root {
  --red:      #E41E27;
  --red-d:    #B01720;
  --blue:     #1D4F91;
  --blue-d:   #0B3161;
  --blue-l:   #2E7BC4;

  --ink:      #14171C;
  --grey:     #5B6472;
  --line:     #DCE3EC;
  --mist:     #F2F5FA;
  --paper:    #FFFFFF;

  --display: "Outfit", "Segoe UI", sans-serif;
  --body:    "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  --gut: clamp(1.15rem, 4vw, 3rem);
  --max: 1180px;
  --r: 4px;
  --lift: 0 18px 40px -26px rgba(11, 49, 97, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; max-width: 68ch; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

/* Profile-style ruled heading ---------------------------------------------- */
.ruled { text-align: center; margin-bottom: 2.8rem; }
.ruled h2 {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .01em;
  margin: 0;
  display: inline-block;
  padding: .1em 0;
}
.ruled__top, .ruled__base { height: 2.5px; background: var(--red); }
.ruled__top  { width: 62%; margin: 0 auto 1.1rem 0; }
.ruled__base { width: 62%; margin: 1.1rem 0 0 auto; }
.ruled p { margin: 1.4rem auto 0; color: var(--grey); max-width: 62ch; }
.band--blue .ruled h2 { color: #fff; }
.band--blue .ruled p { color: #C7D6EA; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); display: inline-flex; align-items: center; gap: .6em;
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 24px; height: 2.5px; background: var(--red); }

/* Buttons ------------------------------------------------------------------ */
.btn {
  --bg: var(--red); --fg: #fff; --bd: var(--red);
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.6em;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd);
  border-radius: var(--r);
  font-family: var(--display); font-weight: 600;
  font-size: .88rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); --bg: var(--red-d); --bd: var(--red-d); }
.btn--blue { --bg: var(--blue); --bd: var(--blue); }
.btn--blue:hover { --bg: var(--blue-d); --bd: var(--blue-d); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn--onblue { --bg: #fff; --fg: var(--blue-d); --bd: #fff; }
.btn--onblue:hover { --bg: var(--red); --fg: #fff; --bd: var(--red); }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Utility strip ------------------------------------------------------------ */
.util {
  background: var(--blue-d); color: #D6E2F2;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .07em;
}
.util .wrap {
  display: flex; flex-wrap: wrap; gap: .35rem 1.6rem;
  justify-content: space-between; align-items: center; padding-block: .5rem;
}
.util strong { color: #fff; font-weight: 600; }
.util a { color: #FFC9CC; text-decoration: none; }
.util a:hover { color: #fff; text-decoration: underline; }

/* Masthead ----------------------------------------------------------------- */
.mast {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--red);
}
.mast .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .7rem;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand span {
  font-family: var(--display); font-weight: 700; font-size: .95rem;
  color: var(--blue-d); margin-left: .8rem; padding-left: .8rem;
  border-left: 1px solid var(--line); line-height: 1.15; max-width: 11rem;
}

.nav { display: flex; align-items: center; gap: .1rem; }
.nav a {
  position: relative; padding: .6rem .9rem;
  font-family: var(--display); font-weight: 600;
  font-size: .84rem; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; color: var(--grey);
  transition: color .16s ease;
}
.nav a::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem;
  height: 2.5px; background: var(--red); transform: scaleX(0);
  transform-origin: left; transition: transform .2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--blue-d); }

.burger {
  display: none; width: 44px; height: 40px; background: none;
  border: 2px solid var(--blue-d); border-radius: var(--r); cursor: pointer; padding: 0;
}
.burger i { display: block; height: 2px; background: var(--blue-d); margin: 4px auto; width: 18px; }
.mast__cta { display: flex; align-items: center; gap: .7rem; }

/* Bands -------------------------------------------------------------------- */
.band { padding-block: clamp(3.2rem, 7vw, 5.8rem); }
.band--mist { background: var(--mist); }
.band--blue {
  background: linear-gradient(118deg, var(--blue-d) 0%, var(--blue) 55%, var(--blue-l) 130%);
  color: #E4EDF8;
}
.band--blue h3 { color: #fff; }

/* Hero: the profile cover, rebuilt --------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero__swoosh {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero__grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
  padding-block: clamp(3rem, 7vw, 5.2rem);
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero__lede { font-size: 1.14rem; color: var(--grey); max-width: 48ch; }
.hero__acts { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.hero__strip {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.2rem;
}
.chip {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: .35rem .85rem; color: var(--blue-d); background: #fff;
}

/* Signature: the live enrolment card -------------------------------------- */
.card-file {
  position: relative; background: #fff;
  border: 1px solid var(--line); border-top: 5px solid var(--red);
  border-radius: var(--r); box-shadow: var(--lift);
  padding: 1.7rem 1.5rem 1.4rem;
}
.card-file__top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  border-bottom: 1px solid var(--line); padding-bottom: .85rem; margin-bottom: .4rem;
}
.card-file__top b { font-family: var(--display); font-size: 1.05rem; color: var(--blue-d); }
.card-file__top code { font-family: var(--mono); font-size: .66rem; color: var(--grey); }
.card-file dl { margin: 0; }
.rowline {
  display: grid; grid-template-columns: 8.2rem 1fr; gap: .5rem;
  padding: .62rem 0; border-bottom: 1px dashed var(--line); font-size: .93rem;
}
.rowline dt {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--grey); padding-top: .2rem;
}
.rowline dd { margin: 0; font-weight: 600; color: var(--ink); }
.rowline dd.blank { color: #A9B2C1; font-weight: 400; }
.card-file__foot {
  margin-top: 1rem; font-family: var(--mono); font-size: .66rem;
  letter-spacing: .08em; color: var(--grey);
}
.card-file__foot b { color: var(--red); }

/* Service list (profile page 11) ------------------------------------------ */
.svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 2.5rem; }
.svc a {
  display: flex; align-items: center; gap: .9rem;
  padding: .85rem .4rem; border-bottom: 1px solid var(--line);
  text-decoration: none; font-family: var(--display); font-weight: 600;
  font-size: 1.06rem; color: var(--ink);
  transition: color .16s ease, padding-left .16s ease;
}
.svc a:hover { color: var(--red); padding-left: .9rem; }
.svc a::before {
  content: ""; flex: none; width: 15px; height: 15px;
  background: var(--red);
  clip-path: polygon(0 0, 62% 50%, 0 100%, 38% 100%, 100% 50%, 38% 0);
}

/* Diamond format tiles ---------------------------------------------------- */
.diamonds {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(.9rem, 3vw, 1.8rem); margin-top: 1rem;
}
.dia {
  width: 132px; height: 132px; flex: none;
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(140deg, var(--red) 0%, var(--red-d) 100%);
  color: #fff; border-radius: 10px; transform: rotate(45deg);
  box-shadow: 0 14px 26px -18px rgba(180, 20, 30, .9);
  transition: transform .25s ease, background .25s ease;
}
.dia:nth-child(even) { background: linear-gradient(140deg, var(--blue) 0%, var(--blue-d) 100%); }
.dia:hover { transform: rotate(45deg) scale(1.06); }
.dia span {
  transform: rotate(-45deg);
  font-family: var(--display); font-weight: 600; font-size: .84rem; line-height: 1.25;
  padding: 0 .3rem; display: block; width: 118px;
}
.dia span small { display: block; font-size: .7rem; opacity: .85; font-weight: 400; }

/* Tiles -------------------------------------------------------------------- */
.grid { display: grid; gap: 1.1rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem 1.4rem; transition: transform .18s ease, box-shadow .18s ease;
  border-top: 4px solid var(--blue);
}
.tile:nth-child(3n+2) { border-top-color: var(--red); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--lift); }
.tile h3 { margin-bottom: .45rem; color: var(--blue-d); }
.tile p { font-size: .95rem; color: var(--grey); margin: 0; }
.tile ul { margin: .8rem 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--grey); }
.tile ul li { padding: .18rem 0 .18rem 1.05rem; position: relative; }
.tile ul li::before { content: "›"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* Steps -------------------------------------------------------------------- */
.steps { counter-reset: s; display: grid; gap: 0; }
.step {
  counter-increment: s; display: grid; grid-template-columns: 4.5rem 1fr;
  gap: 1.4rem; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.2);
}
.step:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.step::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--display); font-weight: 800; font-size: 1.7rem;
  color: #fff; line-height: 1.1;
  -webkit-text-stroke: 1px rgba(255,255,255,.9); opacity: .85;
}
.step h3 { margin-bottom: .3rem; }
.step p { color: #C7D6EA; margin: 0; font-size: .96rem; }

/* Tabs --------------------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.7rem; justify-content: center; }
.tabs button {
  font-family: var(--display); font-weight: 600; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .55rem 1.1rem; background: #fff; color: var(--grey);
  border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: all .16s ease;
}
.tabs button:hover { color: var(--ink); border-color: var(--blue); }
.tabs button[aria-selected="true"] { background: var(--blue-d); color: #fff; border-color: var(--blue-d); }
.panel[hidden] { display: none; }
.panel { animation: fade .3s ease; }

/* Accordion ---------------------------------------------------------------- */
.acc { border-top: 1px solid var(--line); max-width: 860px; margin-inline: auto; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.6rem 1.1rem 0;
  font-family: var(--display); font-weight: 600; font-size: 1.06rem; position: relative;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  color: var(--red); font-size: 1.5rem; font-weight: 300; line-height: 1;
}
.acc details[open] summary::after { content: "–"; }
.acc p { padding-bottom: 1.1rem; color: var(--grey); font-size: .96rem; margin: 0; }

/* Enquiry ------------------------------------------------------------------ */
.enq { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(1.4rem, 4vw, 2.6rem); align-items: start; }
.form {
  background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--red);
  border-radius: var(--r); padding: clamp(1.3rem, 3vw, 2.1rem); box-shadow: var(--lift);
}
.form__legend {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  border-bottom: 1px solid var(--line); padding-bottom: .85rem; margin-bottom: 1.4rem;
}
.form__legend h3 { margin: 0; color: var(--blue-d); }
.form__legend code { font-family: var(--mono); font-size: .66rem; color: var(--grey); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--grey);
}
.field label b { color: var(--red); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: .97rem; color: var(--ink);
  background: transparent; border: none; border-bottom: 1.5px solid var(--line);
  padding: .55rem .1rem; border-radius: 0; transition: border-color .16s ease;
}
.field textarea {
  resize: vertical; min-height: 90px; border: 1.5px solid var(--line);
  padding: .7rem; border-radius: var(--r);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field select { appearance: none; cursor: pointer; }
.consent {
  grid-column: 1 / -1; display: flex; gap: .6rem; align-items: flex-start;
  font-size: .84rem; color: var(--grey); margin-top: .3rem;
}
.consent input { margin-top: .3rem; accent-color: var(--red); }
.form__foot {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  justify-content: space-between; margin-top: 1.6rem;
}
.form__note { font-family: var(--mono); font-size: .66rem; color: var(--grey); letter-spacing: .05em; }

.msg { margin-top: 1.2rem; padding: .9rem 1rem; border-radius: var(--r); font-size: .92rem; border: 1.5px solid; }
.msg[hidden] { display: none; }
.msg--ok  { border-color: #17795F; color: #17795F; background: rgba(23,121,95,.07); }
.msg--err { border-color: var(--red-d); color: var(--red-d); background: rgba(176,23,32,.06); }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: var(--red-d); }

.received { display: grid; place-items: center; padding: 2.2rem 1rem; text-align: center; }
.received__mark {
  border: 3px solid #17795F; color: #17795F;
  font-family: var(--display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .75rem 1.4rem; border-radius: var(--r);
  transform: rotate(-5deg); animation: thud .45s cubic-bezier(.2,.9,.3,1.4); font-size: .92rem;
}
@keyframes thud { from { transform: rotate(-5deg) scale(2.1); opacity: 0; } to { transform: rotate(-5deg) scale(1); opacity: 1; } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Side panels -------------------------------------------------------------- */
.panel-note {
  background: var(--blue-d); color: #D6E2F2; border-radius: var(--r);
  padding: 1.5rem 1.4rem;
}
.panel-note + .panel-note { margin-top: 1rem; }
.panel-note h4 {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: #FF9CA2; margin: 0 0 .8rem;
}
.panel-note p { color: #C7D6EA; font-size: .93rem; margin-bottom: .6rem; }
.panel-note p:last-child { margin-bottom: 0; }
.panel-note a { color: #fff; font-weight: 700; }
.panel-note ul { margin: 0; padding-left: 1.1rem; font-size: .93rem; color: #C7D6EA; }
.panel-note ul li { margin-bottom: .35rem; }

/* Prose (about page) ------------------------------------------------------- */
.prose { max-width: 74ch; margin-inline: auto; }
.prose p { font-size: 1.04rem; }
.prose p.lead { font-size: 1.18rem; color: var(--blue-d); font-weight: 500; }

.pullquote {
  border-left: 5px solid var(--red); padding: .3rem 0 .3rem 1.4rem;
  margin: 2rem 0; font-family: var(--display); font-weight: 500;
  font-size: 1.22rem; line-height: 1.45; color: var(--blue-d);
}

/* CTA ribbon --------------------------------------------------------------- */
.ribbon { text-align: center; }
.ribbon h2 { color: #fff; }
.ribbon p { color: #C7D6EA; margin-inline: auto; }
.ribbon .btn { margin-top: .8rem; }

/* Footer ------------------------------------------------------------------- */
.foot { background: var(--ink); color: #9AA3B2; padding-block: 3rem 1.4rem; }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 2rem; }
.foot__brand img { height: 42px; margin-bottom: 1rem; }
.foot h5 {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: #FF9CA2; margin: 0 0 .9rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .45rem; }
.foot a { color: #C3CAD6; text-decoration: none; font-size: .93rem; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot p { font-size: .93rem; }
.foot__base {
  margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.13);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em;
}

/* Reveal ------------------------------------------------------------------- */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rise.in { opacity: 1; transform: none; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__grid, .enq { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .burger { display: block; }
  .nav {
    position: fixed; left: 0; right: 0; top: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 3px solid var(--red);
    padding: 5.2rem 1.15rem 1.5rem; transform: translateY(-102%);
    transition: transform .28s ease; z-index: 55;
    box-shadow: var(--lift);
  }
  .nav.open { transform: none; }
  .nav a { padding: .95rem .2rem; border-bottom: 1px solid var(--line); }
  .nav a::after { left: .2rem; right: .2rem; bottom: 0; }
  .mast__cta .btn { display: none; }
  .brand span { display: none; }
  .grid--3, .grid--2, .fields, .svc { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: .4rem; }
  .foot__grid { grid-template-columns: 1fr; }
  .ruled__top, .ruled__base { width: 100%; }
  .dia { width: 116px; height: 116px; }
  .dia span { width: 104px; font-size: .78rem; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; }
}
