/*
Theme Name: True Wellness Traffic
Theme URI: http://thetrafficexchangescript.com/
Description: LFMTE customized theme for TrueWellnessTraffic.com.
Version: 2.0
Author: IngaOz (OzonicDigital.eu)
*/

@charset "utf-8";

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Quicksand:wght@500;700&display=swap');

/* ============================================================
   CSS VARIABLES — TRUE WELLNESS PALETTE
   ============================================================ */
:root {
  --bg:          #58c6d5;
  --bg-grad-top: #6FDBFF;
  --bg-grad-bot: #2BB3D6;
  --surface:     #F3FBFF;
  --raised:      #e0f7fa;
  --link:        #37afc0;
  --accent:      #37afc0;
  --text:        #212121;
  --text-body:   #333333;
  --text-muted:  #666666;
  --royal-blue:  #4169E1;
  --border-card: rgba(55,175,192,.25);
  --border-div:  rgba(55,175,192,.18);

  --nav-font:   'Playfair Display', serif;
  --body-font:  'Quicksand', sans-serif;

  --site-width: 90vw;
  --header-h:   300px;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-body);
  background: linear-gradient(to bottom, var(--bg-grad-top), var(--bg-grad-bot));
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* ============================================================
   SITE-WIDE CONTAINER
   ============================================================ */
.container,
.container-fluid {
  max-width: var(--site-width) !important;
  width: 90% !important;
  margin-left:  auto;
  margin-right: auto;
  padding-left:  15px;
  padding-right: 15px;
}

/* ============================================================
   SITE HEADER IMAGE
   ============================================================ */
#headerwrapper {
  width: 100%;
  background-color: var(--bg);
  text-align: center;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

#header {
  background-image: url(images/header.gif);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  width: 1500px;
  max-width: 100%;
  height: 300px;
  margin: 0 auto;
}

@media (max-width: 1500px) {
  #header {
    width: 100%;
    height: auto;
    min-height: 120px;
    background-size: cover;
    background-position: center top;
    aspect-ratio: 1500 / 300;
  }
}

/* ============================================================
   TOP NAV BAR
   ============================================================ */
.lfm_menu_bar {
  background: linear-gradient(180deg, rgba(111,219,255,0.95) 0%, rgba(43,179,214,0.95) 100%);
  border-bottom: 2px solid rgba(255,255,255,0.4);
  box-shadow: 0 4px 20px rgba(43,179,214,.4);
  padding: 0 0 45px;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
}

@media (max-width: 991.98px) {
  .lfm_menu_bar {
    padding-bottom: 0;
    margin-bottom: 20px;
  }
}

/* Logo */
.lfm_menu_logo {
  width: 215px;
  height: 50px;
  object-fit: contain;
  margin-right: 20px;
}

/* ── TOP-LEVEL NAV LINKS ── */
.lfm_menu_bar .navbar-nav > .nav-item > .nav-link {
  font-family: var(--nav-font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .3px;
  color: #4169E1;
  white-space: nowrap;
  position: relative;
  transition: color .18s, background-color .18s;
}

.lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_opened > .nav-link {
  color: #212121;
  background-color: rgba(255,255,255,.25);
}
.lfm_menu_bar .navbar-nav > .nav-item > .nav-link:hover {
  color: #ffffff;
  background-color: rgba(65,105,225,.2);
}

@media (min-width: 992px) {
  .lfm_menu_bar .navbar-nav > .nav-item > .nav-link {
    margin: 0 3px;
    padding: 6px 15px;
    border: 1px solid rgba(255,255,255,0);
    border-radius: 5px;
  }
  .lfm_menu_bar .navbar-nav > .nav-item > .nav-link:hover {
    background-color: rgba(255,255,255,.20);
    border-color: rgba(255,255,255,.40);
  }
  .lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_opened > .nav-link {
    background: rgba(255,255,255,.30);
    border-color: rgba(255,255,255,.50);
    color: #212121;
  }
}

/* ── MOBILE ── */
@media (max-width: 991.98px) {
  .lfm_menu_bar {
    padding-bottom: 0;
  }
  .lfm_menu_bar > .navbar {
    width: 100%;
    padding: 0 5%;
    flex-wrap: wrap;
    min-height: 60px;
  }
  .lfm_menu_bar .navbar-collapse {
    width: 100%;
    flex-basis: 100%;
  }
  .lfm_menu_bar .navbar-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .lfm_menu_bar .navbar-nav > .nav-item > .nav-link {
    padding: 12px 15px;
    text-align: left;
    font-size: 17px;
    border-bottom: 1px solid var(--border-div);
    color: #4169E1;
  }
  .lfm_menu_bar .navbar-nav > .nav-item > .nav-link::after {
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
    color: #4169E1;
    transform: rotate(-90deg);
    position: absolute;
    right: 1.25rem;
    top: 50%;
    margin-top: -.15em;
    transition: transform .15s ease-out;
  }
  .lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_opened > .nav-link::after {
    color: #212121;
    transform: rotate(0deg);
  }
}

/* ============================================================
   DROPDOWN PANEL (2ND LEVEL / ROW 2)
   ============================================================ */
.lfm_menu_tab {
  background: linear-gradient(180deg, rgba(168,240,255,0.97) 0%, rgba(111,219,255,0.97) 100%);
  border-top: 1px solid rgba(255,255,255,.4);
  border-bottom: 2px solid rgba(43,179,214,.4);
  position: absolute;
  display: none;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  z-index: 999;
  width: 100vw;
  box-shadow: 0 16px 40px rgba(43,179,214,.3);
  padding: 0 0 0 5vw;
  flex-wrap: wrap;
  align-items: center;
}

li.lfm_tab_opened .lfm_menu_tab {
  display: flex;
}

@media (max-width: 991.98px) {
  .lfm_menu_tab {
    background-color: rgba(111,219,255,.4);
    position: relative;
    left: auto;
    width: 100%;
    transform: none;
    flex-direction: column;
    top: 0;
    padding: 5px 0;
    border: none;
    border-top: 1px solid var(--border-div);
    box-shadow: none;
  }
  li.lfm_tab_closed .lfm_menu_tab {
    display: none;
  }
}

/* 2nd level links */
.lfm_menu_tab > li > a {
  font-family: var(--nav-font);
  font-size: 16px;
  padding: 0 22px;
  line-height: 45px;
  display: block;
  color: #4169E1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.lfm_menu_tab > li > a:hover {
  color: #212121;
  background-color: rgba(255,255,255,.35);
  text-decoration: none;
}

/* Dropdown menus inside tab */
.lfm_menu_tab .dropdown-menu {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(43,179,214,.2);
}
.lfm_menu_tab .dropdown-menu a {
  color: #4169E1;
  padding: 8px 20px;
  display: block;
  font-family: var(--nav-font);
  font-size: 14px;
  transition: background .15s;
}
.lfm_menu_tab .dropdown-menu a:hover {
  background-color: rgba(55,175,192,.15);
  color: #212121;
}
.lfm_menu_tab .dropdown-toggle {
  font-family: var(--nav-font);
}

@media (max-width: 991.98px) {
  .lfm_menu_tab > li > a {
    padding-left: 40px;
    line-height: 38px;
  }
  .lfm_menu_tab .dropdown-menu a {
    padding-left: 56px;
  }
}

/* ============================================================
   LOGIN BOX — blends with background
   ============================================================ */
.login_box,
.lfm_login_box,
#login_box,
.login-box,
.lfm_loginbox {
  background: rgba(243,253,254,0.55) !important;
  border: 1px solid rgba(255,255,255,.5) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(8px) !important;
  box-shadow: 0 4px 20px rgba(43,179,214,.15) !important;
  color: var(--text) !important;
}

/* ============================================================
   CONTENT AREA — white card wrapper over teal background
   ============================================================ */

/* LFMTE wraps all page content in .container.pt-4.pb-5 */
.container.pt-4.pb-5,
.container.pt-3.pb-5,
.container.pt-2.pb-5,
.container.pb-5,
.container.pt-4,
.container.pt-5 {
  background: #F3FBFF;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding-left: 30px !important;
  padding-right: 30px !important;
  padding-bottom: 30px !important;
  color: #212121;
  margin-top: 10px;
  margin-bottom: 20px;
}

/* Cards / panels */
.card,
.panel,
.lfm_module {
  background-color: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(43,179,214,.18);
}

/* Section cards (homepage) */
section {
  padding: 60px 0;
  border-radius: 20px;
  margin: 30px 0;
  background: #ffffff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow:
    0 18px 40px rgba(28,123,168,.35),
    0 4px 10px rgba(0,0,0,.08);
}
section:hover {
  transform: translateY(-10px);
  box-shadow:
    0 30px 65px rgba(28,123,168,.45),
    0 6px 18px rgba(0,0,0,.12);
}
section:nth-of-type(even) {
  background: linear-gradient(90deg, #f0fbff, #e0f7fa);
}

/* Tables */
table { color: var(--text); }
.table { color: var(--text); }
.table th {
  background-color: var(--raised);
  color: var(--royal-blue);
  border-color: var(--border-div);
}
.table td { border-color: var(--border-div); }
.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(55,175,192,.08);
}
.table-hover tbody tr:hover {
  background-color: rgba(55,175,192,.12);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--royal-blue);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}
h1.display-4, h1 {
  font-family: 'Playfair Display', serif;
  color: #4169E1;
  text-shadow: 0 1px 2px rgba(0,0,0,.05);
  font-weight: 700;
}

p.lead {
  color: #333;
  font-size: 1.25rem;
}

/* Links */
a {
  color: #4169E1;
  transition: color .15s;
}
a:hover {
  color: #2BB3D6;
  text-decoration: none;
}

/* Typed text */
#typed {
  color: #2BB3D6;
  text-shadow: 0 0 6px rgba(108,191,255,.5);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary,
.buttonlink {
  font-family: var(--body-font);
  font-weight: 700;
  background: linear-gradient(180deg,
    #A8F0FF 0%,
    #6FDBFF 40%,
    #2BB3D6 100%
  );
  border: none;
  color: #ffffff;
  border-radius: 10px;
  padding: 12px 25px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 16px 35px rgba(43,179,214,.55),
    0 6px 15px rgba(0,0,0,.12),
    inset 0 2px 6px rgba(255,255,255,.35);
  transition: all 0.35s ease-in-out;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover,
.buttonlink:hover {
  transform: scale(1.05);
  box-shadow:
    0 20px 45px rgba(43,179,214,.65),
    0 8px 20px rgba(0,0,0,.15),
    inset 0 2px 6px rgba(255,255,255,.4);
  color: #ffffff;
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--raised);
  border: 1px solid var(--border-card);
  color: var(--royal-blue);
  border-radius: 8px;
}
.btn-secondary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-sm {
  font-size: 13px;
  padding: 4px 12px;
}

/* JOIN button image replacement */
a.join-btn img,
a[href*="signup"] img.join-img {
  width: 450px;
  max-width: 100%;
  height: auto;
}

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
  max-width: 80%;
  width: 100%;
  margin: 20px auto;
  padding: 18px;
  border-radius: 16px;
  background: rgba(43,179,214,.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.3);
}

/* ============================================================
   INFOBAR
   ============================================================ */
.infobar {
  width: 100%;
  padding: 16px 0;
  color: var(--text);
  background-color: rgba(243,253,254,.7);
  border-top:    1px solid var(--border-div);
  border-bottom: 1px solid var(--border-div);
}
.infobar h2 {
  color: var(--royal-blue);
}

/* ============================================================
   FORM CONTROLS
   ============================================================ */
.form-control,
input[type=text], input[type=email], input[type=password],
input[type=number], input[type=url], textarea, select {
  background-color: rgba(255,255,255,.8);
  border: 1px solid var(--border-div);
  color: var(--text);
  border-radius: 8px;
}
.form-control:focus {
  background-color: #ffffff;
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(55,175,192,.2);
}

/* ============================================================
   ALERTS / BADGES
   ============================================================ */
.alert-info    { background-color: rgba(55,175,192,.15); border-color: var(--accent); color: var(--text); }
.alert-success { background-color: rgba(39,174,96,.15);  border-color: #27ae60;       color: var(--text); }
.alert-warning { background-color: rgba(241,196,15,.15); border-color: #f1c40f;       color: #7d6608; }
.alert-danger  { background-color: rgba(231,76,60,.15);  border-color: #e74c3c;       color: var(--text); }

.badge-primary { background-color: var(--accent); color: #fff; }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.lfm_title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--royal-blue);
  font-size: 32px;
}
.lfm_descr {
  font-family: var(--body-font);
  color: var(--text-body);
  font-size: 16px;
}
.lfm_descr_bold {
  font-family: var(--body-font);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

/* ============================================================
   PROFILE PICTURES
   ============================================================ */
.profilepic_small  { width:40px;  height:40px;  border-radius: 50%; border: 2px solid var(--border-card); }
.profilepic_med    { width:75px;  height:75px;  border-radius: 50%; border: 2px solid var(--border-card); }
.profilepic_large  { width:200px; height:200px; border-radius: 50%; border: 3px solid var(--accent); }

/* ============================================================
   ICONS
   ============================================================ */
.far, .fas { margin-right: 4px; }
.feedicon  { color: var(--accent); font-size: 20px; margin-right: 5px; }

/* ============================================================
   VCENTER HELPER
   ============================================================ */
.vcenter {
  display: flex;
  align-items: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer.lfm_footer {
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: linear-gradient(135deg, #1a8fa8, #2BB3D6) !important;
  border-top: 4px solid rgba(111,219,255,.7) !important;
  color: #ffffff !important;
  text-align: center !important;
}

/* Override global link color inside footer */
footer.lfm_footer a,
footer.lfm_footer a:link,
footer.lfm_footer a:visited {
  color: #ffffff !important;
  text-decoration: none !important;
}
footer.lfm_footer a:hover {
  color: #212121 !important;
}

/* Footer banner image */
.tw-footer-banner {
  margin: 0;
  padding: 0;
  line-height: 0;
}
.tw-footer-banner img {
  display: block !important;
  margin: 0 auto !important;
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
}

/* Social icons row */
.tw-footer-social {
  padding: 18px 0 10px;
}
.tw-footer-social a {
  display: inline-block;
  margin: 0 6px;
}
.tw-footer-social img {
  width: 32px;
  height: 32px;
  transition: transform .2s;
}
.tw-footer-social img:hover {
  transform: translateY(-3px);
}

/* Footer menu */
.tw-footer-menu {
  margin: 8px 0 !important;
  padding: 6px 0 !important;
  font-size: 15px;
  font-family: var(--body-font);
}
footer.lfm_footer .tw-footer-menu a,
footer.lfm_footer .tw-footer-menu a:link,
footer.lfm_footer .tw-footer-menu a:visited {
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 0 10px !important;
  text-decoration: none !important;
  text-shadow: 0 1px 5px rgba(0,0,0,.45) !important;
  letter-spacing: .5px !important;
}
footer.lfm_footer .tw-footer-menu a:hover {
  color: #212121 !important;
  text-shadow: none !important;
}

/* Copyright */
.tw-footer-header {
  font-size: 13px;
  padding: 6px 0 !important;
  color: #ffffff !important;
  font-family: var(--body-font);
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
  font-weight: 600;
}

/* Badge strip */
.footer-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
  gap: 10px;
  margin: 12px auto;
  max-width: 90%;
  justify-items: center;
}
.footer-badges img {
  width: 85px;
  height: 85px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.4);
  background: transparent;
  box-shadow: 0 0 6px rgba(255,255,255,.2);
  transition: transform .2s, box-shadow .2s;
}
.footer-badges img:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255,255,255,.3);
}

/* Powered-by line */
.lfm_footer .footer-powered {
  font-size: 12px;
  padding: 8px 0 14px;
  color: rgba(255,255,255,.7);
}
.lfm_footer .footer-powered a {
  color: #A8F0FF;
}
.lfm_footer .footer-powered a:hover {
  color: #ffffff;
}

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar { width: 8px; background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--royal-blue); }

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 767.98px) {
  :root { --header-h: auto; }
  .glass-card { max-width: 96%; }
  section { margin: 15px 0; padding: 40px 0; }
  a.join-btn img { max-width: 280px; }
}