/* ============================================================
   Life Coaching with Jace LLC — Global Stylesheet
   Palette drawn from logo: deep navy + olive-gold leaves
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=DM+Sans:wght@300;400;500;600&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── Variables ── */
:root {
  /* Core palette — navy + olive */
  --navy:      #1e3a5f;
  --navy-deep: #142840;
  --olive:     #8a9a3c;
  --olive-lt:  #b5c45a;
  --gold:      #c9a84c;
  --sand:      #e8dfc8;
  --sand-lt:   #f5f0e6;
  --cream:     #faf8f3;
  --warm-mid:  #ede5d0;

  /* Text */
  --text:       #1a2535;
  --text-mid:   #3d4f6a;
  --text-light: #6b7c96;

  /* Accents */
  --teal-accent: #3d7d8f;
  --rust:        #c4603a;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-serif:   'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --radius:    4px;
  --radius-lg: 16px;
  --shadow:    0 6px 40px rgba(30,58,95,0.12);
  --shadow-sm: 0 2px 16px rgba(30,58,95,0.08);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* prevent horizontal scroll at root level */
}
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; }
h4, h5     { font-family: var(--font-body); font-weight: 600; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

/* ── Layout ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 5rem 0; }
.section--lg{ padding: 7rem 0; }
.text-center{ text-align: center; }

/* ── Labels ── */
.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.9rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: var(--navy);
  color: #fff;
}
.btn--primary:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,58,95,0.28);
}
.btn--olive {
  background: var(--olive);
  color: #fff;
}
.btn--olive:hover {
  background: #7a8a30;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(138,154,60,0.3);
}
.btn--outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn--outline:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}
.btn--outline-light {
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  background: transparent;
}
.btn--outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}
.btn--sand {
  background: var(--sand-lt);
  color: var(--navy);
}
.btn--sand:hover {
  background: var(--sand);
  transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  background: #142840;
  background: rgba(20, 40, 64, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: #142840;
  background: rgba(20, 40, 64, 0.98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 0.65rem 0;
  box-shadow: 0 2px 30px rgba(0,0,0,0.2);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.nav__logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}
.nav__logo-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.nav__logo-text span {
  display: block;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.nav__links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.25s;
}
.nav__links a:hover,
.nav__links a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.nav__cta {
  background: var(--olive) !important;
  color: #fff !important;
  border-radius: 4px;
}
.nav__cta:hover {
  background: var(--olive-lt) !important;
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(138,154,60,0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 25%, rgba(201,168,76,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 55% 85%, rgba(61,125,143,0.10) 0%, transparent 50%);
}
/* Diagonal stripe texture */
.hero__texture {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent, transparent 80px,
    rgba(255,255,255,0.018) 80px, rgba(255,255,255,0.018) 81px
  );
}
.hero__content {
  position: relative; z-index: 2;
  padding-top: 5.5rem;
}
.hero__split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Page hero (shorter) */
.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding-bottom: 3.5rem;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 25% 70%, rgba(138,154,60,0.18) 0%, transparent 60%);
}
.page-hero__content {
  position: relative; z-index: 2;
  padding-top: 6rem;
}
.page-hero h1 { color: #fff; font-style: italic; }
.page-hero .label { color: rgba(181,196,90,0.9); }
.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin-top: 0.5rem;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(138,154,60,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

/* Service card */
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30,58,95,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.service-card__accent {
  height: 5px;
}
.service-card__body {
  padding: 2.25rem;
}
.service-card__icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.service-card__desc {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Testimonial card */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  border-left: 4px solid var(--olive);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 0.75rem; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--sand);
  line-height: 1;
}
.testimonial-card__text {
  font-style: italic;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.testimonial-card__author {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
}

/* Process step */
.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.step__num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step__body h4 {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.step__body p {
  color: var(--text-light);
  font-size: 0.88rem;
  margin: 0;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(30,58,95,0.1);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.pricing-card--featured {
  border: 2px solid var(--navy);
}
.pricing-card__header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid rgba(30,58,95,0.08);
}
.pricing-card__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.pricing-card__price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--navy);
  line-height: 1;
}
.pricing-card__price span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-light);
}
.pricing-card__body { padding: 1.5rem 2rem 2rem; }
.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-bottom: 0.6rem;
}
.pricing-card__feature::before {
  content: '✓';
  color: var(--olive);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.45rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: #fff;
  border: 1.5px solid rgba(30,58,95,0.2);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(138,154,60,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.8);
  padding: 4.5rem 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand img {
  width: 64px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  margin-bottom: 1rem;
}
.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.footer__brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}
.footer__col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive-lt);
  margin-bottom: 1.25rem;
}
.footer__col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.55rem;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--olive-lt); }

/* Legal */
.footer__legal { padding: 2rem 0; }
.footer__legal-notices {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.footer__legal-notice {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  flex: 1;
  min-width: 230px;
}
.footer__legal-notice h5 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--olive-lt);
  margin-bottom: 0.4rem;
}
.footer__legal-notice p,
.footer__legal-notice a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.55;
  margin: 0;
}
.footer__legal-notice a:hover { color: var(--olive-lt); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer__bottom p {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-up { animation: fadeUp 0.85s ease forwards; }
.d1 { animation-delay: 0.1s; opacity: 0; animation-fill-mode: forwards; }
.d2 { animation-delay: 0.25s; opacity: 0; animation-fill-mode: forwards; }
.d3 { animation-delay: 0.4s;  opacity: 0; animation-fill-mode: forwards; }
.d4 { animation-delay: 0.55s; opacity: 0; animation-fill-mode: forwards; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: collapse hero split and footer columns */
@media (max-width: 900px) {
  .hero__split { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Mobile: full single-column layout */
@media (max-width: 680px) {

  /* ── Container padding tightened ── */
  .container { padding: 0 1.25rem; }

  /* ── Sections ── */
  .section    { padding: 3rem 0; }
  .section--lg{ padding: 4rem 0; }

  /* ── Navigation ── */
  .nav { background: #142840 !important; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #142840;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 1002;
    overflow-y: auto;
    padding: 5rem 2rem 3rem;
  }
  .nav__links.open a {
    font-size: 1.1rem;
    padding: 0.9rem 2.5rem;
    color: #fff !important;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    width: 100%;
    max-width: 280px;
    text-align: center;
    display: block;
  }
  .nav__links.open a.nav__cta {
    background: var(--olive) !important;
    color: #fff !important;
    margin-top: 0.5rem;
  }
  .nav__toggle { display: flex; z-index: 1003; }

  /* ── Forms ── */
  .form-row { grid-template-columns: 1fr; }

  /* ── Footer ── */
  .footer__grid { grid-template-columns: 1fr; }
  .footer__legal-notices { flex-direction: column; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.25rem; }

  /* ── Hero ── */
  .hero { min-height: auto; padding: 5rem 0 3rem; }
  .hero__split { grid-template-columns: 1fr; gap: 2rem; }
  .hero__content { padding-top: 1rem; }

  /* ── Page hero ── */
  .page-hero { min-height: auto; padding-bottom: 2.5rem; }
  .page-hero__content { padding-top: 5rem; }

  /* ── Cards ── */
  .card { padding: 1.5rem; }
  .service-card__body { padding: 1.5rem; }
  .testimonial-card { padding: 1.5rem; }
  .pricing-card__header { padding: 1.5rem 1.5rem 1rem; }
  .pricing-card__body { padding: 1rem 1.5rem 1.5rem; }

  /* ── Buttons: full width on mobile ── */
  .btn { width: 100%; text-align: center; }

  /* ── CRITICAL: collapse ALL inline grid layouts ──
     Covers every multi-column inline grid used in the HTML pages */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* ── Fix elements that use negative or large fixed positioning ──
     These cause overflow on narrow viewports */
  [style*="right: -1"] {
    right: 1rem !important;
    bottom: 1rem !important;
  }
  [style*="right:-1"] {
    right: 1rem !important;
    bottom: 1rem !important;
  }

  /* ── About page sticky photo ── */
  [style*="position:sticky"],
  [style*="position: sticky"] {
    position: relative !important;
    top: auto !important;
  }

  /* ── Max-width overrides that can cause overflow ── */
  [style*="max-width:"] { max-width: 100% !important; }
  [style*="max-width: "] { max-width: 100% !important; }

  /* ── Step components ── */
  .step { gap: 1rem; }
  .step__num { width: 40px; height: 40px; font-size: 1rem; flex-shrink: 0; }

  /* ── Typography scale down ── */
  h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  /* ── Trust marker strip on hero ── */
  [style*="display:flex"][style*="gap:2rem"] {
    gap: 1rem !important;
    flex-wrap: wrap !important;
  }

  /* ── Pricing price display ── */
  .pricing-card__price { font-size: 2rem; }

  /* ── Legal notice min-width override ── */
  .footer__legal-notice { min-width: 0; }
}
