/* ==========================================================================
   Learn-in-Tuition — shared stylesheet
   Theme: the intuition behind every concept.
   Warm, academic, elegant. Fraunces (serif) + Inter (sans).
   ========================================================================== */

:root {
  --bg: #F7F3EC;
  --bg-alt: #EFE8DA;
  --bg-card: #FFFDF9;
  --ink: #2B2620;
  --ink-light: #6B6154;
  --accent: #C15F3C;
  --accent-dark: #A14B2D;
  --accent-soft: #EFDCC9;
  --line: #E1D6C2;
  --shadow: 0 8px 30px rgba(43, 38, 32, 0.08);
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-light); }

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

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.9rem;
}

/* ---------------- Header / Nav ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.logo .dot { color: var(--accent); }

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-light);
  transition: color 0.15s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------------- Hero ---------------- */

.hero {
  padding: 5.5rem 0 5rem;
}

.hero-inner {
  max-width: 760px;
}

.hero p.lead {
  font-size: 1.15rem;
  max-width: 560px;
}

/* ---------------- Sections ---------------- */

section { padding: 5rem 0; }

.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 620px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head.left { margin: 0 0 3rem; text-align: left; }

/* ---------------- Cards / Grid ---------------- */

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

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}

.card h3 { margin-bottom: 0.5rem; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

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

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 2.6rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.6rem;
}

/* ---------------- Blog cards ---------------- */

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.post-card .post-thumb {
  height: 130px;
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  color: var(--accent-dark);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post-card .post-body { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; }

.post-date {
  font-size: 0.8rem;
  color: var(--accent-dark);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.post-card h3 { margin-bottom: 0.6rem; }

.read-more {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent-dark);
  font-size: 0.9rem;
  padding-top: 1rem;
}

.read-more::after { content: " \2192"; }

/* ---------------- Article (single blog post) ---------------- */

.article-header {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 3.5rem 0 2.5rem;
}

.article-body {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 4rem;
  font-size: 1.05rem;
}

.article-body h2 { margin-top: 2rem; }
.article-body h3 { margin-top: 1.6rem; }
.article-body blockquote {
  margin: 2rem 0;
  padding: 0.2rem 1.5rem;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
}
.article-body ul, .article-body ol { color: var(--ink-light); padding-left: 1.3rem; }
.article-body li { margin-bottom: 0.5rem; }

.tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-right: 0.4rem;
}

/* ---------------- CTA band ---------------- */

.cta-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: 24px;
  padding: 3.5rem;
  text-align: center;
  margin: 0 1.5rem;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: #C9C1B4; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-ghost { color: #fff; border-color: #55503f; }
.cta-band .btn-ghost:hover { border-color: #fff; }

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

.form-field { margin-bottom: 1.3rem; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--bg-card);
  color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
}

/* ---------------- Resource list ---------------- */

.resource-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}
.resource-item:last-child { border-bottom: none; }
.resource-item h4 { margin: 0 0 0.25rem; font-family: var(--serif); font-size: 1.05rem; }
.resource-item p { margin: 0; font-size: 0.9rem; }
.resource-tag {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  margin-bottom: 1rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--ink-light); font-size: 0.92rem; }
.footer-links a:hover { color: var(--accent-dark); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-light);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------------- Responsive ---------------- */

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

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.2rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .grid, .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 2.5rem 1.5rem; margin: 0; border-radius: 0; }
  .hero { padding: 3.5rem 0 3rem; }
}
