/* ===========================================================
   ocd.app v2 - Theme CSS
   Design System: Pencil (ocdv2.pen)
   Font: Urbanist | Primary: #558CEE | Accent: #54C79B
   Width: 1440px
   =========================================================== */

/* --- Variables --- */
:root {
  --primary: #558CEE;
  --accent: #54C79B;
  --dark-text: #1A1A2E;
  --gray-text: #555555;
  --light-bg: #F5F7FA;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --font: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 30px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--gray-text); background: var(--white); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--dark-text); font-weight: 700; }
p { margin: 0; }

/* --- Shell (max-width container) --- */
.shell { max-width: 1440px; margin: 0 auto; padding: 0 80px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  padding: 14px 28px; border-radius: var(--radius-pill);
  cursor: pointer; border: none; width: fit-content;
  transition: transform 160ms var(--ease), box-shadow 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { box-shadow: 0 8px 24px rgba(85,140,238,0.3); transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--dark-text); }
.btn--accent:hover { box-shadow: 0 8px 24px rgba(84,199,155,0.3); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--dark-text); border: 1px solid var(--dark-text); }
.btn--outline:hover { background: var(--dark-text); color: var(--white); }
.btn--outline-light { background: transparent; color: var(--white); border: 1px solid var(--white); }
.btn--outline-light:hover { background: rgba(255,255,255,0.15); }
.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn [class^="icon-"] { font-size: 16px; }

/* --- Eyebrow --- */
.eyebrow { font-size: 13px; font-weight: 600; color: var(--gray-text); }

/* --- Section Header --- */
.section-header { margin-bottom: 48px; }
.section-header h2 { font-size: 36px; font-weight: 700; line-height: 1.15; margin-top: 12px; }
.section-header p { font-size: 15px; color: var(--gray-text); line-height: 1.6; margin-top: 12px; max-width: 700px; }
.section-header--center { text-align: center; }
.section-header--center p { margin-left: auto; margin-right: auto; }

/* ===========================================================
   1. HEADER
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 200ms ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.hdr-shell {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1440px; margin: 0 auto; padding: 20px 80px;
}
.hdr-brand img, .hdr-logo { height: 48px; width: auto; }
.hdr-nav .hdr-menu { display: flex; gap: 36px; list-style: none; }
.hdr-nav .hdr-menu li a { font-size: 15px; font-weight: 500; color: var(--dark-text); transition: color 200ms ease; }
.hdr-nav .hdr-menu li a:hover { color: var(--primary); }
.hdr-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: var(--radius-pill);
  background: var(--primary); color: var(--white);
  font-size: 15px; font-weight: 600;
  transition: transform 160ms var(--ease), box-shadow 160ms ease;
}
.hdr-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(85,140,238,0.25); }

/* --- Hamburger (hidden on desktop) --- */
.nav-toggle {
  display: none; appearance: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; padding: 8px; position: relative; z-index: 1001;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle__line {
  display: block; width: 22px; height: 2px; background: var(--dark-text);
  border-radius: 2px; transition: transform 300ms var(--ease), opacity 200ms ease;
}
.site-header.nav-open .nav-toggle__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle__line:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================================
   2. HERO
   =========================================================== */
.hero {
  position: relative; height: 700px; overflow: hidden;
  background-color: #2c2c2c;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.47); }
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1440px; margin: 0 auto; padding: 80px 80px 0;
  height: 100%; display: flex; flex-direction: column;
}
.hero-content { max-width: 540px; }
.hero-badge {
  display: inline-block; padding: 8px 16px;
  background: var(--primary); color: var(--white);
  font-size: 12px; font-weight: 600; border-radius: 20px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 50px; font-weight: 700; color: var(--white);
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px;
}
.hero-sub {
  font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.8);
  max-width: 480px; margin-bottom: 28px;
}
.hero-btns { display: flex; gap: 16px; }

/* Store badges */
.hero-stores { display: flex; gap: 12px; margin-top: 20px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); font-size: 14px; font-weight: 600;
  transition: background 200ms ease, transform 160ms var(--ease);
}
.store-badge:hover { background: rgba(255,255,255,0.2); transform: translateY(-1px); }
.store-badge svg { opacity: 0.9; }
.hero-trust {
  margin-top: auto; margin-bottom: 40px;
  display: inline-flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  padding: 16px 28px; border-radius: 20px;
  align-self: flex-start;
}
.hero-avatars { display: flex; }
.hero-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  margin-left: -10px; object-fit: cover;
}
.hero-avatar:first-child { margin-left: 0; }
.hero-trust span { font-size: 16px; font-weight: 600; color: var(--white); }

/* ===========================================================
   3. TRUST / CARE STANDARDS
   =========================================================== */
.trust { padding: 80px 0; background: var(--light-bg); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-card {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform 280ms var(--ease), box-shadow 280ms ease;
}
.trust-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,0.06); }
.trust-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.trust-card h3 { font-size: 18px; font-weight: 700; }
.trust-card p { font-size: 14px; line-height: 1.6; color: var(--gray-text); }

/* ===========================================================
   4. ABOUT
   =========================================================== */
.about { padding: 80px 0; }
.about-intro { font-size: 28px; font-weight: 500; color: var(--dark-text); line-height: 1.4; max-width: 800px; margin: 16px auto 0; }
.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; min-height: 340px; }
.about-row + .about-row { min-height: 300px; }
.about-img { border-radius: 20px; background-size: cover; background-position: center; background-repeat: no-repeat; min-height: 300px; background-color: var(--light-bg); }
.about-card--blue {
  background: var(--primary); border-radius: 20px; padding: 36px;
  color: var(--white); display: flex; flex-direction: column; gap: 16px;
  justify-content: center;
}
.about-card--blue h3 { font-size: 32px; font-weight: 700; color: var(--white); line-height: 1.2; }
.about-card--blue p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.8); }
.about-stats { display: flex; gap: 32px; margin-top: 8px; }
.about-stat-num { display: block; font-size: 28px; font-weight: 700; color: var(--white); }
.about-stat-label { font-size: 13px; color: rgba(255,255,255,0.6); }
.about-checks { display: flex; gap: 20px; flex-wrap: wrap; }
.about-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--white); font-weight: 500; }
.about-check i { font-size: 16px; color: var(--accent); }

/* ===========================================================
   5. TREATMENT TRACKS
   =========================================================== */
.tracks { padding: 80px 0; background: var(--light-bg); }
.tracks-header { display: flex; gap: 60px; margin-bottom: 48px; align-items: flex-start; }
.tracks-header-left { flex: 1; }
.tracks-header-left h2 { font-size: 38px; font-weight: 700; line-height: 1.15; margin-top: 8px; }
.tracks-header-right { flex: 1; font-size: 15px; line-height: 1.6; color: var(--gray-text); padding-top: 8px; }
.tracks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.track-card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 280ms var(--ease), box-shadow 280ms ease;
}
.track-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,0.06); }
.track-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.track-card h3 { font-size: 18px; font-weight: 700; }
.track-card p { font-size: 13px; line-height: 1.6; color: var(--gray-text); }
.track-link { font-size: 13px; font-weight: 600; color: var(--dark-text); margin-top: auto; }

/* ===========================================================
   6. HOW IT WORKS
   =========================================================== */
.hiw { padding: 80px 0; }
.hiw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.hiw-img { border-radius: 20px; background-size: cover; background-position: center; background-color: var(--light-bg); min-height: 480px; }
.hiw-right { display: flex; flex-direction: column; gap: 24px; }
.hiw-right h3 { font-size: 26px; font-weight: 700; line-height: 1.2; }
.hiw-right p { font-size: 14px; line-height: 1.6; color: var(--gray-text); }
.hiw-expect {
  background: var(--primary); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.hiw-expect h4 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.hiw-expect-row { display: flex; align-items: flex-start; gap: 14px; }
.hiw-expect-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.15); border-radius: 8px;
  color: var(--white); font-size: 18px;
}
.hiw-expect-title { display: block; font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.hiw-expect-text { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.5; }
.hiw-expect .btn { margin-top: 4px; }

/* ===========================================================
   7. PROF. DORON
   =========================================================== */
.prof { padding: 80px 0; }
.prof .shell { max-width: 1440px; }
.prof h2 { font-size: 40px; font-weight: 700; margin-bottom: 36px; }
.prof-bio { display: flex; gap: 40px; align-items: center; margin-bottom: 36px; }
.prof-img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.prof-bio p { font-size: 16px; line-height: 1.6; color: var(--gray-text); white-space: pre-line; }
.prof h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.prof-text { font-size: 16px; line-height: 1.7; color: var(--gray-text); max-width: 900px; margin-bottom: 32px; }

/* ===========================================================
   8. TESTIMONIALS
   =========================================================== */
.testimonials { padding: 80px 0; background: var(--light-bg); }
.test-card {
  display: flex; background: var(--white); border-radius: 20px; overflow: hidden;
}
.test-card-img {
  width: 400px; flex-shrink: 0; min-height: 340px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-color: var(--light-bg);
  border-radius: 20px 0 0 20px;
}
.test-card-body { padding: 32px; display: flex; flex-direction: column; gap: 24px; flex: 1; }
.test-quote { font-size: 24px; font-weight: 500; color: var(--dark-text); line-height: 1.4; }
.test-author { display: flex; align-items: center; gap: 12px; }
.test-author-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--light-bg); }
.test-author strong { display: block; font-size: 14px; font-weight: 600; color: var(--dark-text); }
.test-author span { font-size: 12px; color: var(--gray-text); }
.test-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.test-stars { display: flex; gap: 4px; color: #F5A623; font-size: 16px; }

/* ===========================================================
   9. FAQ
   =========================================================== */
.faq { padding: 80px 0; }
.faq-list { max-width: 1440px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color 200ms ease;
}
.faq-item[open] { border-color: transparent; }
.faq-item[open] .faq-q { background: var(--primary); color: var(--white); }
.faq-item[open] .faq-icon { transform: rotate(45deg); color: var(--white); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 28px; cursor: pointer; font-size: 16px; font-weight: 600;
  color: var(--dark-text); list-style: none;
  transition: background 200ms ease, color 200ms ease;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { background: var(--light-bg); }
.faq-item[open] .faq-q:hover { background: var(--primary); }
.faq-icon { font-size: 20px; transition: transform 200ms var(--ease), color 200ms ease; }
.faq-a {
  padding: 0 28px 20px; font-size: 14px; line-height: 1.6;
  color: rgba(255,255,255,0.8); background: var(--primary);
}

/* ===========================================================
   10. CTA BANNER
   =========================================================== */
.cta-banner {
  position: relative; height: 400px; overflow: hidden;
  background: #2c2c2c center/cover no-repeat;
}
.cta-banner-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.53); }
.cta-banner-inner {
  position: relative; z-index: 1;
  max-width: 1440px; margin: 0 auto; padding: 100px 80px;
  display: flex; flex-direction: column; gap: 24px;
}
.cta-banner h2 { max-width: 560px; }
.cta-banner p { max-width: 500px; }
.cta-banner h2 { font-size: 42px; font-weight: 700; color: var(--white); line-height: 1.15; }
.cta-banner p { font-size: 15px; color: rgba(255,255,255,0.8); line-height: 1.6; max-width: 500px; }

/* ===========================================================
   11. BLOG / RESOURCES
   =========================================================== */
section.blog { padding: 80px 0; }
.blog-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.blog-header-left h2 { font-size: 38px; font-weight: 700; line-height: 1.15; margin-top: 8px; }
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.blog-card {
  display: flex; background: var(--light-bg); border-radius: var(--radius);
  overflow: hidden; text-decoration: none;
  transition: transform 280ms var(--ease), box-shadow 280ms ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.06); }
.blog-card-img { width: 240px; flex-shrink: 0; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.blog-card-cat { font-size: 12px; font-weight: 600; color: var(--primary); text-transform: uppercase; }
.blog-card-body h3 { font-size: 16px; font-weight: 600; color: var(--dark-text); line-height: 1.4; }
.blog-card-date { font-size: 12px; color: var(--gray-text); margin-top: auto; }

/* ===========================================================
   12. FOOTER
   =========================================================== */
.site-footer { background: var(--primary); color: var(--white); }
.ftr-shell { max-width: 1440px; margin: 0 auto; padding: 60px 80px; }
.ftr-top { display: flex; justify-content: space-between; align-items: center; }
.ftr-top h2 { font-size: 32px; font-weight: 700; color: var(--white); line-height: 1.15; }
.ftr-subscribe { display: flex; }
.ftr-subscribe input {
  width: 260px; height: 48px; padding: 0 16px;
  background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 24px 0 0 24px; color: var(--white);
  font-family: var(--font); font-size: 14px; outline: none;
}
.ftr-subscribe input::placeholder { color: rgba(255,255,255,0.5); }
.ftr-subscribe button {
  height: 48px; padding: 0 24px; border: none;
  background: var(--accent); color: var(--dark-text);
  border-radius: 0 24px 24px 0; font-family: var(--font);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 200ms ease;
}
.ftr-subscribe button:hover { background: #45d4a8; }
.ftr-divider { height: 1px; background: rgba(255,255,255,0.13); margin: 40px 0; }
.ftr-links { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; }
.ftr-col { display: flex; flex-direction: column; gap: 10px; }
.ftr-col strong { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.ftr-col p { font-size: 12px; line-height: 1.5; color: rgba(255,255,255,0.73); }
.ftr-col a { font-size: 12px; color: rgba(255,255,255,0.73); transition: color 200ms ease; }
.ftr-col a:hover { color: var(--white); }
.ftr-bottom { display: flex; justify-content: space-between; align-items: center; }
.ftr-bottom span { font-size: 12px; color: rgba(255,255,255,0.53); }
.ftr-bottom a { color: rgba(255,255,255,0.53); }
.ftr-bottom a:hover { color: var(--white); }

/* ===========================================================
   RESPONSIVE - Tablet (<=1200px)
   =========================================================== */
@media (max-width: 1200px) {
  .shell { padding: 0 40px; }
  .hdr-shell { padding: 16px 40px; }
  .hero-inner { padding: 60px 40px 0; }
  .hero-trust { left: 40px; bottom: 32px; }
  .hero h1 { font-size: 40px; }
  .about-row { grid-template-columns: 1fr; }
  .about-img { min-height: 240px; }
  .tracks-header { flex-direction: column; gap: 16px; }
  .tracks-grid { grid-template-columns: repeat(2, 1fr); }
  .hiw-row { grid-template-columns: 1fr; }
  .hiw-img { min-height: 320px; }
  .prof-bio { flex-direction: column; text-align: center; }
  .prof-img { width: 140px; height: 140px; }
  .test-card { flex-direction: column; }
  .test-card-img { width: 100%; min-height: 240px; border-radius: 20px 20px 0 0; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-img { width: 200px; }
  .ftr-top { flex-direction: column; gap: 24px; align-items: flex-start; }
  .ftr-links { grid-template-columns: 1fr 1fr 1fr; }
  .cta-banner-inner { padding: 80px 40px; }
}

/* ===========================================================
   RESPONSIVE - Mobile (<=840px)
   =========================================================== */
@media (max-width: 840px) {
  .shell { padding: 0 20px; }
  .hdr-shell { padding: 12px 20px; flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .hdr-nav {
    display: none; flex-basis: 100%; order: 10;
    max-height: 0; overflow: hidden;
    transition: max-height 400ms var(--ease), opacity 300ms ease;
    opacity: 0;
  }
  .site-header.nav-open .hdr-nav {
    display: block; max-height: 400px; opacity: 1;
  }
  .hdr-nav .hdr-menu {
    flex-direction: column; gap: 0; padding: 8px 0 16px;
  }
  .hdr-nav .hdr-menu li a {
    display: flex; align-items: center; min-height: 48px;
    padding: 12px 0; font-size: 16px; font-weight: 600;
    border-bottom: 1px solid var(--border);
  }
  .hdr-nav .hdr-menu li:last-child a { border-bottom: none; }
  .hdr-cta { order: 5; }
  .hero { height: auto; min-height: 500px; }
  .hero-inner { padding: 48px 20px 80px; }
  .hero h1 { font-size: 32px; }
  .hero-btns { flex-direction: column; }
  .hero-trust { left: 20px; bottom: 20px; }
  .trust, .about, .tracks, .hiw, .prof, .testimonials, .faq, section.blog { padding: 48px 0; }
  .section-header h2 { font-size: 28px; }
  .trust-grid, .tracks-grid { grid-template-columns: 1fr; }
  .about-intro { font-size: 22px; }
  .about-stats { flex-direction: column; gap: 16px; }
  .blog-header { flex-direction: column; gap: 16px; align-items: flex-start; }
  .blog-header-left h2 { font-size: 28px; }
  .prof-img { width: 120px; height: 120px; }
  .prof h2 { font-size: 28px; }
  .prof h3 { font-size: 18px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card { flex-direction: column; }
  .blog-card-img { width: 100%; height: 180px; }
  .ftr-links { grid-template-columns: 1fr 1fr; }
  .ftr-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cta-banner { height: auto; }
  .cta-banner h2 { font-size: 28px; }
  .cta-banner-inner { padding: 48px 20px; }
}
