/*
Theme Name: Josh Fellman Life Coach
Theme URI: https://joshfellman.com
Author: Josh Fellman
Author URI: https://joshfellman.com
Description: A warm, editorial life coaching theme for Josh Fellman. Features mission trip gallery, Calendly booking integration, and service sections.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: josh-fellman
Tags: one-page, coaching, business, portfolio
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --cream:  #FAF7F2;
  --dark:   #1C1C1C;
  --gold:   #C8963E;
  --warm:   #8B5E3C;
  --text:   #2D2D2D;
  --muted:  #6B6560;
  --border: #E5DDD4;
  --white:  #FFFFFF;
  --section-pad: 6rem 5rem;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1rem; font-family: 'DM Sans', sans-serif; font-weight: 500; }
p { color: var(--muted); line-height: 1.75; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}
.divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 1.5rem 0;
}
.text-white { color: var(--white) !important; }
.text-muted-light { color: rgba(255,255,255,0.6) !important; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  border: none;
}
.btn-primary { background: var(--dark); color: var(--white); }
.btn-primary:hover { background: var(--gold); color: var(--white); }
.btn-outline { border: 1.5px solid var(--dark); color: var(--dark); background: transparent; }
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { opacity: 0.88; }
.btn-white { background: var(--white); color: var(--gold); }
.btn-white:hover { opacity: 0.9; }
.btn-outline-white { border: 1.5px solid rgba(255,255,255,0.35); color: var(--white); background: transparent; }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }
.btn-block { display: block; width: 100%; padding: 0.8rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250,247,242,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
#site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.site-branding .site-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--dark);
  letter-spacing: 0.02em;
  text-decoration: none;
  display: block;
}
.site-branding .site-title:hover { color: var(--gold); }

#primary-navigation ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}
#primary-navigation ul li a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
  text-decoration: none;
}
#primary-navigation ul li a:hover { color: var(--dark); }
#primary-navigation ul li.menu-item-cta a {
  background: var(--gold);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 500;
}
#primary-navigation ul li.menu-item-cta a:hover { opacity: 0.88; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all 0.3s;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 4.5rem;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 3rem 5rem 5rem;
  overflow: visible;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  line-height: 1.08;
  color: var(--dark);
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 100%;
}
.hero-actions .btn {
  white-space: nowrap;
}
.hero-image-wrap {
  position: relative;
  overflow: hidden;
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-badge {
  position: absolute;
  bottom: 3rem;
  left: -1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  max-width: 230px;
}
.hero-badge-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 500;
  display: block;
}
.hero-badge-text {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--dark);
  margin-top: 0.2rem;
  display: block;
}

/* ============================================================
   FORMULA SECTION
   ============================================================ */
#formula {
  background: var(--dark);
  padding: var(--section-pad);
}
#formula .section-eyebrow { color: var(--gold); }
#formula h2 { color: var(--white); }
#formula .section-sub { color: rgba(255,255,255,0.6); max-width: 580px; }
.formula-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}
.formula-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 2.5rem 2rem;
}
.formula-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 1rem;
}
.formula-card h3 { color: var(--white); margin-bottom: 0.75rem; }
.formula-card p { color: rgba(255,255,255,0.55); font-size: 0.9rem; }

/* ============================================================
   SERVICES SECTION
   ============================================================ */
#services {
  background: var(--cream);
  padding: var(--section-pad);
}
.services-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.services-list { margin-top: 2rem; }
.service-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.service-item:first-child { border-top: 1px solid var(--border); }
.service-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  color: var(--gold);
  min-width: 28px;
  padding-top: 0.15rem;
  flex-shrink: 0;
}
.service-content h4 { color: var(--dark); margin-bottom: 0.3rem; }
.service-content p { font-size: 0.875rem; }
.services-sticky {
  position: sticky;
  top: 7rem;
}
.services-photo {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.services-photo img { width: 100%; height: 100%; object-fit: cover; }
.services-cta-box {
  background: var(--gold);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 1.5rem;
}
.services-cta-box h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.services-cta-box p { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin-bottom: 1.25rem; }

/* ============================================================
   GALLERY STRIP
   ============================================================ */
#gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.gallery-strip-item { aspect-ratio: 1; overflow: hidden; }
.gallery-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  transition: filter 0.35s, transform 0.35s;
}
.gallery-strip-item:hover img { filter: grayscale(0%); transform: scale(1.04); }
.gallery-strip-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.gallery-strip-text.dark-bg { background: var(--dark); }
.gallery-strip-text.gold-bg { background: var(--gold); }
.gallery-strip-text .strip-headline-italic {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
  color: var(--gold);
  font-style: italic;
  display: block;
}
.gallery-strip-text.dark-bg .strip-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
  color: var(--white);
  display: block;
  margin-top: -0.4rem;
}
.gallery-strip-text.gold-bg .strip-sub {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  display: block;
  margin-bottom: 0.5rem;
}
.gallery-strip-text.gold-bg .strip-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  color: var(--white);
  line-height: 1.3;
  display: block;
}

/* ============================================================
   MISSION SECTION
   ============================================================ */
#mission {
  background: var(--white);
  padding: var(--section-pad);
}
.mission-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}
.mission-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-style: italic;
  color: var(--dark);
  line-height: 1.5;
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
  margin: 1.5rem 0 1.5rem;
}
.mission-body { font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.25rem; }
.mission-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.mission-photo { border-radius: 8px; overflow: hidden; }
.mission-photo img { width: 100%; object-fit: cover; display: block; }
.mission-photo.tall img { height: 390px; }
.mission-photo.short img { height: 185px; }
.mission-photo.tall { grid-row: span 2; }

/* ============================================================
   PRICING SECTION
   ============================================================ */
#pricing {
  background: var(--cream);
  padding: var(--section-pad);
}
.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 2rem;
}
.pricing-header-note {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 280px;
  text-align: right;
  line-height: 1.65;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  background: var(--dark);
  border-color: var(--dark);
}
.pricing-card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-weight: 500;
  display: block;
  margin-bottom: 0.4rem;
}
.pricing-card.featured .pricing-card-label { color: rgba(255,255,255,0.45); }
.pricing-card h3 { color: var(--dark); margin-bottom: 1.5rem; }
.pricing-card.featured h3 { color: var(--white); }
.price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}
.price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
}
.price-note { font-size: 0.8rem; color: var(--muted); }
.pricing-card.featured .price-note { color: rgba(255,255,255,0.45); }
.pricing-features {
  flex: 1;
  margin-bottom: 2rem;
}
.pricing-features li {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.pricing-features li::before {
  content: "→";
  color: var(--gold);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.pricing-card.featured .pricing-features li {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.1);
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--dark);
  padding: 3.5rem 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--white);
  display: block;
}
.footer-brand .footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.25rem;
  display: block;
}
.footer-right { text-align: right; }
.footer-right .footer-cta {
  color: var(--gold);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
}
.footer-right .footer-cta:hover { opacity: 0.8; }
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.28);
  margin-top: 0.4rem;
  display: block;
}

/* ============================================================
   WORDPRESS STANDARD ELEMENTS
   ============================================================ */
.wp-block-image { margin: 1.5rem 0; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.wp-caption-text { font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; }
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-pad: 5rem 3rem; }
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 3rem 3rem 2rem; order: 2; }
  .hero-image-wrap { min-height: 50vh; order: 1; }
  .hero-badge { left: 1rem; bottom: 1rem; }
  .services-inner { grid-template-columns: 1fr; gap: 3rem; }
  .services-sticky { position: static; }
  .mission-inner { grid-template-columns: 1fr; gap: 3rem; }
  .mission-photos { order: -1; }
  .formula-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-header { flex-direction: column; align-items: flex-start; }
  .pricing-header-note { text-align: left; max-width: 100%; }
  #gallery-strip { grid-template-columns: repeat(2, 1fr); }
  #site-footer { flex-direction: column; text-align: center; padding: 3rem 2rem; }
  .footer-right { text-align: center; }
}

@media (max-width: 768px) {
  :root { --section-pad: 4rem 1.5rem; }
  #site-header { padding: 1rem 1.5rem; }
  #primary-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    border-top: 1px solid var(--border);
    padding: 1.5rem;
  }
  #primary-navigation.open { display: block; }
  #primary-navigation ul { flex-direction: column; gap: 0; }
  #primary-navigation ul li { border-bottom: 1px solid var(--border); }
  #primary-navigation ul li a { display: block; padding: 0.85rem 0; font-size: 1rem; }
  .nav-toggle { display: flex; }
  #gallery-strip { grid-template-columns: 1fr 1fr; }
  .mission-photos { grid-template-columns: 1fr; }
  .mission-photo.tall { grid-row: span 1; }
  .mission-photo.tall img { height: 260px; }
  .mission-photo.short img { height: 220px; }
}
