/* ==========================================================================
   Smile With Dr. Phil — Global Stylesheet
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-bg: #0D1B2A;
  --color-surface: #ffffff;
  --color-primary: #1B4F72;
  --color-accent: #E8A838;
  --color-text: #1a1a1a;
  --color-text-light: #6b7280;
  --color-border: #e5e7eb;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  --max-width: 1120px;
  --section-pad: 5rem 1.5rem;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }

p + p { margin-top: 1.25rem; }

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

.section-gray {
  background: #f3f4f6;
  color: var(--color-text);
}

.section-pad {
  padding: var(--section-pad);
}

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

/* --- Bio Row (homepage) --- */
.bio-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.bio-photo {
  flex-shrink: 0;
}

.bio-photo img {
  width: 260px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.bio-text {
  font-size: 1.05rem;
}

/* --- About Page Headshot --- */
.about-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.about-headshot {
  width: 220px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .bio-row {
    flex-direction: column;
    text-align: center;
  }

  .bio-photo img {
    width: 200px;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

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

.btn-gold {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-gold:hover {
  background: #d4952e;
}

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

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

.text-link {
  color: var(--color-accent);
  font-weight: 500;
  transition: opacity var(--transition);
}

.text-link:hover { opacity: 0.8; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-surface);
  letter-spacing: -0.02em;
}

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

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-surface);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: var(--color-bg);
  color: var(--color-surface);
  padding: 10rem 1.5rem 6rem;
  text-align: center;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto 1.25rem;
}

.hero .subheadline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   VALUE CARDS
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(232,168,56,0.12);
  color: var(--color-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   CREDENTIAL STRIP
   ========================================================================== */
.credential-strip {
  background: var(--color-bg);
  color: rgba(255,255,255,0.85);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 2;
}

.credential-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.credential-strip .sep {
  color: var(--color-accent);
  font-weight: 700;
}

/* ==========================================================================
   BOTTOM CTA
   ========================================================================== */
.bottom-cta {
  text-align: center;
}

.bottom-cta h2 {
  margin-bottom: 0.75rem;
}

.bottom-cta p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.prose h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.philosophy-list {
  max-width: 720px;
  margin: 2rem auto 0;
  counter-reset: belief;
}

.philosophy-list li {
  counter-increment: belief;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.1rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.philosophy-list li::before {
  content: counter(belief) ".";
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-accent);
  font-weight: 700;
  min-width: 28px;
}

/* Credentials grid */
.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.credentials-grid h3 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.credentials-grid ul li {
  padding: 0.4rem 0;
  color: var(--color-text-light);
  font-size: 0.95rem;
  list-style: disc;
  margin-left: 1.25rem;
}

.credentials-additional {
  grid-column: 1 / -1;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ==========================================================================
   SPEAKING PAGE — SESSION CARDS
   ========================================================================== */
.sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.session-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.session-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.session-number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

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

.session-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Logistics */
.logistics-list {
  max-width: 720px;
  margin: 0 auto;
}

.logistics-list li {
  padding: 0.5rem 0;
  color: var(--color-text-light);
  font-size: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.logistics-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ==========================================================================
   TOOLS PAGE
   ========================================================================== */
.tool-block {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.tool-block:last-of-type {
  border-bottom: none;
}

.tool-block h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.tool-block p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.tool-block .text-link {
  font-size: 1rem;
}

.tools-note {
  max-width: 720px;
  margin: 2rem auto 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: italic;
}

/* ==========================================================================
   CONTACT — GOOGLE FORM EMBED
   ========================================================================== */
.google-form-wrap {
  max-width: 700px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.google-form-wrap iframe {
  display: block;
  width: 100%;
  min-height: 900px;
  border: none;
}

/* ==========================================================================
   PRIVACY PAGE
   ========================================================================== */
.legal-prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.legal-prose h2 {
  color: var(--color-text);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.legal-prose a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-bg);
  color: rgba(255,255,255,0.6);
  padding: 3rem 1.5rem 2rem;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.75rem;
}

.footer-links a {
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   PAGE HEADER (inner pages)
   ========================================================================== */
.page-header {
  background: var(--color-bg);
  color: var(--color-surface);
  padding: 9rem 1.5rem 4rem;
  text-align: center;
}

.page-header h1 {
  max-width: 700px;
  margin: 0 auto 1rem;
}

.page-header p {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--color-bg);
    padding: 1.5rem 0 2rem;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
  }

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

  .nav-links a {
    display: block;
    padding: 0.85rem 1.5rem;
    font-size: 1.05rem;
  }

  .hero {
    padding: 8rem 1.5rem 4rem;
  }

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

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

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

  .credential-strip .container {
    flex-direction: column;
    gap: 0.25rem;
  }

  .credential-strip .sep {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: 3.5rem 1rem;
  }

  .nav-inner {
    padding: 0 1rem;
  }

  .hero {
    padding: 7rem 1rem 3rem;
  }

  .page-header {
    padding: 8rem 1rem 3rem;
  }
}
