/* ============================================================
   Dr. Sogol NMD — Design Improvements
   ============================================================ */

/* --- CART: hidden site-wide --- */
.header-actions-action--cart,
.sqs-cart-quantity,
.cart-quantity-container,
[href="/cart"] { display: none !important; }

/* --- IMAGES: prevent collapsing fluid containers --- */
.fluid-image-container,
.sqs-image-content,
.js-image-container {
  min-height: 1px;
}
.fluid-image-component-root {
  width: 100%;
}
.fluid-image-component-root img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* --- NAV: hover underline --- */
.header-nav-item a {
  position: relative;
  transition: opacity 0.2s ease;
}
.header-nav-item a::after {
  content: "";
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}
.header-nav-item a:hover::after { width: 100%; }
.header-nav-item a:hover { opacity: 0.7; }

/* --- IMAGES: subtle hover zoom --- */
.sqs-block-image img, .intrinsic img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.sqs-block-image:hover img {
  transform: scale(1.015);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

/* --- FOOTER: polish --- */
#footer-sections { border-top: 1px solid rgba(54,48,42,0.12); }
#footer-sections h4 { letter-spacing: 0.05em; margin-bottom: 12px; }
#footer-sections p, #footer-sections a {
  font-size: 13px; line-height: 1.8; opacity: 0.75; transition: opacity 0.2s;
}
#footer-sections a:hover { opacity: 1; }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(54,48,42,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(54,48,42,0.5); }

/* ── DR-FORM: match exact original Squarespace styling ─────────────────────── */
.dr-form-section {
  padding: 80px 40px;
}

.dr-form label {
  display: block;
  font-family: "PT Serif", serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #36302a !important;
  margin-bottom: 8px;
}

.dr-form label span.req {
  font-family: "PT Serif", serif;
  font-size: 13px;
  color: #36302a;
  opacity: 0.6;
  font-weight: 400;
}

.dr-form input[type="text"],
.dr-form input[type="email"],
.dr-form textarea {
  width: 100%;
  padding: 12px 18px !important;
  border: 1px solid #36302a !important;
  border-radius: 24px !important;
  background: transparent !important;
  font-family: "PT Serif", serif !important;
  font-size: 15px !important;
  color: #36302a !important;
  box-sizing: border-box;
  outline: none;
  transition: box-shadow 0.2s ease;
}

.dr-form textarea {
  border-radius: 16px !important;
  resize: vertical;
}

.dr-form input:focus,
.dr-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(54,48,42,0.1);
}

.dr-form button[type="submit"] {
  background-color: #36302a !important;
  color: #f6f3ec !important;
  border: none;
  border-radius: 300px !important;
  padding: 19px 32px !important;
  font-family: "PT Serif", serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.dr-form button[type="submit"]:hover {
  background-color: #4a433c !important;
  transform: translateY(-1px);
}

/* Section heading inside dr-form section */
.dr-form-section h2 {
  font-family: "Marcellus", serif;
  font-weight: 400;
  color: #36302a;
}

.dr-form-section p {
  font-family: "PT Serif", serif;
  color: #36302a;
}

.dr-form-section a {
  color: #36302a;
  font-family: "PT Serif", serif;
}

/* ── PRESS BAR: As Seen In ──────────────────────────────────────────────── */
.press-bar-section {
  background: #f6f3ec;
  padding: 36px 24px;
  text-align: center;
  border-top: 1px solid rgba(54,48,42,0.08);
  border-bottom: 1px solid rgba(54,48,42,0.08);
}

.press-bar-label {
  font-family: "PT Serif", serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7a6e64;
  margin: 0 0 20px;
}

.press-bar-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 28px;
}

.press-logo {
  font-size: 18px;
  letter-spacing: 0.06em;
  color: rgba(54,48,42,0.55);
  font-weight: 600;
  transition: color 0.2s ease;
}

.press-logo--forbes       { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; }
.press-logo--elle         { font-family: Georgia, "Times New Roman", serif; font-style: italic; letter-spacing: 0.15em; }
.press-logo--time         { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: 0.05em; }
.press-logo--nypost       { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.press-logo--foxnews      { font-family: Arial, Helvetica, sans-serif; font-size: 15px; letter-spacing: 0.1em; }
.press-logo--cnbc         { font-family: Arial, Helvetica, sans-serif; font-size: 15px; letter-spacing: 0.08em; }
.press-logo--nbc          { font-family: Arial, Helvetica, sans-serif; font-size: 15px; letter-spacing: 0.12em; font-weight: 700; }
.press-logo--everydayhealth { font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
.press-logo--newsnation   { font-family: Arial, Helvetica, sans-serif; font-size: 14px; letter-spacing: 0.05em; }
.press-logo--drphil       { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 15px; }
.press-logo--wsj        { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: 0.05em; }

.press-logo:hover { color: #36302a; }

.press-divider {
  color: rgba(54,48,42,0.25);
  font-size: 20px;
  line-height: 1;
}

/* ── HERO SECTION: mobile full-screen fix ───────────────────────────────── */
@media (max-width: 767px) {
  /* Make hero fill the screen */
  [data-section-id="694898e137541d5c10e979af"] {
    min-height: 100svh !important;
    position: relative !important;
  }

  [data-section-id="694898e137541d5c10e979af"] .content-wrapper,
  [data-section-id="694898e137541d5c10e979af"] .content {
    min-height: 100svh !important;
    position: relative !important;
  }

  /* Stretch hero image to fill entire section */
  [data-section-id="694898e137541d5c10e979af"] .fe-block-7086b83a1999ba1086df {
    position: absolute !important;
    inset: 0 !important;
    grid-area: unset !important;
    z-index: 0 !important;
  }

  [data-section-id="694898e137541d5c10e979af"] .fe-block-7086b83a1999ba1086df .fluid-image-component-root,
  [data-section-id="694898e137541d5c10e979af"] .fe-block-7086b83a1999ba1086df .fluid-image-animation-wrapper,
  [data-section-id="694898e137541d5c10e979af"] .fe-block-7086b83a1999ba1086df .fluid-image-container,
  [data-section-id="694898e137541d5c10e979af"] .fe-block-7086b83a1999ba1086df .sqs-block-content {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  [data-section-id="694898e137541d5c10e979af"] .fe-block-7086b83a1999ba1086df img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  /* Bring text to front, center it vertically */
  [data-section-id="694898e137541d5c10e979af"] .fe-block-734dece8a766e4641140 {
    position: absolute !important;
    bottom: 10% !important;
    left: 0 !important;
    right: 0 !important;
    grid-area: unset !important;
    z-index: 2 !important;
    text-align: center !important;
    padding: 0 24px !important;
  }

  [data-section-id="694898e137541d5c10e979af"] .fe-block-734dece8a766e4641140 h1,
  [data-section-id="694898e137541d5c10e979af"] .fe-block-734dece8a766e4641140 span {
    text-align: center !important;
    font-size: clamp(2rem, 9vw, 3.5rem) !important;
    line-height: 1.15 !important;
  }

  /* Hero fluid engine grid: let it be the positioning context */
  [data-section-id="694898e137541d5c10e979af"] .fluid-engine {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
  }
}

/* ── MOBILE OPTIMIZATIONS ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Form section: stack columns */
  .dr-form-section .dr-form-inner {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Form section padding */
  .dr-form-section {
    padding: 60px 24px !important;
  }

  /* Press bar — wrap and center on mobile */
  .press-bar-section {
    padding: 28px 20px;
    text-align: center;
  }
  .press-bar-label {
    text-align: center;
  }
  .press-bar-logos {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
  }
  .press-logo {
    font-size: 14px;
  }

  /* Global section padding and centering */
  .page-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
    text-align: center !important;
  }

  /* Center all text content inside sections */
  .page-section p,
  .page-section h1,
  .page-section h2,
  .page-section h3,
  .page-section h4,
  .page-section li,
  .sqs-html-content,
  .sqs-block-content {
    text-align: center !important;
  }

  /* Hero heading size */
  .page-section h1 {
    font-size: clamp(1.8rem, 8vw, 3rem) !important;
    line-height: 1.2 !important;
  }

  /* Center form section text */
  .dr-form-section {
    text-align: center !important;
    padding: 60px 24px !important;
  }

  /* Keep form inputs and labels left-aligned for usability */
  .dr-form label,
  .dr-form input,
  .dr-form textarea {
    text-align: left !important;
  }

  /* Center form submit button */
  .dr-form button[type="submit"] {
    display: block;
    margin: 0 auto;
  }

  /* Prevent horizontal overflow */
  body, main {
    overflow-x: hidden;
  }

  /* Nav logo/title sizing */
  .header-title-nav-wrapper {
    padding: 0 16px !important;
  }

  /* Fluid image blocks on mobile */
  .sqs-block-image img {
    width: 100% !important;
    height: auto !important;
  }
}
