/* Destiny Health Sentinel: small fixes layered on top of assets/css/style.css.
   Loaded after style.css on every page. */

/* Header: keep the logo and the menu button off the screen edges.
   (.nav sets "padding: 14px 0", which cancels the side padding .container gives it.) */
.site-header .nav { padding-left: 24px; padding-right: 24px; }

/* Tablets and narrow windows: switch to the menu button before the links start wrapping (7 links since Oct 20) */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px 28px;
    box-shadow: var(--shadow);
    gap: 18px;
    border-top: 1px solid var(--border);
  }
}

/* Phones: slightly smaller logo and name so the header fits with side padding */
@media (max-width: 760px) {
  .site-header .nav { padding-left: 16px; padding-right: 16px; }
  .brand { gap: 10px; }
  .brand img { height: 44px; }
  .brand-text strong { font-size: 1.08rem; }
  .brand-text span { font-size: 0.55rem; letter-spacing: 0.12em; }
  .nav-cta { gap: 6px; }
}
@media (max-width: 350px) {
  .brand-text span { display: none; }
}

/* Book a Call: keep each tick beside its text when a line wraps on small screens */
@media (max-width: 820px) {
  .book-points li { text-align: left; }
}

/* Privacy promise: strip above the footer on every page */
.privacy-promise { background: #eef3fd; border-top: 1px solid #d9e4f8; }
.privacy-promise .container { display: flex; align-items: center; gap: 18px; padding-top: 22px; padding-bottom: 22px; }
.privacy-promise-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.privacy-promise-icon svg { width: 22px; height: 22px; }
.privacy-promise-text { flex: 1; font-size: 0.95rem; line-height: 1.55; color: var(--text-body); }
.privacy-promise-text strong { display: block; color: var(--text-dark); font-size: 1.02rem; margin-bottom: 2px; }
.privacy-promise-link { font-weight: 600; font-size: 0.92rem; color: var(--blue); white-space: nowrap; }
.privacy-promise-link:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .privacy-promise .container { flex-wrap: wrap; align-items: flex-start; gap: 12px 14px; }
  .privacy-promise-text { flex-basis: calc(100% - 60px); }
  .privacy-promise-link { margin-left: 58px; }
}

/* Top bar privacy note */
.topbar-privacy { color: var(--white); font-weight: 600; }

/* Quote form: privacy note above the first field */
.form-privacy { display: flex; gap: 12px; align-items: flex-start; background: #eef3fd; border: 1px solid #d9e4f8; border-radius: 10px; padding: 12px 14px; margin-bottom: 22px; font-size: 0.9rem; line-height: 1.5; color: var(--text-body); }
.form-privacy strong { color: var(--text-dark); }
.form-privacy-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.form-privacy-icon svg { width: 16px; height: 16px; }

/* Quote page: stop the form running off the right edge on phones (long dropdown options were widening the column) */
.contact-grid > *, .contact-card, .form-card { min-width: 0; max-width: 100%; }
.form-group, .form-row > * { min-width: 0; }
.form-group select, .form-group input, .form-group textarea { max-width: 100%; min-width: 0; width: 100%; }
@media (max-width: 980px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Social links (footer + About page) */
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.social-links svg { width: 18px; height: 18px; flex-shrink: 0; }
.social-links--footer { margin-top: 6px; }
.social-links--footer a { width: 38px; height: 38px; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--white); transition: background .2s ease; }
.social-links--footer a:hover { background: var(--blue); }
.social-links--footer span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.social-links--big a { padding: 10px 18px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-dark); font-weight: 600; font-size: 0.92rem; background: var(--white); transition: border-color .2s ease, color .2s ease; }
.social-links--big a:hover { border-color: var(--blue); color: var(--blue); }
.social-links--big svg { color: var(--blue); }

/* Desktop menu: 7 links on one line */
@media (min-width: 1181px) {
  .nav-links { gap: 24px; }
  .nav-links a { white-space: nowrap; }
}
