/* ============================================
   Shared styles — Ezra A. Tutoring
   ============================================ */

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

:root {
  --bg: #faf8f4;
  --bg2: #f2efe8;
  --text: #1c1a16;
  --text-mid: #4a4740;
  --text-muted: #7a7670;
  --accent: #2a5c45;
  --accent-light: #e8f0ec;
  --accent-mid: #4a8c6a;
  --border: #e0dbd0;
  --border-strong: #c8c2b4;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Instrument Sans', sans-serif;
}

html { scroll-behavior: smooth; }

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

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

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

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,248,244,0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.nav-brand:hover { text-decoration: none; }

.nav-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
}

.nav-name {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { font-size: 14px; color: var(--text-muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: rgba(250,248,244,0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem 1.5rem;
  z-index: 99;
  flex-direction: column;
  gap: 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 16px;
  color: var(--text-mid);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: block;
  text-decoration: none;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile .mob-cta {
  margin-top: 1rem;
  background: var(--accent);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
  border-bottom: none !important;
}

/* ---- Layout ---- */

.container { max-width: 860px; margin: 0 auto; padding: 0 2rem; }

section { padding: 5rem 0; border-bottom: 1px solid var(--border); }

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ---- Hero (shared base) ---- */

.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 1.5rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

h1 em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 2rem;
}

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

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 4px;
  transition: opacity 0.15s, transform 0.1s;
  text-decoration: none;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); text-decoration: none; }

.btn-ghost {
  display: inline-block;
  border: 1px solid var(--border-strong);
  color: var(--text-mid);
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 4px;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

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

.about-body p {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-body p:last-child { margin-bottom: 0; }

/* ---- Lists & tags ---- */

.item-list { list-style: none; margin-top: 0.5rem; }
.item-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.5;
}
.item-list li:last-child { border-bottom: none; }

.tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
  margin-top: 2px;
  flex-shrink: 0;
}

.stag {
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 1px 8px;
  border-radius: 3px;
  background: var(--bg);
}

/* ---- Contact form ---- */

.contact-form {
  max-width: 560px;
  margin-top: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 9px 12px;
  transition: border-color 0.15s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: #c0392b;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-field-error {
  font-size: 12px;
  color: #c0392b;
  margin-top: -0.5rem;
  margin-bottom: 0.25rem;
}

.form-success {
  display: none;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.form-error-banner {
  display: none;
  background: #fdf2f2;
  border: 1px solid #e0b4b4;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: 14px;
  color: #c0392b;
  margin-bottom: 1.5rem;
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---- Booking & footer ---- */

.booking-bg { background: var(--bg2); }

.calendly-placeholder {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
}
.calendly-placeholder .pl { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.calendly-placeholder p { font-size: 14px; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.6; }

footer {
  padding: 2.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- Animation ---- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-tag      { animation: fadeUp 0.5s ease 0.05s both; }
h1             { animation: fadeUp 0.5s ease 0.15s both; }
.hero-sub      { animation: fadeUp 0.5s ease 0.22s both; }
.hero-audience { animation: fadeUp 0.5s ease 0.28s both; }
.cta-row       { animation: fadeUp 0.5s ease 0.34s both; }

/* ---- Responsive (shared) ---- */

@media (max-width: 640px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  section { padding: 3.5rem 0; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
}
