/* =========================
   Anna Spanish Tutor — Styles
   ========================= */

/* ---------- CSS Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl { margin: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
ul[role='list'], ol[role='list'] { list-style: none; }
button { border: 0; background: none; cursor: pointer; }
:focus { outline: none; }

/* ---------- Theme Variables ---------- */
:root {
  --bg: #ffffff;
  --text: #111827;       /* slate-900 */
  --muted: #6b7280;      /* slate-500 */
  --border: #e5e7eb;     /* slate-200 */
  --surface: #f8fafc;    /* slate-50 */

  --brand: #dc2626;      /* red-600 (vibrant, Colombian energy) */
  --brand-700: #b91c1c;
  --brand-50: #fef2f2;
  --accent: #2563eb;     /* blue-600 for secondary actions */

  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-sm: 0 2px 12px rgba(0,0,0,.06);

  --container: 1120px;
  --gutter: 24px;

  --fs-hero: clamp(2rem, 2.4vw + 1.2rem, 3rem);
  --fs-h2: clamp(1.5rem, 1.2vw + 1rem, 2rem);
  --fs-h3: 1.125rem;
  --fs-body: 1rem;
  --fs-small: .9375rem;

  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
}

/* ---------- Base Typography ---------- */
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.65;
}

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font-size: var(--fs-hero); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); margin-bottom: var(--space-3); }
h3 { font-size: var(--fs-h3); }

p + p { margin-top: .75rem; }

.container {
  width: min(100% - var(--gutter)*2, var(--container));
  margin-inline: auto;
}

.section { padding: var(--space-6) 0; }
.section__title { margin-bottom: var(--space-3); }
.section__lead, .section__intro { color: var(--muted); margin-bottom: var(--space-4); }

/* Visually hidden (keep in DOM for a11y) */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Header & Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 0;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; }
.brand__logo { width: 108px; height: 108px; }
.brand__name { font-size: 1.05rem; }

.nav__toggle {
  display: none; font-weight: 600; padding: .6rem .9rem;
  border: 1px solid var(--border); border-radius: 10px;
}
.nav__menu { display: flex; align-items: center; gap: 1rem; }
.nav__link {
  display: inline-block; padding: .5rem .75rem; border-radius: 10px; color: var(--muted);
}
.nav__link:hover { background: var(--surface); color: var(--text); }
.nav__cta {
  background: var(--brand); color: #fff; border-radius: 999px; padding: .55rem .95rem; font-weight: 600;
}
.nav__cta:hover { background: var(--brand-700); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 6vw, 6rem) 0; background: linear-gradient(180deg, var(--surface), #fff); }
.hero__inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-5); align-items: center;
}
.hero__subtitle { color: var(--muted); margin-top: .75rem; max-width: 52ch; }
.hero__cta { margin-top: var(--space-4); display: flex; gap: .75rem; flex-wrap: wrap; }
.hero__badges { margin-top: var(--space-3); display: flex; gap: .5rem; flex-wrap: wrap; }
.badge {
  font-size: .85rem; padding: .35rem .6rem; border-radius: 999px;
  background: var(--brand-50); color: var(--brand); border: 1px solid #fee2e2;
}
.hero__image { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ---------- Highlights ---------- */
.highlights { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.highlights__list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3);
  padding: var(--space-4) 0; text-align: center; color: var(--muted); font-weight: 600;
}
.highlight { padding: .6rem .75rem; border-radius: 10px; background: var(--surface); }

/* ---------- Grid Utilities ---------- */
.grid { display: grid; gap: var(--space-4); }
.grid--2cols { grid-template-columns: repeat(2, 1fr); }
.grid--3cols { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards ---------- */
.cards { margin-top: var(--space-3); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-4); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .75rem;
}
.card__title { font-size: 1.1rem; }
.card__text { color: var(--muted); }
.card__bullets { padding-left: 1rem; color: var(--text); }
.card__bullets li { margin: .35rem 0; list-style: disc; }

.price__value { font-weight: 700; }
.price__amount { font-size: 1.75rem; }
.price--popular { border-color: #fed7d7; box-shadow: 0 8px 30px rgba(220,38,38,.12); }

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1rem; border-radius: 12px; font-weight: 700; transition: transform .08s ease;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-700); }

.btn--secondary { background: #fff; border-color: var(--border); }
.btn--secondary:hover { background: var(--surface); }

.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { background: var(--surface); }

.btn--lg { padding: .9rem 1.2rem; border-radius: 999px; }

/* ---------- About ---------- */
.about__image {
  width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.about__list { margin-top: .5rem; padding-left: 1rem; }
.about__list li { list-style: disc; margin: .35rem 0; }

/* ---------- Services ---------- */
.service .btn { margin-top: .25rem; }

/* ---------- Pricing ---------- */
.pricing .price { text-align: left; }

/* ---------- Testimonials ---------- */
.quotes { margin-top: var(--space-3); }
.quote {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-4); box-shadow: var(--shadow-sm);
}
.quote__text { font-style: italic; }
.quote__author { color: var(--muted); margin-top: .6rem; }

/* ---------- FAQ ---------- */
.faqs { display: grid; gap: .75rem; margin-top: var(--space-2); }
.faq__item {
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  padding: .6rem .9rem;
}
.faq__q { font-weight: 700; }
.faq__a { color: var(--muted); padding-top: .4rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-3); }
.form__row { display: grid; gap: .35rem; }
.form__label { font-weight: 600; }
.form__input, .form__select, .form__textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 12px; background: #fff;
  padding: .7rem .8rem; color: var(--text);
}
.form__textarea { resize: vertical; }
.form__input:focus, .form__select:focus, .form__textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(220,38,38,.1);
}
.form__actions { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.form__note { color: var(--muted); font-size: var(--fs-small); }

.contact__quicklinks { margin-top: var(--space-3); display: flex; gap: 1rem; flex-wrap: wrap; }
.link { color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; }

.embed--booking {
  min-height: 420px; border: 1px dashed var(--border); border-radius: var(--radius);
  display: grid; place-items: center; color: var(--muted);
}

.contact__address { margin-top: var(--space-3); color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(180deg, #fff, var(--surface));
  padding: var(--space-5) 0; border-top: 1px solid var(--border);
}
.cta__inner { display: grid; place-items: center; gap: var(--space-3); text-align: center; }
.cta__title { font-size: clamp(1.4rem, 1.6vw + 1rem, 2rem); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: #fff; }
.footer__inner {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--space-4);
  padding: var(--space-5) 0;
}
.footer__logo { width: 144px; height: 144px; }
.footer__text { color: var(--muted); margin-top: .5rem; }
.footer__menu { display: grid; gap: .35rem; color: var(--muted); }
.footer__link:hover { color: var(--text); }
.footer__legal {
  display: flex; align-items: center; gap: 1rem; justify-content: space-between; flex-wrap: wrap; color: var(--muted);
}

/* ---------- Layout Tweaks ---------- */
.header + .hero { scroll-margin-top: 80px; }
section[id] { scroll-margin-top: 88px; }

/* ---------- Focus Styles (A11y) ---------- */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(37, 99, 235, .5);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .highlights__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .grid--3cols { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .grid--2cols, .grid--3cols { grid-template-columns: 1fr; }
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute; right: var(--gutter); top: 64px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: .5rem; display: none; flex-direction: column; min-width: 220px;
  }
  .nav__menu.is-open { display: flex; }
  .nav__link { color: var(--text); }
}

/* ---------- Helpers ---------- */
.header .container,
.hero .container,
.section .container,
.cta .container,
.footer .container { padding-left: var(--gutter); padding-right: var(--gutter); }




/* Remove default list bullets from menus, badges, and highlights */
.nav__menu,
.footer__menu,
.hero__badges,
.highlights__list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}


/* =========================
   HERO — more breathing room
   ========================= */
.hero { padding: clamp(4rem, 8vw, 9rem) 0; }              /* taller top/bottom */
.hero__inner { grid-template-columns: 1.2fr .8fr;         /* text gets more width */
                 gap: clamp(2rem, 4vw, 4.5rem); }         /* more gap between text/image */
.hero__subtitle { margin-top: 1rem; max-width: 60ch; }
.hero__cta { margin-top: 1.25rem; }
.hero__badges { margin-top: 1rem; gap: .75rem; }

/* Optional: widen global container a hair for desktop */
:root { --container: 1200px; }

/* =========================
   “Little squares” hover effects
   highlights + cards + badges
   ========================= */

/* Highlights grid spacing + hover */
.highlights__list { gap: 1rem; padding: 1rem 0; }
.highlight {
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
@media (hover:hover) {
  .highlight:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
}

/* Cards (Services, Pricing, Testimonials) hover */
.card { transition: transform .15s ease, box-shadow .15s ease; }
@media (hover:hover) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}

/* Badges (pill chips under hero buttons) hover */
.badge {
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}
@media (hover:hover) {
  .badge:hover { transform: translateY(-1px); background: #fff; border-color: var(--brand); }
}

/* Buttons a touch roomier so the hero feels less tight */
.btn { padding: .8rem 1.1rem; }
.btn--lg { padding: 1rem 1.3rem; }


/* =========================================
   Brand contour hover for blocks (global)
   Applies to: Highlights, Services cards,
   Pricing cards, Testimonials quotes
   ========================================= */

/* Base: ensure all these components have a border and smooth transitions */
.highlight,
.card,
.quote {
  border: 1px solid var(--border);
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease,
    background-color .18s ease;
  will-change: transform;
}

/* Hover/focus ring using brand color */
@media (hover:hover) {
  .highlight:hover,
  .card:hover,
  .quote:hover {
    border-color: var(--brand);
    /* soft brand ring + existing elevation */
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .10), var(--shadow);
    transform: translateY(-2px);
    background: #fff; /* pop against grey */
  }
}

/* Keyboard access: show the same ring when a child gets focus */
.highlight:focus-within,
.card:focus-within,
.quote:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .10), var(--shadow);
  background: #fff;
}

/* Tweak highlights spacing so the bigger ring doesn't feel cramped */
.highlights__list { gap: 1.2rem; }
.highlight { padding: 1rem 1.25rem; border-radius: 14px; background: var(--surface); }

/* Pricing “popular” card kept consistent on hover */
.price--popular:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .10), var(--shadow);
}


/*<!-- =========================
     FOOTER STYLES — append to style.css
     ========================= */
/* Contrast + structure */
.footer--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto; /* brand | links | CTA */
  gap: 2.5rem;
  align-items: start;
  padding: 2.25rem 0 1.75rem;
}

/* Brand block */
.footer__brand { display: grid; gap: .75rem; }
.footer__logo { width: 80px; height: 80px; }
.footer__tagline { color: var(--muted); max-width: 38ch; }

/* Link columns */
.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 1.25rem 2rem;
}
.footer__menu {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .5rem;
}
.footer__link { color: var(--muted); font-size: .95rem; }
.footer__link:hover { color: var(--brand); }

/* CTA block */
.footer__cta { display: grid; gap: .75rem; justify-items: end; }
.footer__cta-title { font-size: 1.05rem; color: var(--text); }

/* Bottom legal bar */
.footer__bottom {
  border-top: 1px solid var(--border);
  background: #fff;
}
.footer__bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 0;
}
.footer__links {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1.25rem; flex-wrap: wrap;
}

/* Remove stray bullets anywhere in footer navs */
.footer__menu li, .footer__links li { list-style: none; }

/* Responsive */
@media (max-width: 980px) {
  .footer__top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .footer__brand { justify-items: center; }
  .footer__cols { grid-template-columns: 1fr 1fr; justify-items: center; }
  .footer__cta { justify-items: center; }
}
@media (max-width: 560px) {
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; }
}



/* =========================
   Footer tweaks: alignment + bigger logo
   ========================= */

/* 1) Make the three columns vertically centered and space them better */
.footer__top {
  align-items: center;                /* centers brand, links, CTA on the same baseline */
  column-gap: 3rem;                   /* a bit more breathing room between columns */
}

/* 2) Brand block: larger logo, tidy alignment */
.footer__brand { align-items: center; display: grid; grid-auto-flow: row; gap: .75rem; }
.footer__logo { width: 120px; height: 120px; }  /* bigger logo */
.footer__tagline { max-width: 40ch; }

/* 3) Keep link columns visually centered */
.footer__cols { align-self: center; }

/* 4) CTA column: center vertically and right-align text/button */
.footer__cta { align-self: center; justify-items: end; text-align: right; }

/* 5) Legal bar stays as-is but ensure links don't creep to center on wide screens */
.footer__bottom-inner { justify-content: space-between; }

/* 6) Responsive tuning so the larger logo doesn’t dominate on small screens */
@media (max-width: 980px) {
  .footer__logo { width: 96px; height: 96px; }
}
@media (max-width: 560px) {
  .footer__logo { width: 80px; height: 80px; }
}


/* Footer CTA: center heading with button and keep the block at right */
.footer__cta {
  justify-self: end;               /* stay on the right in the grid */
  display: flex;                   /* stack title + button */
  flex-direction: column;
  align-items: center;             /* center title horizontally with the button */
  justify-content: center;         /* center the pair vertically within the cell */
  gap: .75rem;
  text-align: center;              /* center the text itself */
  width: max-content;              /* shrink to content so centering is exact */
}

.footer__cta-title {
  margin: 0;                       /* avoid stray vertical offset */
  line-height: 1.2;                /* tidy optics */
}

/* Keep it centered on smaller screens too */
@media (max-width: 980px) {
  .footer__cta { justify-self: center; }
}




/* =========================
   1) TOUCH FEEDBACK (phones)
   Make blocks react on tap just like hover
   ========================= */

/* Instant visual on tap for devices with no hover */
@media (hover:none) {
  .highlight:active,
  .card:active,
  .quote:active,
  .badge:active {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .10), var(--shadow);
    background: #fff;
    transform: translateY(-2px);
  }
}

/* JS helper class (added on touchstart below) */
.is-touched {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .10), var(--shadow) !important;
  background: #fff !important;
  transform: translateY(-2px) !important;
}

/* =========================
   2) FOOTER — compact mobile layout
   Keep links in two columns, reduce paddings
   ========================= */

/* Stop collapsing to one long column; keep 2 cols down to small screens */
@media (max-width: 560px) {
  .footer__top { padding: 1.1rem 0 .9rem; }
  .footer__cols {
    grid-template-columns: repeat(2, minmax(120px, 1fr));  /* 2 short columns */
    gap: .5rem 1rem;
  }
  .footer__menu { gap: .25rem; }
  .footer__link { font-size: .95rem; }
  .footer__brand { gap: .5rem; }
  .footer__tagline { font-size: .95rem; }
  .footer__cta .btn { width: 100%; max-width: 320px; }   /* tidy full-width CTA */
}

/* Slightly reduce vertical padding of the legal bar on phones */
@media (max-width: 560px) {
  .footer__bottom-inner { padding: .6rem 0; }
}


/* Keep the header CTA on one line and tidy spacing */
.nav__menu { flex-wrap: nowrap; }                 /* don't let items wrap */
.nav__cta { white-space: nowrap; min-width: max-content; }

/* Slightly tighter nav spacing on medium screens */
@media (max-width: 1150px) {
  .nav__menu { gap: .6rem; }
  .nav__link { padding: .45rem .6rem; }
  .brand__name { font-size: 1rem; }
}

/* Switch to hamburger earlier to avoid the "squished CTA" state */
@media (max-width: 980px) {
  .nav__toggle { display: inline-flex; }          /* show the Menu button earlier */

  /* Use the same dropdown styles as mobile */
  .nav__menu {
    position: absolute;
    right: var(--gutter);
    top: 64px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: .5rem;
    display: none;                                /* hidden until toggled */
    flex-direction: column;
    min-width: 220px;
  }
  .nav__menu.is-open { display: flex; }

  /* Make sure links look good in the dropdown */
  .nav__link { color: var(--text); padding: .55rem .7rem; }
  .nav__cta { border-radius: 999px; }
}


/* Tiny-screen header spacing: push Menu further right */
@media (max-width: 420px) {
  /* reduce the right gutter so the Menu can sit closer to the edge */
  .header .container { padding-right: 4px; }      /* try 0–12px to taste */


  /* keep the button tidy */
  .nav__toggle {
    white-space: nowrap;
    padding: .5rem .9rem;
    margin-left: auto;                            /* ensures it hugs the right side */
  }
}

/* If you want it almost flush with the edge on very narrow phones */
@media (max-width: 360px) {
  .header .container { padding-right: 4px; }
}
