/* OakTutor company site
   Visual language follows oakedu.sg: forest green on cream, white cards with
   hairline borders, light body text, serif wordmark. No frameworks, no script. */

:root {
  --forest: #2E4E3F;
  --forest-hover: #24402F;
  --text: #666666;
  --cream: #F7F5EF;
  --card: #FFFFFF;
  --border: #E6E4DC;
  --muted: #8F8D86;
  --radius: 16px;
  --maxw: 1060px;
  --readw: 760px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "New York", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

.container.reading { max-width: var(--readw); }

a {
  color: var(--forest);
  text-decoration: none;
}

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

h1, h2, h3 {
  color: var(--forest);
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- header */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand:hover { text-decoration: none; }

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-family: var(--serif);
  font-size: 25px;
  color: var(--forest);
  letter-spacing: 0.2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 15px;
  color: var(--text);
}

.site-nav a:hover { color: var(--forest); text-decoration: none; }

.site-nav a[aria-current="page"] {
  color: var(--forest);
  font-weight: 400;
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: 84px 0 72px;
  text-align: center;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 60px;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero .lead {
  font-size: 20px;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 32px;
}

.actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 400;
  border: 1px solid var(--forest);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--forest);
  color: #FFFFFF;
}

.btn-primary:hover { background: var(--forest-hover); color: #FFFFFF; }

.btn-secondary {
  background: transparent;
  color: var(--forest);
}

.btn-secondary:hover { background: rgba(46, 78, 63, 0.06); color: var(--forest); }

/* --------------------------------------------------------------- sections */

.section { padding: 56px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 34px;
}

.section h2 {
  font-size: 29px;
  margin-bottom: 12px;
}

.section-head p { font-size: 17px; }

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.card p { font-size: 15.5px; }

/* steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--forest);
  color: #FFFFFF;
  font-size: 15px;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.step p { font-size: 15.5px; }

/* about and contact panels */

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.panel h2 {
  font-size: 24px;
  margin-bottom: 14px;
}

.panel p {
  font-size: 16px;
  max-width: 72ch;
}

.contact-line {
  font-size: 17px;
  margin-top: 18px;
}

.contact-label {
  display: inline-block;
  min-width: 74px;
  color: var(--muted);
  font-size: 15px;
}

/* --------------------------------------------------------------- legal */

.page-head {
  padding: 60px 0 8px;
}

.page-head h1 {
  font-family: var(--serif);
  font-size: 40px;
  margin-bottom: 10px;
}

.page-head .updated {
  color: var(--muted);
  font-size: 14.5px;
}

.legal { padding: 26px 0 64px; }

.legal section { margin-bottom: 34px; }

.legal h2 {
  font-size: 21px;
  margin-bottom: 12px;
}

.legal h3 {
  font-size: 17px;
  margin: 22px 0 8px;
}

.legal ul,
.legal ol {
  padding-left: 22px;
  margin: 0 0 1em;
}

.legal li { margin-bottom: 7px; }

.legal ol li { padding-left: 4px; }

.legal .intro-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 38px;
}

/* FAQ */

.faq { margin-bottom: 12px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 16px;
}

.faq-item h3 {
  font-size: 17.5px;
  margin-bottom: 10px;
}

.faq-item p { font-size: 15.5px; }

/* --------------------------------------------------------------- footer */

.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 40px 0 44px;
  margin-top: 24px;
}

.footer-operator {
  font-size: 14.5px;
  max-width: 720px;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a { font-size: 14.5px; }

.footer-copy {
  font-size: 14px;
  color: var(--muted);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 860px) {
  .grid, .steps { grid-template-columns: 1fr; }

  .hero { padding: 60px 0 52px; }
  .hero h1 { font-size: 44px; }
  .hero .lead { font-size: 18px; }

  .section { padding: 44px 0; }
  .section h2 { font-size: 25px; }

  .panel { padding: 28px; }
  .page-head { padding: 44px 0 8px; }
  .page-head h1 { font-size: 32px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }

  .header-inner {
    justify-content: center;
    gap: 10px;
  }

  .site-nav { gap: 18px; justify-content: center; }

  .hero h1 { font-size: 38px; }

  .actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }

  .contact-label { min-width: 0; display: block; }
}
