/* ==========================================================================
   Academia Tutors — shared stylesheet
   ========================================================================== */

:root {
  --forest: #1f4a3d;
  --forest-dark: #122720;
  --forest-tint: #e8efe9;
  --cream: #faf6ef;
  --white: #ffffff;
  --ink: #10160f;
  --muted: #384139;
  --terracotta: #c1633d;
  --terracotta-deep: #a34a2a;
  --border: #d9cfb4;
  --shadow: 0 4px 14px rgba(16, 22, 15, 0.1);
  --radius: 6px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--forest);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--forest-dark);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 62ch;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section--tight { padding: 48px 0; }

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

.section--dark {
  background: var(--forest-dark);
  color: var(--cream);
}
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark .lede { color: #cfdcd3; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--terracotta-deep);
  margin-bottom: 14px;
}

.section--dark .eyebrow { color: #e2a181; }

.text-center { text-align: center; }
.center-col { max-width: 720px; margin: 0 auto; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 4px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--forest);
  color: var(--cream);
}
.btn-primary:hover { background: var(--forest-dark); color: var(--white); }

.btn-accent {
  background: var(--terracotta-deep);
  color: var(--white);
}
.btn-accent:hover { background: #8a3c20; }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--forest);
}
.btn-outline:hover { background: var(--forest); color: var(--cream); }

.section--dark .btn-outline { color: var(--cream); }
.section--dark .btn-outline:hover { background: var(--cream); color: var(--forest-dark); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--forest-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark .dot {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--terracotta);
  display: inline-block;
}

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

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--forest-dark);
  border-bottom-color: var(--terracotta);
}

.nav-cta {
  margin-left: 6px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.is-open { max-height: 420px; }

  .nav-links li { border-top: 1px solid var(--border); }
  .nav-links a { display: block; padding: 16px 24px; border-bottom: none; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--forest-tint); }
  .nav-cta { margin: 14px 24px 20px; }
  .nav-cta .btn { display: flex; }
}

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

.hero {
  padding: 76px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-art {
  background: var(--forest);
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(193, 99, 61, 0.55), transparent 42%),
    repeating-linear-gradient(135deg, rgba(250, 246, 239, 0.07) 0px, rgba(250, 246, 239, 0.07) 2px, transparent 2px, transparent 26px);
}

.hero-art-label {
  position: relative;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.05rem;
  padding: 28px;
  border-top: 1px solid rgba(250, 246, 239, 0.25);
  width: 100%;
}

/* ---------- Full-bleed photo hero ---------- */

.photo-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  isolation: isolate;
}

.photo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(10, 15, 12, 0.7) 0%, rgba(10, 15, 12, 0.85) 55%, rgba(9, 13, 10, 0.94) 100%);
}

.photo-hero-inner {
  position: relative;
  z-index: 1;
  padding: 64px 0 56px;
  width: 100%;
}

.photo-hero .eyebrow { color: #f6d5b8; }
.photo-hero h1 { color: var(--cream); }
.photo-hero .lede { color: #d9e2db; }
.photo-hero .btn-outline { color: var(--cream); }
.photo-hero .btn-outline:hover { background: var(--cream); color: var(--forest-dark); }

.photo-hero--short { min-height: 360px; }

@media (max-width: 700px) {
  .photo-hero { min-height: 460px; }
  .photo-hero--short { min-height: 320px; }
  .photo-hero-inner { padding: 44px 0 36px; }
}

/* ---------- Inline feature media (supporting campus photos) ---------- */

.feature-media {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.feature-media img { width: 100%; height: 100%; object-fit: cover; }

.feature-media figcaption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--border);
}

/* ---------- Logo marquee ---------- */

.logo-marquee-section {
  padding: 44px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.logo-marquee-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 26px;
}

.logo-marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: logo-scroll 38s linear infinite;
}

.logo-marquee:hover .logo-track { animation-play-state: paused; }

.logo-track img {
  height: 34px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo-track img:hover { opacity: 1; transform: scale(1.06); }

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-marquee-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 22px 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
  .logo-marquee { overflow-x: auto; }
}

/* ---------- Campus band (About page) ---------- */

.campus-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 700px) {
  .campus-band { grid-template-columns: 1fr; }
}

.campus-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.campus-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.campus-card .campus-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(0deg, rgba(12, 18, 14, 0.82), rgba(12, 18, 14, 0));
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
}

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

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

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card .tag {
  align-self: flex-start;
  background: var(--forest-tint);
  color: var(--forest-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.service-card ul {
  margin: 0 0 20px;
  padding-left: 1.1em;
  color: var(--muted);
}

.service-card ul li { margin-bottom: 6px; }

.service-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Process steps (essay counseling) ---------- */

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-num {
  counter-increment: step;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-num::before { content: counter(step); }

@media (max-width: 620px) {
  .step { grid-template-columns: 48px 1fr; gap: 16px; }
  .step-num { width: 40px; height: 40px; font-size: 1.05rem; }
}

/* ---------- Pricing ---------- */

.price-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
}

.price-card.is-featured {
  border-color: var(--terracotta);
  box-shadow: 0 10px 30px rgba(163, 74, 42, 0.16);
}

.price-card .badge {
  position: absolute;
  top: -13px;
  right: 24px;
  background: var(--terracotta-deep);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
}

.price-card .price {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--forest-dark);
  margin: 10px 0 4px;
}

.price-card .price span {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  color: var(--ink);
}

.price-card ul li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
}

.price-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--terracotta-deep);
  font-weight: 700;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.rate-table th, .rate-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.rate-table th {
  font-family: var(--serif);
  color: var(--forest-dark);
  background: var(--forest-tint);
}

.rate-table tr:last-child td { border-bottom: none; }

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

.team-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 26px;
  align-items: start;
}

@media (max-width: 620px) {
  .team-card { grid-template-columns: 1fr; }
}

.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.team-card h3 { margin-bottom: 2px; }
.team-role {
  font-weight: 600;
  color: var(--terracotta-deep);
  font-size: 0.92rem;
  margin-bottom: 12px;
  display: block;
}

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

.form-field { margin-bottom: 20px; }

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

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}

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

.form-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
}

.required-mark { color: var(--terracotta-deep); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-info-item .icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--forest-tint);
  color: var(--forest-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-item a { color: var(--forest-dark); font-weight: 600; text-decoration: none; }
.contact-info-item a:hover { text-decoration: underline; }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 4px;
  font-weight: 600;
  display: none;
}

.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--forest-tint); color: var(--forest-dark); }
.form-status.is-error { background: #fbe9e2; color: var(--terracotta-deep); }

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item h3 { margin-bottom: 8px; font-size: 1.08rem; }
.faq-item p { color: var(--muted); margin-bottom: 0; }

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

.cta-band {
  background: var(--forest);
  color: var(--cream);
  border-radius: 6px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 { color: var(--cream); margin-bottom: 6px; }
.cta-band p { color: #cfdcd3; margin-bottom: 0; }

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

.site-footer {
  background: var(--forest-dark);
  color: #cfdcd3;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.footer-grid h4 {
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.site-footer .wordmark { color: var(--cream); }
.site-footer a { color: #cfdcd3; text-decoration: none; }
.site-footer a:hover { color: var(--cream); text-decoration: underline; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }

.footer-bottom {
  border-top: 1px solid rgba(207, 220, 211, 0.2);
  padding-top: 22px;
  font-size: 0.85rem;
  color: #9fb3a6;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--forest-dark);
  color: var(--cream);
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
}
