/* ==========================================================================
   EZ Appliances — design tokens
   ========================================================================== */

:root {
  /* Color */
  --bg: #EEF0EE;
  --bg-alt: #E2E6E3;
  --panel: #FBFCFB;
  --ink: #1B2320;
  --ink-soft: #4B5652;
  --steel: #46565F;
  --steel-dark: #232C30;
  --line: rgba(27, 35, 32, 0.14);
  --amber: #E2932E;
  --amber-dark: #B9741B;
  --green: #3C7A57;

  /* Type */
  --font-display: "Archivo Narrow", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  /* Layout */
  --radius: 6px;
  --container: 1120px;
  --shadow: 0 1px 2px rgba(27,35,32,0.06), 0 8px 24px rgba(27,35,32,0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.4em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--steel-dark);
  color: #fff;
}
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }

.btn-amber {
  background: var(--amber);
  color: var(--steel-dark);
}
.btn-amber:hover { background: var(--amber-dark); color: #fff; transform: translateY(-1px); }

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

/* ===========================================================================
   Admin
   ========================================================================== */
.admin-shell { max-width: 1120px; margin: 48px auto 96px; padding: 0 24px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.admin-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.admin-tab { border: 0; border-bottom: 3px solid transparent; background: transparent; padding: 12px 16px; color: var(--ink-soft); font: 600 0.9rem var(--font-body); cursor: pointer; }
.admin-tab.active { color: var(--ink); border-bottom-color: var(--amber); }
.admin-table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }
.admin-table-wrap table { width: 100%; border-collapse: collapse; }
.admin-table-wrap th, .admin-table-wrap td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table-wrap th { background: var(--bg); color: var(--steel); font: 0.72rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.admin-table-wrap tr:last-child td { border-bottom: 0; }
.session-warning { display: none; margin: 0 0 18px; padding: 12px 14px; border: 1px solid rgba(178,59,59,.2); border-radius: 6px; background: rgba(178,59,59,.08); color: #7a1c1c; font-weight: 600; }
.session-warning.visible { display: block; }
.past-due { color: #b23b3b; font-weight: 700; }
.assigned-row { cursor: pointer; }
.assigned-row:hover { background: #fff8ec; }
.customer-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 24px; margin-bottom: 28px; }
.customer-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.customer-meta strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--steel); }
.assignment-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 14px 0; background: var(--panel); }
.assignment-card h3 { margin-bottom: 14px; }
.assignment-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.assignment-fields label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; }
.assignment-fields input, .assignment-fields select { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font: inherit; }
.assignment-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn-danger { color: #9d2929; border-color: #9d2929; }
.btn-danger:hover { color: #fff; background: #9d2929; }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--steel-dark); font-weight: 600; }
@media (max-width: 700px) { .assignment-fields { grid-template-columns: 1fr; } .admin-topbar { align-items: flex-start; flex-direction: column; } }

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(238, 240, 238, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.logo span { color: var(--amber); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }

.nav-phone {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
}

.nav-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 76px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-copy p.lede {
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ---- Signature element: rating plate ---- */

.rating-plate {
  background: linear-gradient(155deg, #4c5c65, #313e45 60%, #232c30);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  position: relative;
  box-shadow: var(--shadow);
  color: #EAEDEC;
}

.rating-plate::before,
.rating-plate::after,
.rating-plate .rivet-tl,
.rating-plate .rivet-br {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #cfd6d6, #7a8688 70%);
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.4);
}
.rating-plate::before { top: 10px; left: 10px; }
.rating-plate::after { bottom: 10px; right: 10px; }
.rating-plate .rivet-tl { top: 10px; right: 10px; }
.rating-plate .rivet-br { bottom: 10px; left: 10px; }

.plate-heading {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9DAAA6;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.plate-rows { font-family: var(--font-mono); font-size: 0.86rem; }

.plate-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.12);
}
.plate-row:last-child { border-bottom: none; }

.plate-label { color: #9DAAA6; letter-spacing: 0.04em; }
.plate-value { color: #fff; font-weight: 500; text-align: right; }

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6FD69A;
  margin-right: 6px;
  box-shadow: 0 0 6px rgba(111,214,154,0.8);
}

/* ==========================================================================
   Benefits strip
   ========================================================================== */

.benefits {
  padding: 8px 0 72px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.benefit-tag {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.benefit-tag .tag-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber-dark);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
}

.benefit-tag h3 { margin-bottom: 6px; }
.benefit-tag p { margin: 0; font-size: 0.92rem; }

/* ==========================================================================
   How it works
   ========================================================================== */

.how {
  background: var(--bg-alt);
  padding: 72px 0;
}

.how-head { max-width: 56ch; margin-bottom: 44px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--amber-dark);
  display: block;
  margin-bottom: 10px;
}

.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.94rem; margin: 0; }

/* ==========================================================================
   Booking / order form
   ========================================================================== */

.booking {
  padding: 76px 0;
}

.booking-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.booking-copy { max-width: 42ch; }

.booking-copy ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.booking-copy li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.booking-copy li:before { content: "— "; color: var(--amber-dark); }

.form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.form-row { margin-bottom: 18px; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

input, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

input:focus-visible, select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--amber);
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}
.form-status.visible { display: block; }
.form-status.success { color: var(--green); }
.form-status.error { color: #B23B3B; }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials {
  background: var(--steel-dark);
  color: #EAEDEC;
  padding: 76px 0;
}

.testimonials .eyebrow { color: #9DAAA6; }
.testimonials .eyebrow::before { background: var(--amber); }
.testimonials h2 { color: #fff; margin-bottom: 40px; }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testi-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 24px;
}

.testi-card p {
  color: #D6DCDA;
  font-size: 0.94rem;
  margin-bottom: 16px;
}

.testi-name {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #9DAAA6;
}

/* ==========================================================================
   Pay-bill / find-account page
   ========================================================================== */

.lookup-page {
  padding: 76px 0 100px;
}

.lookup-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px;
}

.lookup-card .eyebrow { justify-content: center; }
.lookup-card h1 { font-size: 1.9rem; text-align: center; }
.lookup-card > p.lede { text-align: center; margin-bottom: 28px; }

.divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}
.divider-or::before, .divider-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: #C7CDCA;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo { color: #fff; }
.footer-brand p { color: #99A29E; margin-top: 10px; font-size: 0.9rem; max-width: 34ch; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7E8985;
  margin: 0 0 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; color: #C7CDCA; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  font-size: 0.8rem;
  color: #7E8985;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 880px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; }
  .hero-grid, .booking-grid { grid-template-columns: 1fr; }
  .rating-plate { max-width: 420px; }
  .benefits-grid, .steps, .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row-split { grid-template-columns: 1fr; }
}

body.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 20px 24px 26px;
  gap: 16px;
}
body.nav-open .nav-actions .btn { display: inline-flex; }
