/* style.css – Core Styles (LIFE SITE)
   Premium compact baseline.

   Purpose:
   - Keep this file as a calm global fallback.
   - Let page-specific CSS files do the detailed page design.
   - Avoid oversized global typography/logo rules that force every page to fight the core.
*/

/* ---------- Fonts ---------- */

@font-face {
  font-family: 'Montserrat-Black';
  src: url('../Fonts/Montserrat/Montserrat-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat-Bold';
  src: url('../Fonts/Montserrat/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato-Regular';
  src: url('../Fonts/Lato/Lato-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato-Light';
  src: url('../Fonts/Lato/Lato-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Modern aliases used by page-specific CSS */
@font-face {
  font-family: 'Montserrat';
  src: url('../Fonts/Montserrat/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('../Fonts/Lato/Lato-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */

:root {
  --life-ink: #102f35;
  --life-ink-soft: #23494f;
  --life-muted: #5f7476;
  --life-bg: #f3fbf8;
  --life-bg-soft: #f8fcfb;
  --life-card: #ffffff;
  --life-border: #dcebe8;
  --life-border-strong: #c9dfda;
  --life-accent: #1b9aaa;
  --life-accent-dark: #127988;
  --life-deep: #0c4f55;
  --life-footer: #0f3339;

  --life-radius-sm: 12px;
  --life-radius-md: 16px;
  --life-radius-lg: 20px;
  --life-shadow-sm: 0 8px 20px rgba(12, 79, 85, 0.055);
  --life-shadow-md: 0 14px 34px rgba(12, 79, 85, 0.075);

  --btn-main: var(--life-accent);
  --btn-main-hover: var(--life-accent-dark);

  --fs-body: clamp(0.96rem, 0.25vw + 0.9rem, 1.05rem);
  --fs-small: clamp(0.84rem, 0.2vw + 0.78rem, 0.92rem);
  --fs-lead: clamp(1.02rem, 0.55vw + 0.92rem, 1.18rem);
  --fs-h3: clamp(1.22rem, 0.9vw + 1rem, 1.55rem);
  --fs-display-4: clamp(1.65rem, 2vw + 1rem, 2.65rem);
  --fs-display-3: clamp(2rem, 3vw + 1rem, 3.65rem);
}

/* ---------- Global reset / base ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(180deg, #eef8f5 0%, #f8fcfb 48%, #ffffff 100%);
  color: var(--life-ink);
  font-family: 'Lato', 'Lato-Regular', Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--life-accent-dark);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--life-deep);
}

p,
.card-text,
.lead,
li {
  font-family: 'Lato', 'Lato-Regular', Arial, sans-serif;
}

p,
.card-text {
  font-size: var(--fs-body);
  line-height: 1.68;
}

li {
  font-size: var(--fs-body);
  line-height: 1.65;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.62;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.card-title,
.display-3,
.display-4 {
  font-family: 'Montserrat', 'Montserrat-Bold', Arial, sans-serif;
  color: var(--life-ink);
  letter-spacing: -0.025em;
}

.h3,
.card-title {
  font-size: var(--fs-h3);
}

.display-3 {
  font-size: var(--fs-display-3);
  line-height: 1.04;
}

.display-4 {
  font-size: var(--fs-display-4);
  line-height: 1.08;
}

.card-title,
.card-text,
.lead,
.display-4,
.display-3 {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.container {
  max-width: 1180px;
}

/* ---------- Navigation fallback ---------- */

.navbar {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid rgba(201, 223, 218, 0.72);
  box-shadow: 0 8px 22px rgba(12, 79, 85, 0.045);
  padding: 0.5rem 1rem;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  margin-right: 1.35rem;
}

.navbar-brand img {
  height: 50px !important;
  width: auto !important;
  max-height: 50px !important;
}

.navbar li {
  padding-left: 0.3rem;
  padding-right: 0.3rem;
}

.nav-link {
  font-family: 'Montserrat', 'Montserrat-Bold', Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--life-ink-soft) !important;
  padding: 0.7rem 0.65rem !important;
}

.nav-link:hover,
.nav-link:focus,
.nav-item.active .nav-link {
  color: var(--life-deep) !important;
}

.navbar-toggler {
  border: 1px solid var(--life-border-strong);
  border-radius: 12px;
  padding: 0.42rem 0.6rem;
}

/* ---------- Buttons ---------- */

.btn,
.btn-primary,
.btn-info,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px !important;
  padding: 0.68rem 1.05rem !important;
  font-family: 'Montserrat', 'Montserrat-Bold', Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary,
.btn-info,
button.btn[type='submit'] {
  background-color: var(--btn-main) !important;
  border-color: var(--btn-main) !important;
  color: #ffffff !important;
  box-shadow: 0 9px 20px rgba(27, 154, 170, 0.16);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-info:hover,
.btn-info:focus,
button.btn[type='submit']:hover,
button.btn[type='submit']:focus {
  background-color: var(--btn-main-hover) !important;
  border-color: var(--btn-main-hover) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(18, 121, 136, 0.2);
}

.btn-secondary {
  background-color: #ffffff !important;
  border: 1.5px solid var(--life-border-strong) !important;
  color: var(--life-deep) !important;
  box-shadow: 0 7px 16px rgba(12, 79, 85, 0.045);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--life-deep) !important;
  border-color: var(--life-deep) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-outline,
.btn-outline-success,
.btn-outline-primary {
  background-color: transparent !important;
  border: 1.5px solid var(--life-accent-dark) !important;
  color: var(--life-accent-dark) !important;
  border-radius: 999px !important;
  padding: 0.62rem 1rem !important;
  font-family: 'Montserrat', 'Montserrat-Bold', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.btn-outline:hover,
.btn-outline:focus,
.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--life-accent-dark) !important;
  border-color: var(--life-accent-dark) !important;
  color: #ffffff !important;
}

/* ---------- Legacy jumbotron fallback ---------- */

.jumbotron {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url('/Images/hero-image.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  border-radius: 0;
}

.jumbotron::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(105deg, rgba(7, 39, 45, 0.82) 0%, rgba(12, 79, 85, 0.56) 55%, rgba(27, 154, 170, 0.18) 100%);
}

.jumbotron > .container,
.jumbotron .QuoteNow {
  position: relative;
  z-index: 1;
}

.jumbotron .container {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1180px !important;
}

.QuoteNow {
  display: inline-block;
  max-width: 680px;
  padding: clamp(1rem, 2vw, 1.4rem);
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--life-ink);
  font-family: 'Lato', 'Lato-Regular', Arial, sans-serif;
  font-size: var(--fs-lead);
  line-height: 1.55;
  box-shadow: var(--life-shadow-md);
}

/* ---------- Cards & media ---------- */

.card {
  border: 1px solid var(--life-border);
  border-radius: var(--life-radius-md);
  box-shadow: var(--life-shadow-sm);
}

.card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.card .btn {
  align-self: flex-start;
}

.card img,
.card img.card-img-top {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
}

.card-section-bg,
.card-deck {
  background-color: #f0f8f5;
  border-radius: var(--life-radius-lg);
}

.card-section-bg {
  padding: 2rem 0;
}

.card-deck {
  margin-top: 2rem;
  padding: 1.5rem;
}

.card-deck .card {
  border: 1px solid var(--life-border);
  box-shadow: var(--life-shadow-sm);
}

/* Home fallback only; page-home CSS now owns the real layout */
.home-two-col-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- Provider logos ---------- */

.provider-band,
.provider-logo-band {
  background-color: #eef8f5;
  padding: 1.5rem 1rem;
  border: 1px solid var(--life-border);
  border-radius: var(--life-radius-lg);
}

.insurer-logo,
.provider-img,
.card img.insurer-logo {
  display: inline-block;
  width: auto !important;
  max-width: 100%;
  max-height: 84px !important;
  object-fit: contain !important;
  padding: 0.6rem 1rem !important;
}

.insurer-logo.grayscale,
.provider-img.grayscale {
  filter: grayscale(100%);
  opacity: 0.86;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.insurer-logo.grayscale:hover,
.provider-img.grayscale:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ---------- Legacy contact fallback ---------- */

.contact-content {
  max-width: 720px;
  margin: 3rem auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  background-color: #ffffff;
  border: 1px solid var(--life-border);
  border-radius: var(--life-radius-lg);
  box-shadow: var(--life-shadow-sm);
}

.contact-content h1 {
  margin-bottom: 1.3rem;
  font-size: clamp(1.65rem, 2.2vw, 2.25rem);
  color: var(--life-ink);
}

.contact-content label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: 'Montserrat', 'Montserrat-Bold', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--life-ink);
}

.contact-content input[type='text'],
.contact-content input[type='email'],
.contact-content textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--life-border-strong);
  border-radius: 12px;
  background-color: #f7fbf9;
  color: var(--life-ink);
  font-family: 'Lato', 'Lato-Regular', Arial, sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-content input:focus,
.contact-content textarea:focus {
  outline: none;
  border-color: var(--life-accent);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(27, 154, 170, 0.12);
}

/* ---------- Success message ---------- */

.success-message {
  max-width: 640px;
  margin: 4rem auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background-color: #ffffff;
  border: 1px solid var(--life-border);
  border-radius: var(--life-radius-lg);
  box-shadow: var(--life-shadow-sm);
  text-align: center;
  font-family: 'Lato', 'Lato-Regular', Arial, sans-serif;
}

.success-message h1 {
  margin-bottom: 1rem;
  color: #16835d;
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
}

.success-message p {
  margin-bottom: 1.5rem;
  color: var(--life-ink-soft);
  font-size: var(--fs-lead);
}

.success-message .home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  background-color: var(--life-accent);
  border: 1px solid var(--life-accent);
  color: #fff;
  font-family: 'Montserrat', 'Montserrat-Bold', Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.success-message .home-button:hover,
.success-message .home-button:focus {
  background-color: var(--life-accent-dark);
  border-color: var(--life-accent-dark);
  color: #ffffff;
}

/* ---------- Legacy two-column card fallback ---------- */

.col.border.border-dark.rounded {
  background-color: #ffffff;
  border-color: var(--life-border) !important;
  box-shadow: var(--life-shadow-sm);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--life-footer);
  color: #ffffff;
  border-top: none;
  padding: 1.25rem 0;
}

.site-footer a {
  color: #ffffff;
  margin: 0 0.45rem;
  font-family: 'Lato', 'Lato-Regular', Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #b9ebe2;
}

.site-footer p,
.site-footer li {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

/* ---------- Breakpoint refinements ---------- */

@media (max-width: 991.98px) {
  .navbar-brand img {
    height: 46px !important;
    max-height: 46px !important;
  }

  .nav-link {
    padding: 0.62rem 0.45rem !important;
  }

  .jumbotron {
    min-height: 330px;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 0.98rem;
  }

  .navbar {
    padding: 0.42rem 0.85rem;
  }

  .navbar-brand img {
    height: 42px !important;
    max-height: 42px !important;
  }

  .nav-link {
    font-size: 0.92rem;
    padding: 0.55rem 0.2rem !important;
  }

  .btn,
  .btn-primary,
  .btn-info,
  button.btn,
  .btn-secondary,
  .btn-outline,
  .btn-outline-success,
  .btn-outline-primary {
    font-size: 0.9rem;
  }

  .jumbotron {
    min-height: 300px;
  }

  .QuoteNow {
    border-radius: 18px;
  }

  .card img.card-img-top {
    max-height: 210px;
  }

  .card .card-body {
    padding: 1rem;
  }

  .insurer-logo,
  .provider-img,
  .card img.insurer-logo {
    max-height: 70px !important;
    padding: 0.5rem 0.7rem !important;
  }

  .site-footer {
    text-align: center;
  }
}

@media (max-width: 420px) {
  .display-3 {
    font-size: 1.85rem;
  }

  .display-4 {
    font-size: 1.5rem;
  }

  .lead,
  .card-text {
    font-size: 0.96rem;
  }
}

/* ============================================================
   FINAL UNIVERSAL SITE SCALE / CHROME OVERRIDE
   ------------------------------------------------------------
   Purpose:
   - Keep navigation, buttons, footer and base scale consistent
     across Home, News, Explained, Quote, Article and Contact.
   - These selectors intentionally include the body class/attribute
     so they beat page-specific navbar/button rules loaded later.
   ============================================================ */

:root {
  --life-site-max: 1120px;
  --life-nav-logo: 44px;
  --life-nav-logo-tablet: 40px;
  --life-nav-logo-mobile: 36px;
  --life-nav-pad-y: 0.26rem;
  --life-nav-pad-x: 0.9rem;
  --life-button-min: 40px;
}

body {
  font-size: clamp(0.95rem, 0.16vw + 0.9rem, 1rem);
}

/* Universal container scale */
body.page-home-life .container,
body.page-news .container,
body.page-explained.page-explained-life .container,
body.page-quote.page-quote-life .container,
body.article-page.article-page-life .container,
body.page-contact.page-contact-life .container {
  max-width: var(--life-site-max);
}

/* Universal compact navigation */
body.page-home-life .navbar,
body.page-news .navbar,
body.page-explained.page-explained-life .navbar,
body.page-quote.page-quote-life .navbar,
body.article-page.article-page-life .navbar,
body.page-contact.page-contact-life .navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: 0;
  padding: var(--life-nav-pad-y) var(--life-nav-pad-x) !important;
  background: rgba(255, 255, 255, 0.965) !important;
  border-bottom: 1px solid rgba(201, 223, 218, 0.72) !important;
  box-shadow: 0 6px 18px rgba(12, 79, 85, 0.04) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.page-home-life .navbar-brand,
body.page-news .navbar-brand,
body.page-explained.page-explained-life .navbar-brand,
body.page-quote.page-quote-life .navbar-brand,
body.article-page.article-page-life .navbar-brand,
body.page-contact.page-contact-life .navbar-brand {
  display: inline-flex;
  align-items: center;
  margin-right: 1.15rem !important;
  padding-top: 0.12rem !important;
  padding-bottom: 0.12rem !important;
}

body.page-home-life .navbar-brand img,
body.page-news .navbar-brand img,
body.page-explained.page-explained-life .navbar-brand img,
body.page-quote.page-quote-life .navbar-brand img,
body.article-page.article-page-life .navbar-brand img,
body.page-contact.page-contact-life .navbar-brand img {
  width: auto !important;
  height: var(--life-nav-logo) !important;
  max-height: var(--life-nav-logo) !important;
}

body.page-home-life .navbar-toggler,
body.page-news .navbar-toggler,
body.page-explained.page-explained-life .navbar-toggler,
body.page-quote.page-quote-life .navbar-toggler,
body.article-page.article-page-life .navbar-toggler,
body.page-contact.page-contact-life .navbar-toggler {
  padding: 0.32rem 0.52rem !important;
  border: 1px solid var(--life-border-strong) !important;
  border-radius: 11px !important;
}

body.page-home-life .nav-link,
body.page-news .nav-link,
body.page-explained.page-explained-life .nav-link,
body.page-quote.page-quote-life .nav-link,
body.article-page.article-page-life .nav-link,
body.page-contact.page-contact-life .nav-link {
  padding: 0.55rem 0.56rem !important;
  color: var(--life-ink-soft) !important;
  font-family: 'Montserrat', 'Montserrat-Bold', Arial, sans-serif !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
}

body.page-home-life .nav-link:hover,
body.page-home-life .nav-link:focus,
body.page-home-life .nav-item.active .nav-link,
body.page-news .nav-link:hover,
body.page-news .nav-link:focus,
body.page-news .nav-item.active .nav-link,
body.page-explained.page-explained-life .nav-link:hover,
body.page-explained.page-explained-life .nav-link:focus,
body.page-explained.page-explained-life .nav-item.active .nav-link,
body.page-quote.page-quote-life .nav-link:hover,
body.page-quote.page-quote-life .nav-link:focus,
body.page-quote.page-quote-life .nav-item.active .nav-link,
body.article-page.article-page-life .nav-link:hover,
body.article-page.article-page-life .nav-link:focus,
body.article-page.article-page-life .nav-item.active .nav-link,
body.page-contact.page-contact-life .nav-link:hover,
body.page-contact.page-contact-life .nav-link:focus,
body.page-contact.page-contact-life .nav-item.active .nav-link {
  color: var(--life-deep) !important;
}

body.page-home-life .nav-item.active .nav-link::after,
body.page-news .nav-item.active .nav-link::after,
body.page-explained.page-explained-life .nav-item.active .nav-link::after,
body.page-quote.page-quote-life .nav-item.active .nav-link::after,
body.article-page.article-page-life .nav-item.active .nav-link::after,
body.page-contact.page-contact-life .nav-item.active .nav-link::after {
  left: 0.56rem !important;
  right: 0.56rem !important;
  bottom: 0.22rem !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: var(--life-accent) !important;
}

/* Universal button scale */
body.page-home-life .btn,
body.page-news .btn,
body.page-explained.page-explained-life .btn,
body.page-quote.page-quote-life .btn,
body.article-page.article-page-life .btn,
body.page-contact.page-contact-life .btn {
  min-height: var(--life-button-min) !important;
  padding: 0.58rem 0.92rem !important;
  border-radius: 999px !important;
  font-family: 'Montserrat', 'Montserrat-Bold', Arial, sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

/* Universal footer scale */
body.page-home-life .site-footer,
body.page-news .site-footer,
body.page-explained.page-explained-life .site-footer,
body.page-quote.page-quote-life .site-footer,
body.article-page.article-page-life .site-footer,
body.page-contact.page-contact-life .site-footer {
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
}

body.page-home-life .site-footer__brand-title,
body.page-news .site-footer__brand-title,
body.page-explained.page-explained-life .site-footer__brand-title,
body.page-quote.page-quote-life .site-footer__brand-title,
body.article-page.article-page-life .site-footer__brand-title,
body.page-contact.page-contact-life .site-footer__brand-title {
  font-size: clamp(1.05rem, 1.25vw, 1.3rem) !important;
  line-height: 1.16 !important;
}

body.page-home-life .site-footer p,
body.page-home-life .site-footer li,
body.page-home-life .site-footer a,
body.page-news .site-footer p,
body.page-news .site-footer li,
body.page-news .site-footer a,
body.page-explained.page-explained-life .site-footer p,
body.page-explained.page-explained-life .site-footer li,
body.page-explained.page-explained-life .site-footer a,
body.page-quote.page-quote-life .site-footer p,
body.page-quote.page-quote-life .site-footer li,
body.page-quote.page-quote-life .site-footer a,
body.article-page.article-page-life .site-footer p,
body.article-page.article-page-life .site-footer li,
body.article-page.article-page-life .site-footer a,
body.page-contact.page-contact-life .site-footer p,
body.page-contact.page-contact-life .site-footer li,
body.page-contact.page-contact-life .site-footer a {
  font-size: 0.86rem !important;
  line-height: 1.55 !important;
}

/* Tablet nav scale */
@media (max-width: 991.98px) {
  body.page-home-life .navbar,
  body.page-news .navbar,
  body.page-explained.page-explained-life .navbar,
  body.page-quote.page-quote-life .navbar,
  body.article-page.article-page-life .navbar,
  body.page-contact.page-contact-life .navbar {
    padding: 0.25rem 0.8rem !important;
  }

  body.page-home-life .navbar-brand img,
  body.page-news .navbar-brand img,
  body.page-explained.page-explained-life .navbar-brand img,
  body.page-quote.page-quote-life .navbar-brand img,
  body.article-page.article-page-life .navbar-brand img,
  body.page-contact.page-contact-life .navbar-brand img {
    height: var(--life-nav-logo-tablet) !important;
    max-height: var(--life-nav-logo-tablet) !important;
  }

  body.page-home-life .nav-item.active .nav-link::after,
  body.page-news .nav-item.active .nav-link::after,
  body.page-explained.page-explained-life .nav-item.active .nav-link::after,
  body.page-quote.page-quote-life .nav-item.active .nav-link::after,
  body.article-page.article-page-life .nav-item.active .nav-link::after,
  body.page-contact.page-contact-life .nav-item.active .nav-link::after {
    display: none !important;
  }
}

/* Mobile nav and control scale */
@media (max-width: 767.98px) {
  :root {
    --life-site-max: 100%;
  }

  body.page-home-life .navbar,
  body.page-news .navbar,
  body.page-explained.page-explained-life .navbar,
  body.page-quote.page-quote-life .navbar,
  body.article-page.article-page-life .navbar,
  body.page-contact.page-contact-life .navbar {
    padding: 0.22rem 0.75rem !important;
  }

  body.page-home-life .navbar-brand img,
  body.page-news .navbar-brand img,
  body.page-explained.page-explained-life .navbar-brand img,
  body.page-quote.page-quote-life .navbar-brand img,
  body.article-page.article-page-life .navbar-brand img,
  body.page-contact.page-contact-life .navbar-brand img {
    height: var(--life-nav-logo-mobile) !important;
    max-height: var(--life-nav-logo-mobile) !important;
  }

  body.page-home-life .nav-link,
  body.page-news .nav-link,
  body.page-explained.page-explained-life .nav-link,
  body.page-quote.page-quote-life .nav-link,
  body.article-page.article-page-life .nav-link,
  body.page-contact.page-contact-life .nav-link {
    padding: 0.5rem 0.12rem !important;
    font-size: 0.84rem !important;
  }

  body.page-home-life .btn,
  body.page-news .btn,
  body.page-explained.page-explained-life .btn,
  body.page-quote.page-quote-life .btn,
  body.article-page.article-page-life .btn,
  body.page-contact.page-contact-life .btn {
    min-height: 39px !important;
    padding: 0.56rem 0.86rem !important;
    font-size: 0.81rem !important;
  }
}


/* ===========================================
   UNIVERSAL FINAL LAYER
   Compact navigation + polished footer.
   Keep this section near the bottom of style.css.
   =========================================== */

/* ===========================================
   Universal compact nav layer
   Folded into style.css so the navigation scale is controlled globally.
   =========================================== */

html body .navbar.navbar {
  min-height: 42px !important;
  padding: 0.16rem 0.75rem !important;
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 1px solid rgba(201, 223, 218, 0.72) !important;
  box-shadow: 0 4px 14px rgba(12, 79, 85, 0.035) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html body .navbar.navbar .navbar-brand {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  margin-right: 0.72rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1 !important;
}

html body .navbar.navbar .navbar-brand img {
  display: block !important;
  width: auto !important;
  height: 34px !important;
  max-height: 34px !important;
}

html body .navbar.navbar .navbar-nav {
  align-items: center !important;
}

html body .navbar.navbar .navbar li,
html body .navbar.navbar .nav-item {
  padding-left: 0.05rem !important;
  padding-right: 0.05rem !important;
}

html body .navbar.navbar .nav-link {
  min-height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.32rem 0.4rem !important;
  color: var(--life-ink-soft, #23494f) !important;
  font-family: 'Montserrat', 'Montserrat-Bold', Arial, sans-serif !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.012em !important;
  white-space: nowrap !important;
}

html body .navbar.navbar .nav-link:hover,
html body .navbar.navbar .nav-link:focus,
html body .navbar.navbar .nav-item.active .nav-link {
  color: var(--life-deep, #0c4f55) !important;
}

html body .navbar.navbar .nav-item.active .nav-link::after {
  left: 0.4rem !important;
  right: 0.4rem !important;
  bottom: 0.12rem !important;
  height: 2px !important;
  border-radius: 999px !important;
}

html body .navbar.navbar .navbar-toggler {
  padding: 0.22rem 0.38rem !important;
  border-radius: 10px !important;
  transform: scale(0.9);
  transform-origin: center right;
}

html body .btn,
html body button.btn {
  min-height: 38px !important;
  padding: 0.54rem 0.88rem !important;
  font-size: 0.8rem !important;
  line-height: 1.08 !important;
}

@media (max-width: 991.98px) {
  html body .navbar.navbar {
    padding: 0.18rem 0.7rem !important;
  }

  html body .navbar.navbar .navbar-brand img {
    height: 32px !important;
    max-height: 32px !important;
  }

  html body .navbar.navbar .navbar-collapse {
    padding-top: 0.34rem !important;
  }

  html body .navbar.navbar .navbar-nav {
    align-items: flex-start !important;
  }

  html body .navbar.navbar .nav-link {
    min-height: 32px !important;
    padding: 0.34rem 0.15rem !important;
    font-size: 0.79rem !important;
  }

  html body .navbar.navbar .nav-item.active .nav-link::after {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  html body .navbar.navbar {
    min-height: 40px !important;
    padding: 0.15rem 0.62rem !important;
  }

  html body .navbar.navbar .navbar-brand img {
    height: 30px !important;
    max-height: 30px !important;
  }

  html body .navbar.navbar .nav-link {
    width: 100% !important;
    min-height: 32px !important;
    padding: 0.34rem 0 !important;
    font-size: 0.8rem !important;
  }
}

/* ===========================================
   Universal footer polish
   Folded into style.css for all public pages
   =========================================== */

html body .site-footer {
  position: relative !important;
  overflow: hidden !important;
  margin-top: 0 !important;
  padding: clamp(1.35rem, 2.6vw, 2.15rem) 0 1rem !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(27, 154, 170, 0.24), transparent 22rem),
    radial-gradient(circle at 92% 10%, rgba(185, 235, 226, 0.14), transparent 18rem),
    linear-gradient(135deg, #071f24 0%, #0d343a 46%, #0c4f55 100%) !important;
  color: rgba(255, 255, 255, 0.88) !important;
  border-top: 1px solid rgba(185, 235, 226, 0.12) !important;
}

html body .site-footer::before {
  content: '';
  position: absolute;
  left: clamp(1rem, 5vw, 4rem);
  right: clamp(1rem, 5vw, 4rem);
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 235, 226, 0.46), transparent);
  pointer-events: none;
}

html body .site-footer__inner {
  width: min(100% - 2rem, 1120px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

html body .site-footer__top {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(150px, 0.55fr) minmax(240px, 0.78fr) !important;
  gap: clamp(1.1rem, 3vw, 2.4rem) !important;
  align-items: start !important;
}

html body .site-footer__brand-title,
html body .site-footer__title {
  font-family: 'Montserrat', 'Montserrat-Bold', Arial, sans-serif !important;
  color: #ffffff !important;
  letter-spacing: -0.026em !important;
  line-height: 1.12 !important;
}

html body .site-footer__brand-title {
  max-width: 360px !important;
  margin: 0 0 0.52rem !important;
  font-size: clamp(1.12rem, 1.45vw, 1.42rem) !important;
  font-weight: 900 !important;
}

html body .site-footer__title {
  margin: 0 0 0.62rem !important;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
}

html body .site-footer__copy,
html body .site-footer__cta-text,
html body .site-footer__legal,
html body .site-footer p {
  max-width: 560px !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-family: 'Lato', 'Lato-Regular', Arial, sans-serif !important;
  font-size: 0.84rem !important;
  line-height: 1.58 !important;
}

html body .site-footer__cta-text {
  margin-bottom: 0.85rem !important;
}

html body .site-footer__micro {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.42rem !important;
  margin-top: 0.82rem !important;
}

html body .site-footer__badge {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 0.34rem 0.58rem !important;
  border: 1px solid rgba(185, 235, 226, 0.16) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-family: 'Montserrat', 'Montserrat-Bold', Arial, sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
}

html body .site-footer__badge::before {
  content: '';
  width: 0.34rem;
  height: 0.34rem;
  margin-right: 0.38rem;
  border-radius: 50%;
  background: #9ce8dc;
  box-shadow: 0 0 0 3px rgba(156, 232, 220, 0.14);
}

html body .site-footer__links,
html body .site-footer__legal-links {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

html body .site-footer__links {
  display: grid !important;
  gap: 0.32rem !important;
}

html body .site-footer__links li {
  margin: 0 !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.84rem !important;
  line-height: 1.35 !important;
}

html body .site-footer a,
html body .site-footer__links a,
html body .site-footer__legal-links a {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-family: 'Lato', 'Lato-Regular', Arial, sans-serif !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  transition: color 0.18s ease, transform 0.18s ease;
}

html body .site-footer__links a::before {
  content: '';
  width: 0.28rem;
  height: 0.28rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: rgba(156, 232, 220, 0.78);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

html body .site-footer a:hover,
html body .site-footer a:focus,
html body .site-footer__links a:hover,
html body .site-footer__links a:focus,
html body .site-footer__legal-links a:hover,
html body .site-footer__legal-links a:focus {
  color: #ffffff !important;
  text-decoration: none !important;
}

html body .site-footer__links a:hover::before,
html body .site-footer__links a:focus::before {
  background: #ffffff;
  transform: scale(1.35);
}

html body .site-footer__cta {
  padding: 0.95rem !important;
  border: 1px solid rgba(185, 235, 226, 0.15) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at top right, rgba(156, 232, 220, 0.12), transparent 12rem),
    rgba(255, 255, 255, 0.055) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10) !important;
}

html body .site-footer .btn,
html body .site-footer .btn.btn-primary {
  min-height: 36px !important;
  padding: 0.52rem 0.82rem !important;
  border: 1px solid rgba(156, 232, 220, 0.55) !important;
  border-radius: 999px !important;
  background: #1b9aaa !important;
  color: #ffffff !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 22px rgba(27, 154, 170, 0.18) !important;
}

html body .site-footer .btn:hover,
html body .site-footer .btn:focus,
html body .site-footer .btn.btn-primary:hover,
html body .site-footer .btn.btn-primary:focus {
  background: #9ce8dc !important;
  border-color: #9ce8dc !important;
  color: #082d32 !important;
  transform: translateY(-1px) !important;
}

html body .site-footer__bottom {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 1rem !important;
  margin-top: clamp(1.05rem, 2.5vw, 1.55rem) !important;
  padding-top: 0.95rem !important;
  border-top: 1px solid rgba(185, 235, 226, 0.12) !important;
}

html body .site-footer__legal {
  flex: 1 1 auto !important;
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 0.76rem !important;
}

html body .site-footer__legal-links {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 0.8rem !important;
}

html body .site-footer__legal-links a {
  color: rgba(255, 255, 255, 0.64) !important;
  font-size: 0.76rem !important;
}

@media (max-width: 991.98px) {
  html body .site-footer__top {
    grid-template-columns: 1fr 1fr !important;
  }

  html body .site-footer__top > :first-child,
  html body .site-footer__cta {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 767.98px) {
  html body .site-footer {
    padding: 1.25rem 0 0.9rem !important;
    text-align: left !important;
  }

  html body .site-footer__inner {
    width: min(100% - 1.5rem, 1120px) !important;
  }

  html body .site-footer__top {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  html body .site-footer__copy,
  html body .site-footer__cta-text,
  html body .site-footer p {
    max-width: none !important;
  }

  html body .site-footer__micro {
    gap: 0.38rem !important;
  }

  html body .site-footer__badge {
    white-space: normal !important;
  }

  html body .site-footer__bottom {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 0.55rem !important;
  }

  html body .site-footer__legal-links {
    justify-content: flex-start !important;
    gap: 0.7rem !important;
  }

  html body .site-footer .btn,
  html body .site-footer .btn.btn-primary {
    width: auto !important;
    min-width: 0 !important;
  }
}
