/*
Theme Name: Daily Fix Nutrition v6 (Clean, No Chat)
Author: Greg R.
Version: 6.0
Description: Clean white theme with hero image, dropdown Resources menu, Men's/Women's weight calculators, and Nutrition Series template. No chat.
*/

:root {
  --brand: #14b8a6;
  --text: #1f2937;
  --muted: #6b7280;
}

/* --- Base Resets --- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}

a {
  color: #0f766e;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 20;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

.logo {
  font-weight: 700;
  color: var(--brand);
  font-size: 1.25rem;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.menu > li > a {
  padding: 0.5rem 0.4rem;
  display: block;
}

/* --- Dropdown --- */
.dropdown {
  position: relative;
}
.dropdown > a::after {
  content: '\25BE';
  margin-left: 0.35rem;
  font-size: 0.8rem;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  min-width: 220px;
  display: none;
  z-index: 50;
}
.dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu li {
  list-style: none;
}
.dropdown-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #111827;
}
.dropdown-menu a:hover {
  background: #f3f4f6;
}

/* --- Hero Section --- */
.hero {
  background: url('images/hero.jpg') center/cover no-repeat fixed;
  color: #fff;
  text-align: center;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.hero .inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 96px 16px;
}
.hero h1 {
  letter-spacing: 0.18em;
  margin: 0 0 8px;
  font-size: 2rem;
}
.hero p {
  font-size: 1.25rem;
  margin: 0 0 18px;
  color: #e5e7eb;
}

.quick-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.quick-links a {
  color: #e0fbf7;
  border-bottom: 1px dotted rgba(224, 251, 247, 0.7);
}

/* --- Content --- */
.content {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 16px;
}
.content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 2rem;
}

/* --- Contact Section --- */
.contact {
  background: #0b1220;
  color: #fff;
  padding: 40px 16px;
  margin-top: 40px;
  text-align: center;
}
.contact a {
  color: #a5f3fc;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
}
.btn:hover {
  filter: brightness(0.95);
}

/* --- Form Elements --- */
input,
select,
button {
  font: inherit;
}
input,
select {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}
fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
button[type=submit] {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
}
h1,
h2 {
  line-height: 1.2;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .hero .inner {
    padding: 72px 12px;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero p {
    font-size: 1.05rem;
  }
}

/* ===========================================================
   FIX SECTION: RADIO BUTTON + LABEL ALIGNMENT + BUTTON LAYOUT
   =========================================================== */

/* --- Radio Buttons & Labels --- */
#weight-calculator fieldset {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  max-width: 340px;
  margin: 0 auto;
}

#weight-calculator legend {
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: left;
  color: var(--text);
}

#weight-calculator fieldset label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  width: auto;
}

#weight-calculator fieldset input[type="radio"] {
  margin: 0;
  accent-color: var(--brand);
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* --- Button Layout Fix --- */
.button-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1rem;
}

.button-container .button,
button[type="submit"] {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.button-container .button:hover,
button[type="submit"]:hover {
  filter: brightness(0.9);
}
#resultW p {
  margin: 0.4rem 0;
}
#resultW {
  background: #e0f9f6;
  border: 1px solid #b4efe8;
  border-radius: 8px;
  padding: 0.75rem;
  color: #0b4a45;
}
.footer-phone {
  text-align: center;
  margin-top: 1rem;
}
.footer-phone img {
  max-width: 220px;
  height: auto;
  border-radius: 8px;
  transition: transform .2s ease-in-out;
}
.footer-phone img:hover {
  transform: scale(1.05);
}
/* --- HEADER BASE --- */
.header-base {
  position: relative;
  width: 100%;
  height: 160px; /* adjust to taste */
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background images: female left, male right */
.header-base::before,
.header-base::after {
  content: "";
  position: absolute;
  top: 0;
  width: 45%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}
.header-base::before {
  left: 0;
  background-image: url('<?php echo esc_url( get_stylesheet_directory_uri() . "/images/model-female.png" ); ?>');
}
.header-base::after {
  right: 0;
  background-image: url('<?php echo esc_url( get_stylesheet_directory_uri() . "/images/model-male.png" ); ?>');
}

.header-base-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1rem;
}

.header-base-overlay h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  background: rgba(255,255,255,0.75);
  display: inline-block;
  padding: 0.25em 0.75em;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* --- MOBILE --- */
@media (max-width: 768px) {
  .header-base {
    height: 120px;
  }
  .header-base::before,
  .header-base::after {
    display: none; /* hide model portraits for mobile simplicity */
  }
  .header-base-overlay h2 {
    font-size: 1.1rem;
  }
}
