/* Mark's Handyman Services — shared styles.
   Tokens come from the Paper file "Handyman" (maritime palette).
   Page-specific styles live in /assets/css/pages/<page>.css. */

:root {
  --navy: #13263C;
  --ink: #0B1520;
  --buoy: #F3C432;
  --buoy-dark: #D9AC1F;
  --fog: #E8EDF1;
  --slate: #4B5A69;
  --line: #C3CDD6;
  --white: #FFFFFF;
  --on-dark: #C9D3DC;
  --on-dark-muted: #8FA1B3;
  --dark-line: #1F3247;
  --error: #B42318;
  --success: #1E7B4C;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1280px;
  --gutter: 80px;
  --radius: 10px;
  --radius-sm: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: 96px; }
.section--fog { background: var(--fog); }
.section--navy { background: var(--navy); color: var(--white); }
.section--ink { background: var(--ink); color: var(--white); }

/* Type */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; line-height: 16px; text-transform: uppercase; color: var(--slate); }
.eyebrow--dark { color: var(--on-dark-muted); }
.eyebrow--buoy { color: var(--buoy); }
.display-xl { font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: 1.02; letter-spacing: -0.03em; }
.display-l { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 48px; letter-spacing: -0.02em; }
.display-m { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 32px; letter-spacing: -0.02em; }
.display-s { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 24px; }
.lede { font-size: 19px; line-height: 30px; color: var(--slate); }
.body-muted { color: var(--slate); }
.section--navy .lede, .section--ink .lede, .section--navy .body-muted, .section--ink .body-muted { color: var(--on-dark); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 18px; padding: 12px 22px; border-radius: var(--radius-sm); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn--primary { background: var(--buoy); color: var(--ink); }
.btn--primary:hover { background: var(--buoy-dark); }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: var(--white); }
.btn--on-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--on-dark:hover { border-color: var(--white); }
.btn--lg { font-size: 17px; padding: 16px 28px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--buoy); outline-offset: 2px; }

/* Utility bar */
.utility-bar { background: var(--ink); color: var(--on-dark); font-size: 13px; font-weight: 500; line-height: 16px; }
.utility-bar__inner { display: flex; justify-content: space-between; gap: 24px; padding-block: 10px; }

/* Header */
.site-header { border-bottom: 1px solid var(--fog); background: var(--white); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__badge { width: 80px; height: 97px; flex-shrink: 0; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 26px; letter-spacing: -0.02em; color: var(--navy); }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav > a { font-size: 15px; font-weight: 500; line-height: 18px; text-decoration: none; color: var(--navy); padding-block: 6px; border-bottom: 2px solid transparent; }
.site-nav > a:hover, .site-nav > a[aria-current="page"] { border-bottom-color: var(--buoy); }
.site-nav__cta { display: flex; align-items: center; gap: 20px; margin-left: 12px; }
.site-nav__phone { font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle__bar { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 72px 0 40px; font-size: 15px; line-height: 24px; }
.site-footer a { text-decoration: none; color: var(--on-dark); }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__grid { display: flex; gap: 80px; }
.site-footer__brand { width: 360px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__name { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 28px; letter-spacing: -0.02em; color: var(--white); }
.site-footer__fine { font-size: 13px; color: var(--on-dark-muted); padding-top: 8px; }
.site-footer__col { flex: 1; display: flex; flex-direction: column; gap: 12px; line-height: 18px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--dark-line); margin-top: 56px; padding-top: 24px; font-size: 13px; line-height: 16px; color: var(--on-dark-muted); }
.site-footer__bottom a { color: var(--on-dark-muted); }

/* Forms (quote form on Home + Contact) */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field input, .field textarea, .field select { font: inherit; font-size: 16px; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy); }
.field__hint { font-size: 13px; color: var(--slate); }
.field__error { font-size: 13px; color: var(--error); display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field.has-error .field__error { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.photo-drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 20px; text-align: center; cursor: pointer; background: var(--white); }
.photo-drop:hover, .photo-drop.is-dragover { border-color: var(--navy); }
.photo-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.photo-previews figure { margin: 0; position: relative; width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; background: var(--fog); }
.photo-previews img { width: 100%; height: 100%; object-fit: cover; }
.photo-previews button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(11,21,32,.8); color: var(--white); font-size: 14px; line-height: 22px; cursor: pointer; padding: 0; }
.photo-previews__state { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 4px; font-size: 11px; font-weight: 600; line-height: 14px; text-align: center; color: var(--white); background: rgba(11,21,32,.75); }
.photo-previews .is-ready .photo-previews__state { background: var(--success); }
.photo-previews .is-failed .photo-previews__state { background: var(--error); }
.photo-previews .is-working, .photo-previews .is-failed { display: flex; align-items: center; justify-content: center; }
button[type=submit]:disabled { opacity: .6; cursor: progress; }
.form-success { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius); background: #E7F4EC; color: var(--navy); outline: none; }
.form-success__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--success); color: var(--white); font-size: 24px; font-weight: 700; line-height: 44px; text-align: center; }
.form-success__title { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 30px; letter-spacing: -0.015em; }
.form-success p { font-size: 16px; line-height: 25px; color: var(--slate); }
.form-success__call a { color: var(--navy); font-weight: 700; }
.form-status { border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px; display: none; }
.form-status.is-success { display: block; background: #E7F4EC; color: var(--success); }
.form-status.is-error { display: block; background: #FDECEA; color: var(--error); }

/* Responsive */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .site-nav { gap: 22px; }
  .site-nav__phone { display: none; }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .section { padding-block: 64px; }
  .display-xl { font-size: 42px; }
  .display-l { font-size: 32px; line-height: 36px; }
  .utility-bar__right { display: none; }
  .brand__badge { width: 56px; height: 68px; }
  .brand__name { font-size: 18px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--fog); box-shadow: 0 12px 24px rgba(11,21,32,.08); }
  .nav-open .site-nav { display: flex; }
  .site-nav > a { padding-block: 14px; border-bottom: 1px solid var(--fog); }
  .site-nav__cta { margin: 16px 0 0; flex-direction: column; align-items: stretch; gap: 12px; }
  .site-nav__phone { display: block; text-align: center; padding: 10px; }
  .site-footer__grid { flex-direction: column; gap: 36px; }
  .site-footer__brand { width: auto; }
  .site-footer__bottom { flex-direction: column; }
}
