/* ===== My Tidy Home — Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --sage: #8BAF9E;
  --sage-light: #D4E4DA;
  --sage-dark: #6B9A84;
  --cream: #FAFAF7;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --warm: #F5F0EB;
  --accent-warm: #C8A882;
  --font-body: 'Nunito', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.10);
  --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);
  color: var(--gray-700);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== HEADER / NAV ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sage-dark);
}
.logo span { color: var(--gray-900); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--sage-dark); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--sage);
  border-radius: 2px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--warm) 100%);
  padding: 80px 24px;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--gray-900);
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero p {
  font-size: 1.2rem;
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero .btn-primary { font-size: 1.05rem; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--sage);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--sage-dark); transform: translateY(-1px); }

.btn-amazon {
  display: inline-block;
  background: #FF9900;
  color: var(--white);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}
.btn-amazon:hover { background: #E88B00; transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--sage);
  color: var(--sage-dark);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--sage); color: var(--white); }

/* ===== SECTION HEADINGS ===== */
.section { padding: 72px 0; }
.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* ===== GUIDE / CATEGORY CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.guide-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}
.guide-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.guide-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.guide-card-body { padding: 24px; }
.guide-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.guide-card-body p {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

/* ===== PRODUCT CARDS ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-img {
  width: 100%;
  height: 220px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}
.product-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.4;
}
.product-body p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 16px;
  flex: 1;
}
.product-body .btn-amazon { width: 100%; }

.product-badge {
  display: inline-block;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== PAGE HEADER (content pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--warm) 100%);
  padding: 56px 24px;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.page-header p {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CONTENT SECTIONS (articles) ===== */
.content-section { padding: 64px 0; }
.content-section h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.content-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 32px 0 12px;
}
.content-section p { margin-bottom: 16px; max-width: 780px; }
.content-section ul,
.content-section ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}
.content-section li { margin-bottom: 8px; }

/* ===== TIP BOX ===== */
.tip-box {
  background: var(--sage-light);
  border-left: 4px solid var(--sage);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
}
.tip-box strong { color: var(--sage-dark); }

/* ===== SEASONAL / CTA BANNER ===== */
.cta-banner {
  background: var(--sage);
  color: var(--white);
  padding: 56px 24px;
  text-align: center;
  border-radius: var(--radius);
  margin: 48px 0;
}
.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 12px;
}
.cta-banner p { margin-bottom: 24px; opacity: 0.9; }
.cta-banner .btn-primary {
  background: var(--white);
  color: var(--sage-dark);
}
.cta-banner .btn-primary:hover { background: var(--gray-100); }

/* ===== FEATURES / BENEFITS STRIP ===== */
.features-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding: 48px 0;
  text-align: center;
}
.feature-item { padding: 16px; }
.feature-icon { font-size: 2.5rem; margin-bottom: 12px; }
.feature-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.feature-item p { font-size: 0.9rem; color: var(--gray-500); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: var(--sage-light); margin-bottom: 12px; }
.footer-brand .logo span { color: var(--white); }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer-links h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-300);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--sage-light); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
}
.affiliate-disclosure {
  background: rgba(255,255,255,0.05);
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  line-height: 1.6;
}

/* ===== FORM STYLES ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-700);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sage);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.contact-form { max-width: 600px; }

/* ===== ABOUT PAGE ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.about-img-placeholder {
  background: var(--sage-light);
  border-radius: var(--radius);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 56px 24px; }
  .page-header h1 { font-size: 1.75rem; }
  .page-header { padding: 40px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .about-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}

@media (max-width: 480px) {
  .card-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
}
