/* Park Cities Handyman — mobile-first */
:root {
  --ink: #1c1915;
  --ink-soft: #3f3a33;
  --navy: #162033;
  --navy-2: #1e2d47;
  --cream: #f6f1e8;
  --paper: #fbfaf7;
  --brass: #8d6b3e;
  --brass-dark: #6e522f;
  --line: #e4ddd2;
  --white: #fff;
  --focus: #1e4d8c;
  --danger: #8b1e1e;
  --ok: #1e4a32;
  --header-h: 3.75rem;
  --sticky-h: 5.5rem;
  --space: 1.25rem;
  --max: 68rem;
  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --radius: 0.5rem;
}
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px) + 0.5rem);
}
img, picture, video, iframe, svg { max-width: 100%; height: auto; display: block; }
iframe { width: 100%; border: 0; }
a { color: var(--brass-dark); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--navy); }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 0.9rem;
  z-index: 1000;
  min-height: 44px;
}
.skip-link:focus { top: 0.75rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  color: var(--white);
  min-height: var(--header-h);
  box-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.4rem 0.85rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  text-decoration: none;
  min-height: 44px;
  min-width: 0;
  flex: 1 1 auto;
}
.brand img {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 50%;
  padding: 0.12rem;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand-name {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-tag { font-size: 0.7rem; color: #d7c7a8; white-space: nowrap; }

.header-actions { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }
.brand-text { overflow: hidden; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: var(--white);
  border-radius: 0.4rem;
  cursor: pointer;
  padding: 0;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 1px;
}
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

.site-nav {
  display: none;
  flex-basis: 100%;
  width: 100%;
  background: var(--navy-2);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 0.5rem 0.85rem 1rem;
  margin-inline: -0.85rem;
  width: calc(100% + 1.7rem);
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.35rem;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-weight: 550;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #f0d9a8; }
.nav-contact-bits {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.nav-contact-bits a {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,.18);
  overflow-wrap: anywhere;
  text-align: center;
}

/* Sticky mobile call bar */
.sticky-call {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  background: var(--navy);
  padding: 0.35rem 0.6rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  gap: 0.4rem;
  box-shadow: 0 -2px 12px rgba(0,0,0,.2);
}
.sticky-call a {
  flex: 1 1 5.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--white);
  font-weight: 650;
  font-size: 0.95rem;
  border-radius: var(--radius);
  overflow-wrap: anywhere;
  text-align: center;
  padding: 0.35rem 0.4rem;
}
.sticky-call .call { background: var(--brass); }
.sticky-call .email { background: var(--navy-2); border: 1px solid rgba(255,255,255,.2); }

/* Layout */
.wrap { width: min(100% - 1.7rem, var(--max)); margin-inline: auto; }
main { display: block; }
.hero, .page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 1.6rem 0 1.8rem;
}
.page-hero { padding: 1.35rem 0 1.45rem; }
.hero h1, .page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 0.7rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.lede, .hero .lede {
  font-size: 1.0625rem;
  color: #efe6d6;
  margin: 0 0 1.1rem;
  max-width: 40rem;
}
.hero-actions, .cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}
.btn-primary { background: var(--brass); color: var(--white); }
.btn-primary:hover { background: var(--brass-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { color: var(--white); background: var(--navy-2); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
section { padding: 1.75rem 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--white); }
h2 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  line-height: 1.25;
  margin: 0 0 0.8rem;
}
h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 1.1rem 0 0.4rem;
}
p { margin: 0 0 0.9rem; overflow-wrap: break-word; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: 0.3rem; }
.crumbs {
  font-size: 0.95rem;
  margin: 0 0 0.7rem;
  color: #d7c7a8;
  overflow-wrap: break-word;
}
.crumbs a { color: #f0d9a8; }
.page-hero .crumbs { color: #d7c7a8; }

.card-grid, .service-grid, .area-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem 1.05rem;
  color: inherit;
  text-decoration: none;
  display: block;
  min-height: 44px;
}
a.card:hover { border-color: var(--brass); box-shadow: 0 4px 16px rgba(22,32,51,.06); }
.card h3 { margin-top: 0; color: var(--navy); }
.card p { color: var(--ink-soft); margin-bottom: 0; }
.photo-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
.photo-grid figure { margin: 0; }
.photo-grid figcaption, .caption {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}
.photo-grid img, .media img, .hero-photo img {
  width: 100%;
  border-radius: 0.65rem;
  object-fit: cover;
}
.hero-photo { margin-top: 1.25rem; }
.prose { max-width: 42rem; margin-inline: auto; }
.split { display: grid; gap: 1.1rem; }

/* Center headings and body copy. Lists, forms, and FAQ answers stay left-aligned. */
.hero, .page-hero,
main section,
.site-footer {
  text-align: center;
}
main ul, main ol,
.faq details p,
form.quote-form,
.field,
.form-status,
.hours,
.note,
.footer-nav {
  text-align: left;
}
.faq summary {
  justify-content: center;
  text-align: center;
}

/* Forms */
form.quote-form {
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
}
.field { display: grid; gap: 0.3rem; }
.field label { font-weight: 650; }
.field .hint { font-size: 0.95rem; color: var(--ink-soft); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  max-width: 100%;
  font: inherit;
  font-size: 1.0625rem; /* prevent iOS zoom */
  line-height: 1.4;
  padding: 0.7rem 0.75rem;
  min-height: 44px;
  border: 1px solid #cfc6b8;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  appearance: none;
}
textarea { min-height: 8.5rem; resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.form-status.ok { background: #e6f4ec; color: var(--ok); }
.form-status.err { background: #fdecec; color: var(--danger); }

.contact-block a { overflow-wrap: anywhere; }
.hours { list-style: none; padding: 0; margin: 0 0 1rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: 0.45rem 0; min-height: 44px; align-items: center; }
.note {
  background: var(--cream);
  border-left: 4px solid var(--brass);
  padding: 0.8rem 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.15rem 0;
}
.faq summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 650;
  padding: 0.65rem 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--ink-soft); }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #e8e0d4;
  padding: 2rem 0 1.25rem;
  margin-top: 0.5rem;
}
.site-footer a { color: #f0d9a8; }
.footer-grid { display: grid; gap: 1.25rem; }
.site-footer h2 { font-size: 1.1rem; color: var(--white); }
.footer-nav { display: grid; gap: 0; }
.footer-nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.fineprint { font-size: 0.95rem; color: #c9c0b2; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); }
.fineprint p { margin-bottom: 0.4rem; }

/* Desktop */
@media (min-width: 720px) {
  .card-grid, .service-grid { grid-template-columns: 1fr 1fr; }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .brand-name { font-size: 1.1rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .nav-toggle { display: none; }
  .header-inner { flex-wrap: nowrap; }
  .brand { order: 1; }
  .site-nav {
    display: block;
    order: 2;
    flex: 1 1 auto;
    flex-basis: auto;
    width: auto;
    margin-inline: 0;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .header-actions { order: 3; }
  .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.15rem;
  }
  .site-nav a {
    border: 0;
    min-height: 44px;
    padding: 0.4rem 0.55rem;
    font-size: 0.95rem;
  }
  .nav-contact-bits { display: none; }
  .header-inner { padding-inline: 1.25rem; gap: 1rem; }
  .brand { flex: 0 1 auto; }
  /* hide sticky bar when desktop header already has a call button */
  .sticky-call { display: none; }
  body { padding-bottom: 0; }
}
@media (min-width: 960px) {
  .service-grid, .area-grid { grid-template-columns: 1fr 1fr 1fr; }
  .photo-grid.three { grid-template-columns: 1fr 1fr 1fr; }
  section { padding: 2.4rem 0; }
}
@media (min-width: 720px) and (max-width: 860px) {
  .site-nav a { padding-inline: 0.4rem; font-size: 0.88rem; }
}


/* Readable type and 44px taps */
html { font-size: 16px; }
.brand-name, .crumbs, .caption, .field .hint,
.fineprint, .fineprint p, .sticky-call a { font-size: 1rem; }
.brand-tag { font-size: 1rem; line-height: 1.25; } /* short label under logo */
.crumbs a, .crumbs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding-inline: 0.2rem;
}
.contact-block a,
.card > p a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}
.site-footer p a { margin-right: 0.25rem; }
.site-footer .footer-nav a { width: 100%; }
/* Phone/email written in running copy should still be easy to tap */
a[href^="tel:"], a[href^="mailto:"], a[href^="sms:"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}

.note { color: var(--ink); }
.site-footer .note {
  background: rgba(255,255,255,0.08);
  color: #f6f1e8;
  border-left-color: #e2c48a;
}
