/* ==========================================
   LAWNPRO — Main Stylesheet
   Fonts: Fraunces (display) + DM Sans (body)
   ========================================== */

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

:root {
  --green:      #1a5c2e;
  --green-mid:  #2d7a44;
  --green-light:#e8f5ec;
  --green-pale: #f2faf4;
  --gold:       #c8921a;
  --gold-light: #fdf4e3;
  --dark:       #111a14;
  --mid:        #3d4f40;
  --muted:      #6b7f6e;
  --border:     #d4e0d7;
  --bg:         #fafcfa;
  --white:      #ffffff;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 2px 16px rgba(26,92,46,.08);
  --shadow-md:  0 6px 32px rgba(26,92,46,.12);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  line-height: 1.2;
  color: var(--dark);
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---- NAV ---- */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--green); text-decoration: none;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  color: var(--mid); font-size: 0.95rem; font-weight: 500;
}
.nav-links a:hover { color: var(--green); text-decoration: none; }
.btn-nav {
  background: var(--green) !important; color: var(--white) !important;
  padding: 8px 20px; border-radius: 100px;
  font-size: 0.9rem !important;
  transition: background .2s;
}
.btn-nav:hover { background: var(--green-mid) !important; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block; cursor: pointer; border: none; outline: none;
  font-family: 'DM Sans', sans-serif; font-weight: 500;
  border-radius: 100px; transition: all .2s; text-align: center;
  text-decoration: none;
}
.btn-primary {
  background: var(--green); color: var(--white);
  padding: 14px 32px; font-size: 1rem;
}
.btn-primary:hover { background: var(--green-mid); color: var(--white); text-decoration: none; }
.btn-secondary {
  background: var(--white); color: var(--green);
  border: 1.5px solid var(--green);
  padding: 13px 30px; font-size: 1rem;
}
.btn-secondary:hover { background: var(--green-pale); text-decoration: none; }
.btn-gold {
  background: var(--gold); color: var(--white);
  padding: 14px 32px; font-size: 1rem;
}
.btn-gold:hover { background: #b07e14; color: var(--white); text-decoration: none; }
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }
.btn-danger { background: #dc3545; color: white; }
.btn-danger:hover { background: #c82333; color: white; text-decoration: none; }

/* ---- FLASH MESSAGES ---- */
.flash {
  padding: 14px 24px; font-size: 0.95rem; font-weight: 500;
  text-align: center;
}
.flash-success { background: var(--green-light); color: var(--green); }
.flash-error   { background: #fde8e8; color: #b91c1c; }
.flash-info    { background: #e0f0ff; color: #1563aa; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--green) 100%);
  color: var(--white); padding: 100px 24px 80px;
  text-align: center;
  position: relative; overflow: hidden;
}
.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='%23ffffff' fill-opacity='0.03'%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");
}
.hero-content { position: relative; max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white); padding: 6px 16px; border-radius: 100px;
  font-size: 0.85rem; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--white); margin-bottom: 20px;
  font-weight: 700;
}
.hero p {
  font-size: 1.2rem; opacity: .85; margin-bottom: 36px;
  max-width: 540px; margin-left: auto; margin-right: auto;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-hero-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.6);
  padding: 14px 32px; font-size: 1rem;
}
.btn-hero-outline:hover { background: rgba(255,255,255,.1); color: var(--white); text-decoration: none; }

/* ---- SECTION ---- */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--green-pale); }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.7); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 12px; }
.section-header p { font-size: 1.1rem; color: var(--muted); max-width: 520px; margin: 0 auto; }

/* ---- CARDS ---- */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
}
.card-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ---- PRICING CARDS ---- */
.pricing-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 900px; margin: 0 auto;
}
.pricing-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 36px 28px;
  position: relative; transition: transform .2s, box-shadow .2s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card.popular {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,92,46,.12);
}
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: var(--white);
  padding: 4px 18px; border-radius: 100px; font-size: 0.8rem; font-weight: 600;
  white-space: nowrap;
}
.plan-name { font-family: 'Fraunces', serif; font-size: 1.3rem; margin-bottom: 6px; }
.plan-price { font-size: 2.6rem; font-weight: 700; color: var(--green); }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan-features { list-style: none; margin: 20px 0 28px; }
.plan-features li {
  padding: 7px 0; font-size: 0.95rem; color: var(--mid);
  border-bottom: 1px solid var(--green-light);
  display: flex; gap: 8px; align-items: center;
}
.plan-features li::before { content: '✓'; color: var(--green); font-weight: 700; }

/* ---- HOW IT WORKS ---- */
.steps-grid {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.step { text-align: center; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 700;
  margin: 0 auto 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 0.95rem; color: var(--muted); }

/* ---- FORMS ---- */
.form-page {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 24px;
}
.form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
  width: 100%; max-width: 460px;
  box-shadow: var(--shadow-md);
}
.form-card h2 { font-size: 1.8rem; margin-bottom: 8px; }
.form-card .subtitle { color: var(--muted); margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 6px; color: var(--mid); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  background: var(--bg); color: var(--dark);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--green);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-full { width: 100%; }
.form-hint { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.form-link { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--muted); }
.form-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ---- DASHBOARD ---- */
.dashboard { display: flex; min-height: calc(100vh - 64px); }
.sidebar {
  width: 230px; flex-shrink: 0;
  background: var(--dark); padding: 28px 0;
  position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto;
}
.sidebar-logo { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 12px; }
.sidebar-logo span { font-family: 'Fraunces', serif; color: var(--white); font-size: 1.1rem; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; color: rgba(255,255,255,.65);
  font-size: 0.92rem; font-weight: 400;
  transition: all .15s; border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  color: var(--white); background: rgba(255,255,255,.06);
  border-left-color: #4ade80;
  text-decoration: none;
}
.sidebar-nav a .icon { font-size: 1rem; width: 18px; text-align: center; }
.main-content { flex: 1; padding: 36px 32px; background: var(--bg); min-width: 0; }
.page-header { margin-bottom: 32px; }
.page-header h1 { font-size: 1.8rem; }
.page-header p { color: var(--muted); margin-top: 4px; }

/* Stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.stat-label { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.stat-value { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 700; color: var(--dark); }
.stat-value.green { color: var(--green); }

/* Tables */
.table-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { background: var(--green-pale); padding: 12px 16px; text-align: left; font-size: 0.82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--green); font-weight: 600; }
td { padding: 12px 16px; border-top: 1px solid var(--border); font-size: 0.92rem; vertical-align: middle; }
tr:hover td { background: var(--green-pale); }

/* Badges */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600;
}
.badge-green  { background: var(--green-light); color: var(--green); }
.badge-gold   { background: var(--gold-light); color: var(--gold); }
.badge-gray   { background: #f0f0f0; color: #666; }
.badge-red    { background: #fde8e8; color: #b91c1c; }
.badge-blue   { background: #e0f0ff; color: #1563aa; }

/* Plan display */
.plan-display {
  background: var(--green-light); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.plan-display .plan-info h3 { font-size: 1.2rem; color: var(--green); }
.plan-display .plan-info p { font-size: 0.9rem; color: var(--muted); }

/* ---- FOOTER ---- */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { font-family: 'Fraunces', serif; color: var(--white); font-size: 1.3rem; margin-bottom: 10px; }
.footer-tagline { font-size: 0.9rem; line-height: 1.6; }
.footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: rgba(255,255,255,.6); font-size: 0.9rem; }
.footer ul a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,.4); }

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.text-green  { color: var(--green); }
.text-muted  { color: var(--muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 16px; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.92rem; margin-bottom: 16px; }
.alert-success { background: var(--green-light); color: var(--green); border-left: 4px solid var(--green); }
.alert-danger  { background: #fde8e8; color: #b91c1c; border-left: 4px solid #b91c1c; }
.alert-info    { background: #e0f0ff; color: #1563aa; border-left: 4px solid #1563aa; }
.empty-state { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty-state .icon { font-size: 2.5rem; margin-bottom: 12px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links a:not(.btn-nav) { display: none; }
  .hero { padding: 64px 24px 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dashboard { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .main-content { padding: 24px 16px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
}
