/* Clear Weightloss - Main Styles */
:root {
  --color-primary: #2d5a27;
  --color-primary-dark: #1e3d1a;
  --color-accent: #7cb342;
  --color-light: #f5f9f4;
  --color-text: #2c2c2c;
  --color-text-muted: #5a5a5a;
  --font-heading: 'DM Sans', 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --shadow: 0 4px 20px rgba(45, 90, 39, 0.12);
  --radius: 12px;
  --max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: #fff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: var(--color-primary-dark);
  opacity: 0.9;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & Nav */
.site-header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo a {
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img,
.logo svg {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color-primary);
  line-height: 1;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.main-nav a {
  font-weight: 500;
  padding: 0.35rem 0;
  color: var(--color-text);
}

.main-nav a:hover {
  color: var(--color-primary);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-light) 0%, #e8f0e6 100%);
  padding: 3rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.hero p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.hero-image {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 380px;
  object-fit: cover;
  width: 100%;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(45, 90, 39, 0.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  font-size: 1.2rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.card-body p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Page header (for inner pages) */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

/* Content */
.content-block {
  max-width: 720px;
  margin: 0 auto;
}

.content-block h2 {
  font-size: 1.35rem;
  color: var(--color-primary-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.content-block h3 {
  font-size: 1.15rem;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

.content-block ul, .content-block ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

.content-block li {
  margin-bottom: 0.35rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-actions {
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.95);
}

.footer-section p,
.footer-section address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.4rem;
}

.footer-section a {
  color: rgba(255,255,255,0.9);
}

.footer-section a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
}

.footer-bottom a {
  color: rgba(255,255,255,0.9);
}

/* Subscribe / Unsubscribe links in footer */
.footer-newsletter-links {
  margin-top: 0.5rem;
}

.footer-newsletter-links a {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.25rem;
}

/* Contact info */
.contact-list {
  list-style: none;
  margin: 0;
}

.contact-list li {
  margin-bottom: 0.5rem;
  padding-left: 0;
}

.contact-list a {
  color: var(--color-primary);
}

/* Mobile menu */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.is-open {
    max-height: 320px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid #eee;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 0;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
