/* ============================================================
   Parrahills Appliance Repairs — Design System
   Mobile-first, fast, accessible. No framework, no build step.
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* ---- Design tokens ---- */
:root {
  /* Brand palette — deep teal + warm amber (trustworthy, energetic, not generic) */
  --ink:        #10302f;   /* near-black teal for text */
  --deep:       #0d4a47;   /* primary deep teal */
  --teal:       #16726c;   /* mid teal */
  --teal-soft:  #e7f1f0;   /* tint backgrounds */
  --amber:      #f4a01c;   /* CTA / accent */
  --amber-dark: #d9850a;
  --cream:      #fcfaf6;   /* page background */
  --white:      #ffffff;
  --line:       #dfe6e4;   /* hairlines */
  --muted:      #495a58;   /* secondary text */
  --good:       #16726c;   /* checks — reuse teal to keep palette tight */

  --shadow-sm: 0 1px 2px rgba(16,48,47,.06), 0 2px 6px rgba(16,48,47,.06);
  --shadow-md: 0 6px 18px rgba(16,48,47,.10), 0 2px 6px rgba(16,48,47,.06);
  --shadow-lg: 0 18px 50px rgba(16,48,47,.16);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --maxw: 1140px;
  --gap: clamp(1rem, 3vw, 2rem);

  --font-display: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--deep); }
ul { padding-left: 1.1em; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); letter-spacing: -.005em; }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.4rem); }
p { color: var(--ink); }
.muted { color: var(--muted); }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.center { text-align: center; }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 60ch; line-height: 1.6; }
.eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--teal);
  display: inline-block;
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .55rem;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { height: 48px; width: auto; }
.brand__txt { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); line-height: 1.05; }
.brand__txt small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }

.nav__links { display: none; gap: .2rem; align-items: center; list-style: none; padding: 0; margin: 0; }
.nav__links a {
  display: inline-block; padding: .5rem .75rem; border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: .92rem; transition: background .15s, color .15s;
}
.nav__links a:hover, .nav__links a.active { background: var(--teal-soft); color: var(--deep); }

.nav .nav__cta { display: none; }

/* Mobile menu */
.nav__toggle {
  display: inline-flex; flex-direction: column; gap: 4px; justify-content: center;
  width: 44px; height: 44px; background: none; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; padding: 0 11px;
}
.nav__toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-panel {
  display: none; flex-direction: column; gap: .2rem;
  padding: .6rem 0 1rem; border-top: 1px solid var(--line);
}
.mobile-panel.open { display: flex; }
.mobile-panel a { padding: .8rem .6rem; border-radius: 10px; font-weight: 600; color: var(--ink); }
.mobile-panel a:hover { background: var(--teal-soft); }
.mobile-panel .btn { margin-top: .6rem; }

@media (min-width: 920px) {
  .nav__links { display: flex; }
  .nav .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .mobile-panel { display: none !important; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1.02rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s;
  line-height: 1; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--call {
  background: var(--amber); color: var(--ink); box-shadow: var(--shadow-md);
}
.btn--call:hover { background: var(--amber-dark); color: var(--ink); box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; color: var(--deep); border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal-soft); color: var(--deep); }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.12rem; }
.btn--block { width: 100%; }
.btn svg { width: 1.05em; height: 1.05em; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 90% -10%, rgba(244,160,28,.10), transparent 55%),
    linear-gradient(180deg, var(--white), var(--cream));
}
.hero__grid {
  display: grid; gap: var(--gap); align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.hero h1 { margin-bottom: .8rem; }
.hero h1 .accent { color: var(--teal); }
.hero__sub { font-size: clamp(1.08rem, 2.4vw, 1.25rem); color: var(--muted); margin-bottom: 1.6rem; max-width: 52ch; line-height: 1.6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero__phone { font-family: var(--font-display); font-weight: 700; }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; margin-top: 1.8rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.trust-row div { display: flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .95rem; }
.trust-row strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--deep); display: block; line-height: 1; }
.trust-row span.lbl { font-size: .82rem; color: var(--muted); }

.hero__media { position: relative; }
.hero__media img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  object-fit: cover; aspect-ratio: 4 / 3;
}
.hero__badge {
  position: absolute; bottom: -18px; left: -8px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: .8rem 1.1rem;
  display: flex; align-items: center; gap: .65rem; max-width: 220px;
}
.hero__badge .dot { width: 38px; height: 38px; border-radius: 50%; background: var(--good); flex: none; display: grid; place-items: center; color: #fff; }
.hero__badge b { display: block; font-family: var(--font-display); font-size: 1rem; }
.hero__badge small { color: var(--muted); font-size: .8rem; }

@media (min-width: 860px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}

/* ============================================================
   Cards / grids
   ============================================================ */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfe0dd; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card .ic {
  width: 50px; height: 50px; border-radius: 12px; background: var(--teal-soft);
  display: grid; place-items: center; color: var(--teal); margin-bottom: 1rem;
}
.card .ic svg { width: 26px; height: 26px; }
.card--link { display: block; color: inherit; }
.card--link .more { color: var(--teal); font-weight: 600; font-size: .92rem; margin-top: .8rem; display: inline-flex; align-items: center; gap: .35rem; }
.card--link:hover .more { gap: .6rem; }

/* Service split (fridge / washer) */
.split { display: grid; gap: var(--gap); }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }
.split__panel {
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem);
  position: relative; overflow: hidden; color: var(--white);
  display: flex; flex-direction: column; min-height: 320px;
}
.split__panel--fridge { background: var(--deep); }
.split__panel--washer { background: var(--teal); }
.split__panel h3 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.split__panel p { color: rgba(255,255,255,.86); margin: .6rem 0 1.2rem; }
.split__panel ul { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.split__panel li { padding: .3rem 0 .3rem 1.7rem; position: relative; color: rgba(255,255,255,.92); font-size: .96rem; }
.split__panel li::before { content: "✓"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }
.split__panel .btn { margin-top: auto; align-self: flex-start; }

/* Check list */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .15em;
  width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--good);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: .8rem; background-repeat: no-repeat; background-position: center;
}

/* ============================================================
   Section variants
   ============================================================ */
.bg-teal { background: var(--deep); color: var(--white); }
.bg-teal h2, .bg-teal h3 { color: #fff; }
.bg-teal p { color: rgba(255,255,255,.85); }
.bg-soft { background: var(--teal-soft); }
.bg-white { background: var(--white); }

/* CTA band */
.cta-band {
  background: var(--deep);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.9); position: relative; max-width: 50ch; margin: .7rem auto 1.5rem; }
.cta-band .btn { position: relative; }

/* Brand logos strip */
.brand-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: center; }
@media (min-width: 640px){ .brand-strip { grid-template-columns: repeat(5, 1fr); } }
.brand-strip .chip {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  height: 84px; display: grid; place-items: center; padding: .8rem; box-shadow: var(--shadow-sm);
}
.brand-strip .chip img { max-height: 46px; width: auto; filter: grayscale(.15); }

/* FAQ */
.faq { display: grid; gap: .75rem; max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 1.2rem; box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none; cursor: pointer; font-family: var(--font-display); font-weight: 600;
  font-size: 1.08rem; padding: 1.05rem 2rem 1.05rem 0; position: relative; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--teal); font-family: var(--font-body); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 1.1rem; color: var(--muted); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: var(--gap); }
@media (min-width:760px){ .steps { grid-template-columns: repeat(3,1fr); } }
.step { position: relative; padding-top: 1rem; }
.step .num {
  font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: var(--amber);
  line-height: 1; display: block; margin-bottom: .4rem;
}
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .96rem; }

/* Region / link lists */
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.pill-list a {
  display: inline-block; background: var(--white); border: 1px solid var(--line);
  padding: .45rem .9rem; border-radius: 999px; font-size: .9rem; color: var(--ink); font-weight: 500;
}
.pill-list a:hover { background: var(--teal-soft); border-color: #cfe0dd; color: var(--deep); }

/* Prose blocks */
.prose { max-width: 70ch; }
.prose p { margin-bottom: 1rem; }
.prose h2 { margin: 1.8rem 0 .7rem; }
.prose h3 { margin: 1.4rem 0 .5rem; }
.prose ul { margin: 0 0 1rem; display: grid; gap: .4rem; }

/* Review cards */
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.review .stars { color: var(--amber); letter-spacing: 2px; font-size: 1.05rem; }
.review p { font-style: italic; color: var(--ink); margin: .6rem 0 .8rem; }
.review cite { font-style: normal; font-weight: 600; color: var(--muted); font-size: .9rem; }

/* ============================================================
   Sticky mobile call bar
   ============================================================ */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: flex; gap: .6rem; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(252,250,246,.95); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(16,48,47,.08);
}
.callbar .btn { flex: 1; }
@media (min-width: 920px) { .callbar { display: none; } }
body { padding-bottom: 80px; }
@media (min-width: 920px) { body { padding-bottom: 0; } }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--ink); color: rgba(255,255,255,.8); padding-block: 3rem 2rem; margin-top: 2rem; }
.footer a { color: rgba(255,255,255,.8); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 760px){ .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 { color: #fff; font-family: var(--font-body); font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .95rem; }
.footer__brand img { height: 50px; margin-bottom: 1rem; }
.footer__phone { font-family: var(--font-display); font-size: 1.5rem; color: #fff; font-weight: 700; display: inline-block; margin: .3rem 0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2rem; padding-top: 1.5rem; font-size: .82rem; color: rgba(255,255,255,.55); }
.footer__bottom p { color: rgba(255,255,255,.55); }

/* ============================================================
   Page hero (interior pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(180deg, var(--teal-soft), var(--cream));
  padding-block: clamp(2.4rem, 6vw, 4rem);
}
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: .8rem; }
.breadcrumb a { color: var(--teal); }
.page-hero h1 { margin-bottom: .6rem; }
.page-hero .lead { margin-bottom: 1.4rem; }

/* Utility */
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}
.flex-cta { display:flex; flex-wrap:wrap; gap:.8rem; }

/* Reveal on load */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: reveal .6s ease forwards; }
  .reveal:nth-child(2){animation-delay:.06s}.reveal:nth-child(3){animation-delay:.12s}
  .reveal:nth-child(4){animation-delay:.18s}.reveal:nth-child(5){animation-delay:.24s}
  @keyframes reveal { to { opacity:1; transform:none; } }
}
