/* ================================================
   Love Growing Weed — Main Stylesheet
   Michigan landscape lighting
   ================================================ */

/* 1. CSS Variables */
:root {
  --primary:       #1f3d2e;   /* Deep cannabis green */
  --primary-dark:  #102218;   /* Darkest green (header/footer) */
  --primary-light: #2e5a43;   /* Hover / gradient */
  --accent:        #f0c355;   /* Trichome amber */
  --accent-dark:   #c89a35;
  --blue:          #2563eb;
  --text:          #1e293b;
  --text-muted:    #64748b;
  --bg:            #f8faf5;   /* Faint green-tinted off-white */
  --white:         #ffffff;
  --border:        #e2e8d8;
  --shadow:        0 2px 15px rgba(26,54,16,0.08);
  --shadow-lg:     0 10px 40px rgba(26,54,16,0.12);
  --radius:        8px;
  --max-width:     1200px;
  --header-height: 72px;
}

/* 2. Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; color: var(--text); background: var(--white); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* 3. Typography */
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; color: var(--white); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.3; color: var(--primary); }
h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 600; line-height: 1.4; color: var(--primary); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* 4. Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-dark { background: var(--primary-dark); }
.section-dark h2, .section-dark h3, .section-dark p { color: var(--white); }
.section-gray { background: var(--bg); }
.text-center { text-align: center; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { font-size: 1.1rem; color: var(--text-muted); max-width: 680px; margin: 0.75rem auto 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* 5. Header & Nav */
.site-header {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); }
.logo a { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.logo-main { font-size: 1.2rem; font-weight: 800; color: var(--white); }
.logo-accent { font-size: 0.68rem; font-weight: 600; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; }
.main-nav > ul { display: flex; align-items: center; gap: 0.15rem; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 0.5rem 0.8rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
}
.main-nav > ul > li > a:hover { color: var(--white); background: rgba(255,255,255,0.1); text-decoration: none; }
.main-nav .has-dropdown > a::after { content: ' \25BE'; font-size: 0.7rem; opacity: 0.65; }
.main-nav .dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.18s ease;
  border: 1px solid var(--border);
  z-index: 100;
}
.main-nav .has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .dropdown li a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--text);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.main-nav .dropdown li:last-child a { border-bottom: none; }
.main-nav .dropdown li a:hover { background: var(--bg); color: var(--primary); text-decoration: none; }
.nav-cta > a {
  background: var(--accent) !important;
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: var(--radius) !important;
  margin-left: 0.4rem;
}
.nav-cta > a:hover { background: var(--accent-dark) !important; }
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.3s; }

/* 6. Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { margin-bottom: 1.25rem; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.9); margin-bottom: 2rem; max-width: 620px; }
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-trust { margin-top: 2.5rem; display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.78); font-size: 0.875rem; }
.hero-trust-item::before { content: '\2713'; color: var(--accent); font-weight: 800; }

/* Smaller inner-page hero */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 3.5rem 0;
}
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.82); margin-top: 0.75rem; max-width: 650px; }
.breadcrumb { margin-bottom: 0.75rem; }
.breadcrumb a, .breadcrumb span { font-size: 0.83rem; color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 0.4rem; }

/* 7. Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary { background: var(--accent); color: var(--primary-dark); }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,168,56,0.4); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.55); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--white); text-decoration: none; }
.btn-dark { background: var(--primary); color: var(--white); }
.btn-dark:hover { background: var(--primary-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); text-decoration: none; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.1rem; }
.btn-block { width: 100%; text-align: center; padding: 1rem; }

/* Affiliate CTA button (stands out on review pages) */
.btn-affiliate { background: #22c55e; color: var(--white); }
.btn-affiliate:hover { background: #16a34a; text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(34,197,94,0.4); }

/* 8. Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon { width: 52px; height: 52px; background: var(--bg); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.6rem; }
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }
.card a.card-link { display: inline-block; margin-top: 1rem; color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.card a.card-link::after { content: ' \2192'; }

/* 9. Stats Bar */
.stats-bar { background: var(--accent); padding: 2.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-number { font-size: 2.4rem; font-weight: 900; color: var(--primary-dark); line-height: 1; }
.stat-label { font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-top: 0.3rem; }

/* 10. Split Content */
.content-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.content-block h2 { margin-bottom: 1.25rem; }
.content-block p { color: var(--text-muted); margin-bottom: 1rem; }
.feature-list { margin-top: 1.5rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; color: var(--text); }
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: '\2713'; color: var(--accent); font-weight: 800; flex-shrink: 0; margin-top: 0.1rem; }
.content-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.content-image img { width: 100%; height: 360px; object-fit: cover; }

/* 11. CTA Banner */
.cta-banner { background: var(--primary); padding: 5rem 0; text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 580px; margin: 0 auto 2rem; }

/* 12. Contact / Forms */
.contact-section { background: var(--bg); padding: 5rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; margin-top: 1.5rem; }
.contact-detail-icon { width: 44px; height: 44px; background: var(--primary); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.1rem; flex-shrink: 0; }
.contact-detail-text strong { display: block; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-detail-text span { font-size: 0.95rem; color: var(--text); font-weight: 600; }
.form-card { background: var(--white); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow-lg); }
.form-card h3 { margin-bottom: 1.75rem; color: var(--primary); }
.form-group { margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,90,31,0.15); }
textarea { resize: vertical; min-height: 120px; }
.form-submit { margin-top: 1.5rem; }
.form-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 0.75rem; }
.hidden { display: none !important; }

/* 13. Comparison Table */
.comparison-table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.comparison-table th, .comparison-table td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.comparison-table th { background: var(--primary); color: var(--white); font-weight: 700; }
.comparison-table tr:nth-child(even) { background: var(--bg); }
.comparison-table .win { color: #16a34a; font-weight: 700; }
.comparison-table .lose { color: #dc2626; }

/* 14. FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 1.25rem 0; font-size: 1rem; font-weight: 600; color: var(--primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; }
.faq-question:hover { color: var(--primary-light); }
.faq-question::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { display: none; padding-bottom: 1.25rem; color: var(--text-muted); line-height: 1.75; }
.faq-item.open .faq-answer { display: block; }

/* 15. Callout Box */
.callout { background: var(--bg); border-left: 4px solid var(--accent); padding: 1.5rem 2rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 2rem 0; }
.callout h4 { color: var(--primary); margin-bottom: 0.5rem; }
.callout p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* Affiliate disclosure banner */
.affiliate-disclosure { background: #fff8e6; border: 1px solid #ffe0a0; padding: 0.9rem 1.25rem; border-radius: var(--radius); font-size: 0.85rem; color: #6b5510; margin: 1.5rem 0; }
.affiliate-disclosure strong { color: #4a3a00; }

/* 16. Article / Blog Content */
.article-body { max-width: 780px; margin: 0 auto; }
.article-body h2 { margin: 2.5rem 0 1rem; }
.article-body h3 { margin: 2rem 0 0.75rem; }
.article-body p { line-height: 1.8; color: var(--text); margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin: 0 0 1.5rem 1.5rem; }
.article-body li { padding: 0.35rem 0; color: var(--text); line-height: 1.7; list-style-position: outside; }
.article-body ul li { list-style-type: disc; }
.article-body ol li { list-style-type: decimal; }
.article-body table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.article-body table th, .article-body table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; text-align: left; }
.article-body table th { background: var(--primary); color: var(--white); }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body strong { color: var(--text); }

/* Author byline block */
.byline { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 2rem 0; }
.byline-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; flex-shrink: 0; }
.byline-meta { flex: 1; font-size: 0.88rem; color: var(--text-muted); }
.byline-meta .byline-name { color: var(--primary); font-weight: 700; font-size: 0.95rem; display: block; margin-bottom: 0.2rem; }
.byline-meta .byline-date { font-size: 0.82rem; }

/* Product review card */
.review-card { background: var(--white); border: 2px solid var(--primary); border-radius: var(--radius); padding: 1.75rem; margin: 1.5rem 0; box-shadow: var(--shadow); }
.review-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.review-card h3 { margin: 0; }
.review-rating { font-size: 1.15rem; color: var(--accent); font-weight: 700; }
.review-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1rem 0 1.5rem; }
.review-pros h4, .review-cons h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.review-pros h4 { color: #16a34a; }
.review-cons h4 { color: #dc2626; }
.review-pros li, .review-cons li { padding: 0.3rem 0; font-size: 0.9rem; }
.review-pros li::before { content: '\2713  '; color: #16a34a; font-weight: 700; }
.review-cons li::before { content: '\2715  '; color: #dc2626; font-weight: 700; }

/* 17. Footer */
.site-footer { background: var(--primary-dark); }
.footer-top { padding: 4rem 0 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand p { margin-top: 1rem; font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.55); }
.footer-col h4 { color: var(--white); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.55); font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin: 0; }
.footer-legal { font-size: 0.78rem; color: rgba(255,255,255,0.4); line-height: 1.65; margin-top: 1rem !important; }

/* 18. Thank-You Page */
.thankyou-section { padding: 8rem 0; text-align: center; }
.thankyou-icon { font-size: 4rem; margin-bottom: 1.5rem; }
.thankyou-section h1 { color: var(--primary); font-size: 2.25rem; margin-bottom: 1rem; }
.thankyou-section p { color: var(--text-muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto 2rem; }

/* 19. Responsive */
@media (max-width: 1100px) {
  .main-nav > ul > li > a { padding: 0.5rem 0.6rem; font-size: 0.82rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .content-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .review-pros-cons { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--primary-dark);
    padding: 1rem 1.5rem 2rem;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.mobile-open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .main-nav > ul > li > a { padding: 0.85rem 0.5rem; font-size: 0.95rem; }
  .main-nav .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(0,0,0,0.25); border: none; border-radius: 0; display: none; }
  .main-nav .has-dropdown.mobile-open .dropdown { display: block; }
  .main-nav .dropdown li a { color: rgba(255,255,255,0.65); padding-left: 1.5rem; font-size: 0.875rem; }
  .mobile-menu-toggle { display: flex; }
  .hero { padding: 3rem 0; }
  .section { padding: 3.5rem 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .hero-trust { gap: 1rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; }
}

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