/* ================================================
   Lawn Care Invoice Templates — Shared Stylesheet
   Aesthetic: Rural editorial / utilitarian warmth
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Source+Serif+4:wght@300;400;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --green-deep: #1a3a2a;
  --green-mid: #2d6a4f;
  --green-light: #52b788;
  --green-pale: #d8f3dc;
  --cream: #faf7f0;
  --warm-white: #fffef9;
  --brown-dark: #3d2b1f;
  --brown-mid: #7c5c3e;
  --brown-light: #c9a87c;
  --gray-text: #4a4a4a;
  --gray-light: #e8e4dc;
  --shadow: 0 2px 16px rgba(26,58,42,0.10);
  --shadow-lg: 0 8px 40px rgba(26,58,42,0.15);
  --radius: 6px;
  --max-width: 900px;
}

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

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

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--cream);
  color: var(--gray-text);
  line-height: 1.7;
}

/* ---- HEADER ---- */
.site-header {
  background: var(--green-deep);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.site-logo {
  font-family: 'Playfair Display', serif;
  color: var(--green-pale);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-nav a {
  color: var(--brown-light);
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--green-pale); }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  background: var(--green-pale);
  padding: 10px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--green-mid);
  border-bottom: 1px solid #b7e4c7;
}
.breadcrumb a { color: var(--green-deep); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: var(--green-light); }

/* ---- HERO ---- */
.page-hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, #2d5a3d 60%, var(--green-mid) 100%);
  padding: 56px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2352b788' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
  position: relative;
  max-width: 700px;
  margin: 0 auto 12px;
}
.page-hero .hero-sub {
  color: var(--green-pale);
  font-size: 1rem;
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
}

/* ---- HERO IMAGES ---- */
.hero-images {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: var(--max-width);
  margin: 28px auto 0;
  padding: 0 16px;
  position: relative;
}
.hero-images img {
  width: 48%;
  max-width: 380px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 3px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 560px) {
  .hero-images { flex-direction: column; align-items: center; }
  .hero-images img { width: 100%; max-width: 100%; }
}

/* ---- MAIN CONTENT ---- */
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 60px;
}

section { margin-bottom: 44px; }

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--green-deep);
  margin-bottom: 14px;
  border-left: 4px solid var(--green-light);
  padding-left: 14px;
  line-height: 1.3;
}
h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 1.1rem;
  color: var(--brown-dark);
  margin-bottom: 8px;
  font-weight: 600;
}
p { margin-bottom: 12px; color: var(--gray-text); }
p:last-child { margin-bottom: 0; }

/* ---- INVOICE TEMPLATE BLOCK ---- */
.invoice-block {
  background: var(--warm-white);
  border: 2px solid var(--gray-light);
  border-top: 5px solid var(--green-mid);
  border-radius: var(--radius);
  padding: 32px 36px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  line-height: 2;
  box-shadow: var(--shadow);
  position: relative;
}
.invoice-block::before {
  content: 'LAWN CARE INVOICE';
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 14px;
}
.invoice-block .field { margin-bottom: 4px; color: var(--brown-dark); }
.invoice-block .field span { color: var(--gray-text); }
.invoice-block .services-list {
  margin: 16px 0;
  padding: 14px 0;
  border-top: 1px dashed var(--gray-light);
  border-bottom: 1px dashed var(--gray-light);
}
.invoice-block .services-list li {
  list-style: none;
  padding: 2px 0 2px 18px;
  position: relative;
  color: var(--gray-text);
}
.invoice-block .services-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-light);
  font-size: 0.9em;
}
.invoice-totals {
  margin-top: 16px;
  font-weight: 500;
}
.invoice-totals .total-line {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-light);
  padding: 4px 0;
}
.invoice-totals .total-due {
  font-size: 1.05rem;
  color: var(--green-deep);
  font-weight: 700;
  border-bottom: 3px double var(--green-mid);
}
.invoice-terms {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--brown-mid);
  font-style: italic;
}

/* ---- PRICING GRID ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.pricing-card {
  background: var(--warm-white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pricing-card .price-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown-mid);
  margin-bottom: 8px;
}
.pricing-card .price-range {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-deep);
}
.pricing-card .price-desc {
  font-size: 0.8rem;
  color: var(--gray-text);
  margin-top: 6px;
}

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--gray-light);
  padding: 18px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 8px;
  font-size: 1rem;
}
.faq-a { font-size: 0.95rem; color: var(--gray-text); }

/* ---- CTA SECTION ---- */
.cta-section {
  background: linear-gradient(135deg, var(--green-deep), #1e4d35);
  border-radius: 10px;
  padding: 36px 32px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-section h2 {
  color: var(--green-pale);
  border-left: none;
  padding-left: 0;
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.cta-section p { color: #c0d8cc; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--green-light);
  color: var(--green-deep);
}
.btn-primary:hover { background: #6fcf97; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--brown-light);
  color: var(--brown-light);
}
.btn-outline:hover { background: rgba(201,168,124,0.15); }

/* ---- EMAIL CAPTURE ---- */
.email-capture {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.email-capture input[type="email"] {
  padding: 10px 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: 'Source Serif 4', serif;
  font-size: 0.9rem;
  width: 260px;
}
.email-capture input::placeholder { color: rgba(255,255,255,0.5); }
.email-capture button {
  padding: 10px 22px;
  background: var(--brown-light);
  color: var(--brown-dark);
  border: none;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.email-capture button:hover { background: #d4b896; }

/* ---- MONETIZATION ---- */
.tools-section {
  background: var(--warm-white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 24px;
}
.tools-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.tool-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--green-pale);
  color: var(--green-deep);
  border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #b7e4c7;
  transition: background 0.2s;
}
.tool-tag:hover { background: #b7e4c7; }

/* ---- INTERNAL LINKS ---- */
.internal-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.internal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--cream);
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  color: var(--green-mid);
  text-decoration: none;
  font-size: 0.88rem;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.2s;
}
.internal-link:hover {
  background: var(--green-pale);
  border-color: var(--green-light);
  color: var(--green-deep);
}
.internal-link::before { content: '→'; font-size: 0.85em; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--green-deep);
  color: var(--green-pale);
  padding: 32px 24px;
  text-align: center;
  font-size: 0.82rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.03em;
}
.site-footer a { color: var(--green-light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }

/* ---- HUB PAGE ---- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.hub-card {
  display: block;
  background: var(--warm-white);
  border: 1px solid var(--gray-light);
  border-left: 4px solid var(--green-light);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-decoration: none;
  color: var(--green-deep);
  font-family: 'Source Serif 4', serif;
  font-size: 0.92rem;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.hub-card:hover {
  border-left-color: var(--green-mid);
  background: var(--green-pale);
  transform: translateX(3px);
}
.hub-card .card-state {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--brown-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 4px;
}

/* ---- HOMEPAGE SPECIFIC ---- */
.home-hero {
  background: linear-gradient(150deg, var(--green-deep) 0%, #1e5c38 50%, #2d6a4f 100%);
  padding: 80px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.home-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 40px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.home-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  max-width: 720px;
  margin: 0 auto 16px;
}
.home-hero p {
  color: var(--green-pale);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 30px;
  font-weight: 300;
}
.home-states {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.state-pill {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  color: var(--green-pale);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s;
}
.state-pill:hover { background: rgba(82,183,136,0.25); border-color: var(--green-light); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.feature-card {
  background: var(--warm-white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.feature-icon { font-size: 1.8rem; margin-bottom: 10px; }
.feature-card h3 { font-size: 1rem; color: var(--green-deep); margin-bottom: 6px; }
.feature-card p { font-size: 0.88rem; margin: 0; }

@media (max-width: 640px) {
  .site-header { flex-direction: column; gap: 8px; }
  .invoice-block { padding: 20px; }
  .cta-section { padding: 24px 18px; }
  h2 { font-size: 1.25rem; }
}
