/*
Theme Name: UpScore IELTS
Theme URI: https://app.upscoreielts.com
Author: UpScore IELTS
Description: Lean marketing theme for upscoreielts.com. Built to drive signups to app.upscoreielts.com -- no page builder, no bundled e-commerce/community features, minimal footprint. Visual language matches the app.upscoreielts.com product.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: upscore
*/

:root{
  --maroon: #a91e1e;
  --maroon-dark: #8a1818;
  --near-black: #16100f;
  --ink: #171717;
  --muted: #6b5f5c;
  --border: #ede6e4;
  --cream: #faf8f7;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: "Playfair Display", "Playfair Display Fallback", Georgia, "Times New Roman", serif;
  --font-body: "Geist", "Geist Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --shadow-card: 0 1px 2px rgba(22,16,15,0.04);
  --shadow-card-hover: 0 12px 32px rgba(22,16,15,0.10);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--maroon-dark); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; color: var(--near-black); letter-spacing: -0.01em; margin: 0; }
em, i { font-style: italic; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Badges / pills ---------- */
.pill-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--white); border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 16px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--near-black);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--maroon); flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--cream); z-index: 100;
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.site-logo { display: flex; align-items: center; gap: 10px; color: var(--near-black); }
.site-logo img { height: 36px; width: auto; }
.site-logo .mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--maroon); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 800; font-size: 18px; flex-shrink: 0;
}
.site-logo .wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.site-logo .wordmark .top { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--maroon); text-transform: uppercase; }
.site-logo .wordmark .bottom { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--near-black); }

.primary-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--ink); font-weight: 500; font-size: 14.5px; }
.primary-nav a:hover { color: var(--maroon); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta a.btn-outline { border-color: transparent; background: transparent; color: var(--ink); font-weight: 500; padding: 10px 6px; }
.header-cta a.btn-outline:hover { color: var(--maroon); border-color: transparent; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--near-black); }
.mobile-nav-extra { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14.5px;
  font-family: var(--font-body);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-dark); color: #fff; }
.btn-dark { background: var(--near-black); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { background: var(--white); color: var(--near-black); border-color: var(--border); }
.btn-outline:hover { border-color: var(--near-black); color: var(--near-black); }
.btn-lg { padding: 15px 28px; font-size: 15.5px; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 76px; text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #fdf5f0 0%, var(--cream) 55%, var(--white) 100%);
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 64px); line-height: 1.08; margin: 0 0 22px; letter-spacing: -0.015em;
}
.hero h1 .accent { color: var(--maroon); font-style: italic; font-weight: 700; }
.hero p.lead { font-family: var(--font-body); font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto 34px; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-checks { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.hero-checks span { display: inline-flex; align-items: center; gap: 6px; }
.hero-checks span::before { content: "✓"; color: #16a34a; font-weight: 800; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-soft { background: var(--cream); }
.section-dark { background: var(--near-black); color: #d8d2d0; }
.section-dark .eyebrow { color: #e6b8b8; }
.section-dark h2 { color: #fff; }
.section-dark .section-head p { color: #b7aeac; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow { color: var(--maroon); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 0 0 14px; letter-spacing: -0.01em; }
.section-head p { font-family: var(--font-body); color: var(--muted); font-size: 16px; margin: 0; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; text-align: left; box-shadow: var(--shadow-card);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-size: 18px; font-family: var(--font-body); font-weight: 700; color: var(--near-black); }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; font-family: var(--font-body); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px; background: var(--maroon); color: #fff;
}
.card.icon-orange .icon { background: #d97706; }
.card.icon-blue .icon { background: #2563eb; }
.card.icon-purple .icon { background: #7c3aed; }
.card.icon-dark { background: var(--near-black); border-color: var(--near-black); }
.card.icon-dark h3, .card.icon-dark p { color: #fff; }
.card.icon-dark .icon { background: var(--maroon); }

/* ---------- Step process ---------- */
.steps { display: flex; justify-content: center; align-items: flex-start; gap: 0; max-width: 780px; margin: 0 auto; flex-wrap: wrap; }
.step { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 100px; position: relative; }
.step-circle {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; margin-bottom: 14px;
  border: 2px solid #565050; color: #d8d2d0; background: transparent; z-index: 1;
}
.step.is-filled .step-circle { background: #fff; color: var(--near-black); border-color: #fff; }
.step.is-current .step-circle { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.step-label { font-size: 13.5px; text-align: center; color: #d8d2d0; max-width: 110px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 21px; left: calc(50% + 30px); width: calc(100% - 30px);
  border-top: 1.5px dashed #565050; z-index: 0;
}

/* ---------- Pricing ---------- */
.pricing-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 26px; text-align: center; position: relative; display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
}
.pricing-card.featured { border-color: var(--near-black); background: var(--near-black); box-shadow: 0 16px 40px rgba(22,16,15,0.22); }
.pricing-card.featured .plan-name, .pricing-card.featured .price { color: #fff; }
.pricing-card.featured .plan-tagline, .pricing-card.featured .price-sub, .pricing-card.featured .price small { color: #b7aeac; }
.pricing-card.featured li { color: #e7e2e0; border-bottom-color: #33302e; }
.pricing-card.featured li::before { color: var(--maroon); }
.pricing-card .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--maroon); color: #fff; font-size: 11px; font-weight: 700;
  padding: 5px 16px; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase;
}
.pricing-card .plan-name { font-family: var(--font-display); font-weight: 800; font-size: 19px; margin-bottom: 4px; color: var(--near-black); }
.pricing-card .plan-tagline { font-family: var(--font-body); color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.pricing-card .price { font-family: var(--font-display); font-size: 32px; font-weight: 800; margin-bottom: 4px; color: var(--near-black); }
.pricing-card .price small { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--muted); }
.pricing-card .price-sub { font-family: var(--font-body); color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; flex: 1; font-family: var(--font-body); }
.pricing-card li { font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; gap: 8px; }
.pricing-card li::before { content: "✓"; color: var(--maroon); font-weight: 800; flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--near-black); color: #b7aeac; padding: 60px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
.footer-grid h4 { font-family: var(--font-body); color: #fff; font-weight: 700; font-size: 14px; margin: 0 0 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { font-family: var(--font-body); color: #9c9291; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #33302e; padding-top: 24px; font-size: 13px; color: #756c6a; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--font-body); }

/* ---------- Footer brand block ---------- */
.footer-brand { max-width: 300px; }
.footer-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-logo .mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--maroon); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.footer-brand-logo .wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.footer-brand-logo .wordmark .top { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--maroon); text-transform: uppercase; }
.footer-brand-logo .wordmark .bottom { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: #fff; }
.footer-tagline { font-family: var(--font-body); font-size: 12px; color: #475569; margin: 0 0 10px; }
.footer-credit { font-family: var(--font-body); font-size: 12px; color: #6b7280; margin: 0; }
.footer-credit a { color: #6b7280; text-decoration: underline; }
.footer-credit a:hover { color: #9ca3af; }

/* ---------- Footer CTA band ---------- */
.footer-cta { background: linear-gradient(135deg, #2b1416, #1c0f0d); padding: 52px 0; }
.footer-cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.footer-cta h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 8px; }
.footer-cta p { font-family: var(--font-body); color: #b7aeac; margin: 0; font-size: 15px; }
.footer-cta .btn-lg { flex-shrink: 0; }

/* ---------- Blog / posts ---------- */
.section-alt { background: var(--cream); }
.section-heading { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 26px; letter-spacing: -0.01em; }
.page-title-sub { font-family: var(--font-body); color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-card);
}
.post-card-img {
  position: relative; display: block; width: 100%; aspect-ratio: 8 / 5; overflow: hidden;
  background: var(--cream);
}
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-img-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--cream), var(--border)); }
.post-card-cat {
  position: absolute; left: 12px; bottom: 12px; background: var(--white); color: var(--maroon);
  font-size: 11px; padding: 5px 12px;
}
.post-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 18px; margin: 0 0 8px; font-family: var(--font-display); line-height: 1.3; }
.post-card .meta { font-family: var(--font-body); color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.post-card p { font-family: var(--font-body); color: var(--muted); font-size: 14.5px; margin: 0 0 16px; flex: 1; }
.post-card .btn-outline { align-self: flex-start; padding: 8px 16px; font-size: 13.5px; }
.entry-content { max-width: 760px; margin: 0 auto; font-size: 17px; font-family: var(--font-body); color: var(--ink); }
.entry-content h2 { font-size: 27px; margin-top: 44px; margin-bottom: 14px; }
.entry-content h3 { font-size: 21px; margin-top: 32px; margin-bottom: 10px; font-family: var(--font-body); font-weight: 700; }
.entry-content p { margin: 0 0 18px; }
.entry-content ul, .entry-content ol { margin: 0 0 18px; padding-left: 22px; }
.entry-content li { margin-bottom: 6px; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14.5px; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--cream); font-weight: 700; }
.entry-content details { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 14px; background: var(--cream); }
.entry-content details summary { cursor: pointer; font-weight: 700; color: var(--maroon); }
.page-title-bar { padding: 56px 0 12px; text-align: center; background: var(--cream); }
.page-title-bar h1 { font-size: clamp(28px, 4vw, 40px); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { gap: 20px 0; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .primary-nav { display: none; }
  .nav-toggle { display: block; }
  .header-cta .btn-outline { display: none; }
  .header-cta .btn-primary { padding: 8px 16px; font-size: 13px; }
  .primary-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    padding: 8px 24px 20px;
    z-index: 200;
  }
  .primary-nav.is-open ul { flex-direction: column; gap: 0; }
  .primary-nav.is-open ul li { width: 100%; }
  .primary-nav.is-open ul li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
  .mobile-nav-extra { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
  .mobile-nav-extra a { text-align: center; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: flex-start; gap: 24px; }
  .step { flex-direction: row; align-items: center; gap: 14px; min-width: 0; }
  .step-circle { margin-bottom: 0; }
  .step-label { text-align: left; max-width: none; }
  .step:not(:last-child)::after { display: none; }
  .post-grid { grid-template-columns: 1fr; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; text-align: left; }
}


/* ---------- Student Results (Recent Results) ---------- */
#upscore-results-section { display: none; }
#upscore-results-section.is-ready { display: block; }
.results-track-wrap { overflow: hidden; }
.results-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: upscore-results-scroll 60s linear infinite;
}
.results-track:hover { animation-play-state: paused; }
@keyframes upscore-results-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.result-card {
  width: 230px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.result-card-top {
  background: linear-gradient(155deg, var(--near-black) 0%, #2a1f1c 100%);
  padding: 22px 18px 18px;
  text-align: center;
}
.result-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(169,30,30,0.28);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  object-fit: cover;
}
.result-band {
  font-family: var(--font-display);
  font-size: 38px;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.result-band-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-top: 4px;
}
.result-card-bottom { padding: 16px 18px 18px; }
.result-name { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.result-quote { font-family: var(--font-body); font-size: 12.5px; color: var(--muted); font-style: italic; line-height: 1.6; margin: 0; }

@media (max-width: 640px) {
  .result-card { width: 190px; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 4px;
  font-weight: 700; font-size: 16px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 22px; color: var(--maroon); font-weight: 400; flex-shrink: 0;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin: 0 4px 20px; color: var(--muted); font-size: 15px; line-height: 1.7; }
