/* main.css - Global styles for Local Good Morning Pinner */

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

/* Base */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
}

a { color: #e65100; text-decoration: none; }
a:hover { color: #d84315; }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* Header */
header { background: #fff; border-bottom: 1px solid #eee; padding: 1rem 0; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: #222; text-decoration: none; }
.logo span { color: #e65100; }
nav a { color: #555; text-decoration: none; margin-left: 1.5rem; }
nav a:hover { color: #e65100; }

/* Hero (index) */
.hero { background: linear-gradient(135deg, #fff8f0 0%, #fff 100%); padding: 3rem 0; text-align: center; }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; color: #222; }
.hero p { font-size: 1.25rem; color: #666; max-width: 600px; margin: 0 auto 2rem; }
.cta-button { display: inline-block; background: #e65100; color: #fff; padding: 0.75rem 2rem; text-decoration: none; border-radius: 4px; font-weight: 600; }
.cta-button:hover { background: #d84315; color: #fff; }

/* Category grid (index) */
.categories { padding: 3rem 0; }
.categories h2 { text-align: center; margin-bottom: 2rem; font-size: 1.75rem; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.category-card { background: #fff; border: 1px solid #eee; padding: 1.5rem; text-align: center; border-radius: 8px; text-decoration: none; color: #333; transition: box-shadow 0.2s; }
.category-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.category-card h3 { margin-bottom: 0.5rem; }
.category-card p { color: #666; font-size: 0.9rem; }

/* Featured / business grid */
.featured { background: #fafafa; padding: 3rem 0; }
.featured h2 { text-align: center; margin-bottom: 2rem; }
.business-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.business-card { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; }
.business-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.business-content { padding: 1.25rem; }
.business-card h3 { margin-bottom: 0.5rem; color: #222; }
.business-card .category { color: #e65100; font-size: 0.85rem; font-weight: 600; }
.business-card p { color: #666; font-size: 0.95rem; }

/* Page header (list, single) */
.page-header { background: #fafafa; padding: 2rem 0; border-bottom: 1px solid #eee; }
.page-header h1 { font-size: 2rem; }

/* Breadcrumb (single) */
.breadcrumb { padding: 1rem 0; color: #666; font-size: 0.9rem; }
.breadcrumb a { color: #e65100; text-decoration: none; }

/* Business header (single) */
.business-header { background: #fafafa; padding: 2rem 0; border-bottom: 1px solid #eee; }
.business-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.business-header .category { color: #e65100; font-weight: 600; }

/* Content area */
.content { padding: 2rem 0; }

/* Business details (single) */
.business-details { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.details-card { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 1.5rem; }
.details-card h3 { margin-bottom: 1rem; color: #222; }
.detail-row { display: flex; margin-bottom: 0.75rem; }
.detail-label { font-weight: 600; width: 120px; color: #555; flex-shrink: 0; }
.detail-value { color: #333; }
.detail-value a { color: #e65100; }
.back-link { display: inline-block; margin-bottom: 1rem; color: #e65100; text-decoration: none; }

/* Generic page content */
.page-content { padding: 2rem 0; max-width: 800px; }
.page-content h2 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.page-content p { margin-bottom: 1rem; }
.page-content ul { margin-left: 1.5rem; margin-bottom: 1rem; }
.page-content li { margin-bottom: 0.25rem; }

/* Footer */
footer { background: #222; color: #fff; padding: 2rem 0; text-align: center; margin-top: 3rem; }
footer a { color: #ccc; }
footer a:hover { color: #fff; }

/* Newsletter CTA */
.newsletter-cta {
  background-color: #f0f7f0;
  border-top: 3px solid #2d6a4f;
  padding: 2.5rem 1rem;
  text-align: center;
}
.newsletter-cta__inner {
  max-width: 600px;
  margin: 0 auto;
}
.newsletter-cta h2 {
  margin: 0 0 0.5rem;
  color: #1b4332;
  font-size: 1.5rem;
}
.newsletter-cta p {
  margin: 0 0 1.25rem;
  color: #40916c;
  font-size: 1rem;
}
.newsletter-link {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #2d6a4f;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}
.newsletter-link:hover {
  background: #1b4332;
}

/* Claim Listing CTA */
.claim-cta {
  background-color: #fff8e1;
  border: 1px solid #ffcc02;
  border-radius: 6px;
  padding: 1.25rem;
  margin-top: 1.5rem;
}
.claim-cta h3 {
  margin: 0 0 0.5rem;
  color: #5d4037;
  font-size: 1.1rem;
}
.claim-cta p {
  margin: 0 0 1rem;
  color: #795548;
  font-size: 0.9rem;
}
.claim-button {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: #2d6a4f;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.95rem;
}
.claim-button:hover {
  background: #1b4332;
}
