/* ========================================
   COACHING FOR BARIATRIC SUCCESS
   Global Styles
   ======================================== */

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

:root {
  --primary: #F98022;
  --primary-dark: #D96A10;
  --primary-light: #FEF3E8;
  --accent: #F98022;
  --accent-light: #FEF3E8;
  --dark: #1A1A1A;
  --body: #3A3A3A;
  --muted: #6E6E6E;
  --light-bg: #F5F5F5;
  --white: #FFFFFF;
  --border: #E0E0E0;
  --grey: #888888;
  --heading-font: 'DM Serif Display', Georgia, serif;
  --body-font: 'Source Sans 3', -apple-system, sans-serif;
  --max-width: 1140px;
  --nav-height: 72px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--body-font);
  color: var(--body);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* ========== TYPOGRAPHY ========== */

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

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: 0.5rem; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); font-size: 0.95rem; }

/* ========== LAYOUT ========== */

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

.section {
  padding: 5rem 0;
}

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

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

.section--primary h1,
.section--primary h2,
.section--primary h3 {
  color: var(--white);
}

.section--primary p {
  color: rgba(255,255,255,0.9);
}

.grid {
  display: grid;
  gap: 2.5rem;
}

.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2-1 { grid-template-columns: 2fr 1fr; }
.grid--1-2 { grid-template-columns: 1fr 2fr; }
.grid--5-7 { grid-template-columns: 5fr 7fr; }
.grid--7-5 { grid-template-columns: 7fr 5fr; }

.align-center { align-items: center; }

/* ========== NAVIGATION ========== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo img {
  height: 44px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--body);
  letter-spacing: 0.01em;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

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

.nav__cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.25rem !important;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav__cta::after { display: none !important; }
.nav__cta:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 6px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ========== HERO ========== */

.hero {
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero--home {
  background: linear-gradient(165deg, var(--light-bg) 0%, var(--white) 40%, var(--primary-light) 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
}

.hero--page {
  background: var(--light-bg);
  padding: 8rem 0 4rem;
  text-align: center;
}

.hero__tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  max-width: 620px;
}

.hero--page h1 {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.15rem;
  max-width: 540px;
  color: var(--muted);
  line-height: 1.75;
}

.hero--page p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero__accent-line {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 1.5rem 0;
  border-radius: 2px;
}

.hero--page .hero__accent-line {
  margin: 1.5rem auto;
}

/* ========== BUTTONS ========== */

.btn {
  display: inline-block;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

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

.btn--primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,128,34,0.3);
}

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

.btn--accent:hover {
  background: #D96A10;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,128,34,0.3);
}

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

.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  color: var(--primary);
}

.btn--sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.88rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.link-arrow {
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.link-arrow::after {
  content: '\2192';
  transition: transform 0.2s;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ========== CARDS ========== */

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 2.25rem;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.card__icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.card__icon--accent {
  background: #F0F0F0;
}

.card h3 {
  margin-bottom: 0.75rem;
}

/* ========== TESTIMONIALS ========== */

.testimonial {
  background: var(--white);
  border-radius: 10px;
  padding: 2.25rem;
  border: 1px solid var(--border);
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-family: var(--heading-font);
  font-size: 4rem;
  color: var(--primary-light);
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  line-height: 1;
}

.testimonial p {
  font-style: italic;
  font-size: 1.02rem;
  position: relative;
  z-index: 1;
}

.testimonial__author {
  margin-top: 1.25rem;
  font-weight: 600;
  font-style: normal !important;
  color: var(--dark);
  font-size: 0.9rem;
}

/* ========== SECTION HEADERS ========== */

.section-header {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ========== FAQ ACCORDION ========== */

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  font-family: var(--body-font);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  line-height: 1.4;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--body);
  line-height: 1.75;
}

/* ========== CTA BANNER ========== */

.cta-banner {
  background: var(--primary);
  border-radius: 12px;
  padding: 3.5rem;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  color: var(--white);
  max-width: 600px;
  margin: 0 auto 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* ========== FOOTER ========== */

.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer a {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
}

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

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  text-align: center;
}

/* ========== SERVICE BLOCK ========== */

.service-block {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block h2 {
  color: var(--primary);
}

.service-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ========== CREDENTIAL TAGS ========== */

.credential-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.credential {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.5rem 1.15rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
}

/* ========== PILLAR CONTENT ========== */

.content-body {
  max-width: 720px;
  margin: 0 auto;
}

.content-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.content-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-body p {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ========== ANIMATIONS ========== */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

@media (max-width: 968px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    gap: 0.25rem;
  }

  .nav__links.open a {
    padding: 0.75rem 0;
    display: block;
    width: 100%;
  }

  .nav__links.open .nav__cta {
    margin-top: 0.75rem;
    text-align: center;
    display: block;
    padding: 0.85rem 1.25rem !important;
  }

  .grid--2, .grid--3, .grid--4,
  .grid--2-1, .grid--1-2,
  .grid--5-7, .grid--7-5 {
    grid-template-columns: 1fr;
  }

  .hero--home { min-height: auto; padding: 7rem 0 4rem; }
  .hero h1 { max-width: 100%; }
  .hero p { max-width: 100%; }
  .section { padding: 3.5rem 0; }
  .cta-banner { padding: 2.5rem 1.5rem; }
}

@media (max-width: 600px) {
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }
  .hero { padding: 7rem 0 3rem; }
  .hero--page { padding: 6rem 0 3rem; }
}
