/* Coach Ruben - Senior Fitness Landing Page */
/* High-end wellness brochure aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Nunito:wght@400;500;600;700&family=Caveat:wght@500;600&display=swap');

:root {
  /* Wellness palette */
  --sage: #4A6F5A;
  --sage-dark: #3d5c4a;
  --sage-light: #E8EFE9;
  --sage-pale: #f0f5f1;
  --forest: #2F5233;
  --forest-dark: #243f28;

  /* Paper/cream background */
  --cream: #F9F6F0;
  --cream-dark: #ebe7dd;
  --warm-white: #fdfcf9;
  --paper: #F9F6F0;
  --dark: #2d3a34;
  --gray-800: #3d4a44;
  --gray-600: #5a6360;
  --gray-400: #9e9e9e;
  --gray-200: #e5e2db;
  --white: #ffffff;

  /* Warm accents */
  --peach: #d4a088;
  --rust: #c17f6a;
}

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

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

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.8;
  color: var(--gray-800);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 235, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--gray-200);
}

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

.logo {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--forest);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.logo:hover {
  color: var(--sage);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-phone {
  display: none;
  font-size: 0.95rem;
  color: var(--gray-600);
}

.header-phone a {
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-phone a:hover {
  color: var(--sage);
}

.btn {
  display: inline-block;
  padding: 1rem 2.25rem;
  border-radius: 100px; /* Pill shape */
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s ease;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(47, 82, 51, 0.2);
}

.btn-primary:hover {
  background: var(--forest-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(47, 82, 51, 0.25);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Smaller button for header on mobile */
.header .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  min-height: 40px;
}

.btn-white {
  background: var(--white);
  color: var(--forest);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
}

.section-light {
  background: var(--warm-white);
}

.section-warm {
  background: var(--cream-dark);
}

.section-sage {
  background: var(--sage);
  color: var(--white);
}

.section-dark {
  background: var(--forest);
}

.container {
  max-width: 48rem;
  margin: 0 auto;
}

.container-lg {
  max-width: 56rem;
}

/* Zig-Zag Layout for body sections */
.zigzag {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: left;
}

.zigzag-content {
  flex: 1;
}

.zigzag-content h2 {
  text-align: left;
}

.zigzag-icon {
  display: none;
}

@media (min-width: 768px) {
  .zigzag {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .zigzag-content {
    flex: 1;
    max-width: 32rem;
  }

  .zigzag-icon {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
    width: 180px;
    padding-top: 0.5rem;
  }

  .zigzag-icon svg {
    width: 120px;
    height: 120px;
    color: var(--sage);
    opacity: 0.35;
  }

  /* Reverse layout for alternating sections */
  .zigzag-reverse {
    flex-direction: row-reverse;
  }

  .zigzag-reverse .zigzag-content {
    text-align: left;
  }
}

/* Hero - Centered Poster Layout */
.hero {
  background: var(--paper);
  padding: 3rem 2rem 2.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-content {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.5rem;
}

.hero-text {
  text-align: center;
  max-width: 38rem;
  padding: 0 0.25rem;
}

.hero h1 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  padding: 0 1rem;
}

.hero h1 span {
  display: block;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.5rem;
}

.hero-visual {
  position: relative;
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Organic blob shape behind illustration */
.hero-blob {
  position: absolute;
  width: 340px;
  height: 340px;
  background: var(--sage-light);
  border-radius: 60% 40% 55% 45% / 55% 45% 50% 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  z-index: 0;
}

.hero-visual img {
  max-width: 300px;
  height: auto;
  position: relative;
  z-index: 1;
  margin-top: -20px; /* Overlap with blob */
}

/* Typography */
h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.875rem;
  font-weight: 400;
  color: var(--forest);
  margin-bottom: 2rem;
}

.section-sage h2 {
  color: var(--white);
}

.text-large {
  font-size: 1.2rem;
  line-height: 1.7;
}

.text-highlight {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--forest);
  margin-bottom: 1.5rem;
}

.prose p {
  margin-bottom: 1.5rem;
  color: var(--gray-600);
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--warm-white);
  padding: 2rem;
  border-radius: 0.75rem;
}

.card-bordered {
  border: 1px solid var(--gray-200);
}

.card-accent {
  background: rgba(107, 142, 122, 0.1);
  border-left: 4px solid var(--sage);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(107, 142, 122, 0.15);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--sage);
}

.card h3 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--forest);
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--gray-600);
}

.tech-reassurance {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--sage);
  margin-top: 1rem;
}

/* Testimonials */
.section-testimonials h2,
.section-services h2 {
  text-align: center;
}

.card.testimonial-card {
  border: 2px solid var(--gray-200);
  background: var(--warm-white);
  padding: 2rem;
}

.testimonial {
  font-style: italic;
  font-size: 1.125rem;
  color: var(--gray-800);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.testimonial-author {
  font-family: 'Caveat', cursive;
  font-style: normal;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--forest);
}

/* About section with sticky sidebar */
.section-about {
  background: var(--white);
  padding: 4rem 1.5rem;
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about-image-wrapper {
  display: flex;
  justify-content: center;
}

.about-image {
  width: 280px;
  height: 280px;
  background: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(47, 82, 51, 0.15);
  border: 6px solid var(--white);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: brightness(1.1) saturate(1.05);
  transform: scale(1.1);
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: var(--sage);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.cta-section .subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-secondary {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta-secondary a {
  color: var(--white);
  text-decoration: underline;
}

/* Footer - teal bar style like flyer */
.footer {
  padding: 1.25rem 1.5rem;
  background: var(--forest);
}

.footer-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-tagline {
  color: var(--white);
  font-size: 1rem;
  opacity: 0.9;
}

.footer-tagline span {
  margin: 0 0.75rem;
  opacity: 0.7;
}

.footer-contact a {
  color: var(--white);
  transition: opacity 0.15s;
}

.footer-contact a:hover {
  opacity: 0.8;
}

.footer-contact span {
  margin: 0 0.5rem;
  opacity: 0.7;
}

.footer-location {
  color: var(--white);
  opacity: 0.9;
  font-size: 0.875rem;
}

.footer-brand a {
  color: var(--white);
  opacity: 0.9;
}

.footer-brand a:hover {
  opacity: 1;
}

.footer-copyright {
  color: var(--white);
  opacity: 0.7;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Focus states for accessibility */
a:focus, button:focus {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

.cta-section a:focus,
.footer a:focus {
  outline-color: var(--white);
}

/* Responsive */
@media (min-width: 768px) {
  .header-inner {
    padding: 1rem 1.5rem;
  }

  .logo {
    font-size: 1.35rem;
  }

  .header .btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    min-height: 44px;
  }

  .header-phone {
    display: inline;
  }

  .btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
  }

  .hero {
    padding: 5rem 1.5rem 3rem;
  }

  .hero h1 {
    font-size: 3.5rem;
    padding: 0;
  }

  .hero .subtitle {
    font-size: 1.2rem;
    padding: 0;
  }

  .hero-blob {
    width: 380px;
    height: 380px;
  }

  .hero-visual img {
    max-width: 340px;
  }

  h2 {
    font-size: 2rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* About sticky sidebar for tablet+ */
  .section-about {
    padding: 5rem 1.5rem;
  }

  .about-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 3.5rem;
  }

  .about-image-wrapper {
    position: sticky;
    top: 6rem;
    flex-shrink: 0;
  }

  .about-image {
    width: 300px;
    height: 300px;
  }

  .about-content {
    flex: 1;
    padding-top: 1rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.75rem; /* 60px */
  }

  .hero-blob {
    width: 420px;
    height: 420px;
  }

  .hero-visual img {
    max-width: 380px;
  }

  .about-image {
    width: 340px;
    height: 340px;
  }
}
