/* ============================================================
   Harry Guan Consulting — shared styles
   Light content, dark header/footer bookends, muted gold accents
   ============================================================ */

:root {
  /* light content palette */
  --bg: #fbfaf7;
  --bg-elevated: #f4f1ea;
  --bg-card: #ffffff;
  --border: #e7e2d6;
  --border-gold: #d8c9a6;
  --text: #211c13;
  --text-muted: #6e6654;
  --gold: #c2a468;        /* fills, buttons */
  --gold-ink: #8a6b2f;    /* gold as text on light backgrounds */
  --gold-deep: #6f5626;
  /* dark bookends (header, footer, promo strip) */
  --dark-bg: #0b0a08;
  --dark-border: #2a251c;
  --dark-text: #ece7dc;
  --dark-muted: #a89f8f;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--gold-ink); text-decoration: none; }
a:hover { color: var(--gold-deep); }

::selection { background: rgba(194, 164, 104, 0.35); }

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.35rem; }

.overline {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.9rem;
}

.gold-text { color: var(--gold-ink); }

.lede {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 46em;
}

/* ---------- layout ---------- */

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

section { padding: 5rem 0; }

.section-head { margin-bottom: 3rem; max-width: 46em; }
.section-head p { color: var(--text-muted); margin-top: 1rem; }

/* ---------- header / nav (dark) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 10, 8, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--dark-border);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo img { height: 52px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: var(--dark-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }

.nav-links a.btn-gold, .nav-links a.btn-gold:hover { color: #191307; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-gold {
  background: var(--gold);
  color: #191307;
}

.btn-gold:hover {
  color: #191307;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(138, 107, 47, 0.25);
}

.btn-outline {
  border: 1px solid var(--border-gold);
  color: var(--gold-ink);
}

.btn-outline:hover { border-color: var(--gold-ink); color: var(--gold-deep); }

.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  color: var(--dark-text);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav { flex-wrap: wrap; gap: 1rem; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 1rem;
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
}

/* ---------- promo strip (dark, above header) ---------- */

.promo-strip {
  background: var(--dark-bg);
  border-bottom: 1px solid var(--dark-border);
  color: var(--dark-muted);
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
}

.promo-strip a { color: var(--gold); text-decoration: underline; }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 7.5rem 0 6.5rem;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 75% 10%, rgba(194, 164, 104, 0.10), transparent 65%),
    radial-gradient(ellipse 45% 40% at 15% 90%, rgba(194, 164, 104, 0.05), transparent 60%);
  pointer-events: none;
}

.hero .container { position: relative; }

.hero h1 { max-width: 15em; }

.hero .lede { margin-top: 1.5rem; }

.hero-ctas { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(33, 28, 19, 0.04);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 28, 19, 0.07);
}

.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--text-muted); font-size: 0.98rem; }
.card .card-link { display: inline-block; margin-top: 1.25rem; font-weight: 600; font-size: 0.95rem; }

/* ---------- school list ---------- */

.school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem 1.5rem;
  list-style: none;
}

.school-grid li {
  font-family: var(--serif);
  font-size: 1.12rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.footnote { color: var(--text-muted); font-size: 0.88rem; margin-top: 1.25rem; }

/* ---------- testimonials ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(33, 28, 19, 0.04);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonial blockquote {
  font-size: 1rem;
  color: var(--text);
  font-style: italic;
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
  color: var(--gold-ink);
  font-size: 0.92rem;
  margin-top: auto;
}

.testimonial cite span { display: block; color: var(--text-muted); font-weight: 400; }

/* ---------- prose ---------- */

.prose { max-width: 46em; }
.prose p { margin-bottom: 1.25rem; }
.prose h3 { margin: 2.25rem 0 0.75rem; }
.prose ul { margin: 0 0 1.25rem 1.25rem; color: var(--text-muted); }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--gold-deep); font-weight: 600; }

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

/* ---------- credential chips ---------- */

.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }

.chip {
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  background: #f8f3e7;
}

.chip strong { color: var(--gold-deep); font-weight: 600; }

/* ---------- essay sample tabs ---------- */

.sample {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 1px 3px rgba(33, 28, 19, 0.04);
}

.sample-header { margin-bottom: 1.5rem; }
.sample-header .outcome { color: var(--gold-ink); font-weight: 600; font-size: 0.95rem; }

.sample-prompt {
  border-left: 3px solid var(--gold);
  padding: 0.25rem 0 0.25rem 1.25rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 1.25rem 0 1.75rem;
}

.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }

.tab-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover { color: var(--gold-deep); border-color: var(--border-gold); }

.tab-btn.active {
  background: var(--gold);
  border-color: transparent;
  color: #191307;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel p { margin-bottom: 1.1rem; color: var(--text); font-size: 1rem; }
.tab-panel.notes p { color: var(--text-muted); }

/* ---------- contact form ---------- */

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(33, 28, 19, 0.04);
  max-width: 640px;
}

.form-field { margin-bottom: 1.5rem; }

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.8rem 1rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(194, 164, 104, 0.2);
}

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

/* ---------- about photos ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 3.5rem;
  align-items: start;
}

.about-photo img {
  border-radius: 16px;
  border: 1px solid var(--border);
  width: 100%;
}

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; }
}

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

.cta-band {
  text-align: center;
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 70% at 50% 100%, rgba(194, 164, 104, 0.10), transparent 70%);
  pointer-events: none;
}

.cta-band .container { position: relative; }
.cta-band p { color: var(--text-muted); margin: 1rem auto 2rem; max-width: 38em; }

/* ---------- footer (dark) ---------- */

.site-footer {
  background: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
  padding: 2.5rem 0;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
}

.site-footer img { height: 44px; }

.site-footer p { color: var(--dark-muted); font-size: 0.88rem; }

.footer-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.footer-links a { color: var(--dark-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); }

.social-icon svg { width: 18px; height: 18px; fill: currentColor; display: block; }

@media (max-width: 640px) {
  section { padding: 3.5rem 0; }
  .hero { padding: 5rem 0 4.5rem; }
  .sample { padding: 1.75rem; }
  .form-card { padding: 1.75rem; }
}
