/* ===========================
   Dr. Steve Wilke - Modern
   =========================== */

:root {
  --primary: #0c4a5e;
  --primary-mid: #0a6e8a;
  --primary-light: #0d8db4;
  --accent: #d4a745;
  --accent-soft: rgba(212, 167, 69, 0.12);
  --text: #1a1a2e;
  --text-secondary: #555;
  --text-muted: #888;
  --white: #fff;
  --off-white: #fafafa;
  --surface: #f4f5f7;
  --border: #e8e8ec;
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--white);
}

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

a {
  color: var(--primary-mid);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-light);
}

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

/* ===========================
   Typography
   =========================== */

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.eyebrow.light {
  color: var(--accent);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-mid);
  gap: 4px;
  transition: gap var(--transition), color var(--transition);
}

.link-arrow:hover {
  gap: 8px;
  color: var(--primary-light);
}

/* ===========================
   Navigation
   =========================== */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}

#navbar.scrolled {
  background: rgba(12, 74, 94, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 1px 24px rgba(0,0,0,0.12);
}

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

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

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-links .nav-cta {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  margin-left: 8px;
}

.nav-links .nav-cta:hover {
  background: var(--white);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

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

/* ===========================
   Hero
   =========================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 40, 55, 0.6) 0%, rgba(10, 40, 55, 0.4) 40%, rgba(10, 40, 55, 0.75) 100%),
    linear-gradient(135deg, rgba(12, 74, 94, 0.5) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 0 24px;
}

.hero-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s ease infinite;
}

.hero-scroll a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.hero-scroll a:hover {
  color: var(--white);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-mid);
  border-color: var(--primary-mid);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(12, 74, 94, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

/* ===========================
   Section Layout
   =========================== */

.section {
  padding: 120px 0;
}

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

.section-dark {
  background: var(--primary);
  color: var(--white);
}

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

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text);
  margin-bottom: 16px;
}

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

.section-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.section-intro.light {
  color: rgba(255,255,255,0.7);
}

.section-cta {
  text-align: center;
  margin-top: 56px;
}

/* ===========================
   About
   =========================== */

.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.about-image-accent {
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  opacity: 0.3;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--text);
  margin-bottom: 20px;
}

.about-text .lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-text .link-arrow {
  margin-top: 8px;
}

/* ===========================
   Services
   =========================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--primary-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  font-family: var(--font-body);
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===========================
   Vision / Mission
   =========================== */

.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

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

.vm-card h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.vm-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.leadon-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  margin-bottom: 16px;
}

.leadon-logos img {
  height: 56px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.leadon-logos img:hover {
  opacity: 1;
}

/* ===========================
   Books
   =========================== */

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

.book-card {
  display: flex;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

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

.book-cover {
  flex-shrink: 0;
  width: 110px;
}

.book-cover img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.book-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-mid);
  background: rgba(13, 141, 180, 0.08);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.book-info h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 4px;
}

.book-subtitle {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.book-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.65;
}

/* ===========================
   Contact
   =========================== */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 36px 24px;
  transition: all var(--transition);
  color: var(--white);
  text-decoration: none;
}

a.contact-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  color: var(--white);
}

.contact-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 167, 69, 0.15);
  border-radius: 50%;
  margin-bottom: 16px;
  color: var(--accent);
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.contact-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.contact-social a:hover {
  background: var(--accent);
  color: var(--primary);
}

/* ===========================
   Footer
   =========================== */

.footer {
  background: #072a36;
  color: rgba(255,255,255,0.4);
  padding: 28px 0;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: rgba(255,255,255,0.8);
}

/* ===========================
   Scroll Reveal
   =========================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===========================
   Responsive
   =========================== */

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

@media (max-width: 900px) {
  .section { padding: 80px 0; }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrap {
    max-width: 420px;
    margin: 0 auto;
  }

  .vision-mission {
    grid-template-columns: 1fr;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

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

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    background: var(--primary);
    flex-direction: column;
    padding: 80px 28px 28px;
    gap: 0;
    transition: right var(--transition);
    box-shadow: -8px 0 32px rgba(0,0,0,0.2);
    align-items: stretch;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links a {
    display: block;
    padding: 16px 4px;
    font-size: 15px;
    border-radius: 0;
  }

  .nav-links .nav-cta {
    margin-left: 0;
    margin-top: 12px;
    text-align: center;
    border-radius: var(--radius-sm);
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero mobile: position image to keep face/torso visible */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-bg img {
    object-position: 65% center;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-label {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-tagline {
    font-size: 1rem;
    margin-bottom: 32px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .book-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-cover {
    width: 130px;
  }

  .section { padding: 64px 0; }

  .section-header {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .hero-bg img {
    object-position: 70% center;
  }

  .leadon-logos {
    flex-direction: column;
    gap: 20px;
  }
}
