/* ===== Tabbed layout: loads after styles.css and theme-navy.css ===== */
html { scroll-behavior: auto; scroll-padding-top: 140px; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ---------- Header, logo and tabs ---------- */
.site-header .header-top { height: auto; padding-block: 10px 8px; }
.brand { gap: 12px; color: #fff; font-size: 20px; }
.brand img { width: 60px; height: 60px; border-radius: 50%; background: #fbf3e4; box-shadow: 0 0 0 2px #e0b96a; }
.tabs { border-top: 1px solid rgba(255, 255, 255, .12); }
.site-header .tabs .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; height: auto; padding-block: 8px; }
.tabs a {
  padding: 8px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: #d6deef; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.tabs a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.tabs a[aria-current="page"] { background: var(--accent); color: #fff; }

/* ---------- Page headings ---------- */
.page-head { text-align: center; padding-top: 40px; padding-bottom: 8px; }
.page-head h1 { font-size: 40px; line-height: 1.2; font-weight: 800; letter-spacing: -1px; }
.page-head p { margin: 12px auto 0; max-width: 620px; font-size: 17px; color: #d6deef; }

/* ---------- Home ---------- */
.home { padding: 28px 0 56px; }
.home-grid { display: grid; gap: 36px; align-items: center; }
.home h1 { font-size: 36px; line-height: 1.22; font-weight: 800; letter-spacing: -1px; }
.home h1 span { display: block; margin-top: 6px; color: #e0b96a; }
.home-lead { margin-top: 18px; max-width: 540px; font-size: 18px; line-height: 1.7; color: #d6deef; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-ghost { padding: 15px 28px; font-size: 17px; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.home .trust { justify-content: flex-start; margin-top: 20px; }
.home-photo { margin: 0 auto; width: min(320px, 100%); }
.home-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; object-position: bottom;
  background: linear-gradient(180deg, #3a63b8 0%, #1f4592 100%);
  border: 5px solid #e0b96a; border-radius: 0;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .65);
}
.home-photo figcaption { display: grid; text-align: center; margin-top: 10px; color: #fff; }
.home-photo figcaption b { font-size: 17px; }
.home-photo figcaption span { font-size: 13px; color: #e0b96a; }
.home-cards { display: grid; gap: 16px; margin-top: 44px; }
.home-cards .card { display: block; padding: 22px 24px; box-shadow: var(--shadow-soft); transition: transform .2s; }
.home-cards .card:hover { transform: translateY(-3px); }
.home-cards h2 { font-size: 19px; font-weight: 800; }
.home-cards p { margin-top: 6px; font-size: 15px; }
.home-cards span { display: block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--accent); }

/* ---------- Tighter spacing, since each topic now has its own page ---------- */
.about { padding: 32px 0 16px; }
.why { padding: 56px 0 24px; }
.free-call { padding-top: 28px; }
.specializations { padding-top: 56px; }
.pricing { padding: 40px 0 24px; }
.testimonials { padding: 8px 0 24px; }
.testimonials .section-head { margin-bottom: 28px; }
.testimonials .google-score { margin-top: 0; }
.podcast { padding: 32px 0 56px; }
.custom-app { padding: 56px 0; }
.peek { text-align: center; padding-block: 40px 48px; color: #d6deef; }
.peek a { color: #e0b96a; font-weight: 700; white-space: nowrap; }

/* ---------- Call to action at the foot of a page ---------- */
.cta-band { padding: 32px 0 48px; }
.cta-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  max-width: 976px; margin-inline: auto; padding: 26px 30px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(224, 185, 106, .5); border-radius: 22px;
}
.cta-box h2 { font-size: 22px; font-weight: 800; }
.cta-box p { margin-top: 4px; color: #d6deef; }

/* ---------- Contact page ---------- */
.contact-page { padding: 32px 0 56px; }
.contact-grid { display: grid; gap: 20px; max-width: 976px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 30px 28px; box-shadow: var(--shadow-lift); }
.contact-card h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; }
.contact-card p { flex: 1; font-size: 16px; line-height: 1.7; }
.contact-card .btn-whatsapp { color: #fff; }
.contact-more { margin-top: 28px; text-align: center; color: #d6deef; }
.contact-more p + p { display: flex; justify-content: center; gap: 24px; margin-top: 12px; }
.contact-more a { color: #e0b96a; font-weight: 700; }

/* ---------- Students page ---------- */
.students-login { display: grid; place-items: center; padding: 28px 20px 0; }
.students-card { color: #192029; padding-block: 32px; }
.students-card h2 { font-size: 28px; font-weight: 800; }
.students-card .lead { color: #3d4654 !important; }
.header-top .btn-student[aria-current="page"] { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Footer ---------- */
.site-footer { border-top-color: rgba(255, 255, 255, .14); }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand img { width: 64px; height: 64px; border-radius: 50%; background: #fbf3e4; }
.footer-brand > span { display: grid; text-align: start; }
.footer-brand small { font-size: 13px; }
.site-footer .footer-social .fb-text b { color: #1260c9 !important; }
.site-footer .footer-social .fb-text small { color: #a2520e !important; }

/* ---------- Floating WhatsApp button with its invitation ---------- */
.wa-float {
  width: auto; height: 56px; border-radius: 999px;
  display: flex; align-items: center; gap: 10px; padding-inline: 18px 22px;
  font-size: 16px; font-weight: 800; white-space: nowrap;
}

@media (min-width: 768px) {
  .home h1 { font-size: 46px; }
  .home-grid { grid-template-columns: 1.2fr .8fr; gap: 56px; }
  .home-cards { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  /* Logo, tabs and student button share one row on wide screens */
  .site-header { display: flex; align-items: center; justify-content: space-between; padding: 8px max(24px, calc((100% - 1104px) / 2)); }
  .site-header .header-top { display: contents; }
  .tabs { order: 1; border-top: 0; }
  .site-header .tabs .container { padding: 0; gap: 2px; flex-wrap: nowrap; }
  .tabs a { padding: 8px 13px; }
  .header-top .btn-student { order: 2; }
  html { scroll-padding-top: 90px; }
}

@media (max-width: 767px) {
  /* On phones the logo row scrolls away and the tabs stay at the top of the screen */
  .site-header { position: sticky; top: -68px; }
  html { scroll-padding-top: 100px; }
  .site-header .header-top { height: 68px; padding-block: 8px; }
  .brand img { width: 52px; height: 52px; }
  .site-header .tabs .container { padding-inline: 8px; gap: 4px; padding-block: 7px; }
  .tabs a { padding: 6px 11px; font-size: 14px; background: rgba(255, 255, 255, .07); }
  .home { padding-top: 14px; }
  .home-grid { gap: 14px; }
  /* The photo comes first, so visitors see Dan straight away */
  .home-photo { order: -1; width: min(176px, 48vw); }
  .home-photo figcaption { display: none; }
  .home-text { display: flex; flex-direction: column; text-align: center; }
  .home-text .eyebrow { margin-bottom: 6px; }
  .home h1 { font-size: 26px; }
  .home-actions { order: 1; justify-content: center; margin-top: 16px; }
  .home-actions .btn { width: 100%; padding-block: 13px; }
  .home-lead { order: 2; font-size: 16.5px; }
  .home .trust { order: 3; justify-content: center; }
  .page-head { padding-top: 28px; }
  .page-head h1 { font-size: 30px; }
  .cta-box { justify-content: center; text-align: center; }
  .cta-box .btn { width: 100%; }
  .contact-card .btn { width: 100%; }
  .wa-float { height: 48px; font-size: 14.5px; padding-inline: 14px 16px; }
}

/* Keep the background flags clear of the page headings */
body::before { background-position: 8% 14%, 95% 40%, 20% 84%; }
@media (prefers-reduced-motion: reduce) { .home-cards .card { transition: none; } }

.header-top .btn-student { white-space: nowrap; }
@media (max-width: 380px) { .brand { font-size: 18px; } }

/* About page without a photo: credentials sit neatly beside the text */
.about-media { align-content: center; }
@media (min-width: 768px) { .about-grid { align-items: center; } .about-media .creds { max-width: 460px; } }

/* Shorter computer windows: keep the photo and the main button on the first screen */
@media (min-width: 768px) and (max-height: 760px) {
  .home { padding-top: 16px; }
  .home-photo { width: 250px; }
  .home-text .eyebrow { margin-bottom: 6px; }
  .home h1 { font-size: 34px; }
  .home h1 span { margin-top: 2px; }
  .home-lead { margin-top: 10px; font-size: 16px; line-height: 1.6; }
  .home-actions { margin-top: 16px; }
  .home-actions .btn { padding-block: 12px; font-size: 16px; }
  .home .trust { margin-top: 12px; }
}

/* =========================================================
   Tidy layout: one content width, matching spacing, even grids
   ========================================================= */
:root { --container: 1024px; --gap: 20px; }

/* Short pages sit in the middle, so there is no empty band above the footer */
main { display: flex; flex-direction: column; justify-content: center; }
main > * { width: 100%; }
body::before, body::after { opacity: .2; }

/* ---------- Same spacing on every page ---------- */
.page-head { padding-top: 36px; padding-bottom: 0; }
.about, .free-call, .pricing, .testimonials, .podcast, .contact-page, .students-login { padding: 28px 0 0; }
.why, .specializations, .custom-app { padding: 48px 0 0; }
.cta-band { padding: 32px 0 0; }
main > section:last-child { padding-bottom: 48px; }
.section-head { margin-bottom: 24px; }
.section-title, .why .section-title, .specializations .section-title, .custom-app .big-title { font-size: 32px; }
.cta-box { max-width: none; margin: 0; }

/* ---------- Home ---------- */
.home { padding-bottom: 40px; }
.home-cards { margin-top: 32px; gap: var(--gap); }
.home-cards .card { display: flex; flex-direction: column; }
.home-cards span { margin-top: auto; padding-top: 12px; }

/* ---------- About ---------- */
.about-grid { display: flex; flex-direction: column; align-items: stretch; gap: var(--gap); }
.about-text { display: grid; gap: var(--gap); }
.about .badges { justify-content: center; margin: 0; }
.about .about-text p { margin: 0; font-size: 17px; }
.about .quote { margin: 0; text-align: center; background: rgba(255, 255, 255, .08); border-color: rgba(224, 185, 106, .5); }
.about-media { display: block; }
.about-media .creds { max-width: none; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.why-grid { gap: var(--gap); }

/* ---------- Lessons ---------- */
.free-call-card { grid-template-columns: 1fr; max-width: none; gap: 28px; padding: 36px 32px; }
.free-call-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.free-call h2 { margin-top: 14px; font-size: 34px; }
.free-call .lead { max-width: 640px; margin-top: 12px; }
.free-call-promise { border: 0; padding: 0; }
.free-call .btn-whatsapp { margin-top: 20px; }
.free-call-topics-title { text-align: center; }
.free-call-topics ul { gap: 14px; }
.specializations .chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: none; margin-top: 24px; }
.specializations .chip { display: grid; place-items: center; padding: 12px 10px; text-align: center; }

/* ---------- Pricing ---------- */
.plan-group { margin-bottom: var(--gap); }
.group-side .choose { margin-top: auto; }
.plans { gap: 28px var(--gap); }
.plan .rule { margin-top: auto; }
.plan .desc { margin-bottom: 20px; }
.plan .lessons + .rule, .plan .coupon + .rule { margin-top: auto; }
.plan .coupon { margin-bottom: 20px; }
.included { margin-top: var(--gap); }
.refund { margin-top: var(--gap); }

/* ---------- Reviews: an unfinished last row is centred ---------- */
.testimonials .reviews { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.reviews .review { width: 100%; }
.reviews-more { margin-top: 24px; }

/* ---------- Podcast: one centred column ---------- */
.podcast-grid { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
.podcast-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.podcast .tag { margin-bottom: 14px; }
.podcast-text .lead { max-width: 700px; margin-top: 0; }
.podcast .checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 20px; }
.podcast .btn-spotify { margin-top: 22px; }

/* ---------- Contact ---------- */
.contact-grid { max-width: var(--container); gap: var(--gap); }
.contact-card { align-items: center; text-align: center; }
.contact-more { margin-top: var(--gap); }
.contact-more.container { width: calc(100% - 48px); max-width: 976px; padding-block: 18px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 20px; }

/* ---------- Students ---------- */
.students-login { display: block; padding-inline: 0; }
.students-login .students-card { max-width: none; padding: 28px 24px; }
.students-login .login-btn { margin-top: 20px; }
.app-grid { gap: 40px; }
.dash-main, .dash-row .dash-mini:first-child { transform: none !important; }

@media (min-width: 640px) {
  .testimonials .reviews .review { width: calc((100% - var(--gap)) / 2); }
}
@media (min-width: 768px) {
  .about-media .creds { grid-template-columns: repeat(3, 1fr); }
  .free-call-topics ul { grid-template-columns: 1fr 1fr; }
  .specializations .chips { grid-template-columns: repeat(5, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; }
  .app-grid { grid-template-columns: 1fr 380px; }
  .students-login .students-card { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 32px; text-align: start; padding: 28px 36px; }
  .students-login .students-card h2 { grid-column: 1; }
  .students-login .students-card .lead { grid-column: 1; margin: 8px 0 0; max-width: none; }
  .students-login .login-btn { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .students-login .login-note { grid-column: 2; grid-row: 3; text-align: center; margin-top: 12px; }
}
@media (min-width: 1000px) {
  .testimonials .reviews .review { width: calc((100% - var(--gap) * 2) / 3); }
}
@media (min-width: 1100px) {
  .site-header { padding-inline: max(24px, calc((100% - 976px) / 2)); }
  .tabs a { padding-inline: 11px; }
}
@media (max-width: 767px) {
  .site-footer { padding-bottom: 80px; }
  .free-call-card { padding: 28px 18px; }
  .section-title, .why .section-title, .specializations .section-title, .custom-app .big-title { font-size: 27px; }
}

.free-call h2 .accent { white-space: nowrap; }
@media (max-width: 767px) {
  .podcast .checks { flex-direction: column; align-self: center; align-items: flex-start; text-align: start; }
}

/* ---------- "What you get" on the lessons page ---------- */
.what-you-get { padding-top: 48px; }
.what-head { text-align: center; }
.what-you-get .custom-app { padding-top: 24px; }
.what-you-get h3.big-title { font-size: 26px; }
.cta-box h3 { font-size: 22px; font-weight: 800; }
.what-you-get .cta-box > div { flex: 1 1 420px; }
.what-you-get .btn-spotify { margin: 0; }

/* ---------- Student page: just the login ---------- */
.login-only .students-login .students-card { display: block; max-width: 560px; margin-inline: auto; padding: 36px 28px; text-align: center; }
.login-only .students-login .students-card .lead { margin: 12px auto 0; max-width: 420px; }
.login-only .students-login .login-btn { display: inline-flex; margin-top: 28px; }
@media (max-width: 767px) {
  .what-you-get h3.big-title { font-size: 23px; }
  .what-you-get .cta-box > div { flex-basis: 100%; }
  .login-only .students-login .login-btn { display: flex; }
}

/* Tiny button under the Facebook logo (home page) */
.fb-col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tiny-link { width: 8px; height: 8px; margin-inline-start: 25px; border-radius: 50%; background: rgba(255, 255, 255, .35); position: relative; }
.tiny-link::after { content: ""; position: absolute; inset: -6px; }
