/* ============================================================
   FIMSELLZ — design tokens
   Pine  #1B4332   Grass #40916C   Mint #D8F3DC
   Marigold #FF8500   Slate #1D3557   Paper #F8FAF7
   ============================================================ */
:root {
  --pine: #1B4332;
  --grass: #40916C;
  --grass-dark: #2D6A4F;
  --mint: #D8F3DC;
  --marigold: #FF8500;
  --slate: #1D3557;
  --paper: #F8FAF7;
  --ink: #16241D;
  --line: #DCE6DE;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(27,67,50,0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--pine);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
a { color: var(--grass-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- Top contact bar ---- */
.top-bar {
  background: var(--slate); color: #EAF3EC; font-size: 0.85rem;
}
.top-bar-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 24px; flex-wrap: wrap; gap: 8px;
}
.service-area { font-weight: 600; color: #C9DCF5; }
.top-bar-contact { display: flex; gap: 18px; flex-wrap: wrap; }
.top-bar-contact a { color: #EAF3EC; font-weight: 500; }
.top-bar-contact a:hover { color: #fff; }

/* ---- Header ---- */
.site-header {
  background: var(--pine);
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; flex-wrap: wrap; gap: 10px 0; padding: 10px 0;
}
.brand {
  color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: 1.3rem; display: flex; align-items: center; gap: 10px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 4px;
  background: repeating-linear-gradient(45deg, var(--grass) 0 4px, var(--marigold) 4px 5px);
  display: inline-block;
}
.main-nav { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.main-nav a { color: #EAF3EC; font-weight: 500; }
.main-nav a:hover { color: #fff; text-decoration: none; }
.nav-cta {
  background: var(--marigold); color: #1B4332 !important;
  padding: 8px 16px; border-radius: 999px; font-weight: 700;
}

/* ---- Hero (mow-stripe signature) ---- */
.hero {
  background:
    repeating-linear-gradient(100deg, rgba(255,255,255,0.05) 0 60px, rgba(0,0,0,0.05) 60px 120px),
    linear-gradient(135deg, var(--pine), var(--grass-dark));
  color: #fff;
  padding: 84px 0 96px;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3.2rem); max-width: 14ch; }
.hero p.lede { font-size: 1.15rem; max-width: 46ch; color: #EAF3EC; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-badge {
  background: rgba(255,255,255,0.15); color: #fff; margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.3);
}
.hero-contact { margin-top: 18px; color: #C9DCF5; font-size: 0.95rem; }
.hero-contact a { color: #fff; font-weight: 700; text-decoration: underline; }

.photo-gallery img {
  width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--line); display: block;
}
.contact-quicklinks { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 4px; }

.machine-card img {
  width: 100%; height: 180px; object-fit: cover; border-radius: 8px;
  margin: -24px -24px 14px; width: calc(100% + 48px); max-width: calc(100% + 48px);
  border-bottom: 1px solid var(--line);
}

.mow-stripe {
  height: 14px;
  background: repeating-linear-gradient(90deg, var(--grass) 0 24px, var(--grass-dark) 24px 48px);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block; font-weight: 600; font-family: var(--font-body);
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; font-size: 0.98rem; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--marigold); color: #1B4332; }
.btn-primary:hover { background: #e57900; }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-secondary { background: var(--grass); color: #fff; }
.btn-secondary:hover { background: var(--grass-dark); }
.btn-danger { background: #B23A48; color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; }

/* ---- Sections / cards ---- */
section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.service-card { border-top: 4px solid var(--grass); }
.service-card.category-cleaning { border-top-color: var(--slate); }
.service-card h3 { margin-bottom: 4px; }
.service-price {
  font-family: var(--font-mono); font-weight: 600; color: var(--pine);
  font-size: 1.3rem; margin: 10px 0;
}
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 3px 10px; border-radius: 999px;
  background: var(--mint); color: var(--pine);
}
.badge.cleaning { background: #E4E9F4; color: var(--slate); }

/* ---- Forms ---- */
.form-card { max-width: 480px; margin: 0 auto; }
label { display: block; font-weight: 600; margin: 16px 0 6px; font-size: 0.92rem; }
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=date], input[type=time], input[type=number], textarea, select {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 8px;
  font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--ink);
}
textarea { min-height: 100px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--grass); }
.field-hint { font-size: 0.82rem; color: #5b6d63; margin-top: 4px; }

/* ---- Alerts ---- */
.alert { padding: 13px 18px; border-radius: 8px; margin: 18px 0; font-weight: 500; }
.alert-success { background: #E3F5E9; color: var(--pine); border: 1px solid #A9DCBB; }
.alert-error { background: #FBEAEA; color: #8B2A2A; border: 1px solid #F0B8B8; }
.alert-info { background: #E7EFFA; color: var(--slate); border: 1px solid #BFD3F0; }

/* ---- Tables (dashboard/admin) ---- */
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
th { background: var(--mint); color: var(--pine); font-family: var(--font-body); font-weight: 700; }
tr:hover td { background: #FAFCF9; }
.status-pill {
  padding: 3px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; text-transform: capitalize;
}
.status-pending, .status-unpaid { background: #FDECD2; color: #8A5A00; }
.status-confirmed { background: #DCEAFB; color: var(--slate); }
.status-completed, .status-paid { background: #DAF0E1; color: var(--pine); }
.status-cancelled, .status-void { background: #F5D9D9; color: #8B2A2A; }

/* ---- Dashboard layout ---- */
.dash-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
@media (max-width: 800px) { .dash-layout { grid-template-columns: 1fr; } }
.dash-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.dash-nav a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--ink); font-weight: 500; }
.dash-nav a:hover, .dash-nav a.active { background: var(--mint); color: var(--pine); text-decoration: none; }
.stat-card { text-align: left; }
.stat-card .num { font-family: var(--font-mono); font-size: 2rem; color: var(--pine); font-weight: 700; }
.stat-card .label { color: #5b6d63; font-size: 0.88rem; }
.invoice-number { font-family: var(--font-mono); }

/* ---- Footer ---- */
.site-footer { background: var(--pine); color: #EAF3EC; margin-top: 60px; }
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  padding: 32px 24px;
}
.footer-inner a { color: #EAF3EC; margin-right: 18px; }
.footer-inner p { margin: 4px 0 0; color: #B9CFC0; font-size: 0.9rem; }

/* utility */
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

/* ---- Loading feedback (js/app.js) ---- */
#ge-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--marigold); z-index: 9999; opacity: 0;
  box-shadow: 0 0 8px rgba(255,133,0,0.6);
}
body { opacity: 0; }
body.ge-ready { opacity: 1; transition: opacity 0.25s ease-out; }

.spinner {
  display: inline-block; width: 14px; height: 14px; margin-right: 8px;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; vertical-align: -2px;
  animation: ge-spin 0.7s linear infinite;
}
@keyframes ge-spin { to { transform: rotate(360deg); } }
button.is-loading { cursor: progress; opacity: 0.85; }

@media (prefers-reduced-motion: reduce) {
  #ge-progress { transition: none !important; }
  .spinner { animation: none; border-right-color: currentColor; }
  body { opacity: 1; }
}
