/* Handyman Helpline public site stylesheet (v1.10).
   One type scale and shared layout for every public page.
   Font: system-ui (San Francisco on iPad/Safari). Body is 17px / line-height 1.6.
   Colors match the existing pages: navy text, cream page, red headings, orange buttons.
   The menu stays pinned and folds into a "Menu" button below 760px. */

:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --color-text: #1d2a38;
  --color-bg: #fffaf0;
  --color-heading: #c0392b;
  --color-muted: #667;
  --color-muted-2: #556;
  --color-accent: #e67e22;
  --color-accent-hover: #c0392b;
  --color-card: #fff;
  --color-border: #ccd;
  --color-danger: #8a1f1f;
  --color-danger-bg: #fdecea;
  --color-ok: #145c28;
  --color-ok-bg: #e5f4ea;
  --color-warn: #5c4a00;
  --color-warn-bg: #fff3cd;
  --fs-body: 1rem;          /* 17px when the browser default is 16px */
  --lh-body: 1.6;
  --fs-h1: 2.125rem;        /* 36px */
  --fs-h1-sm: 1.765rem;     /* 30px, below 600px */
  --fs-h2: 1.412rem;        /* 24px */
  --fs-h3: 1.176rem;        /* 20px */
  --fs-tag: 1.235rem;       /* 21px */
  --fs-small: 0.882rem;     /* 15px, about 0.9em */
  --fs-btn: 1.294rem;       /* 22px */
  --fs-input: 1rem;         /* 17px; stay at or above 16px so iOS does not zoom */
  --fs-nav: 0.941rem;       /* 16px */
  --fs-brand: 1.176rem;     /* 20px */
  --content-width: 860px;
  --pad: 24px;
  --pad-sm: 18px;
}

html {
  font-size: 106.25%; /* 17px if the browser default is 16px; respects a user's larger default */
  scroll-padding-top: 72px; /* anchors (#safety, form errors) land below the sticky menu */
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-wrap: break-word; /* long emails/URLs should not force a horizontal scroll */
}

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 800;
}
h1 {
  font-size: var(--fs-h1);
  margin: .2em 0;
  color: var(--color-heading);
}
h2 {
  font-size: var(--fs-h2);
  color: var(--color-text);
}
h3 {
  font-size: var(--fs-h3);
  color: var(--color-text);
}

.tag {
  font-size: var(--fs-tag);
  font-weight: 700;
  line-height: 1.35;
}

header, section, footer {
  max-width: var(--content-width);
  margin: auto;
  padding: var(--pad);
}
header { text-align: center; }

.box {
  background: var(--color-card);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px #0001;
  margin-bottom: 18px;
}

.call {
  display: inline-block;
  margin: 14px 0;
  padding: 16px 30px;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--fs-btn);
  font-weight: 800;
  font-family: inherit;
  line-height: 1.2;
  border-radius: 40px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.call:hover, .call:focus-visible { background: var(--color-accent-hover); color: #fff; }

.hint {
  font-size: var(--fs-small);
  color: var(--color-muted);
  font-weight: 400;
}

a.back { color: var(--color-text); }

footer {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--color-muted);
}

/* Shared form controls (request, pros, services). Inputs stay >= 16px for iOS. */
label {
  display: block;
  font-weight: 700;
  margin: 14px 0 4px;
}
input[type=text],
input[type=tel],
input[type=email],
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  font-size: var(--fs-input);
  font-family: inherit;
  line-height: 1.4;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
}

@media (max-width: 600px) {
  h1 { font-size: var(--fs-h1-sm); }
  header, section, footer { padding: var(--pad-sm); }
}

/* Top menu: pinned, full bar down to 761px, hamburger at 760px and below. */
.hh-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 8px #0002;
  font-family: var(--font-sans);
}
.hh-nav-in {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  min-height: 56px;
}
.hh-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-heading);
  font-weight: 800;
  font-size: var(--fs-brand);
  text-decoration: none;
  letter-spacing: .2px;
}
.hh-brand img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.hh-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.hh-menu a {
  display: block;
  padding: 18px 14px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 800;
  font-size: var(--fs-nav);
  letter-spacing: .8px;
  border-bottom: 3px solid transparent;
}
.hh-menu a:hover, .hh-menu a:focus-visible { color: var(--color-heading); }
.hh-menu a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
  color: var(--color-heading);
}
.hh-menu a.hh-req {
  color: #fff;
  background: var(--color-accent);
  border-radius: 22px;
  padding: 8px 16px;
  margin: 10px 4px;
  border-bottom: 0;
}
.hh-menu a.hh-req:hover,
.hh-menu a.hh-req[aria-current="page"] {
  background: var(--color-accent-hover);
  color: #fff;
}
.hh-burger {
  display: none;
  background: none;
  border: 2px solid var(--color-text);
  border-radius: 10px;
  padding: 8px 12px;
  font: 700 var(--fs-nav) var(--font-sans);
  color: var(--color-text);
  cursor: pointer;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.hh-burger .bars,
.hh-burger .bars::before,
.hh-burger .bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  position: relative;
  content: "";
}
.hh-burger .bars::before { position: absolute; top: -6px; }
.hh-burger .bars::after { position: absolute; top: 6px; }

@media (max-width: 760px) {
  .hh-burger { display: flex; }
  .hh-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 56px;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 8px 16px #0002;
    padding: 6px 0 12px;
  }
  .hh-nav.open .hh-menu { display: flex; }
  .hh-menu a {
    padding: 14px 22px;
    font-size: 1rem;
    border-bottom: 0;
    border-left: 4px solid transparent;
  }
  .hh-menu a[aria-current="page"] { border-left-color: var(--color-accent); }
  .hh-menu a.hh-req { margin: 8px 22px 0; text-align: center; padding: 12px; }
  .no-js .hh-menu { display: flex; position: static; box-shadow: none; }
  .no-js .hh-burger { display: none; }
  .no-js .hh-nav-in { flex-wrap: wrap; }
}

/* Draft / sample banners on the newer pages */
.hh-draft {
  max-width: 812px;
  margin: 16px auto 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--color-warn-bg);
  color: var(--color-warn);
  font-weight: 700;
  text-align: center;
}
