/* ==========================================================================
   PTE Essay — stylesheet
   Palette adapted from Pearson PTE: teal #12B2A6 + deep ink #181F3A,
   soft aqua section tints, amethyst accent used sparingly.
   ========================================================================== */

:root {
  --ink:        #181F3A;   /* headings, footer, dark surfaces */
  --ink-soft:   #20294a;
  --teal:       #12B2A6;   /* primary brand / buttons / links */
  --teal-dark:  #0E8E85;   /* hover, gradient end */
  --teal-deep:  #0A6B64;
  --aqua-soft:  #E8F7F5;   /* soft section background */
  --aqua-tint:  #F3FBFA;
  --accent:     #6C4CF1;   /* amethyst, sparing highlights */
  --text:       #33384A;   /* body text */
  --muted:      #5E6678;   /* secondary text */
  --line:       #E2E8EC;   /* borders / hairlines */
  --white:      #ffffff;
  --bg:         #ffffff;
  --shadow:     0 10px 30px rgba(24, 31, 58, 0.08);
  --shadow-sm:  0 4px 14px rgba(24, 31, 58, 0.07);
  --radius:     14px;
  --radius-sm:  10px;
  --maxw:       1120px;
  --font:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1rem; }

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

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

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

.center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-row { margin-top: 18px; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: .96rem;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}
.nav-links a:hover { background: var(--aqua-soft); color: var(--teal-deep); }
.nav-links a.active { color: var(--teal-deep); }
.nav-links .nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
  padding: 6px 8px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: .98rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 178, 166, 0.28);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(18, 178, 166, 0.38); color: #fff; }

.btn-outline {
  background: #fff;
  color: var(--teal-deep);
  border-color: var(--teal);
}
.btn-outline:hover { background: var(--aqua-soft); color: var(--teal-deep); }

.btn-ghost {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: rgba(255,255,255,0.24); color: #fff; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 76px 0; }
.section-soft { background: var(--aqua-soft); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--teal-deep);
  margin: 0 0 10px;
}

.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; margin-left: auto; margin-right: auto; }
.center .lead { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(18,178,166,0.16), transparent 60%),
    radial-gradient(900px 420px at 0% 110%, rgba(108,76,241,0.10), transparent 55%),
    linear-gradient(180deg, var(--aqua-tint) 0%, #ffffff 100%);
  padding: 92px 0 84px;
  border-bottom: 1px solid var(--line);
}
.hero h1 { margin-bottom: 18px; }
.hero > .container > p { font-size: 1.18rem; color: var(--muted); max-width: 660px; }

.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .9rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); display: inline-block; }

/* --------------------------------------------------------------------------
   Grids & cards
   -------------------------------------------------------------------------- */
.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(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }

.icon {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  background: var(--aqua-soft);
  border-radius: 14px;
  margin-bottom: 16px;
}

/* Steps */
.steps { display: grid; gap: 16px; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 10px; }
.quote p { font-size: 1rem; color: var(--text); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.who strong { display: block; color: var(--ink); }
.who span { font-size: .85rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Notice / callout
   -------------------------------------------------------------------------- */
.notice {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  max-width: 880px;
  margin: 0 auto;
}
.notice h3 { margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 22px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q:hover { color: var(--teal-deep); }
.faq-q .chev { color: var(--teal); font-size: 1.4rem; line-height: 1; transition: transform .2s ease; flex: none; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--teal);
  box-shadow: var(--shadow);
}
.price-tag-pop {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price { font-size: 2.4rem; font-weight: 700; color: var(--ink); margin: 6px 0 4px; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-features { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 10px; }
.price-features li { position: relative; padding-left: 26px; color: var(--text); }
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-weight: 700;
}
.price-card .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   Resources cards
   -------------------------------------------------------------------------- */
.res-card { display: flex; flex-direction: column; }
.res-card h3 { font-size: 1.1rem; }
.res-card h3 a { color: var(--ink); }
.res-card h3 a:hover { color: var(--teal-deep); }
.res-tag {
  align-self: flex-start;
  background: var(--aqua-soft);
  color: var(--teal-deep);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.res-link { margin-top: auto; font-weight: 600; color: var(--teal-deep); }

.video-wrap { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--ink); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.tips { padding-left: 20px; margin: 0; display: grid; gap: 10px; }
.tips li { color: var(--text); padding-left: 4px; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .92rem; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(18, 178, 166, 0.18);
}
.form-row textarea { min-height: 130px; resize: vertical; }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-ic { font-size: 1.3rem; flex: none; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 60%, var(--teal-deep) 140%);
  color: #fff;
  border-radius: 20px;
  padding: 54px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe9e6; max-width: 560px; margin: 0 auto 26px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #c9d2e3; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: 12px; }
.logo-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.site-footer h4 { color: #fff; font-size: .98rem; margin-bottom: 14px; }
.site-footer a { display: block; color: #9fb0c2; padding: 4px 0; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 36px; padding-top: 20px; font-size: .88rem; color: #8593a8; text-align: center; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 18px 18px;
    gap: 2px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; }
  .nav-links .nav-cta { margin: 8px 0 0; }

  .grid-2, .grid-3, .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .cta-band { padding: 40px 24px; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .hero-cta-row .btn { width: 100%; }
}
