/* Scottish School of Aesthetics (Kilmarnock). Bespoke build.
   Their live site is offline (the pitch). Brand recovered from the real wordmark +
   Wayback: elegant Roman-serif caps in warm espresso with champagne-gold rules,
   on cream. Boutique-luxury training academy. Marcellus + Poppins.
   Training academy: education framing only, income claims softened, no POM
   consumer advertising, no unverified ratings or placeholder staff. */

:root {
  --cream: #FAF5EC;
  --cream-2: #FFFDF8;
  --ivory: #FFFFFF;
  --espresso: #45392F;
  --espresso-soft: #6E6053;
  --gold: #C1A063;
  --gold-deep: #A2823B;
  --gold-soft: #E8DABB;
  --ink: #2B241D;
  --muted: #8B7E6F;
  --line: #E7DCC7;
  --line-soft: #F0E8D9;
  --navy: #1C1C2C;
  --shadow: 0 30px 70px -46px rgba(60, 45, 25, 0.5);
  --shadow-soft: 0 18px 44px -30px rgba(60, 45, 25, 0.32);
  --wrap: 1160px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --r: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; font-family: "Poppins", system-ui, sans-serif; font-weight: 300; font-size: 16.5px; line-height: 1.8; color: var(--espresso-soft); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--espresso); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-deep); }

h1, h2, h3, h4 { font-family: "Marcellus", Georgia, serif; font-weight: 400; color: var(--ink); line-height: 1.16; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1.1rem; }

.wrap { width: min(var(--wrap), 90vw); margin-inline: auto; }
.wrap-narrow { width: min(760px, 90vw); margin-inline: auto; }

.label { font-family: "Poppins", sans-serif; font-weight: 500; font-size: 0.7rem; letter-spacing: 0.36em; text-transform: uppercase; color: var(--gold-deep); }
.eyebrow { display: inline-block; margin-bottom: 1.3rem; }
.gold-rule { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.6rem; }
.gold-rule::before, .gold-rule::after { content: ""; height: 1px; background: var(--gold); flex: 1; max-width: 40px; }
.gold-rule.center { justify-content: center; }
.hair { width: 60px; height: 1px; background: var(--gold); border: 0; margin: 0 0 1.6rem; }
.center .hair { margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--espresso); color: #fff; padding: 0.6rem 1rem; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; }

.demo-ribbon { background: var(--espresso); color: #EFE6D6; text-align: center; font-size: 0.78rem; letter-spacing: 0.02em; padding: 0.5rem 1rem; }
.demo-ribbon strong { color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250, 245, 236, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0; }
.brand img { height: 46px; width: auto; }
.brand .txt { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--espresso); font-family: "Poppins", sans-serif; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.5rem 0.9rem; cursor: pointer; border-radius: var(--r); }
.site-nav ul { display: flex; align-items: center; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { font-family: "Poppins", sans-serif; font-weight: 400; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--espresso-soft); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-deep); }
.nav-cta { border: 1px solid var(--gold); color: var(--espresso) !important; padding: 0.55rem 1.3rem; border-radius: 100px; letter-spacing: 0.14em; }
.nav-cta:hover { background: var(--gold); color: #fff !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.55rem; font-family: "Poppins", sans-serif; font-weight: 500; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 0.95rem 2rem; border-radius: 100px; cursor: pointer; border: 1px solid transparent; transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s; }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-deep); color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--espresso); color: #fff; }
.btn-dark:hover { background: var(--ink); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--espresso); color: var(--espresso); }
.btn-outline:hover { background: var(--espresso); color: #fff; transform: translateY(-2px); }
.btn-gold-ghost { background: transparent; border-color: var(--gold); color: var(--gold-deep); }
.btn-gold-ghost:hover { background: var(--gold); color: #fff; }

/* Hero (typographic) */
.hero { position: relative; text-align: center; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 7vw, 6rem); background: radial-gradient(120% 120% at 50% 0%, var(--cream-2), var(--cream)); overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); width: min(680px, 80vw); height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero::before { top: 0; } .hero::after { bottom: 0; }
.hero-logo { width: min(520px, 78vw); margin: 0 auto 2.2rem; }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: var(--gold-deep); }
.hero-sub { font-size: 1.12rem; color: var(--espresso-soft); max-width: 40rem; margin: 0 auto 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.hero-meta { font-family: "Poppins", sans-serif; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--muted); margin-top: 1.8rem; }

/* accreditation strip */
.accred { border-block: 1px solid var(--line); background: var(--cream-2); }
.accred .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 3rem; padding: 1.2rem 0; font-family: "Poppins", sans-serif; font-weight: 400; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--espresso-soft); }
.accred span { display: inline-flex; align-items: center; gap: 0.55rem; }
.accred .m { color: var(--gold-deep); }

/* Sections */
.section { padding: clamp(3.8rem, 8vw, 6.5rem) 0; }
.section.ivory { background: var(--ivory); }
.section.dark { background: var(--espresso); color: #E6DCCC; }
.section.dark h2, .section.dark h3 { color: #FBF6EC; }
.section.dark .label { color: var(--gold-soft); }
.section.dark .hair { background: var(--gold); }
.section-head { max-width: 42rem; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.06rem; color: var(--muted); margin: 1rem 0 0; }
.section.dark .section-head p { color: #C8BCA9; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.content p:last-child { margin-bottom: 0; }
.serif-quote { font-family: "Marcellus", serif; font-size: 1.5rem; color: var(--ink); line-height: 1.4; margin-top: 1.2rem; }
.section.dark .serif-quote { color: #FBF6EC; }

/* Course cards */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.course-card { position: relative; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r); padding: 2rem 1.9rem; box-shadow: var(--shadow-soft); transition: transform 0.4s var(--ease), border-color 0.4s; }
.course-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.course-card .k { font-family: "Poppins", sans-serif; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.course-card h3 { margin: 0.5rem 0 0.6rem; }
.course-card p { font-size: 0.93rem; color: var(--muted); margin: 0; }
.course-card .lvl { display: inline-block; margin-top: 1rem; font-family: "Poppins", sans-serif; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--espresso-soft); border: 1px solid var(--line); border-radius: 100px; padding: 0.25rem 0.8rem; }

/* Feature list */
.feature-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.3rem; }
.feature-list li { display: flex; gap: 0.9rem; }
.feature-list .n { font-family: "Marcellus", serif; font-size: 1.3rem; color: var(--gold-deep); line-height: 1; flex: none; width: 1.6rem; }
.feature-list strong { display: block; font-family: "Marcellus", serif; font-size: 1.12rem; color: var(--ink); }
.feature-list p { font-size: 0.92rem; color: var(--muted); margin: 0.15rem 0 0; }
.section.dark .feature-list strong { color: #FBF6EC; }
.section.dark .feature-list p { color: #C8BCA9; }

/* Steps to enrol */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step .num { font-family: "Marcellus", serif; font-size: 2.4rem; color: var(--gold); line-height: 1; }
.step h3 { margin: 0.5rem 0 0.4rem; }
.step p { font-size: 0.94rem; color: var(--muted); margin: 0; }

/* info / enquire */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.info-list li { display: grid; gap: 0.2rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.info-list .k { font-family: "Poppins", sans-serif; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.info-list .v { font-size: 1.02rem; color: var(--espresso); }
.map-frame { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); min-height: 340px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.finance-note { border: 1px solid var(--gold); border-radius: var(--r); background: var(--cream-2); padding: 1.2rem 1.4rem; font-size: 0.92rem; color: var(--espresso-soft); }
.finance-note strong { color: var(--espresso); }

/* CTA */
.cta { text-align: center; }
.cta .serif { font-family: "Marcellus", serif; font-size: clamp(2rem, 5vw, 3.4rem); color: #FBF6EC; margin: 0 0 1.2rem; }

/* page hero */
.page-hero { text-align: center; padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); position: relative; }
.page-hero::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 80px; height: 1px; background: var(--gold); }
.breadcrumb { font-family: "Poppins", sans-serif; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.page-hero p { color: var(--muted); max-width: 42rem; margin-inline: auto; font-size: 1.05rem; }

/* Footer */
.site-footer { background: var(--ink); color: #C7BAA6; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; text-align: center; }
.footer-logo { width: 320px; max-width: 70vw; margin: 0 auto 1.6rem; filter: brightness(0) invert(1) sepia(0.3) saturate(2) hue-rotate(5deg); opacity: 0.9; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; margin-bottom: 1.6rem; }
.footer-links a { color: #C7BAA6; font-family: "Poppins", sans-serif; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-links a:hover { color: #fff; }
.footer-contact { font-size: 0.9rem; color: #B4A793; }
.footer-contact a { color: var(--gold-soft); }
.footer-bottom { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.76rem; color: #8A7D6A; }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.book-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: rgba(255,253,248,0.96); border-top: 1px solid var(--line); padding: 0.7rem 1rem; }
.book-bar .btn { display: block; text-align: center; justify-content: center; }

@media (max-width: 940px) {
  .split, .info-grid { grid-template-columns: 1fr; }
  .course-grid, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream-2); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-soft); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 0; }
  .site-nav a { display: block; padding: 0.85rem 6vw; }
  .nav-cta { margin: 0.5rem 6vw; text-align: center; }
  .course-grid, .steps { grid-template-columns: 1fr; }
  .book-bar { display: block; }
  body { padding-bottom: 4.4rem; }
}
