/* ==========================================================================
   Malena Long Pre-Med Coaching — stylesheet
   Palette: navy / teal, modern sans-serif (Inter)
   ========================================================================== */

:root {
  --color-navy: #0b2545;
  --color-navy-light: #13315c;
  --color-navy-soft: #1e3a5f;
  --color-teal: #14b8a6;
  --color-teal-light: #5eead4;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;

  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 20px 40px rgba(11, 37, 69, 0.14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --transition: 200ms ease;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-navy);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; margin-bottom: 0.4em; }

p { margin: 0 0 1em; }

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

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

.section {
  padding: 96px 0;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--color-teal);
  margin-bottom: 0.6em;
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-sub {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-teal);
  color: var(--color-navy);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--color-teal-light);
}

.btn-ghost {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-navy);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
  width: 100%;
}

.btn-outline:hover {
  background: var(--color-navy);
  color: #fff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 800;
  color: var(--color-navy);
  font-size: 1.1rem;
}

.brand-accent {
  color: var(--color-teal);
  font-weight: 600;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  color: var(--color-navy);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-teal);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-link.is-active {
  color: var(--color-teal);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

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

.hero {
  padding: 72px 0 96px;
  background: radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 55%),
              linear-gradient(180deg, #f8fafc 0%, #eef4f9 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 32px 0 8px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.hero-avatar,
.about-avatar {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  z-index: 1;
  border: 4px solid var(--color-surface);
}

.hero-blob {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.25), transparent 70%);
  filter: blur(10px);
}

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

.about-inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 56px;
  align-items: center;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-highlights-heading {
  margin: 32px 0 12px;
  font-size: 1rem;
}

.about-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 20px;
}

.about-highlights li {
  padding-left: 28px;
  position: relative;
  font-weight: 500;
  color: var(--color-navy);
}

.about-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-teal);
  font-weight: 800;
}

.audience-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 900px;
  margin-inline: auto;
}

.audience-list li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--color-navy);
}

/* ---------- Services ---------- */

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

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-teal-light);
}

.card h3 {
  margin-top: 2px;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

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

.pricing-single {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-teal);
  border-radius: var(--radius-md);
  padding: 44px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-single:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 8px 0 24px;
}

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

.pricing-single ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
  text-align: left;
}

.pricing-single li {
  padding-left: 22px;
  position: relative;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.pricing-single li::before {
  content: '•';
  color: var(--color-teal);
  position: absolute;
  left: 0;
  font-weight: 800;
}

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

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-icon {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--color-teal);
  transition: transform var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease, padding var(--transition);
  padding: 0 24px;
}

.faq-answer p {
  color: var(--color-text-muted);
  margin: 0 0 20px;
}

.faq-item.is-open .faq-answer {
  max-height: 320px;
}

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

.contact-section {
  background: linear-gradient(180deg, #ffffff 0%, #eef4f9 100%);
}

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

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  background: var(--color-surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row-full {
  grid-column: 1 / -1;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy);
}

.optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

textarea {
  resize: vertical;
}

.form-error {
  color: #dc2626;
  font-size: 0.82rem;
  min-height: 1em;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin: 12px 0 0;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-status.success { color: #0f9d78; }
.form-status.error { color: #dc2626; }

#form-submit {
  width: 100%;
}

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

.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
}

.footer-back-top {
  color: var(--color-teal-light);
  font-weight: 600;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 860px) {
  .hero-inner,
  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .about-visual {
    order: -1;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

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

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }

  .primary-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .nav-link {
    display: block;
    padding: 12px 0;
  }

  .nav-cta {
    margin-top: 12px;
    justify-content: center;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .pricing-single {
    padding: 32px 24px;
  }

  .section {
    padding: 64px 0;
  }
}
