/* ---- Colours: change these to change the whole look ----
   Honey gold + near-black on warm cream */
:root {
  --page:       #FFFFFF;  /* outside the frame (white, like Ali's) */
  --cream:      #FAF6F1;  /* inside the frame (very light warm tone) */
  --sand:       #F3EADB;  /* cards and soft panels */
  --honey:      #E6A21C;  /* main accent */
  --honey-soft: #F7CF6B;  /* light accent, hover colour */
  --honey-tint: #FBE7B5;  /* card hover background */
  --amber:      #8F5F00;  /* gold dark enough for small text */
  --ink:        #1F1A15;  /* main text */
  --muted:      #6B5F52;  /* secondary text */
  --line:       #EFE6DA;  /* thin borders */
  --serif: "Fraunces", Georgia, serif;  /* name and headings */
  --width: 1180px;  /* how wide the centred content can get */

  --ease: cubic-bezier(.22, .8, .24, 1);  /* the smooth "settle" used by every animation */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  padding: 14px;  /* thin, even white margin around the frame */
}
a { color: inherit; }

/* ---- The thin rounded border around the whole page ---- */
.frame {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 32px;
  min-height: calc(100vh - 28px);
  overflow: clip;
}

/* ---- Top bar ---- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: calc(var(--width) + 80px); margin: 0 auto; padding: 30px 40px;
}

/* Name in the top-left corner, with the double honey swoosh and the bee */
.brand {
  position: relative; display: inline-flex; align-items: center;
  text-decoration: none; padding: 0 74px 10px 0;
}
.brand-name {
  font-family: var(--serif); font-optical-sizing: auto;
  font-weight: 700; font-size: 27px; letter-spacing: -.015em; white-space: nowrap;
}
.brand-stroke {
  position: absolute; left: -4px; bottom: -2px; height: 16px;
  width: calc(100% - 66px);
  overflow: visible;
}
.brand-stroke path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.1s var(--ease) .25s forwards;
}
.brand-stroke path + path { animation-delay: .45s; }
.brand-bee {
  position: absolute; right: 0; bottom: -4px; width: 84px; height: 56px;
  overflow: visible;
}
.brand-bee .trail { stroke-dasharray: 2 3; opacity: 0; animation: fade .6s ease 1.1s forwards; }
.brand-bee .bee  { opacity: 0; animation: fade .5s ease 1.4s forwards, hover 3.2s ease-in-out 1.9s infinite; transform-box: fill-box; }
.brand:hover .bee { animation-play-state: paused; }

@keyframes draw  { to { stroke-dashoffset: 0; } }
@keyframes fade  { to { opacity: 1; } }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* Menu */
.nav { display: flex; align-items: center; gap: 30px; }
.nav .text {
  font: 400 16px/1 "Lato", sans-serif; color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer; padding: 6px 0;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  background-image: linear-gradient(var(--honey-soft), var(--honey-soft));
  background-size: 0 35%; background-position: 0 88%; background-repeat: no-repeat;
  transition: background-size .45s var(--ease);
}
.nav .text:hover, .nav .text[aria-expanded="true"] { background-size: 100% 35%; }
.chev { width: 10px; height: 10px; transition: transform .35s var(--ease); }
[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* "Free resources" drop-down */
.dropdown { position: relative; }
.dd-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; z-index: 20;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px;
  width: 640px; padding: 28px 28px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 18px 40px -18px rgba(31, 26, 21, .25);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, -6px) scale(.98); transform-origin: top center;
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.dropdown.open .dd-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1);
  transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.dd-menu a {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 12px; text-decoration: none;
  font-size: 15px; font-weight: 400;
  transition: background .25s ease;
}
.dd-menu a:hover { background: var(--sand); }
.dd-col { display: flex; flex-direction: column; }
.dd-head {
  font-family: var(--serif); font-weight: 700; font-size: 19px;
  padding: 0 14px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.dd-ico {
  flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--honey-tint);
  display: grid; place-items: center;
}
.dd-icon { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dd-menu a:hover .dd-ico { background: var(--honey-soft); }
.dd-menu.single { grid-template-columns: 1fr; width: 260px; padding: 14px; }

.lang { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.lang button {
  border: 0; background: none; cursor: pointer; padding: 4px 2px;
  font: 400 13px/1 "Lato", sans-serif; letter-spacing: .08em; color: var(--muted);
}
.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }

/* ---- Buttons (Contact is the only button in the menu) ---- */
.button {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--honey); color: var(--ink); border: 0;
  font: 700 15px/1 "Lato", sans-serif; letter-spacing: .02em;
  padding: 16px 28px; border-radius: 999px;
  box-shadow: 0 8px 20px -10px rgba(230, 162, 28, .7);
  transition: background .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.button:hover { background: var(--honey-soft); transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(230, 162, 28, .8); }
.button.big { font-size: 16px; padding: 18px 32px; }

/* ---- Shared text styles ---- */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .25em;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 24px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(42px, 5.4vw, 76px); line-height: 1.04; }
h2 { font-size: clamp(30px, 3vw, 38px); line-height: 1.15; }
.rule { width: 64px; height: 3px; border-radius: 3px; background: var(--honey); margin: 32px 0; }

/* Two-part headings, like "How can / I help you?" — light first line, bold serif second */
.big-heading { line-height: 1; }
.big-heading .light {
  display: block; font-family: "Lato", sans-serif; font-weight: 300;
  font-size: clamp(44px, 5.4vw, 76px); letter-spacing: -.02em; margin-bottom: 6px;
}
.big-heading .bold {
  display: block; font-family: var(--serif); font-weight: 700;
  font-size: clamp(46px, 5.6vw, 80px); letter-spacing: -.025em;
}

/* Hand-drawn honey circle around a word ("you?") — draws itself when it scrolls into view */
.circled { position: relative; display: inline-block; padding: 0 .08em; }
.circled::after {
  content: ""; position: absolute; left: -12%; top: -8%; width: 124%; height: 122%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Cpath d='M150 12C110 2 40 6 16 32 -6 58 30 92 100 94 170 96 204 66 192 38 184 18 150 8 112 9' fill='none' stroke='%23E6A21C' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s var(--ease) .35s;
  pointer-events: none;
}
/* Double honey swoosh under a word (the name in "Hey, I'm …") */
.swoosh { position: relative; display: inline-block; }
.swoosh::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.32em; height: .3em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M2 8C90 2 210 3 298 6' fill='none' stroke='%23E6A21C' stroke-width='3.5' stroke-linecap='round'/%3E%3Cpath d='M40 20C120 13 200 14 262 16' fill='none' stroke='%23E6A21C' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease) .3s;
}
.is-visible .circled::after, .is-visible .swoosh::after,
html:not(.js) .circled::after, html:not(.js) .swoosh::after { clip-path: inset(0 0 0 0); }

/* Gentle fade-up as things scroll into view (only when JavaScript is on) */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---- Home page: opening section ---- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
  max-width: calc(var(--width) + 80px); margin: 0 auto; padding: 40px 40px 104px;
}
.hero-text { display: flex; flex-direction: column; align-items: flex-start; width: fit-content; }
.titles { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; }
.hero h1 { margin-bottom: 40px; }
.intro { font-size: clamp(20px, 1.9vw, 25px); line-height: 1.5; font-weight: 400; max-width: 26ch; }
.hero .intro { margin-bottom: 48px; }  /* space between the text and the "Get in touch" button */
.hero .intro { max-width: none; width: 0; min-width: 100%; font-size: clamp(18px, 1.55vw, 21px); }  /* text is exactly as wide as the "Meet Dr. Ellie" title */
.titles span { display: block; }
.tagline {
  margin: 32px 0 40px;
  font-family: var(--serif);
  font-style: italic; font-weight: 400;
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.4; color: var(--muted);
  max-width: 30ch;
}
/* Rectangular photo with rounded corners (opening section) */
.hero-photo {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; max-height: 72vh; width: 100%; justify-self: center;
  border-radius: 28px;
  background: linear-gradient(160deg, #F7DDA0 0%, #E6A21C 100%);
}
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 35%;  /* keeps your face nicely placed in the frame */
}

/* (Saved for later) Face in a honey speech bubble: the head pops out above the circle, like Ali's */
.bubble-photo { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1; justify-self: center; }
.bubble { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.js .bubble-photo.is-visible .arc, html:not(.js) .bubble .arc { animation: draw 1.4s var(--ease) .5s forwards; }
.bubble .arc { stroke-dasharray: 120; stroke-dashoffset: 120; }
/* The photo layer: shows only inside the circle, plus the top part so the head pops out.
   To move or zoom the photo, change the numbers on ".cut img" (width = zoom, left/top = position). */
.cut {
  position: absolute; inset: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Ccircle cx='50' cy='62' r='36'/%3E%3Crect width='100' height='62'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Ccircle cx='50' cy='62' r='36'/%3E%3Crect width='100' height='62'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.cut img { position: absolute; width: 112%; left: -9%; top: -1%; max-width: none; }

/* ---- THRIVE DOC: white feature card under the opening section ---- */
.feature-wrap { max-width: calc(var(--width) + 80px); margin: 0 auto; padding: 0 40px 104px; }
.feature {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 32px;
  padding: 56px 64px;
  box-shadow: 0 30px 60px -40px rgba(31, 26, 21, .25);
}
.feature .eyebrow { margin-bottom: 16px; }
.feature-title {
  font-size: clamp(40px, 4.4vw, 60px); letter-spacing: .04em; line-height: 1;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px;
}
.doc-badge {
  font-family: "Lato", sans-serif; font-weight: 700; font-size: .42em; letter-spacing: .12em;
  background: var(--honey); color: #fff; padding: .35em .6em; border-radius: 10px;
}
.feature-sub { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 22px; }
.feature-body { font-size: 19px; line-height: 1.6; font-weight: 400; color: #3A322A; margin-bottom: 32px; max-width: 44ch; }
.feature-art {
  aspect-ratio: 1.15; border-radius: 24px; background: var(--honey-tint);
  display: flex; align-items: center; justify-content: center;
}
/* ---- Long bilingual pages (Neurofeedback): show only the visitor's language ---- */
html[lang="ro"] .only-en, html:not([lang="ro"]) .only-ro { display: none; }
.nf-content { max-width: 820px; margin: 0 auto; padding: 0 40px 112px; }
.nf-content h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.2; margin-bottom: 36px; }
.nf-content h3 { font-size: clamp(24px, 2.4vw, 30px); margin: 48px 0 16px; }
.nf-content p, .nf-content li { font-size: 18px; line-height: 1.7; font-weight: 400; color: #3A322A; }
.nf-content p { margin-bottom: 18px; }
.nf-figure { margin: 36px 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.nf-figure img { width: 100%; height: auto; display: block; }
.nf-list { columns: 2; column-gap: 40px; padding-left: 20px; margin-bottom: 8px; }
.nf-list li { break-inside: avoid; margin-bottom: 8px; }
.nf-list li::marker { color: var(--honey); }
/* fold-out articles */
.nf-article { background: #fff; border: 1px solid var(--line); border-radius: 20px; margin-bottom: 14px; }
.nf-article summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 26px; font-family: var(--serif); font-weight: 700; font-size: 21px;
}
.nf-article summary::-webkit-details-marker { display: none; }
.nf-article summary::after {
  content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--honey-tint);
  display: grid; place-items: center; font-family: "Lato", sans-serif; font-size: 22px; font-weight: 400;
  transition: transform .35s var(--ease), background .25s;
}
.nf-article[open] summary::after { transform: rotate(45deg); background: var(--honey-soft); }
.nf-article summary:hover::after { background: var(--honey-soft); }
.nf-article-body { padding: 0 26px 18px; }
.nf-article-body ul, .nf-article-body ol { padding-left: 22px; margin-bottom: 18px; }
.nf-article-body li { margin-bottom: 10px; }

/* ---- Neurofeedback page sections ---- */
.nf-page { max-width: calc(var(--width) + 80px); margin: 0 auto; padding: 0 40px; }
.nf-block { padding: 0 0 96px; }
.nf-block h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; margin-bottom: 20px; }
.nf-block p, .nf-block li { font-size: 18px; line-height: 1.7; font-weight: 400; color: #3A322A; }
.nf-block p { margin-bottom: 16px; }
.nf-block.narrow { max-width: 760px; }
.nf-block.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.nf-photo { width: 100%; border-radius: 28px; display: block; aspect-ratio: 4 / 4.3; object-fit: cover; }
.nf-list.one { columns: 1; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 12px; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px 28px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px;
  border-radius: 50%; background: var(--honey-tint); font-family: var(--serif); font-weight: 700; font-size: 20px;
}
.steps strong { display: block; font-family: var(--serif); font-size: 22px; margin-bottom: 10px; }
.steps span { display: block; font-size: 17px; line-height: 1.65; color: #3A322A; }
.nf-block.book { background: var(--honey-tint); border-radius: 32px; padding: 52px 56px; margin-bottom: 96px; }
.book-details { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 8px 0 28px !important; }
.book-details a { color: inherit; }

/* ---- Article cards (3 in a row) and article pages, like Ali's ---- */
.art-wrap { max-width: calc(var(--width) + 80px); margin: 0 auto; padding: 0 40px 112px; }
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.art-card {
  display: flex; flex-direction: column; gap: 26px; padding: 22px; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 28px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s ease;
}
.art-card:hover { transform: translateY(-6px); background: var(--cream); box-shadow: 0 30px 60px -36px rgba(31, 26, 21, .35); }
.art-cover {
  position: relative; overflow: hidden; display: grid; place-items: center; text-align: center;
  aspect-ratio: 16 / 10; border-radius: 20px; padding: 26px;
}
.cover-honey { background: var(--honey-soft); } .cover-peach { background: #F2B98A; } .cover-cream { background: var(--honey-tint); }
.art-cover-title { position: relative; z-index: 1; font-family: var(--serif); font-weight: 700; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.2; }
.swirl { position: absolute; width: 42%; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: .9; }
.swirl.s1 { top: 6%; left: 5%; } .swirl.s2 { bottom: 4%; right: 5%; }
.art-cover.photo { padding: 0; }
.art-cover.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.art-card:hover .art-cover.photo img { transform: scale(1.04); }
.art-date { font-size: 15px; color: var(--muted); }
.art-info { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 0 8px 8px; }
.art-title { font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.2; }
.art-excerpt { font-size: 16px; line-height: 1.6; color: #3A322A; flex: 1; }
.art-card:hover .card-link .arrow { transform: translateX(6px); }
.article { max-width: 820px; margin: 0 auto; padding: 40px 40px 112px; }
.back-link { display: inline-flex; gap: 10px; text-decoration: none; color: var(--muted); font-size: 16px; margin-bottom: 28px; }
.back-link:hover { color: var(--ink); }
.art-cover.big { aspect-ratio: 16 / 7; margin-bottom: 40px; }
.art-cover.big .art-cover-title { font-size: clamp(26px, 3.4vw, 40px); max-width: 80%; }
.article h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.1; margin-bottom: 36px; }
.article-body { padding: 0 !important; margin-bottom: 40px; }
.article-body .lead { font-family: var(--serif); font-size: 24px; line-height: 1.4; color: var(--ink); }

/* ---- Videos page: featured video cards, like Ali's ---- */
.videos-wrap { max-width: calc(var(--width) + 80px); margin: 0 auto; padding: 0 40px 112px; }
.videos-heading { font-size: clamp(34px, 3.6vw, 48px); margin-bottom: 40px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.video-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s ease;
}
.video-card:hover { transform: translateY(-6px); background: var(--honey-soft); box-shadow: 0 30px 60px -36px rgba(31, 26, 21, .35); }
.video-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.video-card:hover .video-thumb img { transform: scale(1.04); }
.play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.play::after { content: ""; position: absolute; left: 26px; top: 21px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent var(--ink); }
.video-info { display: flex; flex-direction: column; gap: 14px; padding: 28px 30px 30px; flex: 1; }
.video-date { font-size: 15px; color: var(--muted); }
.video-title { font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.2; flex: 1; }
.video-info .card-link { margin-top: 8px; }
.video-card:hover .card-link .arrow { transform: translateX(6px); }

/* ---- Topic pages (Co-counselling, Sport, resources): text left, honey shape + icon right, like Ali's topic pages ---- */
.topic {
  max-width: calc(var(--width) + 80px); margin: 0 auto; padding: 56px 40px 112px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center;
}
.topic-intro p { font-size: 19px; line-height: 1.6; font-weight: 400; color: #3A322A; margin-bottom: 24px; max-width: 34em; }
.topic-intro p.feature-sub { margin: 18px 0 0; font-size: 14px; font-weight: 700; color: var(--amber); }
.topic-intro .button { margin-top: 16px; }
.topic-art { position: relative; width: 100%; max-width: 440px; aspect-ratio: 400 / 360; justify-self: center; }
.topic-art .blob { position: absolute; inset: 0; width: 100%; height: 100%; }
.topic-icon {
  position: absolute; left: 51%; top: 50%; width: 34%; transform: translate(-50%, -50%);
  fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
}
.feature-art span { font-size: clamp(80px, 9vw, 130px); line-height: 1; transition: transform .7s var(--ease); }
.feature:hover .feature-art span { transform: scale(1.06) rotate(-5deg); }

/* ---- Home page: "How can I help you?" cards in two staggered columns ---- */
.help { padding: 112px 40px 128px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; max-width: var(--width); margin: 0 auto; }
.help-col { display: flex; flex-direction: column; gap: 44px; }
.help-col.right { padding-top: 0; }
.help-col.left .big-heading { margin: 12px 0 28px; }

.card {
  position: relative; display: block; text-decoration: none;
  background: var(--sand); border-radius: 28px;
  padding: 52px 52px 48px;
  transition: background .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
  scroll-margin-top: 40px;
}
.card:hover {
  background: var(--honey-tint);
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -30px rgba(143, 95, 0, .45);
}
.card-emoji {
  display: inline-block; font-size: 64px; line-height: 1; margin-bottom: 30px;
  transition: transform .6s var(--ease);
}
.card:hover .card-emoji { transform: scale(1.08) rotate(-4deg); }
.card h3 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.1; margin-bottom: 18px; }
.card p { font-size: 18px; line-height: 1.65; font-weight: 400; color: #3A322A; margin-bottom: 30px; max-width: 40ch; }
.card-link { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 400; }
.card-link span { border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.card-link .arrow { transition: transform .45s var(--ease); }
.card:hover .card-link .arrow { transform: translateX(6px); }
.card.more h3 { margin-bottom: 10px; }
.card.more p { margin-bottom: 22px; }

/* ---- Home page: About section at the bottom ("Hey, I'm …") ---- */
.about {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 72px; max-width: calc(var(--width) + 80px); margin: 0 auto; padding: 120px 40px;
}
.about-text .big-heading { margin-bottom: 52px; }
.about-text .big-heading .light { font-size: clamp(40px, 4.6vw, 66px); }
.about-text .big-heading .bold  { font-size: clamp(46px, 5.4vw, 78px); }
.about-text p { font-size: 18px; line-height: 1.75; font-weight: 400; color: #3A322A; margin-bottom: 22px; max-width: 56ch; }
.about-text .button { margin-top: 18px; }
.about-photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, #F7DDA0 0%, #E6A21C 100%);
}
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Topic page split like Ali's: beige frame holds the top part, the rest of the text sits on white below */
.frame.frame-top { min-height: 0; }
.topic-more { max-width: calc(var(--width) + 80px); margin: 0 auto; padding: 96px 40px 112px; }
.topic-more p { font-size: 19px; line-height: 1.7; font-weight: 400; color: #3A322A; max-width: 44em; }
.topic-more h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.2; margin: 64px 0 20px; }
.footer-plain { border-top: 0; }

/* ---- Newsletter page: photo cut-out on the left, sign-up on the right (like Ali's) ---- */
.nl {
  max-width: calc(var(--width) + 80px); margin: 0 auto; padding: 40px 40px 112px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center;
}
.nl-art { position: relative; width: 100%; max-width: 500px; aspect-ratio: 500 / 560; justify-self: center; }
.nl-art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nl-photo { position: absolute; left: 14%; bottom: 4%; width: 72%; height: auto;
  filter: drop-shadow(0 10px 12px rgba(31, 26, 21, .14)); }
.nl-front { pointer-events: none; }
.nl-text .big-heading { margin-bottom: 32px; }
.nl-lead { font-size: 21px; line-height: 1.55; font-weight: 400; color: #3A322A; max-width: 30em; margin-bottom: 32px; }
.nl-lead strong { font-weight: 700; color: var(--ink); }
.nl-form {
  display: flex; gap: 8px; padding: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; max-width: 560px; box-shadow: 0 20px 40px -30px rgba(31, 26, 21, .3);
}
.nl-form input[type="email"] {
  flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 18px; font-weight: 400;
  padding: 0 22px; color: var(--ink); outline: none;
}
.nl-form .button { flex-shrink: 0; }
.nl-small { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 18px; max-width: 34em; }

/* "How can I help you?" boxes under the newsletter sign-up: icon + title, like Ali's resources page */
.help-boxes { max-width: calc(var(--width) + 80px); margin: 0 auto; padding: 112px 40px 120px; }
.big-heading.one-line { font-family: "Lato", sans-serif; font-weight: 300; font-size: clamp(44px, 5.4vw, 80px); letter-spacing: -.02em; margin-bottom: 64px; }
.big-heading.one-line .bold { display: inline; font-size: 1em; }
.box-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.box {
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 300px;
  padding: 36px 28px; border-radius: 28px; background: var(--cream); text-decoration: none; color: var(--ink);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.box:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(31, 26, 21, .35); }
.box .card-emoji { font-size: 64px; line-height: 1; }
.box h3 { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.1; }

@media (max-width: 1200px) and (min-width: 821px) { .box-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Footer ---- */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 30px 40px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted); justify-content: center;
}

/* ---- Contact page ---- */
.contact { max-width: 1100px; margin: 0 auto; padding: 56px 24px 96px; }
.contact-intro { max-width: 640px; margin-bottom: 64px; }
.contact-intro p { font-size: 19px; line-height: 1.6; margin-bottom: 32px; }
.contact-banner {
  /* full width of the page, edge to edge, like a background */
  position: relative; overflow: hidden; margin-bottom: 8px;
  height: clamp(240px, 30vw, 440px);
}
.contact-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; }  /* shows the sofa, cuts the curtains/lamp above it */
/* soft warm shade on the left so the white "Contact" is easy to read */
.contact-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(43, 30, 16, .55) 0%, rgba(43, 30, 16, .25) 45%, rgba(43, 30, 16, 0) 75%);
}
.contact-banner-text {
  position: absolute; z-index: 1; color: #fff; left: 0; right: 0; bottom: clamp(32px, 5vw, 72px);
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
}
.contact-banner-text h1 { font-size: clamp(52px, 7vw, 96px); }
.contact-banner-text h1 { color: #fff; }
.contact-banner-text .contact-name { color: #fff; opacity: .92; font-size: 14px; margin: 12px 0 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.info-card { background: var(--sand); border-radius: 24px; padding: 36px; }
.info-card h2 { margin-bottom: 16px; }
.info-card p { line-height: 1.6; margin-bottom: 20px; }
.info-card .label {
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--amber); margin: 24px 0 6px;
}
.info-card .big { font-family: var(--serif); font-size: 24px; font-weight: 700; margin: 0; }
.info-card .big a { text-decoration: none; }

form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form h2 { grid-column: 1 / -1; margin-bottom: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide, .consent, form .button { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  font: 400 16px/1.4 "Lato", sans-serif; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--honey); box-shadow: 0 0 0 3px rgba(230, 162, 28, .2); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--honey); width: 18px; height: 18px; flex: none; }
form .button { justify-self: start; margin-top: 8px; }
.hidden { display: none; }

/* ---- Tablets ---- */
@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .nav .text { font-size: 15px; }
  .brand-name { font-size: 24px; }
}
@media (max-width: 1120px) {
  .nav a.text[href$="#about"] { display: none; }  /* menu gets crowded: About is still on the page below */
}
@media (max-width: 1100px) {
  .nav .dropdown.courses, .nav a.text[href="sport-psychology.html"] { display: none; }
}
@media (max-width: 1020px) {
  .art-grid { grid-template-columns: 1fr 1fr; }
  .nav { gap: 16px; }
  .card { padding: 40px 36px; }
}

/* ---- Phones and small tablets ---- */
@media (max-width: 820px) {
  body { padding: 8px; }
  .frame { border-radius: 20px; min-height: calc(100vh - 16px); }
  .frame.frame-top { min-height: 0; }
  .topbar { padding: 18px 18px; }
  .brand-name { font-size: 22px; }
  .brand { padding-right: 62px; }
  .brand-bee { width: 66px; height: 44px; }
  .brand-stroke { width: calc(100% - 54px); }
  .nav { gap: 14px; }
  .nav .text, .dropdown { display: none; }
  .button { padding: 13px 20px; font-size: 14px; }
  .hero { grid-template-columns: 1fr; padding: 12px 18px 64px; gap: 36px; }
  .bubble-photo { max-width: 340px; margin-top: 24px; }
  .hero-photo { order: -1; max-height: 60vh; }
  .feature-wrap { padding: 0 18px 64px; }
  .feature { grid-template-columns: 1fr; padding: 36px 28px; gap: 32px; }
  .topic { grid-template-columns: 1fr; gap: 32px; padding: 32px 18px 72px; }
  .topic-art { max-width: 280px; }
  .videos-wrap { padding: 0 18px 72px; }
  .nf-content { padding: 0 18px 72px; }
  .nf-page, .art-wrap { padding-left: 18px; padding-right: 18px; }
  .nf-block { padding-bottom: 64px; }
  .nf-block.two-col, .steps, .art-grid { grid-template-columns: 1fr; gap: 28px; }
  .nf-block.book { padding: 36px 26px; margin-bottom: 64px; }
  .article { padding: 24px 18px 72px; }
  .nf-list { columns: 1; }
  .nf-article summary { font-size: 18px; padding: 18px 20px; }
  .nf-article-body { padding: 0 20px 14px; }
  .video-grid { grid-template-columns: 1fr; }
  .help { padding: 64px 18px 72px; }
  .help-grid { grid-template-columns: 1fr; gap: 24px; }
  .help-col { gap: 24px; }
  .card { padding: 36px 28px; }
  .card-emoji { font-size: 52px; margin-bottom: 22px; }
  .about { grid-template-columns: 1fr; gap: 44px; padding: 72px 18px; }
  .footer { padding: 24px 18px; }
  .help-boxes { padding: 64px 18px 72px; }
  .box-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .box h3 { font-size: 24px; }
  .box { min-height: 200px; padding: 24px 20px; gap: 28px; border-radius: 22px; }
  .box .card-emoji { font-size: 44px; }
  .big-heading.one-line { margin-bottom: 36px; }
  .nl { grid-template-columns: 1fr; gap: 24px; padding: 16px 18px 72px; }
  .nl-art { max-width: 340px; }
  .nl-form input[type="email"] { padding: 0 12px; font-size: 16px; }
  .topic-more { padding: 56px 18px 72px; }
  .contact { padding-top: 32px; }
  .contact-grid, form { grid-template-columns: 1fr; }
  .contact-grid > *, form > * { min-width: 0; }   /* nothing wider than the screen */
  .contact { padding-left: 18px; padding-right: 18px; }
  .info-card { padding: 28px 24px; }
  .info-card .big { font-size: clamp(18px, 5.4vw, 24px); overflow-wrap: anywhere; }
}
@media (max-width: 540px) {
  .box-grid { grid-template-columns: 1fr; }
  .box { min-height: 0; gap: 20px; }
}
@media (max-width: 540px) {
  /* phones: everything in the top bar a little smaller so the Contact button fits */
  .topbar { padding: 16px 14px; }
  .brand-name { font-size: 17px; }
  .brand { padding-right: 38px; }
  .brand-bee { width: 42px; height: 28px; }
  .brand-stroke { width: calc(100% - 34px); }
  .nav { gap: 10px; }
  .lang { font-size: 12px; gap: 4px; }
  .nav .button { padding: 10px 14px; font-size: 13px; }
}
@media (max-width: 374px) {
  /* smaller phones */
  body { padding: 6px; }
  .topbar { padding: 14px 12px; }
  .brand-name { font-size: 15px; }
  .brand { padding-right: 34px; }
  .brand-bee { width: 38px; height: 25px; }
  .nav { gap: 8px; }
  .nav .button { padding: 9px 12px; }
}

/* People who switch off animations in their device settings get a still page */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .brand-stroke path, .bubble .arc { stroke-dashoffset: 0; }
  .brand-bee .trail, .brand-bee .bee { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
  .circled::after, .swoosh::after { clip-path: none; }
}
