/* ===================================================================
   GentleFit Seniors — Fresh Sage & Leaf Theme (refined)
   Ensures hero image doesn’t dominate the screen
   and featured article images are appropriately sized
   =================================================================== */

:root {
  --sage: #9CAF88;        /* primary accent */
  --leaf: #A9B49E;        /* secondary accent */
  --cream: #F9F8F4;       /* page background */
  --charcoal: #2D2D2D;    /* main text */
  --muted: #66757F;       /* secondary text */
  --fern: #6E8B63;        /* deep accent */
  --white: #ffffff;
  --glass-tint: rgba(255,255,255,0.6);

  --max-width: 1200px;
  --gutter: 20px;

  --base-font-size: 18px;
  --line-height: 1.6;

  --ease-smooth: cubic-bezier(.2,.9,.2,1);
}
* {
  box-sizing: border-box;
}
html {
  font-size: var(--base-font-size);
}
body {
  margin: 0;
  font-family: "Inter", "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--charcoal);
  background: var(--cream);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(45,45,45,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  font-weight: 800;
  letter-spacing: 0.6px;
  font-size: 1.25rem;
  color: var(--fern);
  text-decoration: none;
}
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  align-items: center;
}
.primary-nav a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  transition: all .25s var(--ease-smooth);
  font-size: 1rem;
}
.primary-nav a:hover,
.primary-nav a:focus {
  color: var(--white);
  background: linear-gradient(90deg, var(--sage), var(--leaf));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(110,139,99,0.12);
  outline: none;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 5% 40px;
  background: linear-gradient(135deg, rgba(154,191,136,0.08), rgba(169,180,158,0.04));
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 36px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero-copy h1 {
  margin: 0 0 12px;
  font-size: 2.4rem;
  line-height: 1.1;
  letter-spacing: -0.5px;
  font-weight: 900;
  color: var(--charcoal);
}
.hero-copy .eyebrow {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--leaf), var(--sage));
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(154,191,136,0.12);
}
.hero-copy .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 22px;
  max-width: 60ch;
}
.hero-cta {
  display: flex;
  gap: 14px;
  align-items: center;
}
.btn {
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all .22s var(--ease-smooth);
  font-size: 1rem;
  min-height: 48px;
}
.btn--primary {
  background: linear-gradient(90deg, var(--sage), var(--leaf));
  color: var(--white);
  border: none;
  box-shadow: 0 12px 30px rgba(110,139,99,0.18);
  transform: translateZ(0);
}
.btn--primary:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 40px rgba(110,139,99,0.22);
}
.btn--ghost {
  background: transparent;
  border: 2px solid rgba(45,45,45,0.06);
  color: var(--charcoal);
}
.btn--ghost:hover {
  border-color: rgba(154,191,136,0.7);
  background: rgba(154,191,136,0.06);
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
}
.hero-media img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(45,45,45,0.08);
  object-fit: cover;
}

/* Featured Articles */
.featured {
  padding: 64px 0;
  background: linear-gradient(180deg, transparent, rgba(154,191,136,0.02));
}
.featured h2 {
  font-size: 2rem;
  text-align: center;
  margin: 0 0 28px;
  font-weight: 900;
  color: var(--charcoal);
  letter-spacing: -0.4px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), var(--white));
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(45,45,45,0.06);
  border: 1px solid rgba(45,45,45,0.04);
  transition: transform .25s var(--ease-smooth), box-shadow .25s var(--ease-smooth);
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-body {
  padding: 18px 20px;
}
.card-body h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--charcoal);
}
.card-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(110,139,99,0.09);
  border-color: rgba(154,191,136,0.14);
}
.read-link {
  display: inline-block;
  font-weight: 800;
  color: var(--fern);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}
.read-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--sage), var(--leaf));
  transition: width .32s var(--ease-smooth);
  border-radius: 4px;
}
.read-link:hover::after {
  width: 100%;
}

/* Tips Section */
.three-tips {
  padding: 56px 0;
}
.three-tips h2 {
  text-align: center;
  font-size: 1.7rem;
  margin: 0 0 20px;
  font-weight: 900;
  color: var(--charcoal);
}
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  padding: 0 var(--gutter);
}
.tip {
  background: linear-gradient(180deg, var(--white), rgba(249,248,244,0.98));
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: visible;
  box-shadow: 0 10px 30px rgba(45,45,45,0.04);
  transition: transform .22s var(--ease-smooth);
}
.tip:hover {
  transform: translateY(-6px);
}
.tip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, var(--sage), var(--leaf));
  border-top-left-radius:12px;
  border-bottom-left-radius:12px;
}
.tip .tip-title {
  font-weight: 800;
  color: var(--charcoal);
  margin: 0 0 8px;
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, rgba(45,45,45,0.95), rgba(45,45,45,0.98));
  color: var(--white);
  padding: 40px 0;
  margin-top: 36px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 var(--gutter);
}
.footer-brand strong {
  color: var(--leaf);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 4px;
}
.footer-links ul {
  list-style: none;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
}
.footer-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 700;
}
.footer-links a:hover {
  color: var(--leaf);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 18px;
  }
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .tips-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  :root { --base-font-size: 17px; }
  .header-inner { padding: 12px 0; }
  .logo { font-size: 1.1rem; }
  .hero-copy h1 { font-size: 1.8rem; }
  .btn { min-height: 44px; padding: 10px 14px; }
  .card img { height: 200px; }
  .tips-grid { gap: 14px; }
}
