/* Entech Irrigation — Jacksonville Sprinkler Repair
   Hand-written CSS, mobile-first, no framework. */

:root {
  --blue: #0284c7;
  --blue-dark: #0369a1;
  --blue-darker: #075985;
  --green: #16a34a;
  --green-dark: #15803d;
  --green-darker: #166534;
  --ink: #0f172a;
  --text: #1f2937;
  --muted: #4b5563;
  --soft: #6b7280;
  --line: #e5e7eb;
  --line-soft: #f1f5f9;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-band: #f1f5f9;
  --star: #f59e0b;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 4px 16px rgba(15, 23, 42, .08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, .12);
  --container: 1140px;
  --pad: clamp(16px, 4vw, 24px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ============ TOP BAR ============ */
.topbar {
  background: var(--ink);
  color: #e2e8f0;
  font-size: .88rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px;
}
.topbar a { color: #fff; font-weight: 600; }
.topbar strong { color: #fff; }

/* ============ HEADER / NAV ============ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { height: 48px; width: auto; }
.logo-text { font-weight: 700; color: var(--ink); }

.nav-toggle {
  margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  width: 42px; height: 42px; border-radius: 8px; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.primary-nav {
  display: none;
  margin-left: auto;
}
.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 22px; align-items: center;
}
.primary-nav a {
  color: var(--ink); font-weight: 600; font-size: .98rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { color: var(--blue); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }

.header-call {
  display: none;
  font-weight: 700; color: var(--green-darker);
  background: #ecfdf5; padding: 8px 14px; border-radius: 8px;
  border: 1px solid #a7f3d0;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: block; }
  .header-call { display: inline-flex; align-items: center; gap: 6px; }
}

/* Mobile menu (CSS-only, :target based) */
.mobile-menu {
  display: none;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 8px 0 12px;
}
.mobile-menu:target { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--line-soft); }
.mobile-menu a {
  display: block; padding: 12px var(--pad); color: var(--ink); font-weight: 600;
}
@media (min-width: 900px) {
  .mobile-menu { display: none !important; }
}

/* ============ CTA BUTTONS BLOCK ============ */
.cta-block {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 28px 0;
}
.cta-block.compact { padding: 22px 0; }
.cta-block h2 { color: #fff; text-align: center; margin-bottom: 6px; }
.cta-block p { text-align: center; opacity: .95; margin-bottom: 18px; }

.cta-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 700px;
  margin: 0 auto;
}
@media (min-width: 700px) {
  .cta-buttons { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 18px; min-height: 52px;
  border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; text-align: center;
  border: 2px solid transparent;
  cursor: pointer; transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.btn-call { background: #fff; color: var(--blue-darker); }
.btn-call:hover { background: #f8fafc; color: var(--blue-darker); }

.btn-text { background: var(--green); color: #fff; }
.btn-text:hover { background: var(--green-dark); color: #fff; }

.btn-schedule { background: var(--ink); color: #fff; }
.btn-schedule:hover { background: #1e293b; color: #fff; }

.btn-outline {
  background: transparent; color: #fff; border-color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--blue-darker); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }

.btn-icon { width: 18px; height: 18px; flex: none; }

/* ============ HERO ============ */
.hero {
  padding: 56px 0 48px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.hero h1 { color: var(--ink); margin-bottom: .35em; }
.hero .lede {
  font-size: 1.15rem; color: var(--muted);
  max-width: 720px; margin-bottom: 24px;
}
.hero .eyebrow {
  display: inline-block;
  background: #dbeafe; color: var(--blue-darker);
  padding: 4px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============ SECTIONS ============ */
.section { padding: 56px 0; }
.section.band { background: var(--bg-band); }
.section.dark { background: var(--ink); color: #cbd5e1; }
.section.dark h2, .section.dark h3 { color: #fff; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head h2 { margin-bottom: .3em; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ============ CARDS / GRIDS ============ */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
.card h3 { color: var(--ink); margin-top: 0; }
.card .icon-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: #ecfdf5; color: var(--green-darker);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-weight: 800; font-size: 1.25rem;
}
.card.blue .icon-circle { background: #dbeafe; color: var(--blue-darker); }

/* ============ SERVICE LIST ============ */
.service-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .service-list { grid-template-columns: 1fr 1fr; } }
.service-list li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: flex; align-items: center; gap: 12px;
  font-weight: 600; color: var(--ink);
}
.service-list li::before {
  content: ""; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/14px no-repeat;
}

/* ============ REVIEWS ============ */
.rating-summary {
  text-align: center; margin-bottom: 36px;
}
.rating-summary .stars { color: var(--star); font-size: 1.5rem; letter-spacing: 2px; }
.rating-summary .score { font-size: 2.5rem; font-weight: 800; color: var(--ink); display: block; }
.rating-summary .count { color: var(--muted); }

.review-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }

.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-sm);
}
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review-author { font-weight: 700; color: var(--ink); }
.review-date { color: var(--soft); font-size: .85rem; }
.review-stars { color: var(--star); font-size: 1rem; letter-spacing: 1px; }
.review-body { color: var(--text); margin: 0; }
.review-source { color: var(--soft); font-size: .78rem; display: inline-flex; align-items: center; gap: 6px; }
.review-source::before { content: "G"; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg,#4285F4,#34A853,#FBBC05,#EA4335); color: #fff; font-weight: 800; font-size: .7rem; }

/* ============ FAQ ============ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px;
  font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--blue); font-weight: 400;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer { padding: 0 22px 18px; color: var(--text); }
.faq-item .answer p:last-child { margin-bottom: 0; }

/* ============ BLOG ============ */
.post-list { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .post-list { grid-template-columns: repeat(2, 1fr); } }

.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, transform .08s ease;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card .meta { color: var(--soft); font-size: .85rem; margin-bottom: 8px; }
.post-card h2 { font-size: 1.3rem; margin-bottom: 8px; }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--blue); text-decoration: none; }
.post-card .excerpt { color: var(--muted); margin-bottom: 14px; flex: 1; }
.post-card .read-more { color: var(--blue); font-weight: 700; }

.post {
  max-width: 760px; margin: 0 auto;
}
.post .meta { color: var(--soft); font-size: .9rem; margin-bottom: 16px; }
.post h1 { margin-bottom: 16px; }
.post h2 { font-size: 1.5rem; margin-top: 2em; }
.post h3 { font-size: 1.2rem; margin-top: 1.6em; }
.post p, .post li { font-size: 1.05rem; }
.post ul, .post ol { padding-left: 1.4em; margin-bottom: 1em; }
.post li { margin-bottom: .5em; }

/* ============ CONTACT / EMBED PLACEHOLDERS ============ */
.embed-placeholder {
  background: #fff; border: 2px dashed var(--blue);
  border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center;
  color: var(--muted);
}
.embed-placeholder strong { color: var(--blue-darker); display: block; margin-bottom: 6px; font-size: 1.05rem; }
.embed-placeholder code {
  background: #f1f5f9; padding: 2px 6px; border-radius: 4px;
  font-size: .9em; color: var(--ink);
}

.contact-grid {
  display: grid; gap: 28px; grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-info dt {
  font-weight: 700; color: var(--ink); margin-top: 16px;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 4px 0 0; color: var(--muted); }
.contact-info a { color: var(--blue-dark); font-weight: 600; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 48px 0 24px;
}
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer a { color: #e2e8f0; }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid; gap: 32px; grid-template-columns: 1fr;
  margin-bottom: 36px;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand img { height: 48px; width: auto; background: #fff; padding: 6px 10px; border-radius: 8px; }
.footer-brand p { color: #94a3b8; margin-top: 14px; max-width: 320px; }

.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }

.footer-contact dt { color: #fff; font-weight: 600; }
.footer-contact dd { margin: 2px 0 12px; color: #cbd5e1; }

.footer-cta {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .footer-cta { grid-template-columns: repeat(3, 1fr); } }

.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 28px;
  padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  font-size: .88rem; color: #94a3b8;
}

/* ============ MISC ============ */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.lead { font-size: 1.15rem; color: var(--muted); }

.breadcrumbs {
  font-size: .9rem; color: var(--muted);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs .sep { margin: 0 6px; color: var(--soft); }

.callout {
  background: #ecfdf5; border: 1px solid #a7f3d0;
  border-left: 4px solid var(--green);
  padding: 18px 20px; border-radius: 8px;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ============ PRINT ============ */
@media print {
  .topbar, .site-header, .cta-block, .site-footer, .mobile-menu { display: none; }
  body { color: #000; }
}
