/* Thrive Health and Wellbeing — theme stylesheet (source).
   Built from the HTML mockup. Deployed as a content-hashed copy
   (assets/css/thrive-<hash>.css) because the host caches static files by name.
   Page sections are Elementor containers; their layout comes from the th-*
   CSS classes set on each container (Advanced > CSS Classes). */
/* Self-hosted fonts (SIL Open Font Licence), latin subset. No requests go to Google.
   Enriqueta 500/600 + Montserrat variable (400-600). */
@font-face { font-family: 'Enriqueta'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/enriqueta-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Enriqueta'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/enriqueta-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('../fonts/montserrat-var-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --sky: #52a9f6;
  --sky-dark: #418fd5;
  --navy: #1e4b7c;
  --ink: #1e2357;
  --cornflower: #2655a6;
  --blush: #fcd2d6;
  --blush-tint: #fdf0f2;
  --pink: #f6aac3;
  --text: #2b3445;
  --muted: #5a6475;
  --line: #d9dee7;
  --white: #fff;
  --serif: "Enriqueta", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 16px/1.75 var(--sans);
}
img { max-width: 100%; height: auto; }
a { color: var(--cornflower); }
a:hover, a:focus { color: var(--navy); }

h1, h2, h3,
body .elementor-widget-heading .elementor-heading-title {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.25;
  margin: 0;
}
body .elementor-widget-heading h1.elementor-heading-title { font-size: 2.3rem; }
body .elementor-widget-heading h2.elementor-heading-title { font-size: 1.9rem; }
body .elementor-widget-heading h3.elementor-heading-title { font-size: 1.3rem; }
.elementor-widget-text-editor p { margin: 0 0 1.1em; }
.elementor-widget-text-editor > :last-child,
.elementor-widget-text-editor .elementor-widget-container > :last-child,
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor-widget-text-editor a { text-decoration: underline; }

.th-wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* ---------- Header ---------- */
.th-header { background: var(--sky); }
.th-header .th-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 14px; padding-bottom: 14px; position: relative;
}
.th-logo img, .th-logo .custom-logo { width: 260px; height: auto; display: block; }
.th-header-contact { text-align: right; color: var(--navy); line-height: 1.3; }
.th-header-contact .th-label { font-size: .9rem; display: block; }
.th-header-contact a.th-email {
  display: block; font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere;
  color: var(--navy); text-decoration: none;
}

.th-menubar { background: var(--navy); }
.th-menubar .th-wrap { display: flex; align-items: center; justify-content: space-between; }
.th-menu { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.th-menu a {
  display: block; padding: 14px 20px; color: var(--white);
  text-decoration: none; font-weight: 600;
}
.th-menu a:hover, .th-menu a:focus,
.th-menu .current-menu-item > a { background: var(--cornflower); color: var(--white); }
.th-menu li:first-child > a { padding-left: 0; }
.th-menu li:first-child > a:hover, .th-menu li:first-child > a:focus,
.th-menu li.current-menu-item:first-child > a { padding-left: 20px; }

/* ---------- Buttons (theme links + Elementor Button widget) ---------- */
a.th-btn,
body .elementor-widget-button .elementor-button,
.th-form button[type=submit] {
  display: inline-block; padding: 11px 24px;
  background: var(--navy); color: var(--white);
  border: 2px solid var(--navy); border-radius: 3px;
  font: 600 1rem/1.4 var(--sans); text-decoration: none; cursor: pointer;
}
a.th-btn:hover, a.th-btn:focus,
body .elementor-widget-button .elementor-button:hover,
body .elementor-widget-button .elementor-button:focus,
.th-form button[type=submit]:hover, .th-form button[type=submit]:focus {
  background: var(--cornflower); border-color: var(--cornflower); color: var(--white);
}
a.th-btn-pink, body .th-btn-pink .elementor-button { background: var(--pink); border-color: var(--pink); color: var(--ink); }
a.th-btn-pink:hover, a.th-btn-pink:focus,
body .th-btn-pink .elementor-button:hover { background: var(--blush); border-color: var(--blush); color: var(--ink); }

/* ---------- Elementor sections ----------
   Every top-level container carries th-section (or th-banner). */
.e-con.th-section, .e-con.th-banner {
  --padding-top: 64px; --padding-bottom: 64px; --padding-left: 20px; --padding-right: 20px;
  --content-width: 1100px;
  --row-gap: 18px; --column-gap: 48px; --gap: 18px 48px;
}
.e-con.th-tint { background: var(--blush-tint); border-top: 1px solid var(--blush); border-bottom: 1px solid var(--blush); }
.e-con.th-sky { background: #eaf4fe; border-top: 1px solid #cfe5fb; border-bottom: 1px solid #cfe5fb; }
.e-con.th-page-title { background: var(--blush-tint); border-bottom: 1px solid var(--blush); --padding-top: 34px; --padding-bottom: 30px; }

/* Banner: background image is set in Elementor (Style > Background) */
.e-con.th-banner {
  --min-height: 360px; min-height: 360px;
  --padding-top: 36px; --padding-bottom: 36px;
  --justify-content: flex-end; --align-items: flex-start;
}
.e-con.th-banner > .e-con-inner { flex-grow: 1; justify-content: flex-end; align-items: flex-start; }
.e-con.th-banner-box {
  --width: 480px; width: min(480px, 100%); box-sizing: border-box; --row-gap: 6px; --gap: 6px;
  --padding-top: 24px; --padding-bottom: 24px; --padding-left: 28px; --padding-right: 28px;
  background: rgba(255,255,255,.93);
  border-left: 5px solid var(--sky);
}
body .th-banner-box .elementor-heading-title { font-size: 2rem !important; }
.th-banner-box .elementor-widget-text-editor { color: var(--muted); }

/* Two-column rows */
.e-con.th-intro > .e-con-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.e-con.th-content > .e-con-inner { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.e-con.th-col, .e-con.th-sidebar {
  --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px;
  --row-gap: 18px; --gap: 18px;
}
.e-con.th-sidebar { --row-gap: 24px; --gap: 24px; }

/* Boxed panels (sidebar + "I can help with") */
.e-con.th-box {
  --padding-top: 0px; --padding-bottom: 18px; --padding-left: 0px; --padding-right: 0px;
  --row-gap: 0px; --gap: 0px;
  border: 1px solid var(--line); background: var(--white);
}
body .th-box .th-box-title .elementor-heading-title,
body .th-box > .elementor-widget-heading:first-child .elementor-heading-title {
  background: var(--navy); color: var(--white); font-size: 1.1rem; padding: 12px 18px;
}
.th-box > .elementor-widget:not(:first-child) { padding: 18px 18px 0; }
.th-box ul { margin: 0; padding-left: 20px; }
.th-box ul li { margin-bottom: .4em; }

/* Services */
.e-con.th-services {
  display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 28px;
  --padding-top: 10px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px;
}
.e-con.th-service {
  --padding-top: 24px; --padding-bottom: 20px; --padding-left: 24px; --padding-right: 24px;
  --row-gap: 12px; --gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--sky);
}
.th-service .elementor-widget-text-editor { color: var(--muted); }
.th-service .elementor-widget-text-editor a { font-weight: 600; }

/* Consultation band */
.e-con.th-consult > .e-con-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 30px; }
.e-con.th-consult .th-col { max-width: 680px; }

/* Quote */
.th-quote p, p.th-quote {
  font-family: var(--serif); font-size: 1.6rem; line-height: 1.4; color: var(--navy);
  text-align: center; margin: 0 auto; max-width: 760px;
}

.th-quote p.th-cite {
  font-family: var(--sans); font-size: .95rem; color: var(--muted); margin-top: .5em;
}
.elementor-widget.th-quote-inline { margin-top: 14px; padding-top: 26px; border-top: 1px solid var(--blush); }
.th-quote-inline p:not(.th-cite) { font-size: 1.4rem; }

/* Single service card */
.e-con.th-service-wide { max-width: 760px; --row-gap: 18px; --gap: 18px; }
.th-service-wide .elementor-widget-text-editor p { font-size: 1.05rem; }
.th-service-wide table.th-details th { width: 42%; }

ul.th-ticks { list-style: none; margin: 0; padding: 0; }
ul.th-ticks li { position: relative; padding-left: 28px; margin-bottom: .55em; color: var(--text); }
ul.th-ticks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px;
  border-left: 3px solid var(--sky); border-bottom: 3px solid var(--sky); transform: rotate(-45deg);
}
ul.th-cell-list { margin: 0; padding-left: 18px; }
ul.th-cell-list li { margin-bottom: .25em; }
.th-form .th-note-above { margin: -2px 0 8px; }

/* Legal pages (Privacy Notice): one readable column, left-aligned even on phones */
.e-con.th-legal { --content-width: 820px; }
.th-legal .elementor-widget-heading h2.elementor-heading-title { font-size: 1.45rem; margin-top: 14px; }
.th-legal .elementor-widget-text-editor ul { margin: 0 0 1.1em; padding-left: 22px; }
.th-legal .elementor-widget-text-editor li { margin-bottom: .35em; }

/* Photos (About) */
.e-con.th-about-intro {
  display: grid !important; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start;
  --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px;
}
.th-photo img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.th-sidebar .th-photo img { border-top: 4px solid var(--pink); }

/* Details table (About) */
table.th-details { width: 100%; border-collapse: collapse; margin: 0; }
table.th-details th, table.th-details td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
table.th-details th { background: #f4f7fb; width: 32%; color: var(--navy); font-weight: 600; }
table.th-details tbody > tr:nth-child(n) > td, table.th-details tbody > tr:hover > td { background: var(--white); }
table.th-details tbody > tr:nth-child(n) > th { background: #f4f7fb; }

/* ---------- Contact form ---------- */
.th-form label { display: block; font-weight: 600; margin-bottom: 4px; color: var(--navy); }
.th-form input, .th-form textarea, .th-form select {
  width: 100%; box-sizing: border-box; padding: 10px 12px; margin: 0 0 16px;
  border: 1px solid #b9c3d1; border-radius: 3px;
  font: inherit; color: var(--text); background: var(--white);
}
.th-form input:focus, .th-form textarea:focus, .th-form select:focus { outline: 2px solid var(--sky); outline-offset: 0; border-color: var(--sky-dark); }
.th-form .th-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.th-form .th-note { font-size: .9rem; color: var(--muted); }
.th-form .th-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.th-notice { padding: 12px 16px; margin: 0 0 18px; border: 1px solid; }
.th-notice-error { border-color: #d9a3ad; background: #fdf0f2; color: #7a1f33; }
.th-notice-ok { border-color: #a9cdb3; background: #eef8f1; color: #1d5a2e; }

/* ---------- Footer ---------- */
.th-footer { background: var(--ink); color: #d6dbea; font-size: .95rem; }
.th-footer .th-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 40px; }
.th-footer h3 { color: var(--white); font-size: 1.1rem; margin: 0 0 .6em; }
.th-footer p { margin: 0; }
.th-footer a { color: var(--pink); text-decoration: underline; }
.th-footer ul { list-style: none; margin: 0; padding: 0; }
.th-footer li { margin-bottom: 6px; }
.th-footer-base { border-top: 1px solid rgba(255,255,255,.12); }
.th-footer-base .th-wrap { display: flex; justify-content: space-between; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; gap: 10px; font-size: .85rem; }

/* ---------- Mobile ---------- */
.th-hamburger { display: none; }

/* Stacked layouts (tablet + phone): single column, everything centred */
@media (max-width: 900px) {
  .e-con.th-intro > .e-con-inner, .e-con.th-content > .e-con-inner, .th-footer .th-cols { grid-template-columns: 1fr; gap: 32px; }
  .e-con.th-services { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; width: 100%; }

  .elementor .e-con, .th-footer { text-align: center; }
  .elementor .elementor-widget-heading .elementor-heading-title, .elementor .elementor-widget-button { text-align: center; }
  .e-con.th-banner > .e-con-inner { align-items: center; }
  .e-con.th-banner-box { border-left: 0; border-top: 5px solid var(--sky); margin-left: auto; margin-right: auto; }
  .e-con.th-consult > .e-con-inner { flex-direction: column; align-items: center; }
  .e-con.th-consult .th-col { margin: 0 auto; }
  .e-con.th-box { max-width: 480px; width: 100%; margin-left: auto; margin-right: auto; }
  .e-con.th-about-intro { grid-template-columns: 1fr; gap: 20px; }
  .e-con.th-service-wide { margin-left: auto; margin-right: auto; width: 100%; }
  .elementor .e-con.th-legal, .elementor .th-legal .e-con, .th-legal .elementor-widget-text-editor,
  .th-legal .elementor-widget-heading .elementor-heading-title { text-align: left; }
  .th-legal .elementor-widget-text-editor ul { list-style: disc; padding-left: 22px; }
  .elementor-widget-text-editor ul.th-ticks { display: inline-block; text-align: left; max-width: 100%; }
  .elementor-widget-text-editor ul.th-ticks li { padding-left: 28px; }
  .th-quote-inline p:not(.th-cite) { font-size: 1.2rem; }
  .elementor-widget.th-photo { max-width: 280px !important; width: 100%; margin-left: auto !important; margin-right: auto !important; }
  .th-sidebar .elementor-widget.th-photo { max-width: 480px !important; }
  .e-con.th-col, .e-con.th-sidebar { align-items: stretch; }
  .th-box ul, .elementor-widget-text-editor ul, .th-footer ul { list-style: none; padding-left: 0; }
  table.th-details th, table.th-details td { text-align: center; }
  table.th-details th { width: 40%; }
  .th-form label { text-align: center; }
  .th-form select { text-align-last: center; }
  .th-footer-base .th-wrap { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
}

/* Phone: centred header + hamburger menu */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .th-wrap { padding: 0 16px; }
  .e-con.th-section, .e-con.th-banner { --padding-left: 16px; --padding-right: 16px; --padding-top: 44px; --padding-bottom: 44px; }
  .e-con.th-page-title { --padding-top: 28px; --padding-bottom: 24px; }
  .th-header .th-wrap { flex-direction: column; text-align: center; gap: 6px; padding-top: 16px; padding-bottom: 14px; }
  .th-header-contact { text-align: center; }
  .th-header-contact a.th-email { font-size: 1rem; }
  .th-logo img, .th-logo .custom-logo { width: 210px; }

  button.th-hamburger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    position: absolute; top: 20px; right: 12px;
    width: 46px; height: 46px; padding: 0 11px; margin: 0;
    background: var(--navy); border: 0; border-radius: 3px; cursor: pointer;
  }
  button.th-hamburger:hover, button.th-hamburger:focus { background: var(--cornflower); }
  .th-hamburger span {
    display: block; height: 3px; width: 100%; background: var(--white); border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
  }
  .th-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .th-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .th-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .th-hamburger:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }

  .th-menubar { display: none; }
  .th-menubar.open { display: block; }
  .th-menubar .th-wrap { flex-direction: column; align-items: stretch; padding: 0; }
  .th-menu { flex-direction: column; text-align: center; }
  .th-menu li { border-bottom: 1px solid rgba(255,255,255,.12); }
  .th-menu a, .th-menu li:first-child > a, .th-menu li:first-child > a:hover,
  .th-menu li.current-menu-item:first-child > a { padding: 14px 16px; }
  .th-menubar .th-btn { align-self: center; margin-top: 18px; }

  .e-con.th-banner { --min-height: 300px; min-height: 300px; --padding-top: 24px; --padding-bottom: 24px; }
  .e-con.th-banner-box { --padding-top: 18px; --padding-bottom: 18px; --padding-left: 20px; --padding-right: 20px; }
  body .th-banner-box .elementor-heading-title { font-size: 1.6rem !important; }
  body .elementor-widget-heading h1.elementor-heading-title { font-size: 1.9rem; }
  body .elementor-widget-heading h2.elementor-heading-title { font-size: 1.6rem; }
  .th-form .th-row { grid-template-columns: 1fr; gap: 0; }
  .th-quote p, p.th-quote { font-size: 1.3rem; }
}
@media (max-width: 380px) {
  .th-logo img, .th-logo .custom-logo { width: 180px; }
  button.th-hamburger { width: 42px; height: 42px; right: 8px; }
}
