/* 1. CSS Reset / Normalize */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2. Body typography */
body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
}

/* 3. Headings */
h1, h2, h3, h4, h5 {
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 600;
  text-align: center;
  }

/* 4. Links (safe) */
a {
  text-decoration: none;
  color: inherit;
}

/* 5. Buttons */
button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.page-logo {
  display: block;
  margin: 24px auto;
  max-width: 200px;
  width: 100%;
  height: auto;
}
.page-logo {
  margin-left: auto;
  margin-right: auto;
}
/* =========================
   Call-To-Action Buttons
   ========================= */

.cta-button {
  display: inline-block;
  padding: 14px 28px;
  background-color: #009688; /* Motiv8 teal */
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 6px;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: #00796b;
  transform: translateY(-2px);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button:focus-visible {
  outline: 3px solid rgba(0, 150, 136, 0.4);
  outline-offset: 3px;
}

/* =========================
   About page
   ========================= */
.main-content-container h1 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 50px;
  text-align: center;
  margin-bottom: 24px;
}

/* =========================
   How-I-Did-It Section Alignment Fixes
   ========================= */

/* Center major section headings */
section h1,
section h2 {
  text-align: center;
}

/* Center CTA sections */
section.w3-center {
  text-align: center;
}

/* Ensure CTA buttons are centered */
.cta-button {
  margin: 24px auto 0;
}
/* Force center alignment for main page titles */
header h1 {
  text-align: center;
}
/* Normalize list alignment inside content sections */
.content-section ul,
.w3-container ul {
  padding-left: 1.25rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

/* Match paragraph width */
.content-section p,
.w3-container p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}


/* =========================
   Contact page LAYOUT SYSTEM (REPLACES W3)
   ========================= */

.section {
  padding: 64px 16px;
}

.section-alt {
  background-color: #f1f1f1;
}

.container {
  max-width: 700px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.text-large {
  font-size: 1.1rem;
}

.text-xl {
  font-size: 2.2rem;
}

.text-xxl {
  font-size: 3rem;
}
/* Constrain form width */
.container {
  max-width: 700px;
  margin: 0 auto;
}
/* Form field sizing */
.field {
  max-width: 420px;   /* 👈 human-friendly width */
  margin-bottom: 16px;
}

/* Larger text areas can be wider */
.field.textarea {
  max-width: 700px;
}






/* ================================
   Section background helpers
   ================================ */

/* Default section spacing */
.section {
  padding: 48px 16px;
}

/* Light alternating background */
.section-alt {
  background-color: #f1f1f1; /* matches w3-light-grey */
}

/* Constrain content width consistently */
.section-inner {
  max-width: 800px;
  margin: 0 auto;
}
/* ================================
   Affiliate / Disclaimer text
   ================================ */

.disclaimer {
  font-size: 0.85rem;        /* slightly smaller than body text */
  color: #777;               /* soft grey for readability */
  margin-top: 16px;
  line-height: 1.5;
}

/* ================================
   Final Call-To-Action Section
   ================================ */

.section-cta {
  background-color: #111;        /* strong contrast */
  color: #fff;
  text-align: center;
  padding: 24px 16px;
}

.section-cta .section-inner {
  max-width: 800px;
  margin: 0 auto;
}

.section-cta p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}
.section-cta h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

.section-cta h2 {
  color: #fff;
}

/* Align headings with body text inside content sections */
.content-section h1,
.content-section h2,
.content-section h3,
.content-section h4,
.content-section h5 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}


.section-cta p {
  color: #ddd;
  margin: 24px auto;
}

/* CTA button spacing */
.section-cta .cta-button {
  margin-top: 16px;
}
/* Make alternate sections visually obvious */
.section-alt {
  background-color: #f1f1f1;
}

/* Give inner content breathing room so background is visible */
.section-alt .section-inner {
  padding: 16px 16px;
}
/* Section-specific text alignment (overrides w3-container rules) */
.section-inner p,
.section-inner ul {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.media-block {
  max-width: 800px;
  margin: 32px auto;
}
/* ================================
   Normalize ALL video sizing
   ================================ */

.media-block {
  max-width: 800px;
  margin: 32px auto;
}

.media-block video {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto;
}
.media-video {
  width: 100%;
  max-width: 600px;
  display: block;
  margin: 0 auto;
  background-color: #000; /* prevents flash */
}

/* Callout / highlighted info box 
bottom of speaker page*/
.callout-box {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  background: #f1f1f1;
  border-left: 5px solid #0078d4;
  border-radius: 6px;
}

/* Ensure text aligns with body copy */
.callout-box p {
  margin: 0;
}

/* Optional: consistent link styling */
.callout-link {
  color: #0078d4;
  font-weight: 700;
}
.content-divider {
  max-width: 800px;
  margin: 40px auto;
  border: none;
  border-top: 2px solid #ddd;
}
.main-content-container h2 {
  text-align: center;
}
/* ====================
   Contact page buttons 
   =====================*/
.cta-link {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Primary (teal) */
.cta-link.teal {
  background-color: #009688;
  color: #ffffff;
}

.cta-link.teal:hover {
  background-color: #00796b;
  transform: translateY(-2px);
}

/* Secondary (dark) */
.cta-link.dark {
  background-color: #111;
  color: #ffffff;
}

.cta-link.dark:hover {
  background-color: #000;
  transform: translateY(-2px);
}
.contact-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.back-to-top {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 16px;
  font-size: 0.9rem;
  background-color: #e0e0e0;
  color: #333;
  border-radius: 6px;
  text-align: center;
  transition: background-color 0.2s ease;
}

.back-to-top:hover {
  background-color: #d0d0d0;
}
.back-to-top {
  display: block;
  width: fit-content;
  margin: 24px auto 0;
}

/* =========================
   Form Buttons (Submit / Reset)
   ========================= */

.form-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.form-actions button {
  padding: 14px 26px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

/* Primary submit button */
.form-actions .btn-submit {
  background-color: #009688; /* Motiv8 teal */
  color: #fff;
}

.form-actions .btn-submit:hover {
  background-color: #00796b;
  transform: translateY(-1px);
}

/* Secondary reset button */
.form-actions .btn-reset {
  background-color: #e0e0e0;
  color: #333;
}

.form-actions .btn-reset:hover {
  background-color: #d0d0d0;
}
textarea {
   min-height: 180px;
   width: 100%;
}
/* ///////////////
Calorie Counter
////////////////// */
.calculator {
  max-width: 700px;
  margin: 0 auto;
}

.calc-group {
  display: grid;
  gap: 10px;
}
.section-card {
  background: #ffffff;
  width: 100%;
  margin: 48px 0;          /* vertical spacing only */
  padding: 32px 24px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.calculator h2,
.calculator-explanation h2,
.calculator-action h2 {
  margin-bottom: 12px;
}

.calculator h3,
.calculator-explanation h3 {
  margin-top: 32px;
}
.calculator p,
.calculator-explanation p,
.calculator-action p {
  margin-bottom: 16px;
  max-width: 700px;
}
.height-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Make BOTH ft and in the same compact size */
.height-row input {
  width: 56px;
  max-width: 56px;
  text-align: center;
}

#heightFeet {
  width: 40px;
  max-width: 40px;
  text-align: center;
}
#heightInches {
  width: 40px;
  max-width: 40px;
  text-align: center;
}
#weightLbs {
  width: 56px;
  max-width: 56px;
  text-align: center;
}

.height-row label {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  font-weight: 600;
}


.small-note {
  font-size: 0.9rem;
  color: #666;
  margin-top: 12px;
}
.calculator-action ol {
  margin-top: 24px;
  padding-left: 20px;
}

.calculator-action li {
  margin-bottom: 20px;
}
.pro-tip {
  background: #eef7f5;
  border-left: 4px solid #009688;
  padding: 20px;
  border-radius: 6px;
  margin-top: 32px;
}
.calculator-disclaimer {
  max-width: 900px;
  margin: 40px auto;
  font-size: 0.9rem;
  color: #555;
}
/* Calculator text alignment fix */
.calculator h2,
.calculator h3,
.calculator p,
.calculator-explanation h2,
.calculator-explanation h3,
.calculator-explanation p,
.calculator-action h2,
.calculator-action p,
.calculator-disclaimer p {
  text-align: left;
}
/* Compact numeric inputs */
#age,
#weightLbs,
#goalWeight {
  max-width: 160px;
}
/* Prevent full-width stretching inside calculator */
.calculator input[type="number"],
.calculator select {
  width: auto;
}
.calculator select,
.calculator input {
  max-width: 320px;
}
#sex {
  max-width: 100px;
}

#age {
  max-width: 100px;
}
#activity {
  max-width: 420px;
}
 /* for City / Zip */
.form-field {
  width: 100%;
  max-width: 420px;  
  padding: 10px;
  font-size: 1rem;
  margin-bottom: 16px;
}

.page-container {
  width: 80%;
  max-width: 1100px;
  margin: 0 auto;
}








/* =========================
   FORM ELEMENTS ONLY
   ========================= */

form input,
form select,
form textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
}

form button {
  margin-top: 20px;
}


.result, .final-results {
  background: #f5f5f5;
  padding: 15px;
  margin-top: 15px;
  border-radius: 6px;
}
/* ==========================
   NAVBAR BASE STYLES
   ========================== */

.nav-container {
  background-color: #000000;
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 60px;
  width: 100%;
  padding: 10px 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 1000;
}

/* Navbar links & buttons (isolated from global form styles) */
.nav-container a,
.nav-container button {
  background-color: transparent;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 15px;
  font-weight: bold;
  border: none;
  cursor: pointer;

  width: auto;
  margin: 0;
  display: inline-flex;
  align-items: center;
}

/* Dropdown logic */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown .content {
  display: none;
  position: absolute; 
  top: 100%; 
  left: 0;
  z-index: 2000;
  min-width: 180px;

  /* This is the secret: */
  padding-top: 12px;       /* This fills the visual gap with an invisible sensor */
  background: transparent;  /* Make the container invisible */
}

.dropdown .content a {
  background-color: #ffffff; /* The white background starts HERE */
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.1); /* Shadow makes it look 'floated' */
}

.dropdown .content a:first-child {
  border-radius: 4px 4px 0 0; /* Rounds the top corners of the first link */
}

.dropdown .content a:last-child {
  border-radius: 0 0 4px 4px; /* Rounds the bottom corners */
  border-bottom: none;
}

.dropdown:hover .content,
.dropdown:focus-within .content {
  display: block;
}

.dropdown .content a:hover {
  background-color: #444444;
}



/* Hover effects */
.nav-container a:hover,
.nav-container button:hover {
  background-color: #333333;
  border-radius: 4px;
}

/* Font lock */
.nav-container a,
.nav-container button,
.nav-container .dropdown .content a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* ==========================
   HAMBURGER
   ========================== */

.nav-toggle {
  display: none;
  font-size: 28px;
  margin-left: auto;
  line-height: 1;
  z-index: 1100;
}

/* ==========================
   NAVBAR & DROPDOWN SYSTEM
   ========================== */

/* 1. Base Dropdown Logic (Works for ALL screen sizes) */
.dropdown {
  position: relative;
  display: inline-block;
}

/* 2. Hide content by default and bridge the "flicker gap" */
.dropdown .content {
  display: none;
  position: absolute;
  top: 100%; /* Positions menu directly below the button */
  left: 0;
  z-index: 2000;
  min-width: 160px;
  background-color: #ffffff; /* Ensure background isn't transparent */
  box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
  
  /* This invisible padding bridges the gap so the mouse doesn't "leave" the menu */
  padding-top: 10px; 
  margin-top: -5px; 
}

/* 3. SHOW TRIGGER: Works on Hover (Desktop) and Tap/Click (Mobile) */
.dropdown:hover .content,
.dropdown:focus-within .content,
.dropdown.open .content {
  display: block;
}

/* 4. Desktop Specific Refinements */
@media (min-width: 769px) {
  .nav-container .dropdown {
    flex: 0 0 auto;
  }
}

/* 5. Mobile Specific Fixes */
@media (max-width: 768px) {
  /* Ensure the button takes up space and is easy to tap */
  .dropdown > button {
    touch-action: manipulation;
    width: 100%;
    text-align: left;
  }
  
  /* Prevent the nav from collapsing horizontally if it's in a flexbox */
  .nav-container {
    flex-wrap: wrap;
  }
}

/* 6. Clean up Navbar Buttons (Keep your existing overrides) */
.nav-container button {
  width: auto !important;
  padding: 10px 15px !important;
  margin: 0 !important;
  font-size: inherit !important;
  cursor: pointer;
}

/* ==============
   About Me page
  =============== */

.before-after-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1000px;
  margin: auto;
  padding: 16px;
}

.before-after-item {
  text-align: center;
  flex: 1 1 300px;
}

.before-after-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
  box-sizing: border-box;
  border-radius: 6px;
  height: 850px;
}


















