/* ==========================================================================
   PHASE 2 — TYPOGRAPHY & MOBILE READABILITY  |  drmonamubarak.com
   Date: 2026-12-03  |  File: wp-content/themes/jupiter-child/phase2-typography.css
   Loaded via @import from jupiter-child/style.css (line 2, right after the
   Manrope @import on line 1). The block was MEANT for Theme Options >
   Advanced > Custom CSS, but that field is a CodeMirror editor the browser
   cannot paste into, so the identical rules live in this file instead.
   Same rules, same effect. Rollback: remove the @import line from
   style.css, or delete this file. No `img` selector below.
   Site palette: navy #0f4b89 / #0A1F44, pink #f9a8d4, gold #C9A227, white.
   Font: Manrope (loaded via @import in style.css, line 1).
   PRIORITY: mobile readability first. Body text is 18-19px at EVERY width.
   ========================================================================== */

/* ---- A. Design tokens ---- */
:root {
  --dm-navy: #0f4b89;
  --dm-navy-deep: #0A1F44;
  --dm-pink: #f9a8d4;
  --dm-gold: #C9A227;
  --dm-text: #2e2e2e;
  --dm-text-soft: #4a4a4a;
  --dm-muted: #595959;
  --dm-bg-soft: #eef4fb;
  --dm-border: rgba(15, 75, 137, 0.14);
  --dm-font: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
}

/* ---- B. Base text — 18-19px at EVERY width, never smaller on mobile ---- */
/* Replaces: body 14px + p line-height 18px (1.29) + grey #777 body text. */
body {
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(18px, 1vw + 0.625rem, 19px);
  line-height: 1.7;
  color: #2e2e2e;
}
p {
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(18px, 1vw + 0.625rem, 19px);
  line-height: 1.7;
  color: #2e2e2e;
  max-width: 75ch; /* readable line length; does not centre text */
}
.wpb_text_column li,
.single-post li {
  line-height: 1.7;
}
/* Small / supporting text: absolute minimum 15px, never below. */
small, .small, .wp-caption-text,
.mk-blog-meta, .post-meta, .single-post-tags {
  font-size: 15px;
  line-height: 1.6;
}

/* ---- C. Headings — Manrope, clear size steps at every width ---- */
/* font-family uses !important ONLY here, to beat the child theme's
   `h1-h4 { font-family:'SignikaRegular' !important }`. Sizes carry no
   !important, so WPBakery inline sizes (e.g. 44px "Recognised by") keep working. */
h1, h2, h3, h4, h5, h6,
.mk-fancy-title,
.page-title {
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif !important;
  color: #0f4b89;
}
h1, .page-title {
  font-size: clamp(32px, 4vw + 1rem, 52px);
  line-height: 1.2;
  font-weight: 800;
}
h2 {
  font-size: clamp(27px, 2.5vw + 1rem, 38px);
  line-height: 1.25;
  font-weight: 700;
}
h3 {
  font-size: clamp(22px, 1.5vw + 1rem, 28px);
  line-height: 1.3;
  font-weight: 700;
}
h4 {
  font-size: clamp(20px, 1vw + 0.75rem, 24px);
  line-height: 1.3;
  font-weight: 600;
}
h5 { font-size: 18px; line-height: 1.4; font-weight: 600; }
h6 { font-size: 16px; line-height: 1.5; font-weight: 600; }
/* Stop the sticky header covering headings on anchor jumps. */
h1, h2, h3, h4 { scroll-margin-top: 110px; }

/* ---- D. Page title, subtitle, breadcrumb (contrast fixes) ---- */
/* Page title was 20px uppercase, letter-spacing 2px, #4d4d4d; the article
   title bar rendered at 18px caps — smaller than its own H2 (26px). */
.page-title {
  letter-spacing: 0;
  text-transform: none; /* display casing only; the title text itself is unchanged */
}
/* Subtitle was 14px #a3a3a3 = 2.52:1 (fails WCAG). #595959 on white is ~7:1. */
.page-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: #595959;
}
/* Breadcrumb was white on very light grey (~13-14px), nearly invisible. */
#mk-breadcrumbs { font-size: 15px; line-height: 1.6; }
#mk-breadcrumbs .mk-breadcrumbs-inner,
#mk-breadcrumbs .breadcrumb_last { color: #4a4a4a; }
#mk-breadcrumbs a { color: #0f4b89; }

/* ---- E. Header, navigation, toolbar, top bar ---- */
/* Nav links were 13px bold. Same selector as the theme rule, later in the
   cascade, so this wins without !important. 44px hit area via min-height. */
.main-navigation-ul > li.menu-item > a {
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}
.main-navigation-ul ul.sub-menu a,
.main-navigation-ul .sub-menu li.menu-item > a {
  font-size: 16px;
  line-height: 1.5;
  padding: 12px 16px;
  min-height: 44px;
}
/* "Book Appointment" header CTA — menu item gets class `menu-cta-button`
   in Appearance > Menus (see §6). */
.main-navigation-ul > li.menu-cta-button > a {
  background: #0f4b89;
  color: #ffffff !important;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 700;
}
.main-navigation-ul > li.menu-cta-button > a:hover,
.main-navigation-ul > li.menu-cta-button > a:focus {
  background: #0A1F44;
  color: #ffffff !important;
}
/* Pink top bar + toolbar (was ~15px white-on-pink). */
.mk-header-toolbar,
.mk-header-toolbar a,
.header-toolbar-contact {
  font-size: 16px;
  line-height: 1.6;
}
.mk-header-social a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Mobile (hamburger) menu panel — verified classes. */
.mk-responsive-nav a,
.mk-nav-responsive-link {
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  min-height: 44px;
}

/* ---- F. Buttons & links ---- */
/* Buttons were 10px (small) — the brief requires 16-18px. */
.mk-button,
a.mk-button,
button,
input[type="submit"],
.pain-btn {
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.mk-button--size-small {
  font-size: 16px;
  padding: 12px 20px;
  min-height: 44px;
}
.mk-button--size-medium,
.mk-button--size-large,
.pain-btn,
input[type="submit"] { min-height: 48px; }
/* NOTE: `.pain-btn` also carries an inline `font-size:22px !important` rule
   elsewhere, so it stays 22px — already above the 16px minimum. Only its
   font-family changes here, which is the intent. */
/* Content links: navy on white (8.79:1, AAA). Scoped to content so footer /
   navy-section links (white) are not affected. */
.wpb_text_column a,
.single-post .mk-blog-single a { color: #0f4b89; }
.wpb_text_column a:hover, .wpb_text_column a:focus,
.single-post .mk-blog-single a:hover,
.single-post .mk-blog-single a:focus { color: #0A1F44; }

/* ---- G. Footer — 16px throughout ---- */
/* Footer text was 14px; widget titles 14px pink; copyright 14px. */
#mk-footer, #mk-footer p, #mk-footer li, #mk-footer a {
  font-size: 16px;
  line-height: 1.7;
}
#mk-footer .widgettitle {
  font-size: 18px;
  font-weight: 700;
  color: #f9a8d4;
}
.mk-footer-copyright { font-size: 16px; line-height: 1.6; }
#mk-footer .widget_social_networks a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Do NOT touch the footer show-rules above this block — they are the only
   reason the footer is visible (child theme hides #mk-footer). */

/* ---- H. Forms — 16px minimum (also stops iOS auto-zoom on focus) ---- */
/* Fields rendered as solid blue rectangles with no visible placeholder
   and 13px grey labels. White background + visible border + dark text. */
.wpcf7-form label,
#commentform label {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
  color: #2e2e2e;
  display: block;
  margin-bottom: 8px;
}
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-tel,
.wpcf7-form-control.wpcf7-textarea,
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #2e2e2e;
  background: #ffffff;
  border: 1px solid rgba(15, 75, 137, 0.35);
  border-radius: 8px;
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
  box-sizing: border-box;
}
.wpcf7-form-control.wpcf7-textarea,
#commentform textarea { min-height: 140px; }
.wpcf7-form-control::placeholder,
#commentform input::placeholder,
#commentform textarea::placeholder { color: #595959; opacity: 1; }
.wpcf7-submit {
  font-size: 17px;
  font-weight: 700;
  min-height: 48px;
  padding: 12px 32px;
}

/* ---- I. Blog, testimonials, banner-card text ---- */
.mk-blog-magazine-item .the-title {
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif !important;
}
.mk-testimonial-content p { font-size: 18px; line-height: 1.7; }
.banner-title .ult-new-ib-content {
  font-size: 16px !important;
  line-height: 1.6;
}

/* ---- J. Mobile — grid padding + word wrapping (clamp() already sizes text) ---- */
@media (max-width: 767px) {
  .mk-grid { padding-left: 20px; padding-right: 20px; }
  h1, h2, h3, h4 { overflow-wrap: break-word; }
}

/* ---- K. Reduced motion — gate animation for users who ask for it ---- */
/* If the sliders' crossfade freezes after applying this, narrow this block
   to the image-presentation selectors only and re-test (see §10). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- L. Selection + skin-accent rationalisation ---- */
/* Text selection in navy (was the coral #f97352 skin accent). Any remaining
   coral #f97352 elements (buttons/icons) are a verification item in §10 —
   override them per-element there, do not force button backgrounds here. */
::selection { background: #0f4b89; color: #ffffff; }

/* ---- H2. Form fields - force white (theme rule beats section H without !important) ---- */
.wpcf7-form .wpcf7-form-control.wpcf7-text,
.wpcf7-form .wpcf7-form-control.wpcf7-email,
.wpcf7-form .wpcf7-form-control.wpcf7-tel,
.wpcf7-form .wpcf7-form-control.wpcf7-textarea,
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
  background: #ffffff !important;
    border: 1px solid rgba(15, 75, 137, 0.35) !important;
      color: #2e2e2e !important;
      }
      .wpcf7-form .wpcf7-form-control-wrap { background: transparent !important; border: 0 !important; }
      .wpcf7-form label,
      #commentform label { color: #2e2e2e !important; }
      .wpcf7-form-control::placeholder,
      #commentform input::placeholder,
      #commentform textarea::placeholder { color: #595959 !important; opacity: 1; }
/* ---- M. Mobile text fix pass — 2026-12-04 ---- */
/* Root cause found 2026-12-04: this file was never loaded — style.css had
   no @import of it, and "Minify Theme Styles Files" was ON. These selectors
   outrank the theme's own body/p rules by specificity, so they win once
   the file is actually loaded. No !important here: the theme body/p rules
   do not use !important. */

html body,
html body #mk-page-content,
html body .wpb_text_column,
html body .single-post .mk-blog-single,
html body #mk-page-content .wpb_text_column {
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(18px, 1vw + 0.625rem, 19px);
  line-height: 1.7;
  color: #2e2e2e;
}

html body #mk-page-content p,
html body .wpb_text_column p,
html body .single-post .mk-blog-single p,
html body .mk-blog-single p,
html body #mk-page-content .wpb_text_column p,
html body .mk-text-block p {
  font-size: clamp(18px, 1vw + 0.625rem, 19px);
  line-height: 1.7;
  color: #2e2e2e;
}

/* ---- M1. Form fields — beat the theme's blue !important rule ---- */
/* style.css sets `.contact_form1 .wpcf7-form input[type="text"]...`
   { background:#2067b1 !important } at specificity (0,3,1). These
   selectors are (0,4,0) / (0,4,1), so they win with !important. */
.contact_form1 .wpcf7-form .wpcf7-form-control.wpcf7-text,
.contact_form1 .wpcf7-form .wpcf7-form-control.wpcf7-email,
.contact_form1 .wpcf7-form .wpcf7-form-control.wpcf7-tel,
.contact_form1 .wpcf7-form .wpcf7-form-control.wpcf7-textarea,
.contact_form1 .wpcf7-form input[type="text"],
.contact_form1 .wpcf7-form input[type="email"],
.contact_form1 .wpcf7-form input[type="tel"],
.contact_form1 .wpcf7-form textarea {
  background: #ffffff !important;
  border: 1px solid rgba(15, 75, 137, 0.35) !important;
  color: #2e2e2e !important;
}
.contact_form1 .wpcf7-form input::placeholder,
.contact_form1 .wpcf7-form textarea::placeholder { color: #595959 !important; opacity: 1; }

/* ---- M2. Dot decoration — never overlap banner bottoms/headings ---- */
/* style.css .dot-img sat at right:-30px; bottom:-30px, spilling 30px below
   its section onto banner bottoms. Keep it inside, and never wider than
   its container. */
.dot-img {
  max-width: 100%;
  width: min(400px, 100%);
  right: 0;
  bottom: 0;
  box-sizing: border-box;
}

/* ---- M3. Mobile (max-width: 768px) — title bar, header, WhatsApp ---- */
@media (max-width: 768px) {
  /* Article title-bar H1: ~30px (was ~17px caps), breadcrumb dark on the
     light-grey bar (was near-invisible). */
  #mk-page-title .page-title,
  #mk-page-title h1.page-title,
  h1.page-title,
  .page-title {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
  }
  #mk-breadcrumbs,
  #mk-breadcrumbs .mk-breadcrumbs-inner,
  #mk-breadcrumbs .breadcrumb_last { color: #4a4a4a; font-size: 15px; }
  #mk-breadcrumbs a { color: #0f4b89; }

  /* Dot decoration: smaller on mobile, stays inside its section. */
  .dot-img { width: 220px; height: 110px; border-radius: 60px 0 0 60px; }

  /* Sticky header: slimmer on mobile so it eats less screen. */
  .mk-header .header-logo img { max-height: 52px; width: auto; }
  .mk-header .mk-grid { padding-top: 6px; padding-bottom: 6px; }
  .mk-header-toolbar { padding-top: 4px; padding-bottom: 4px; }

  /* Floating WhatsApp (Chaty) button: smaller, clear of CTA buttons.
     Chaty sizes its button inline, so !important is needed here. */
  .chaty-widget .chaty-i,
  .chaty .chaty-widget-i,
  .chaty-widget-i { width: 48px !important; height: 48px !important; }
  .chaty-widget { bottom: 16px !important; right: 16px !important; }
}
/* ---- M2b. Dot decoration — cancel the -32px pull-up (live rule) ---- */
/* The live style.css rule is `.dot-img { margin-top: -32px !important; ... }`.
   phase2 is @imported at the TOP of style.css, so an equal-specificity rule
   here would lose to it. `html body .dot-img` (0,1,2) outranks `.dot-img`
   (0,1,0), so the -32px pull-up onto banner bottoms is cancelled. */
html body .dot-img { margin-top: 0 !important; }

/* ---- M1b. Form fields - .contact_form2 + any CF7 form (2026-12-04) ---- */
/* Diagnosis: /contact-us/ fields render #2067b1 blue while the homepage form
   (inside .contact_form1) is white. style.css sets the SAME blue rule for
   both .contact_form1 and .contact_form2; M1 only covered .contact_form1.
   The (0,4,0)/(0,4,1) selectors below cover .contact_form2, and the
   `html body .wpcf7-form .wpcf7-form-control...` selectors (0,3,2) beat any
   (0,3,1) blue rule on any CF7 form, whatever its wrapper. */
.contact_form2 .wpcf7-form .wpcf7-form-control.wpcf7-text,
.contact_form2 .wpcf7-form .wpcf7-form-control.wpcf7-email,
.contact_form2 .wpcf7-form .wpcf7-form-control.wpcf7-tel,
.contact_form2 .wpcf7-form .wpcf7-form-control.wpcf7-textarea,
.contact_form2 .wpcf7-form input[type="text"],
.contact_form2 .wpcf7-form input[type="email"],
.contact_form2 .wpcf7-form input[type="tel"],
.contact_form2 .wpcf7-form textarea,
html body .wpcf7-form .wpcf7-form-control.wpcf7-text,
html body .wpcf7-form .wpcf7-form-control.wpcf7-email,
html body .wpcf7-form .wpcf7-form-control.wpcf7-tel,
html body .wpcf7-form .wpcf7-form-control.wpcf7-textarea {
  background: #ffffff !important;
  border: 1px solid rgba(15, 75, 137, 0.35) !important;
  color: #2e2e2e !important;
}
.contact_form2 .wpcf7-form input::placeholder,
.contact_form2 .wpcf7-form textarea::placeholder { color: #595959 !important; opacity: 1; }

/* ---- M2c. .dot-img is shared by the Welcome text column and the dot image inside it (2026-12-04) ---- */
/* M2/M3 sized plain `.dot-img`, which also shrank the Welcome 7/12 text
   column (it carries the same class) to 220x110px on mobile/tablet, so its
   H1 + paragraph overflowed onto the blue Treatments row below. Restore
   the column to its WPBakery grid width and natural height; the size
   rules stay on the dot IMAGE wrapper only. */
.welcome-area .vc_column_container.dot-img { height: auto !important; }
@media (min-width: 961px) {
  .welcome-area .vc_column_container.dot-img { width: 58.33333333% !important; }
}
@media (max-width: 960px) {
  .welcome-area .vc_column_container.dot-img { width: 100% !important; }
}
.wpb_single_image.dot-img img { max-width: 100%; height: auto; }

/* ---- M2d. Column reset, robust version (2026-12-04) ---- */
/* M2c scoped the reset to `.welcome-area .vc_column_container.dot-img`,
   but the column stayed constrained, so that selector does not match
   the rendered markup. Reset by the grid class instead: any `.dot-img`
   that is a WPBakery grid column (its class contains `vc_col-`) gets
   its grid width back and a natural height. The dot IMAGE wrapper has
   no `vc_col-` class, so it keeps the M2/M3 sizing. */
.dot-img[class*="vc_col-"] { height: auto !important; }
@media (min-width: 961px) {
  .dot-img[class*="vc_col-"] { width: 58.33333333% !important; }
}
@media (max-width: 960px) {
  .dot-img[class*="vc_col-"] { width: 100% !important; }
}