/* ===== IELTS Essay — Shared Styles ===== */

/* Skip link for keyboard / screen-reader users */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: #7e0e2c; color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Visible focus outline for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid #c7002b;
  outline-offset: 2px;
}

:root {
  --brand: #a4123a;        /* deep IELTS maroon — headings, hero, footer */
  --brand-dark: #7e0e2c;   /* darker maroon — gradients, footer bg */
  --accent: #c7002b;       /* official IELTS red — buttons, CTAs, links */
  --accent-dark: #9e0021;  /* button hover */
  --slate: #5d6b7c;        /* neutral slate accent — icons, small highlights */
  --bg: #ffffff;
  --bg-soft: #faf6f6;      /* warm neutral tint */
  --text: #2a2a30;
  --muted: #5f5f6a;
  --border: #ece4e4;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(126, 14, 44, 0.08);
  --max: 1140px;
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { color: var(--brand); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
p { margin-bottom: 14px; }

.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin: 0 auto 8px; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: 10px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  border: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(199,0,43,.32); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: #fff; color: var(--brand); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--brand); font-size: 1.2rem; }
.logo:hover { text-decoration: none; }
.logo img { height: 40px; width: auto; display: block; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--brand-dark));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem;
}
.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; }
.nav-links a { color: var(--text); font-weight: 600; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a.active { color: var(--accent); }
.nav-cta { padding: 10px 22px !important; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--brand); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 60%, #5e0a20 100%);
  color: #fff; padding: 90px 0; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -80px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 70%);
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p { color: #f3dde2; font-size: 1.2rem; max-width: 620px; margin-bottom: 28px; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.hero-badge { display: flex; align-items: center; gap: 8px; color: #f7e6ea; font-weight: 600; font-size: .95rem; }
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Cards / grid ===== */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card .icon {
  width: 54px; height: 54px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: var(--bg-soft); color: var(--accent);
}

/* ===== Steps ===== */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; margin-bottom: 28px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800;
  display: grid; place-items: center; font-size: 1.1rem;
}

/* ===== Pricing ===== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.price-card.featured { border: 2px solid var(--accent); transform: scale(1.03); position: relative; }
.price-tag-pop {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; padding: 5px 18px; border-radius: 50px;
  font-size: .8rem; font-weight: 700; letter-spacing: .03em;
}
.price { font-size: 2.6rem; font-weight: 800; color: var(--brand); margin: 10px 0 2px; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price-features { list-style: none; margin: 22px 0; flex: 1; }
.price-features li { padding: 9px 0 9px 30px; position: relative; border-bottom: 1px solid var(--border); }
.price-features li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800;
}

/* ===== Testimonials ===== */
.quote {
  background: #fff; border-radius: var(--radius); padding: 30px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.quote p { font-style: italic; color: var(--text); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color:#fff; display:grid; place-items:center; font-weight:800; font-size:1.15rem; letter-spacing:.5px; }
.who strong { color: var(--brand); display: block; }
.who span { color: var(--muted); font-size: .9rem; }
.stars { color: #e8a900; margin-bottom: 6px; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(135deg, var(--accent), var(--brand-dark));
  color: #fff; text-align: center; border-radius: 20px; padding: 56px 30px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #f7e6ea; max-width: 560px; margin: 0 auto 26px; }

/* ===== Forms ===== */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--brand); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--text); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(199,0,43,.15); }
textarea { resize: vertical; min-height: 130px; }

/* ===== Contact info ===== */
.info-list { list-style: none; }
.info-list li { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.info-ic { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--brand-dark); color: #e7cdd4; padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.site-footer a { color: #e7cdd4; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-logo { display:flex; align-items:center; gap:10px; color:#fff; font-weight:800; font-size:1.15rem; margin-bottom:12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; text-align: center; font-size: .9rem; color: #d6a9b4; }

/* ===== FAQ accordion ===== */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 24px; font-size: 1.08rem; font-weight: 700; color: var(--brand);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: inherit;
}
.faq-q:hover { color: var(--accent); }
.faq-q .chev { transition: transform .25s ease; flex-shrink: 0; color: var(--accent); font-size: 1.3rem; }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--muted); }
.faq-item.open .faq-a { max-height: 400px; }

/* ===== Notice / prerequisite band ===== */
.notice {
  background: #fdf1f3; border: 1px solid #f3cdd6; border-left: 5px solid var(--accent);
  border-radius: 12px; padding: 26px 28px;
}
.notice h3 { color: var(--accent-dark); margin-bottom: 8px; }
.notice p { margin-bottom: 10px; }
.notice .btn { margin-top: 8px; }

/* ===== Resource list ===== */
.res-card { display: flex; flex-direction: column; height: 100%; }
.res-card .res-tag { display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--accent); background:var(--bg-soft); padding:4px 10px; border-radius:50px; margin-bottom:12px; align-self:flex-start; }
.res-card h3 a { color: var(--brand); }
.res-card h3 a:hover { color: var(--accent); }
.res-card p { flex: 1; }
.res-link { font-weight:700; color:var(--accent); margin-top:auto; }
.res-link:hover { color:var(--accent-dark); text-decoration:none; }
.res-link::after { content:" →"; }

/* video embed responsive */
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.video-wrap iframe { position: absolute; top:0; left:0; width:100%; height:100%; border:0; }

/* tips list */
.tips { list-style: none; counter-reset: tip; }
.tips li { position: relative; padding: 14px 0 14px 46px; border-bottom: 1px solid var(--border); }
.tips li::before { counter-increment: tip; content: counter(tip); position:absolute; left:0; top:12px; width:30px; height:30px; border-radius:50%; background:var(--slate); color:#fff; font-weight:700; display:grid; place-items:center; font-size:.9rem; }

/* ===== Helpers ===== */
.mt-row { margin-top: 36px; }
.text-muted { color: var(--muted); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-2, .grid-3, .price-grid, .footer-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0; padding: 10px 0;
    border-bottom: 1px solid var(--border); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-toggle { display: block; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0; }
}
