/* =====================================================================
   Articulate Minds Tutoring: site styles
   Colours, fonts and button styles were copied from the old Squarespace
   site. Change a colour here once and it updates everywhere.
   ===================================================================== */

:root {
  /* Brand palette (from the Squarespace theme) */
  --navy: #0e182f;          /* FAQ background, body text */
  --navy-2: #1c2c5a;        /* "What 1:1 tutoring looks like" background, headings */
  --gold: #c09752;          /* buttons, badges */
  --gold-hover: #a88242;
  --gold-light: #d0a453;    /* icons, highlights */
  --ice: #edf1f8;           /* Success Stories background */
  --white: #ffffff;
  --ink: #0f172a;
  --slate: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --star: #f59e0b;

  /* Fonts (Google Fonts, loaded in each page's <head>) */
  --font-heading: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-features: "Arimo", Arial, sans-serif;
  --font-features-heading: "Familjen Grotesk", "Inter", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --radius-pill: 300px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  color: var(--navy-2);
}
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section--tight-top { padding-top: clamp(2rem, 4vw, 3rem); }
.center { text-align: center; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: var(--white); padding: .75rem 1rem; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 1rem; font-weight: 400; line-height: 1.2;
  letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
  color: var(--white); background: var(--gold);
  border: 1.5px solid var(--gold); border-radius: var(--radius-pill);
  padding: 1.25rem 3.75rem;
  box-shadow: 0 4px 15px rgba(192, 151, 82, .3);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn:active { transform: translateY(1px); }
.btn--block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header { padding-top: clamp(1.25rem, 3vw, 2.25rem); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-block; line-height: 0; }
.logo img { width: clamp(112px, 12vw, 130px); height: auto; }
.back-link { font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 1. Hero ---------- */
.hero { padding-block: clamp(1rem, 2.5vw, 1.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
.hero h1 {
  font-size: clamp(2.3rem, 4.1vw, 3.5rem);
  font-weight: 300;
  line-height: 1.08;
}
.hero h1 strong { font-weight: 700; }
.hero__sub {
  margin-top: .9rem;
  font-family: var(--font-heading); font-weight: 400; letter-spacing: -0.02em;
  font-size: clamp(1.05rem, 1.6vw, 1.15rem); color: var(--navy-2); line-height: 1.35;
}
.hero__media { border-radius: 2px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.hero__media video { width: 100%; height: 100%; object-fit: contain; }

.trust-badges {
  list-style: none; padding: 0; margin: 2rem 0 .5rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.badge-item {
  display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  font-size: .84rem; font-weight: 600; color: #111827; line-height: 1.25;
  background: rgba(255, 255, 255, .95);
  padding: .7rem .75rem; border-radius: 50px;
  border: 1.5px solid var(--gold);
  box-shadow: 0 2px 8px rgba(192, 151, 82, .15);
}
.badge-icon { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.hero .btn { margin-top: .5rem; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 3rem; }
  .hero__copy .trust-badges, .hero__copy .btn { max-width: 470px; }
  .badge-item { font-size: .85rem; }
}

/* ---------- 2. Review carousel ---------- */
.reviews { padding-block: 1.5rem 2rem; overflow: hidden; }
.carousel-hint-container { display: flex; justify-content: center; padding-inline: var(--gutter); margin-bottom: .75rem; }
.carousel-hint {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .88rem/1.3 var(--font-body); color: #334155;
  background: #f8fafc; border: 1px solid #cbd5e1; padding: 6px 16px; border-radius: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
  cursor: pointer;
}
.carousel-hint[aria-pressed="true"] { border-color: var(--gold); }
.hint-icon { width: 15px; height: 15px; color: #a68449; flex-shrink: 0; }

.carousel-container { padding: 1.25rem 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.carousel-track {
  list-style: none; margin: 0; padding: 0 var(--gutter);
  display: flex; gap: 1.25rem; width: max-content;
}
.review-card {
  width: min(320px, 82vw); flex-shrink: 0; scroll-snap-align: center;
  background: var(--white);
  border: 1px solid var(--line); border-top: 3px solid #d3b476; border-radius: 10px;
  padding: 1.5rem 1.25rem;
  display: flex; flex-direction: column;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .03);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.stars { color: var(--star); font-size: .9rem; letter-spacing: 2px; margin-bottom: .75rem; }
.review-headline { font-weight: 700; font-size: .95rem; color: var(--ink); margin-bottom: .5rem; line-height: 1.35; }
.review-body { font-size: .85rem; color: var(--slate); line-height: 1.5; margin-bottom: 1.25rem; }
.review-body strong {
  font-weight: 700; color: var(--ink); background: #fdf8ef;
  padding: 1px 4px; border-radius: 3px; border-bottom: 1px solid #e6d0a3;
}
.reviewer-name { font-weight: 700; color: var(--ink); font-size: .82rem; margin-top: auto; }
.reviewer-role { font-weight: 400; color: var(--muted); }

/* Auto-scroll is switched on by main.js (after it duplicates the cards for
   a seamless loop) and only when the visitor hasn't asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .reviews.is-animated .carousel-container { overflow: hidden; scroll-snap-type: none; }
  .reviews.is-animated .carousel-track { animation: infiniteScroll 95s linear infinite; padding: 0; }
  .reviews.is-animated .review-card { scroll-snap-align: none; cursor: pointer; }
  .reviews.is-animated .carousel-track:hover,
  .reviews.is-animated .carousel-track:focus-within,
  .reviews.is-paused .carousel-track { animation-play-state: paused; }
  .review-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px -4px rgba(15, 23, 42, .12), 0 4px 8px -2px rgba(211, 180, 118, .15);
    border-color: #cbd5e1; border-top-color: #c4a261; z-index: 2;
  }
}
@keyframes infiniteScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - .625rem)); }
}

/* ---------- 3. Success stories ---------- */
.stories { background: var(--ice); }
.stories h2 { font-size: clamp(2rem, 4.2vw, 2.75rem); font-weight: 700; color: var(--navy); }
.stories__intro { margin-top: 1.25rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--navy-2); }
.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1.75rem; margin-top: clamp(2.5rem, 5vw, 3.25rem);
}
.testimonial-card {
  background: var(--white); border-radius: 16px; padding: 1.4rem 1.4rem 1.75rem;
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, .08); }
.video-thumb {
  width: 100%; height: 200px; margin-bottom: 1.25rem;
  border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) center / cover no-repeat;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--white); font: 600 .875rem var(--font-heading);
  position: relative; overflow: hidden;
}
.video-thumb.has-poster::before { content: ""; position: absolute; inset: 0; background: rgba(15, 23, 42, .35); }
.video-thumb > * { position: relative; }
.play-btn-mini {
  width: 50px; height: 50px; border-radius: 50%; margin-bottom: .5rem;
  background: linear-gradient(180deg, #d5af74 0%, #b28b48 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 25px rgba(195, 156, 94, .6); transition: transform .2s ease;
}
.video-thumb:hover .play-btn-mini, .video-thumb:focus-visible .play-btn-mini { transform: scale(1.1); }
.play-icon-mini { width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 14px solid #1a1200; margin-left: 3px; }
.testimonial-card .stars { font-size: 1.1rem; margin-bottom: 1.6rem; }
.testimonial-card h3 { font-family: var(--font-serif); font-size: 1.1rem; letter-spacing: 0; color: var(--ink); margin-bottom: 1.4rem; line-height: 1.4; }
.testimonial-card .quote { font-family: var(--font-heading); color: var(--slate); font-size: .95rem; line-height: 1.6; margin-bottom: 1.25rem; }
.testimonial-card .author { font-family: var(--font-heading); font-weight: 700; font-size: .9rem; color: var(--ink); margin-top: auto; }
.testimonial-card .author span { color: var(--muted); font-weight: 500; }

/* ---------- 4. What 1:1 tutoring looks like ---------- */
.features { background: var(--navy-2); color: var(--white); font-family: var(--font-features); }
.features h2 { color: var(--white); font-size: clamp(2rem, 4.2vw, 2.75rem); max-width: 16ch; margin-inline: auto; }
.features__tagline { font-family: var(--font-body); margin: .9rem auto 0; max-width: 30ch; font-size: 1.1rem; }
.features-dual-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; margin-top: 1.5rem; }
.column-header { margin-bottom: 1.5rem; border-bottom: 1px solid rgba(208, 164, 83, .3); padding-bottom: .75rem; }
.column-subtitle { font: 700 .75rem var(--font-features-heading); letter-spacing: 1.5px; color: var(--gold-light); display: block; margin-bottom: .2rem; }
.column-title { font: 700 1.4rem var(--font-features-heading); letter-spacing: 0; color: var(--white); }
.column-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; flex: 1; }
.feature-column { display: flex; flex-direction: column; }
.feature-card {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px;
  padding: 1.5rem; display: flex; gap: 1.1rem; align-items: flex-start; flex: 1;
  transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
}
.feature-card:hover { background: rgba(255, 255, 255, .08); border-color: rgba(208, 164, 83, .6); transform: translateY(-2px); }
.card-icon { background: rgba(208, 164, 83, .12); border: 1px solid rgba(208, 164, 83, .3); border-radius: 8px; padding: .6rem; display: flex; flex-shrink: 0; }
.card-content h4 { font: 700 1.05rem var(--font-features-heading); letter-spacing: 0; color: var(--white); margin-bottom: .4rem; }
.card-content p { font-size: .88rem; color: #e2e8f0; line-height: 1.55; }
.features .btn { margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 851px) { .features-dual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 5. Meet your tutor ---------- */
.tutor__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.tutor__photo { background: var(--navy-2); border-radius: 28px; overflow: hidden; padding-top: 2.5rem; }
.tutor__photo img { width: 100%; }
.socials { list-style: none; display: flex; gap: 8px; padding: 0; margin: 1.25rem 0 0; }
.socials a {
  width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--gold); color: var(--white); border-radius: 4px; transition: background-color .2s;
}
.socials a:hover { background: var(--gold-hover); }
.socials svg { width: 15px; height: 15px; }
.tutor h2 { font-weight: 700; font-size: clamp(1.9rem, 2.7vw, 2.35rem); color: var(--navy-2); }
.highlight { white-space: nowrap; background: var(--gold-light); border-radius: 999px; padding: 0 .15em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.tutor__bio { margin-top: 1.75rem; font-size: 1.05rem; line-height: 1.6; color: var(--navy); }
.tutor__bio p + p { margin-top: 1.5em; }
.tutor .btn { margin-top: 2.5rem; }
@media (min-width: 900px) {
  .tutor__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3.5rem; }
  .tutor__photo { margin-top: 1.5rem; }
}

/* ---------- 6. FAQ ---------- */
.faq { background: var(--navy); color: var(--white); }
.faq h2 { color: var(--white); font-size: clamp(2rem, 4.2vw, 2.75rem); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.faq-list { border-top: 1px solid rgba(255, 255, 255, .9); }
.faq-item { border-bottom: 1px solid rgba(255, 255, 255, .9); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.75rem 0;
  font-family: var(--font-heading); font-size: clamp(1.1rem, 1.8vw, 1.3rem); letter-spacing: -0.02em; line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex-shrink: 0; width: 15px; height: 15px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item h3 { font: inherit; color: inherit; letter-spacing: inherit; }
.faq-answer { padding: 0 2.5rem 1.75rem 0; font-size: 1rem; line-height: 1.65; color: rgba(255, 255, 255, .9); }

/* ---------- 7. Contact / Calendly ---------- */
.contact h2 { font-size: clamp(2rem, 4.2vw, 2.75rem); color: var(--navy-2); }
.calendly-horizontal-wrapper { width: 100%; max-width: 1050px; margin: 2rem auto 0; }
.calendly-inline-widget { min-width: 320px; width: 100%; height: 750px; }
.calendly-fallback { padding: 3rem 1rem; text-align: center; }
@media (max-width: 768px) { .calendly-inline-widget { height: 950px; } }
.consent { margin-top: 1.5rem; font-size: .85rem; color: var(--navy); }
.consent a { text-underline-offset: 2px; }

/* ---------- 8. Footer ---------- */
.site-footer { padding-block: 2rem 2.5rem; border-top: 1px solid var(--line); text-align: center; font-size: .8rem; color: var(--navy); }
.site-footer .container { max-width: 640px; display: grid; gap: 1rem; justify-items: center; }
.footer-links { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { text-underline-offset: 2px; }
.site-footer .socials { margin: 0; }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
.legal .container { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 4.2vw, 2.6rem); margin-bottom: 1.5rem; }
.legal p { margin-bottom: 1em; line-height: 1.65; }

/* ---------- Video modal ---------- */
.video-modal {
  width: min(960px, 94vw); padding: 0; border: 0; border-radius: 12px; background: #000; overflow: visible;
}
.video-modal::backdrop { background: rgba(14, 24, 47, .85); }
.video-modal__frame { aspect-ratio: 16 / 9; width: 100%; }
.video-modal__frame iframe, .video-modal__frame video { width: 100%; height: 100%; border: 0; border-radius: 12px; background: #000; }
.video-modal__close {
  position: absolute; top: -48px; right: 0;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--white); color: var(--navy); font-size: 1.5rem; line-height: 1;
}
