/* Handyman 24/7 LTD - single stylesheet. Colours, spacing and fonts are CSS variables below. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}

:root {
  --bg: #fff;
  --fg: #111;
  --muted: #555;
  --accent: #F5B800;
  --accent-text: #8a6500;   /* darker yellow: readable on white */
  --on-accent: #111;
  --dark: #111;
  --dark-card: #1a1a1a;
  --dark-border: #2a2a2a;
  --dark-muted: #bdbdbd;
  --card: #fafafa;
  --border: #e6e6e6;
  --radius: 8px;
  --shadow: 0 12px 30px rgba(0, 0, 0, .08);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --tap: 44px;              /* minimum touch target */
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--fg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
h1, h2, h3 { line-height: 1.12; }
h1 { font-size: clamp(2.1rem, 5vw, 4rem); font-weight: 900; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .5rem; }
h3 { font-size: 1.1rem; font-weight: 700; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
section { padding: 84px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 700; color: var(--accent-text); margin-bottom: .7rem; }
.lead { color: var(--muted); max-width: 60ch; font-size: 1.08rem; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: .7rem 1rem; border-radius: var(--radius); font-weight: 700; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: var(--tap); padding: .8rem 1.5rem; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); border: 2px solid var(--accent); font: inherit; font-weight: 700; cursor: pointer; transition: filter .2s, transform .2s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: #444; }
.btn-sm { padding: .5rem 1.1rem; font-size: .9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--dark); color: #fff; border-bottom: 1px solid #222; }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; margin-right: auto; min-height: var(--tap); }
.logo .mark { width: 36px; height: 36px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: .72rem; font-weight: 900; flex: none; }
.primary-nav ul { display: flex; gap: .4rem; }
.primary-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 .8rem; font-weight: 600; font-size: .95rem; color: var(--dark-muted); }
.primary-nav a:hover { color: #fff; }
.nav-toggle { display: none; width: var(--tap); height: var(--tap); border: 1px solid #444; border-radius: var(--radius); background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; touch-action: manipulation; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; background: var(--dark); color: #fff; text-align: center; padding: 110px 0 100px; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: repeating-linear-gradient(135deg, var(--accent) 0 22px, var(--dark) 22px 44px); }
.hero .lead { color: var(--dark-muted); margin: 1.2rem auto 0; }
.badge { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; background: #1e1e1e; border: 1px solid #333; font-size: .84rem; font-weight: 600; margin-bottom: 1.4rem; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .25); flex: none; }
.actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.stats { display: flex; gap: 2.5rem; flex-wrap: wrap; justify-content: center; margin-top: 3rem; }
.stats strong { display: block; font-size: 2rem; line-height: 1; color: var(--accent); font-weight: 800; }
.stats span { color: var(--dark-muted); font-size: .88rem; }

/* Cards / grids */
.grid { display: grid; gap: 1.2rem; margin-top: 2.5rem; }
.services .grid { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ic { width: 46px; height: 46px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); display: grid; place-items: center; margin-bottom: 1rem; }
.card .ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); font-size: .95rem; margin-top: .4rem; }

/* Gallery */
.gallery { background: #f4f4f4; }
.gallery .grid { grid-template-columns: repeat(3, 1fr); }
.gallery figure { position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem 1rem .9rem; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); color: #fff; font-weight: 600; font-size: .92rem; }

/* Why us */
.why { background: var(--dark); color: #fff; }
.why .lead, .why .card p { color: var(--dark-muted); }
.why .eyebrow { color: var(--accent); }
.why .grid { grid-template-columns: repeat(4, 1fr); }
.why .card { background: var(--dark-card); border-color: var(--dark-border); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.details { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.4rem; margin: 1.6rem 0; }
.details dt { color: var(--muted); font-weight: 600; font-size: .92rem; }
.details a { text-decoration: underline; text-underline-offset: 3px; }
form { display: grid; gap: .9rem; margin-top: 1.6rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field { display: grid; gap: .35rem; }
label { font-weight: 600; font-size: .9rem; }
.opt { color: var(--muted); font-weight: 400; }
input, textarea { width: 100%; min-height: var(--tap); padding: .8rem 1rem; border: 1px solid #bbb; border-radius: var(--radius); background: #fff; color: inherit; font: inherit; font-size: 16px; /* 16px stops iOS zoom-on-focus */ }
textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.note { color: var(--muted); font-size: .82rem; }
.form-status { font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 10; background: var(--card); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Map consent */
.map-consent { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; padding: 1.5rem; text-align: center; }
.map-consent p { color: var(--muted); font-size: .92rem; max-width: 34ch; }
.map-consent p strong { color: var(--fg); }
.map-consent a { text-decoration: underline; text-underline-offset: 3px; font-size: .92rem; min-height: var(--tap); display: inline-flex; align-items: center; }

/* Cookie banner */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 520px; margin-left: auto; background: #fff; color: var(--fg); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 50px rgba(0, 0, 0, .25); padding: 1.2rem; }
.cookie[hidden] { display: none; }
.cookie h2 { font-size: 1.05rem; margin-bottom: .4rem; }
.cookie p { color: var(--muted); font-size: .9rem; }
.cookie a, .privacy a { text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: .6rem; margin-top: 1rem; }
.cookie-actions .btn { flex: 1; }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--fg); }
.link-btn { background: none; border: 0; padding: 0; min-height: var(--tap); font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Privacy page */
.privacy { padding: 56px 0 84px; }
.privacy .wrap { max-width: 800px; }
.privacy h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .4rem; }
.privacy h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
.privacy p, .privacy li { color: #333; margin-bottom: .7rem; }
.privacy ul { list-style: disc; padding-left: 1.3rem; margin-bottom: .7rem; }
.privacy .updated { color: var(--muted); font-size: .9rem; }

/* Footer + mobile call bar */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--muted); font-size: .88rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }
.call-bar { display: none; }

/* Tablet */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero { padding: 70px 0 70px; }
  .nav-toggle { display: flex; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); border-bottom: 1px solid #222; padding: .5rem 20px 1rem; }
  .site-header.open .primary-nav { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { width: 100%; padding: 0 .2rem; border-bottom: 1px solid #222; }
  .gallery .grid { grid-template-columns: 1fr 1fr; }
  .why .grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Phone */
@media (max-width: 560px) {
  .logo span:last-child { font-size: 1rem; }
  .btn-sm { display: none; }          /* the bottom call bar replaces it */
  .actions .btn { width: 100%; }
  .stats { gap: 1.5rem; }
  .gallery .grid, .why .grid, .row2 { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; gap: .1rem; }
  .details dd { margin-bottom: .7rem; }
  .call-bar { display: flex; align-items: center; justify-content: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; min-height: 56px; padding-bottom: env(safe-area-inset-bottom); background: var(--accent); color: var(--on-accent); font-weight: 800; box-shadow: 0 -6px 20px rgba(0, 0, 0, .2); }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .cookie { bottom: calc(72px + env(safe-area-inset-bottom)); left: 12px; right: 12px; }
}

@media (hover: none) { .card:hover, .btn:hover { transform: none; box-shadow: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
