:root {
  --bg: #ffffff;
  --bg-dark: #0b1628;
  --bg-dark-2: #0f1d35;
  --surface: #f4f6fb;
  --text: #1c2033;
  --text-muted: #5b6280;
  --text-on-dark: #eaecf4;
  --text-on-dark-muted: #8e9ac0;
  --accent: #0ea5e9;
  --accent-2: #14b8a6;
  --accent-gradient: linear-gradient(135deg, #0ea5e9, #14b8a6);
  --border: #e2e6ef;
  --border-dark: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 4px 24px rgba(11, 22, 40, 0.08);
  --card-shadow-hover: 0 8px 40px rgba(11, 22, 40, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: "Outfit", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

p { margin: 0 0 1.25rem; color: var(--text-muted); }

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

ul { list-style: none; padding: 0; }

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

.container { width: min(1200px, 90vw); margin: 0 auto; }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-mark {
  display: flex;
  width: 2.2rem;
  height: 2.2rem;
}

.brand-logo { width: 100%; height: 100%; }

.brand-name {
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s;
}

.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 2px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-white {
  background: #fff;
  color: var(--bg-dark);
  font-weight: 600;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  background: var(--bg-dark);
  padding: 10rem 0 8rem;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(14, 165, 233, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container { position: relative; z-index: 1; max-width: 820px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 100px;
  background: rgba(14, 165, 233, 0.06);
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw + 1rem, 4.2rem);
  color: var(--text-on-dark);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-on-dark-muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── Sections ─── */
.section { padding: 7rem 0; }
.section-dark { background: var(--bg-dark); }
.section-alt { background: var(--surface); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw + 0.5rem, 2.8rem);
  margin-bottom: 1rem;
}

.section-header.on-dark h2 { color: var(--text-on-dark); }

.section-header p { font-size: 1.1rem; }
.section-header.on-dark p { color: var(--text-on-dark-muted); }

/* ─── Trust / Why Section ─── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.trust-card {
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all 0.35s ease;
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: transparent;
}

.trust-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.trust-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.trust-card p { font-size: 0.95rem; margin: 0; }

/* ─── Pricing ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.pricing-card {
  position: relative;
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 0 1px var(--border-dark);
}

#packages .pricing-card:hover {
  transform: translateY(-12px) scale(1.05) !important;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.pricing-card.featured {
  background: linear-gradient(var(--bg-dark-2), var(--bg-dark-2)) padding-box,
              var(--accent-gradient) border-box;
  border: 2px solid transparent;
  padding: 3rem 2rem;
  transform: scale(1.04);
}

#packages .pricing-card.featured:hover { 
  transform: scale(1.10) translateY(-12px) !important; 
  box-shadow: 0 20px 60px rgba(14, 165, 233, 0.3);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 1.2rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card h3 {
  color: var(--text-on-dark);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pricing-hours {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 1.25rem;
}

.pricing-amount {
  font-family: "Outfit", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 0.25rem;
  line-height: 1;
}

.pricing-amount span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
}

.pricing-desc {
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 2rem;
  min-height: 2.5em;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.pricing-features li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.pricing-card .btn {
  width: 100%;
  padding: 1rem;
}

/* ─── Bespoke Callout ─── */
.bespoke-callout {
  margin-top: 4rem;
  padding: 3rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  text-align: left;
}

.bespoke-content h3 {
  color: var(--text-on-dark);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.bespoke-rate {
  font-family: "Outfit", sans-serif;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.bespoke-content p {
  color: var(--text-on-dark-muted);
  margin: 0;
  max-width: 600px;
  font-size: 1rem;
}

.bespoke-callout .btn {
  white-space: nowrap;
  flex-shrink: 0;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-on-dark);
}

.bespoke-callout .btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #fff;
}

@media (max-width: 768px) {
  .bespoke-callout {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    gap: 2rem;
  }
  .bespoke-content p {
    margin: 0 auto;
  }
}

/* ─── Services Grid ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.35s ease;
}

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

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.service-card p { font-size: 0.95rem; margin: 0; }

.service-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.08);
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ─── Subjects ─── */
.subject-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.subject-list li {
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
}

.subject-list li:hover {
  background: rgba(14, 165, 233, 0.04);
  color: var(--accent);
}

.subject-list li:nth-child(4n) { border-right: none; }

/* ─── Contact Form ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 1.25rem;
}

.contact-info p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.contact-highlight {
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border-left: 3px solid var(--accent);
  margin-top: 1.5rem;
}

.contact-highlight p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--text);
}

.consult-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-row { position: relative; }

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

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s, box-shadow 0.25s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: #b0b5c8;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

/* ─── Footer ─── */
.site-footer {
  background: var(--bg-dark);
  padding: 4rem 0;
  border-top: 1px solid var(--border-dark);
}

.site-footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  transition: color 0.25s;
}

.footer-links a:hover { color: var(--text-on-dark); }

.footer-affiliation {
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
  opacity: 0.7;
  max-width: 500px;
  line-height: 1.5;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
  opacity: 0.5;
}

/* ─── Scroll Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card.featured { transform: scale(1.04); }
  .pricing-card.featured:hover { transform: scale(1.10) translateY(-12px); }
  .pricing-card:hover { transform: scale(1.05) translateY(-12px); }
  .trust-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .services-grid { grid-template-columns: 1fr; }
  .subject-list { grid-template-columns: repeat(2, 1fr); }
  .subject-list li:nth-child(4n) { border-right: 1px solid var(--border); }
  .subject-list li:nth-child(2n) { border-right: none; }
}

@media (max-width: 768px) {
  .section { padding: 5rem 0; }
  .hero { padding: 7rem 0 5rem; min-height: auto; }
  .hero h1 { font-size: 2.2rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: block; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .form-row.two-col { grid-template-columns: 1fr; }

  .subject-list { grid-template-columns: 1fr; }
  .subject-list li { border-right: none !important; }

  .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-links { flex-direction: column; gap: 0.75rem; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
