/* Murillo's Lawn Care - site styles */
:root {
  --bg: #fcfcf8;
  --fg: #0b2010;
  --card: #ffffff;
  --primary: #830001;
  --primary-fg: #fcfcf5;
  --primary-deep: #590000;
  --secondary: #fceeec;
  --muted-fg: #745d5a;
  --accent: #c5372f;
  --border: #e8dbd8;
  --input: #ebe2e1;
  --radius: 0.5rem;
  --shadow-soft: 0 10px 30px -10px rgba(89, 0, 0, 0.3);
  --font-display: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: var(--primary-fg); padding: 0.75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.bg-secondary { background: var(--secondary); }
.bg-deep { background: var(--primary-deep); color: var(--primary-fg); }
.text-center { text-align: center; }

.eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--primary);
  font-weight: 600;
}
.section-title { margin-top: 0.75rem; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
.lead { margin-top: 1.25rem; color: var(--muted-fg); line-height: 1.7; }
.lead + .lead { margin-top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  border: 0;
  font: 600 0.95rem/1.2 var(--font-sans);
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--primary-fg); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--primary-deep); }
.btn-light { background: #fff; color: var(--primary); box-shadow: var(--shadow-soft); }
.btn-sm { padding: 0.625rem 1.1rem; font-size: 0.875rem; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.mt-cta { margin-top: 1.75rem; }

/* Top bar */
.topbar { background: var(--primary-deep); color: var(--primary-fg); font-size: 0.875rem; }
.topbar .container { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; }
.topbar a { font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--border); position: relative; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.25rem; padding-bottom: 0.25rem; }
.logo img { height: 96px; width: auto; }
.main-nav ul { display: flex; align-items: center; gap: 1.75rem; }
.main-nav a { font-size: 0.875rem; font-weight: 500; color: var(--muted-fg); }
.main-nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--fg);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Hero */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.45)); }
.hero-content { position: relative; z-index: 1; text-align: center; color: #fff; padding-top: 6rem; padding-bottom: 6rem; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 700; line-height: 1.05; }
.hero-rule { margin: 1.5rem auto 0; height: 2px; width: 6rem; background: rgba(255,255,255,0.7); }
.hero p { margin: 1.5rem auto 0; max-width: 42rem; font-size: 1.125rem; color: rgba(255,255,255,0.9); }
.hero-ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; }

/* Two-column feature blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.rounded-img { border-radius: 0.75rem; box-shadow: var(--shadow-soft); width: 100%; }

/* Services */
.services-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.service img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0.75rem; box-shadow: var(--shadow-soft); }
.service h3 { margin-top: 1rem; font-size: 1.5rem; font-weight: 700; text-align: center; }

/* Why us */
.why .eyebrow { color: var(--accent); }
.values { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.value { border-radius: 0.75rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 2rem; }
.value-icon { margin: 0 auto; width: 3.5rem; height: 3.5rem; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; }
.value h3 { margin-top: 1.25rem; font-size: 1.5rem; font-weight: 700; }
.value p { margin-top: 0.75rem; color: rgba(255,255,255,0.8); font-size: 0.875rem; line-height: 1.7; }

/* Quote form */
.narrow { max-width: 48rem; }
.quote-form {
  margin-top: 2.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.field { display: flex; flex-direction: column; min-width: 0; }
.field.full, .form-footer, .form-note { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field input, .field textarea {
  margin-top: 0.5rem;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  padding: 0.6rem 0.75rem;
  font: 1rem/1.4 var(--font-sans); /* 16px stops iOS zooming into the field */
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(131, 0, 1, 0.2); }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.form-footer p { font-size: 0.75rem; color: var(--muted-fg); }
.form-footer p a { text-decoration: underline; }
.form-footer .btn { white-space: nowrap; flex-shrink: 0; }
.form-note { font-size: 0.875rem; padding: 0.75rem 1rem; border-radius: var(--radius); background: #fde8e8; color: #9b1c1c; border: 1px solid #f8b4b4; }
.form-note[hidden] { display: none; }

/* Contact */
.contact-list { margin-top: 1.5rem; color: var(--muted-fg); }
.contact-list li { margin-top: 0.25rem; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-list a:hover { color: var(--primary); }
.contact-social { display: flex; gap: 1.25rem; }
.area-title { margin-top: 2rem; font-weight: 600; }
.area-list { margin-top: 0.5rem; color: var(--muted-fg); }
.map { border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-soft); align-self: stretch; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

/* Footer */
.site-footer { background: var(--primary-deep); color: rgba(252, 252, 245, 0.8); font-size: 0.875rem; }
.site-footer .container { padding-top: 2rem; padding-bottom: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: #fff; }
.footer-credit { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-credit .container { padding-top: 0.75rem; padding-bottom: 0.75rem; justify-content: center; font-size: 0.8rem; }
.footer-credit a { text-decoration: underline; }

/* Simple content pages (privacy policy, thank you, 404) */
.page { padding: 4rem 0 5rem; }
.page h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 700; }
.prose { max-width: 48rem; }
.prose h2 { margin-top: 2rem; font-size: 1.35rem; }
.prose p, .prose ul { margin-top: 1rem; color: var(--muted-fg); }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose a { color: var(--primary); text-decoration: underline; }

/* Tablet */
@media (max-width: 1023px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .section { padding: 3.5rem 0; }
  .container { padding: 0 1rem; }
  .logo img { height: 72px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 20px -12px rgba(0,0,0,0.2);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1rem 1rem; }
  .main-nav a { display: flex; align-items: center; min-height: 48px; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .hero { min-height: 520px; }
  .hero-content { padding-top: 4rem; padding-bottom: 4rem; }
  .hero p { font-size: 1rem; }
  .hero-ctas .btn { width: 100%; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split .media-last { order: 2; }
  .values { grid-template-columns: 1fr; gap: 1rem; }
  .quote-form { grid-template-columns: 1fr; padding: 1.25rem; }
  .form-footer { flex-direction: column; align-items: stretch; }
  .form-footer .btn, .split .btn { width: 100%; }
  .map iframe { min-height: 300px; }
  .site-footer .container { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 479px) {
  .services-grid { gap: 1rem; margin-top: 2rem; }
  .service h3 { font-size: 1.1rem; margin-top: 0.6rem; }
  .header-actions .btn { padding: 0.6rem 0.8rem; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: none; transform: none; }
}
