/* ==========================================================================
   PT UMUT ALTUN — UZAKTAN FITNESS KOÇLUĞU PLATFORMU
   Tasarım Sistemi, CSS Değişkenleri & Style Manifestosu
   ========================================================================== */

:root {
  /* Renk Paleti (Siyah & Kırmızı Ağırlıklı Siyah-Kırmızı Tema) */
  --bg-primary: #08080A;         /* Pitch Obsidian Black */
  --bg-secondary: #121216;       /* Matte Dark Carbon */
  --bg-card: rgba(18, 18, 22, 0.85);
  --bg-card-hover: rgba(28, 20, 24, 0.95);

  --accent-red: #EF4444;        /* Crimson Red */
  --accent-red-dark: #B91C1C;   /* Dark Blood Red */
  --accent-primary: #EF4444;    /* Crimson Red (Primary Accent) */
  --accent-secondary: #F87171;  /* Bright Red Accent */

  --accent-glow: rgba(239, 68, 68, 0.45);
  --accent-gradient: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  --accent-gradient-hover: linear-gradient(135deg, #DC2626 0%, #7F1D1D 100%);
  --accent-gradient-mixed: linear-gradient(135deg, #EF4444 0%, #991B1B 100%);

  --text-main: #F9FAFB;
  --text-muted: #A1A1AA;
  --text-dark: #52525B;
  --border-light: rgba(239, 68, 68, 0.15);
  --border-glow: rgba(239, 68, 68, 0.45);

  /* Tipografi */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Boyutlar & Radyus */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Geçişler & Animasyonlar */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px rgba(239, 68, 68, 0.45);
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Glassmorphic Container Utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
}

.container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  color: var(--accent-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  text-align: center;
}

.btn-primary-glow {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
}

.btn-primary-glow:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.65);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.8rem 0;
  background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-logo span {
  white-space: nowrap;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 900;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.navbar .btn {
  white-space: nowrap;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
}

.nav-link:hover {
  color: var(--accent-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  padding: 9rem 0 5rem 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(239, 68, 68, 0.22) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.12) 0%, transparent 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.hero-badge i {
  color: #F59E0B;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.stat-item h4 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.stat-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Hero Media & Card */
.hero-media-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-light);
}

.hero-image-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top center;
}

.floating-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.floating-badge .badge-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-size: 1.2rem;
}

.floating-badge .badge-text h5 {
  font-size: 0.95rem;
  font-weight: 700;
}

.floating-badge .badge-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Why Remote Coaching (Features / Advantages)
   ========================================================================== */

.features-section {
  padding: 6rem 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
}

.feature-card {
  padding: 1.5rem 1.1rem;
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--accent-primary);
  margin-bottom: 1.2rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.825rem;
  line-height: 1.4;
}

/* ==========================================================================
   Packages & Pricing Section
   ========================================================================== */

.packages-section {
  padding: 6rem 0;
  background: radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.08) 0%, transparent 60%);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.package-card {
  position: relative;
  padding: 1.5rem 1.1rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
}

.package-card:hover {
  transform: translateY(-6px);
  border-color: rgba(239, 68, 68, 0.45);
}

.package-card.featured {
  border: 2px solid var(--accent-red);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.12) 0%, rgba(17, 24, 39, 0.92) 100%);
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.35);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  white-space: nowrap;
}

.badge-subtle {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.package-title {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.package-description {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
  min-height: 38px;
  line-height: 1.35;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.original-price {
  font-size: 0.85rem;
  color: var(--text-dark);
  text-decoration: line-through;
}

.current-price {
  font-size: 1.85rem;
  font-weight: 800;
  color: #FFFFFF;
}

.price-period {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.monthly-tag {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.package-features {
  margin: 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.package-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #E5E7EB;
  line-height: 1.35;
}

.feature-icon {
  color: var(--accent-primary);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

/* ==========================================================================
   BMR & Macro Calculator
   ========================================================================== */

.calculator-section {
  padding: 6rem 0;
}

.calc-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem;
}

.calc-form-group {
  margin-bottom: 1.5rem;
}

.calc-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.gender-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.gender-option input {
  display: none;
}

.gender-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-fast);
}

.gender-option input:checked + .gender-btn {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.input-field {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.input-field:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.calc-results-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.res-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.metric-card {
  text-align: center;
  padding: 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.metric-card span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.metric-card h4 {
  font-size: 1.3rem;
  color: var(--accent-primary);
  margin-top: 0.3rem;
}

.macro-bars {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.macro-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.macro-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.fill-protein { background: var(--accent-primary); }
.fill-carb { background: var(--accent-secondary); }
.fill-fat { background: #F59E0B; }

/* ==========================================================================
   Transformations & Testimonials
   ========================================================================== */

.transformations-section {
  padding: 6rem 0;
}

.transformations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.transformation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.transformation-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-secondary);
  border-radius: var(--radius-full);
}

.transformation-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.duration-pill {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}

.result-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  color: var(--accent-primary);
  font-weight: 700;
}

.comment {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.weight-change {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.weight-item {
  display: flex;
  flex-direction: column;
}

.weight-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.weight-item .val {
  font-weight: 700;
  font-size: 1.1rem;
}

.weight-item.highlight .val {
  color: var(--accent-primary);
}

/* ==========================================================================
   About Trainer Section
   ========================================================================== */

.about-section {
  padding: 6rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
  border: 1px solid var(--border-light);
}

.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.about-feature-item i {
  color: var(--accent-primary);
  font-size: 1.2rem;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-section {
  padding: 6rem 0;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  transition: var(--transition-fast);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-chevron {
  transition: transform 0.3s ease;
  color: var(--accent-primary);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Modal Component (Onboarding Form)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 580px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.8);
  max-height: 90vh;
  overflow-y: auto;
}

.close-modal-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.close-modal-btn:hover {
  color: var(--text-main);
}

.modal-header h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-grid.full {
  grid-template-columns: 1fr;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-normal);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* Footer */
.footer {
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--border-light);
  background: rgba(5, 8, 14, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-dark);
  font-size: 0.85rem;
}

/* ==========================================================================
   Mobile-First & Ultra-Responsive Perfection (100% Mobile Optimized)
   ========================================================================== */

/* Prevent iOS Safari 16px Auto-Zoom on Input Focus */
input, select, textarea {
  font-size: 16px !important;
}

/* Touch Target Standards (Min 44px height for touch manipulation) */
button, .btn, .nav-link, .dash-tab-btn, .builder-tab-btn, .day-pill, .package-pill-btn, .check-exercise-btn {
  min-height: 44px;
  touch-action: manipulation;
}

/* Tablet & Medium Screen Adaptations (Max Width 992px) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-subtitle {
    margin: 0 auto 2rem auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .calc-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* Mobile Screens (Max Width 768px) */
@media (max-width: 768px) {
  .navbar {
    padding: 0.7rem 0;
    background: rgba(10, 14, 23, 0.95) !important;
    backdrop-filter: blur(20px);
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--border-light);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    justify-content: flex-start;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
  }

  .client-stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .admin-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .user-welcome-card {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
  }

  .user-welcome-card .btn {
    width: 100%;
  }

  .package-switcher-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .package-switcher-bar > div {
    flex-direction: column;
    width: 100%;
  }

  .package-pill-btn {
    width: 100%;
    text-align: center;
  }

  .exercise-row-input {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Compact Smartphones (Max Width 576px) */
@media (max-width: 576px) {
  .hero-section {
    padding: 6rem 0 3rem 0;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-image-card img {
    height: 360px;
  }

  .floating-badge {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    padding: 0.75rem;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .calc-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }

  .res-metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .packages-grid {
    grid-template-columns: 1fr;
  }

  .package-card {
    padding: 1.5rem 1.1rem;
  }

  .modal-container {
    padding: 1.5rem 1.1rem;
    max-height: 94vh;
    width: 95%;
    border-radius: var(--radius-md);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .exercise-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .exercise-meta {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Comprehensive 100% Mobile Responsiveness & Zero Shift Engine
   ========================================================================== */

/* Prevent horizontal overflow across all viewports */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* Table Responsive Wrappers for Mobile */
.responsive-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.responsive-table-wrapper table {
  min-width: 580px;
}

/* iOS Safari Auto-Zoom Prevention on Form Inputs */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="number"],
  input[type="tel"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Responsive Grid Adjustments for Tablets & Mobile */
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  }

  /* Calendar Grid Touch Optimization */
  #calendar-days-grid,
  .admin-calendar-grid {
    gap: 0.25rem !important;
  }

  /* Mobile Button Padding Adjustments */
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  /* Package Switcher Pill Bar on Mobile */
  .package-switcher-bar button {
    font-size: 0.78rem !important;
    padding: 0.4rem 0.7rem !important;
  }

  /* Client Dashboard Stat Row on Mobile */
  .client-stats-row {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Full Width Modals on Mobile */
  .modal-container {
    width: 94vw !important;
    padding: 1.2rem !important;
  }

  /* Prevent text clipping inside header cards */
  .user-details h2 {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
  }

  .admin-header-card h2,
  .section-title {
    font-size: 1.5rem !important;
  }

  /* Header Navbar Mobile Fix (No Overflow) */
  .nav-container {
    padding: 0 0.6rem !important;
    gap: 0.3rem !important;
    justify-content: space-between !important;
  }

  .brand-logo {
    font-size: 0.85rem !important;
    gap: 0.35rem !important;
  }

  .brand-logo span {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem !important;
  }

  .nav-dijitalgru-tag {
    display: none !important;
  }

  .logo-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.75rem !important;
  }

  .navbar .btn.open-modal-btn {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.7rem !important;
    border-radius: var(--radius-full) !important;
    white-space: nowrap;
    max-width: 140px;
  }

  /* Footer Mobile Single Column Fix */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: left !important;
  }

  .footer-col h4 {
    margin-bottom: 0.6rem !important;
    font-size: 1rem !important;
  }

  /* Certificates Table Mobile Touch Scroll & Padding Fix */
  .certificates-table-container {
    padding: 1rem 0.6rem !important;
    margin-top: 1.5rem !important;
    border-radius: var(--radius-md) !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .certificates-table-container h3 {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .certificates-table-container table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
  }

  .certificates-table-container th,
  .certificates-table-container td {
    padding: 0.65rem 0.5rem !important;
    font-size: 0.78rem !important;
  }

  /* Floating WhatsApp Button Mobile Positioning */
  .whatsapp-float {
    bottom: 1.25rem !important;
    right: 1rem !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 1.5rem !important;
    z-index: 99999 !important;
  }

  /* Mobile Tab Navigation Pill Bar Touch Scrolling */
  .dash-tabs-bar,
  .workout-day-selector {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 0.5rem !important;
    gap: 0.5rem !important;
  }

  .dash-tab-btn,
  .day-pill {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.82rem !important;
    padding: 0.5rem 0.9rem !important;
  }

  /* Exercise & Nutrition Row Items on Mobile */
  .exercise-item,
  .meal-food-item {
    padding: 0.85rem 1rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
  }

  .exercise-meta,
  .meal-macro-badges {
    width: 100% !important;
    justify-content: space-between !important;
  }
}

/* ==========================================================================
   DijitalGru™ Brand Badge
   ========================================================================== */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.dijitalgru-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.dijitalgru-badge:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.dijitalgru-brand {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.15rem;
  color: #F7EBD3;
  letter-spacing: -0.03em;
}

.dijitalgru-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 0.75rem;
}

/* Header Navbar DijitalGru™ Tag */
.nav-dijitalgru-tag {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.nav-dijitalgru-tag a {
  color: #F7EBD3 !important;
  font-weight: 800 !important;
  transition: var(--transition-fast);
}

.nav-dijitalgru-tag a:hover {
  color: var(--accent-red) !important;
}

/* Strict Mobile & Tablet Hide for Header DijitalGru Tag */
@media screen and (max-width: 1024px) {
  .nav-dijitalgru-tag,
  span.nav-dijitalgru-tag {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (max-width: 992px) {
  .nav-dijitalgru-tag {
    display: none !important;
  }
}
