/* =============================================================================
   style.css — PrimeLawn Care
   Bright fresh green + white color scheme
   ============================================================================= */

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

:root {
  --green:       #2d7a1f;   /* Primary fresh green */
  --green-dark:  #1a4d10;   /* Darker green — hero, footer */
  --green-mid:   #3a9626;   /* Mid green — hover */
  --green-light: #4db830;   /* Bright green — accents */
  --green-pale:  #edf7e8;   /* Very pale green — section bg */
  --gold:        #f5a623;   /* Warm orange-gold — CTA accent */
  --gold-light:  #f7bc56;
  --white:       #ffffff;
  --ink:         #1a2e14;   /* Near-black with green tint */
  --slate:       #4a6b3e;   /* Muted green-grey */
  --mist:        #f4faf1;   /* Off-white with green tint */
  --shadow:      0 4px 24px rgba(45,122,31,0.12);
  --shadow-lg:   0 12px 48px rgba(45,122,31,0.2);
  --radius:      12px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--ink); background: var(--white); line-height: 1.65; }

/* ── Flash ── */
.flash-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; }
.flash-msg { padding: 14px 24px; text-align: center; font-weight: 500; font-size: 0.93rem; }
.flash-msg.success { background: #dcfce7; color: #166534; }
.flash-msg.error   { background: #fee2e2; color: #991b1b; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 5%;
  background: rgba(26,77,16,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--white); text-decoration: none; }
.nav-logo span { color: var(--green-light); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--green-light); }
.nav-cta { background: var(--gold); color: var(--ink); padding: 9px 22px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 0.85rem; transition: all 0.2s; }
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── HERO — Split Layout ── */
#hero {
  min-height: 100vh;
  background: var(--green-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 100px 5% 80px;
  position: relative; overflow: hidden; gap: 48px;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-bg::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 55%;
  background: radial-gradient(ellipse at 80% 50%, rgba(45,122,31,0.5) 0%, transparent 65%);
}
.hero-left { position: relative; animation: fadeUp 0.6s ease both; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(77,184,48,0.18); border: 1px solid rgba(77,184,48,0.35);
  color: var(--green-light); padding: 7px 16px; border-radius: 4px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -0.5px;
  color: var(--white); margin-bottom: 20px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero-sub {
  font-size: 1rem; color: rgba(255,255,255,0.65); font-weight: 300;
  line-height: 1.75; margin-bottom: 36px;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp 0.6s 0.3s ease both; margin-bottom: 36px; }
.btn-primary { background: var(--gold); color: var(--ink); padding: 14px 30px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 0.93rem; box-shadow: 0 4px 20px rgba(245,166,35,0.4); transition: all 0.2s; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.3); color: var(--white); padding: 14px 30px; border-radius: 6px; text-decoration: none; font-weight: 500; font-size: 0.93rem; transition: all 0.2s; }
.btn-outline:hover { border-color: var(--green-light); color: var(--green-light); }
.hero-trust { display: flex; flex-direction: column; gap: 10px; animation: fadeUp 0.6s 0.4s ease both; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.trust-icon { font-size: 14px; }
.hero-right { position: relative; display: flex; align-items: center; justify-content: center; animation: fadeUp 0.7s 0.2s ease both; }

/* ── NEWS PANEL ── */
.news-panel { width: 100%; max-width: 420px; background: rgba(255,255,255,0.05); border: 1px solid rgba(77,184,48,0.25); border-radius: 14px; overflow: hidden; }
.news-panel-header { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: rgba(77,184,48,0.1); border-bottom: 1px solid rgba(77,184,48,0.2); font-size: 0.78rem; font-weight: 700; color: var(--green-light); text-transform: uppercase; letter-spacing: 0.1em; }
.news-panel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-light); animation: blink-dot 2s ease-in-out infinite; flex-shrink: 0; }
@keyframes blink-dot { 0%,100%{opacity:1} 50%{opacity:0.3} }
.news-list { padding: 8px 0; max-height: 360px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(77,184,48,0.3) transparent; }
.news-list::-webkit-scrollbar { width: 4px; }
.news-list::-webkit-scrollbar-thumb { background: rgba(77,184,48,0.3); border-radius: 4px; }
.news-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.2s; }
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: rgba(255,255,255,0.03); }
.news-item-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.news-item-msg { font-size: 0.88rem; color: rgba(255,255,255,0.85); line-height: 1.5; margin: 0 0 5px; }
.news-item-date { font-size: 0.72rem; color: rgba(255,255,255,0.3); }
.news-empty { padding: 36px 20px; text-align: center; color: rgba(255,255,255,0.3); font-size: 0.88rem; }

@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

/* ── SECTION UTILITIES ── */
section { padding: 88px 5%; }
.section-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: var(--ink); line-height: 1.2; margin-bottom: 14px; }
.section-title.light { color: var(--white); }
.section-sub { font-size: 1rem; color: var(--slate); max-width: 540px; }
.section-sub.light { color: rgba(255,255,255,0.65); }
.section-body { font-size: 1rem; color: var(--slate); line-height: 1.8; max-width: 600px; }
.section-header { margin-bottom: 52px; }
.center { text-align: center; }
.center .section-sub { margin: 0 auto; }

/* ── ABOUT ── */
#about { background: var(--mist); }
.about-layout { display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: center; }
.about-visual {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: 16px; width: 220px; height: 220px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; box-shadow: var(--shadow-lg); overflow: hidden;
}
.about-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; }
.about-text { padding-left: 16px; }
.about-text .section-label { color: var(--green); }

/* ── SERVICES ── */
#services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.service-card {
  border: 1.5px solid #d4edc9; border-radius: var(--radius); padding: 32px 28px;
  transition: all 0.25s; position: relative; overflow: hidden; background: var(--white);
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--green-light); }
.svc-icon { font-size: 2rem; margin-bottom: 14px; }
.service-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.service-card p { font-size: 0.88rem; color: var(--slate); line-height: 1.65; }

/* ── PROJECTS ── */
#projects { background: var(--green-pale); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.project-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.25s; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-img { height: 200px; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.project-card:hover .project-img img { transform: scale(1.05); }
.project-placeholder { background: linear-gradient(135deg, var(--green-pale), #d4edc9); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.project-body { padding: 18px 20px; }
.project-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.project-body p { font-size: 0.87rem; color: var(--slate); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--slate); }
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state a { color: var(--green); font-weight: 600; }

/* ── TESTIMONIALS ── */
#testimonials { background: var(--white); }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.testi-card { border: 1.5px solid #d4edc9; border-radius: var(--radius); padding: 28px; transition: all 0.2s; }
.testi-card:hover { box-shadow: var(--shadow); border-color: var(--green-light); }
.testi-quote { font-size: 2.5rem; color: var(--green-light); line-height: 1; margin-bottom: 12px; }
.testi-card p { font-size: 0.93rem; color: var(--slate); font-style: italic; line-height: 1.7; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--green-light)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.82rem; color: var(--white); flex-shrink: 0; }
.testi-author strong { display: block; font-size: 0.9rem; color: var(--ink); }
.testi-author span { font-size: 0.8rem; color: var(--slate); }
.stars { color: var(--gold); font-size: 0.85rem; margin-top: 2px; }

/* ── CONTACT ── */
#contact { background: var(--green-dark); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.info-items { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-icon { font-size: 1.1rem; margin-top: 2px; }
.info-label { font-size: 0.7rem; color: rgba(255,255,255,0.4); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }
.info-val { font-size: 0.92rem; color: var(--white); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.77rem; font-weight: 600; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.06em; }
.form-group input, .form-group textarea, .form-group select { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); color: var(--white); border-radius: 6px; padding: 12px 15px; font-family: 'Inter', sans-serif; font-size: 0.91rem; transition: border-color 0.2s; width: 100%; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--green-light); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select option { background: #1a4d10; color: var(--white); }
.btn-submit { background: var(--gold); color: var(--ink); border: none; cursor: pointer; padding: 14px 30px; border-radius: 6px; font-weight: 700; font-size: 0.93rem; font-family: 'Inter', sans-serif; transition: all 0.2s; align-self: flex-start; box-shadow: 0 4px 16px rgba(245,166,35,0.35); }
.btn-submit:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ── FOOTER ── */
footer { background: #0f2d08; border-top: 1px solid rgba(77,184,48,0.12); padding: 32px 5%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--white); }
.footer-logo span { color: var(--green-light); }
.footer-tagline { font-size: 0.8rem; color: rgba(255,255,255,0.35); font-style: italic; margin-top: 3px; }
footer p { font-size: 0.77rem; color: rgba(255,255,255,0.22); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; text-align: center; }
  .hero-right { display: none; }
  .hero-actions { justify-content: center; }
  .hero-trust { align-items: center; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .about-layout { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .contact-layout, .form-row { grid-template-columns: 1fr; }
  footer { justify-content: center; text-align: center; }
}
