/*
Theme Name: kidney4.0
Description: A modern, American-style WordPress theme for kidney health management and medical calculators. Redesigned for US reading habits.
Author: KidneyPro Team
Version: 3.71
License: GPL v2 or later
Text Domain: kidneypro
*/

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #1d1d1f;
  line-height: 1.7;
  font-size: 18px;
  min-height: 100vh;
}

/* Navigation Bar */
.navbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid #e5e5ea;
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  font-size: 28px; font-weight: 700; color: #007aff; text-decoration: none; letter-spacing: -0.5px;
}
.nav-menu { display: flex; list-style: none; gap: 40px; align-items: center; }
.nav-menu a {
  text-decoration: none; color: #86868b; font-weight: 500; font-size: 18px;
  transition: all 0.3s; padding: 10px 18px; border-radius: 10px;
}
.nav-menu a:hover, .nav-menu a.active { color: #1d1d1f; background: rgba(0,122,255,0.10); }
.cta-button {
  background: #007aff; color: #fff !important; padding: 12px 28px !important; border-radius: 25px; font-weight: 600; transition: all 0.3s;
}
.cta-button:hover { background: #0056cc !important; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,122,255,0.18); }

/* Main Content */
.main-content { margin-top: 90px; min-height: calc(100vh - 90px); }

/* Hero Section */
.hero, .bmi-hero, .fluid-hero, .nutrition-hero {
  padding: 90px 0 50px 0; text-align: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9f0fb 100%);
}
.hero h1, .bmi-hero h1, .fluid-hero h1, .nutrition-hero h1 {
  font-size: 54px; font-weight: 700; color: #1d1d1f; margin-bottom: 22px; letter-spacing: -1px; line-height: 1.1;
}
.hero .subtitle, .bmi-hero p, .fluid-hero p, .nutrition-hero p {
  font-size: 22px; color: #86868b; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-buttons, .bmi-btn-row, .fluid-btn-row {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
}

/* Card & Grid */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.features-grid, .nutrition-food-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 36px; margin-bottom: 60px;
}
.feature-card, .nutrition-food-card, .fluid-form-container, .bmi-form-container {
  background: #fff; border-radius: 22px; box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  padding: 36px 28px; text-align: left; border: 1px solid #e5e5ea; transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover, .nutrition-food-card:hover, .fluid-form-container:hover, .bmi-form-container:hover {
  box-shadow: 0 16px 48px rgba(0,122,255,0.10); transform: translateY(-4px);
}
.feature-icon, .tool-icon, .resource-image {
  width: 70px; height: 70px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 18px auto; color: #fff; background: linear-gradient(135deg, #007aff, #0056cc);
}

/* Buttons */
.btn, .bmi-btn, .fluid-btn, .tool-button {
  padding: 16px 32px; border-radius: 30px; text-decoration: none; font-weight: 600; font-size: 18px; transition: all 0.3s; display: inline-block; border: none; cursor: pointer;
}
.btn-primary, .bmi-btn, .fluid-btn, .tool-button { background: #007aff; color: #fff; }
.btn-primary:hover, .bmi-btn:hover, .fluid-btn:hover, .tool-button:hover { background: #0056cc; transform: translateY(-3px); box-shadow: 0 12px 35px rgba(0,122,255,0.18); }
.btn-secondary, .bmi-btn.secondary, .fluid-btn.secondary { background: #f5f5f7; color: #007aff; border: 2px solid #007aff; }
.btn-secondary:hover, .bmi-btn.secondary:hover, .fluid-btn.secondary:hover { background: #007aff; color: #fff; }

/* Form & Input */
input, select, textarea {
  font-size: 18px; border-radius: 12px; border: 2px solid #e5e5ea; padding: 14px; background: #f9f9fb; transition: all 0.3s; font-family: inherit; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #007aff; box-shadow: 0 0 0 4px rgba(0,122,255,0.08); }
label { font-weight: 600; color: #1d1d1f; font-size: 16px; margin-bottom: 8px; display: block; }

/* Result Section */
.result-section, .bmi-result-section, .fluid-result-section {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef); padding: 32px; border-radius: 16px; margin-top: 24px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.result-value, .bmi-result-value, .fluid-result-value { font-size: 48px; font-weight: 700; color: #007aff; margin-bottom: 10px; }
.result-unit, .bmi-result-unit, .fluid-result-unit { font-size: 18px; color: #86868b; margin-bottom: 10px; }
.result-category, .bmi-result-category { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.result-description, .bmi-result-description, .fluid-result-description { color: #86868b; font-size: 16px; line-height: 1.6; }

/* Section Header */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 40px; font-weight: 700; color: #1d1d1f; margin-bottom: 14px; letter-spacing: -0.5px; }
.section-header p { font-size: 20px; color: #86868b; max-width: 600px; margin: 0 auto; }

/* Footer */
.site-footer, .footer { background: #fff; border-top: 1px solid #e5e5ea; padding: 40px 0 0 0; }
.footer-content, .footer-container { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-section { flex: 1 1 200px; margin-bottom: 24px; }
.footer-section h3, .footer-section h4 { color: #007aff; font-size: 22px; margin-bottom: 12px; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul a { color: #86868b; text-decoration: none; transition: color 0.2s; }
.footer-section ul a:hover { color: #007aff; }
.footer-bottom { text-align: center; color: #86868b; font-size: 15px; padding: 18px 0 0 0; }

/* Responsive */
@media (max-width: 900px) {
  .features-grid, .nutrition-food-grid { grid-template-columns: 1fr 1fr; }
  .footer-content, .footer-container { flex-direction: column; gap: 0; }
}
@media (max-width: 600px) {
  .features-grid, .nutrition-food-grid { grid-template-columns: 1fr; }
  .main-content { margin-top: 70px; }
  .hero h1, .bmi-hero h1, .fluid-hero h1, .nutrition-hero h1 { font-size: 32px; }
  .hero .subtitle, .bmi-hero p, .fluid-hero p, .nutrition-hero p { font-size: 16px; }
  .feature-card, .nutrition-food-card, .fluid-form-container, .bmi-form-container { padding: 18px 10px; }
  .section-header h2 { font-size: 28px; }
}

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { animation: fadeInUp 0.8s ease-out; }

/* Health Tips Ticker */
.health-ticker { background: #34c759; color: #fff; padding: 16px 0; overflow: hidden; white-space: nowrap; font-size: 18px; font-weight: 600; letter-spacing: 0.5px; position: relative; z-index: 1001; }
.ticker-content { display: inline-block; animation: scroll 30s linear infinite; }
@keyframes scroll { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }