/*
  FitnessLife minimal responsive styles
  Palette: light background, accent green and blue
  No frameworks, pure CSS
*/

:root {
  --bg: #f7fafb;
  --text: #1f2937;
  --muted: #6b7280;
  --accent-green: #22c55e;
  --accent-blue: #3b82f6;
  --card: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* Reset-ish */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}
.logo {
  font-weight: 800;
  letter-spacing: 0.3px;
}
.main-nav { position: relative; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  font-size: 1rem;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.nav-menu a { padding: 0.4rem 0.6rem; border-radius: 6px; }
.nav-menu a:hover { background: var(--border); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(59,130,246,0.12));
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero-inner h1 {
  font-size: clamp(2rem, 3.8vw + 1rem, 3rem);
  margin: 0 0 0.5rem;
}
.hero-inner p { color: var(--muted); margin: 0 0 1.5rem; }

.btn {
  display: inline-block;
  background: var(--accent-blue);
  color: white;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  box-shadow: var(--shadow);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-accent { background: linear-gradient(90deg, var(--accent-green), var(--accent-blue)); }

/* Sections */
.section { padding: 3.5rem 0; }
.section h2 { font-size: clamp(1.4rem, 2.5vw + 0.5rem, 2rem); margin: 0 0 1.2rem; }

.grid { display: grid; gap: 1.5rem; }
.two-col { grid-template-columns: 1.2fr 1fr; align-items: center; }
.three-col { grid-template-columns: repeat(3, 1fr); }

/* About */
.about-text p { color: var(--muted); }
.about-illustration img { border-radius: 14px; box-shadow: var(--shadow); }

/* Cards */
.cards .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.card-icon { font-size: 1.6rem; margin-bottom: 0.3rem; }
.card h3 { margin: 0.2rem 0 0.5rem; font-size: 1.1rem; }
.card p { color: var(--muted); margin: 0; }

/* Reviews */
.reviews-list { display: grid; gap: 1rem; }
.review {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
}
.review p { margin: 0 0 0.6rem; }
.review footer { color: var(--muted); }

/* Contact */
.contact-form { display: grid; gap: 1rem; max-width: 640px; }
.form-row { display: grid; gap: 0.35rem; }
label { font-weight: 600; }
input, textarea {
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
input:focus, textarea:focus { outline: 2px solid rgba(59,130,246,0.35); border-color: var(--accent-blue); }
.form-actions { margin-top: 0.3rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 0; gap: 1rem; flex-wrap: wrap; }
.footer-links { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
.footer-links a { color: var(--text); }
.footer-links a:hover { color: var(--accent-blue); text-decoration: none; }

/* Responsive */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav-menu {
    position: absolute;
    right: 0; top: calc(100% + 0.5rem);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.25rem;
    min-width: 180px;
  }
  .nav-menu.open { display: flex; }
}

/* Modal */
.modal-backdrop[hidden] { display: none !important; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  padding: 1.2rem 1.2rem 1rem;
  box-shadow: var(--shadow);
}
.modal h3 { margin: 0 0 0.5rem; }
.modal p { color: var(--muted); margin: 0 0 1rem; }
.modal-actions { display: flex; justify-content: flex-end; }


