/* ==========================================================================
   XiaoChi — ANCHOR SOLUTIONS LLC
   style.css

   1. Reset
   2. Variables
   3. Base & Typography
   4. Layout
   5. Components
      5.1 Skip link
      5.2 Header & navigation
      5.3 Buttons
      5.4 Cards
      5.5 Steps
      5.6 Tables
      5.7 Forms
      5.8 Footer
   6. Pages
      6.1 Home
      6.2 About
      6.3 Services
      6.4 IELTS recognition
      6.5 Contact
      6.6 Privacy
   7. Responsive
   ========================================================================== */


/* ==========================================================================
   1. Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body,
h1, h2, h3, h4,
p, ul, ol, dl, dd,
figure, blockquote, address {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

address {
  font-style: normal;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}


/* ==========================================================================
   2. Variables
   ========================================================================== */

:root {
  /* Brand palette */
  --color-primary: #1a3a5c;        /* deep navy */
  --color-accent: #2d7ff9;         /* trust blue — borders, icons, focus rings */
  --color-accent-text: #1a63d1;    /* darker accent for text & button fills (5.6:1 on white) */
  --color-accent-hover: #154fa8;
  --color-accent-soft: #eef4ff;
  --color-accent-line: #c6dafc;

  /* Neutrals */
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --color-border: #e5e7eb;
  --color-input-border: #8a919c;   /* 3.2:1 on white for form controls */
  --color-on-dark-muted: #c7d2e0;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Shape & space */
  --radius: 8px;
  --radius-lg: 12px;
  --container: 1100px;
  --gutter: 24px;
  --section-space: 80px;
  --header-height: 64px;
  --shadow-hover: 0 6px 20px rgba(17, 24, 39, 0.08);
}


/* ==========================================================================
   3. Base & Typography
   ========================================================================== */

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--color-primary);
  font-weight: 700;
}

h1 {
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 18px;
  line-height: 1.4;
}

p + p {
  margin-top: 1em;
}

a {
  color: var(--color-accent-text);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent-hover);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

strong {
  font-weight: 600;
}

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-muted);
}

.eyebrow {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}


/* ==========================================================================
   4. Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-space) 0;
}

.section--alt {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}

.section-head .lead {
  margin-top: 12px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-header {
  padding: 64px 0 56px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.page-header .lead {
  max-width: 680px;
  margin-top: 16px;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 48px;
  margin-bottom: 12px;
  font-size: 22px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  margin: 12px 0;
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 6px;
}

.prose p + ul,
.prose ul + p {
  margin-top: 12px;
}


/* ==========================================================================
   5. Components
   ========================================================================== */

/* 5.1 Skip link -------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}


/* 5.2 Header & navigation --------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: 120px;
  height: 32px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-list a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.nav-list a[aria-current="page"] {
  background: var(--color-accent-soft);
  color: var(--color-accent-text);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* 5.3 Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--color-accent-text);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--color-bg);
  border-color: var(--color-input-border);
  color: var(--color-primary);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-light {
  background: #fff;
  color: var(--color-primary);
}

.btn-light:hover {
  background: var(--color-accent-soft);
  color: var(--color-primary);
}


/* 5.4 Cards ------------------------------------------------------------ */

.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--color-muted);
}

.card .text-link {
  margin-top: auto;
  padding-top: 20px;
  font-size: 15px;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  background: var(--color-accent-soft);
  border-radius: var(--radius);
  color: var(--color-accent-text);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}


/* 5.5 Steps ------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 60px;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-bg);
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  font-weight: 700;
  color: var(--color-accent-text);
}

.step::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 52px;
  right: -12px;
  height: 1px;
  background: var(--color-accent-line);
}

.step:last-child::after {
  display: none;
}

.step p {
  font-weight: 500;
  color: var(--color-text);
}


/* 5.6 Tables ----------------------------------------------------------- */

.table-wrap {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.details-table {
  width: 100%;
  border-collapse: collapse;
}

.details-table th,
.details-table td {
  padding: 14px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
  overflow-wrap: anywhere;
}

.details-table tr:last-child th,
.details-table tr:last-child td {
  border-bottom: 0;
}

.details-table th {
  width: 34%;
  background: var(--color-bg-alt);
  font-weight: 600;
  color: var(--color-primary);
}


/* 5.7 Forms ------------------------------------------------------------ */

.form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.form-field .optional {
  font-weight: 400;
  color: var(--color-muted);
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-input-border);
  border-radius: 6px;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent-text);
  box-shadow: 0 0 0 3px rgba(45, 127, 249, 0.25);
}

.form-note {
  font-size: 14px;
  color: var(--color-muted);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}


/* 5.8 Footer ----------------------------------------------------------- */

.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  font-size: 15px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 32px;
}

.footer-name {
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-primary);
}

.footer-company address {
  color: var(--color-muted);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
}

.footer-nav a {
  color: var(--color-text);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--color-accent-text);
  text-decoration: underline;
}

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 32px;
  color: var(--color-muted);
  font-size: 14px;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--color-border);
}

.footer-bottom p + p {
  margin-top: 0;
}

.footer-bottom a {
  color: var(--color-muted);
}

.footer-bottom a:hover {
  color: var(--color-accent-text);
}


/* ==========================================================================
   6. Pages
   ========================================================================== */

/* 6.1 Home ------------------------------------------------------------- */

.hero {
  padding: 88px 0 80px;
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

.hero .lead {
  max-width: 560px;
  margin-top: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-visual img {
  width: 100%;
  max-width: 460px;
  margin-left: auto;
}

.steps-footer {
  margin-top: 40px;
}

.trust {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 48px;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  color: #fff;
}

.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
}

.trust-icon svg {
  width: 30px;
  height: 30px;
}

.trust .eyebrow {
  color: var(--color-on-dark-muted);
}

.trust p {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.6;
}


/* 6.2 About ------------------------------------------------------------ */

.about-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.about-intro h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.approach-num {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent-text);
}


/* 6.3 Services --------------------------------------------------------- */

.chip-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  list-style: none;
}

.chip-nav a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.chip-nav a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-text);
}

.service {
  padding: 56px 0;
  border-top: 1px solid var(--color-border);
}

.service:first-child {
  padding-top: 0;
  border-top: 0;
}

.service:last-child {
  padding-bottom: 0;
}

.service-head {
  margin-bottom: 28px;
}

.service-num {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent-text);
}

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

.service-block {
  padding: 24px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.service-block h3 {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.check-list {
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li + li {
  margin-top: 8px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 2px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--color-accent-text);
  border-bottom: 2px solid var(--color-accent-text);
  transform: rotate(-45deg);
}

.flow {
  list-style: none;
  counter-reset: flow;
}

.flow li {
  position: relative;
  padding-left: 34px;
  counter-increment: flow;
}

.flow li + li {
  margin-top: 12px;
}

.flow li::before {
  content: counter(flow);
  position: absolute;
  top: 2px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--color-accent-soft);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent-text);
}


/* 6.4 IELTS recognition ------------------------------------------------ */

.statement {
  padding: 40px 44px;
  background: var(--color-accent-soft);
  border: 1px solid var(--color-accent-line);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
}

.statement h1 {
  margin-bottom: 20px;
}

.statement p {
  max-width: 780px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-text);
}

.statement .eyebrow {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-accent-text);
}

.statement .statement-meta {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-accent-line);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
}

.statement-sections {
  display: grid;
  gap: 0;
}

.statement-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.statement-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.statement-section:last-child {
  padding-bottom: 0;
}

.statement-section h2 {
  font-size: 22px;
}

.statement-section p {
  max-width: 680px;
}


/* 6.5 Contact ---------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 20px;
}

.contact-details dt {
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.contact-details dd {
  overflow-wrap: anywhere;
}

.callout {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 15px;
}

.form-card {
  padding: 32px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.form-card h2 {
  margin-bottom: 4px;
  font-size: 22px;
}

.form-card > p {
  margin-bottom: 24px;
  color: var(--color-muted);
}


/* 6.6 Privacy ---------------------------------------------------------- */

.updated {
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-muted);
}


/* ==========================================================================
   7. Responsive
   ========================================================================== */

/* Tablet ---------------------------------------------------------------- */
@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

  .step:nth-child(2)::after {
    display: none;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero-visual img {
    max-width: 380px;
    margin: 0;
  }

  .trust {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .trust .btn {
    grid-column: 2;
    justify-self: start;
  }

  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .statement-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

/* Mobile ---------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --section-space: 48px;
    --gutter: 20px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  .lead,
  .trust p,
  .statement p {
    font-size: 17px;
  }

  /* Navigation collapses into a menu */
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 16px rgba(17, 24, 39, 0.06);
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px var(--gutter) 16px;
  }

  .nav-list a {
    padding: 12px;
    font-size: 16px;
  }

  .page-header {
    padding: 40px 0 36px;
  }

  .hero {
    padding: 48px 0;
  }

  .hero-visual img {
    max-width: 280px;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .grid-2,
  .grid-3,
  .about-intro,
  .contact-grid,
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-intro,
  .contact-grid {
    gap: 32px;
  }

  .card,
  .form-card {
    padding: 24px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }

  .step {
    min-height: 40px;
    padding-top: 7px;
    padding-left: 56px;
  }

  .step::after {
    display: none;
  }

  .trust {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 32px 24px;
  }

  .trust .btn {
    grid-column: auto;
  }

  .statement {
    padding: 28px 22px;
  }

  .service {
    padding: 40px 0;
  }

  .details-table th,
  .details-table td {
    display: block;
    width: 100%;
  }

  .details-table th {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .details-table td {
    padding-top: 4px;
  }

  .details-table tr:last-child th {
    border-bottom: 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
