/* Z All-Round Handyman: Zoran's card, made readable. Electric blue on near-black, brushed-paint edges,
   heavy italic capitals for headings, big plain text for everything else. */

@font-face { font-family: "Kanit"; font-style: italic; font-weight: 800; font-display: swap; src: url(/fonts/kanit-800i.woff2) format("woff2"); }
@font-face { font-family: "Kanit"; font-style: italic; font-weight: 900; font-display: swap; src: url(/fonts/kanit-900i.woff2) format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 300 700; font-display: swap; src: url(/fonts/lexend.woff2) format("woff2"); }

:root {
  --blue: #1a5fe0;        /* buttons, brush; white text on it is 5.3:1 */
  --blue-bright: #4d8bff; /* accents on dark */
  --dark: #0b0f1a;
  --dark-2: #141b2e;
  --light: #f3f5f9;
  --white: #ffffff;
  --ink: #0b0f1a;
  --muted: #3c4558;
  --gap: #ffd23f;
  --display: "Kanit", "Arial Black", Impact, sans-serif;
  --body: "Lexend", Verdana, system-ui, sans-serif;
  --pad: max(clamp(1rem, 4vw, 3rem), (100% - 70rem) / 2);
}

* { box-sizing: border-box; }
html { font-size: 125%; overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 5rem; }   /* 20px base */
body { margin: 0; font-family: var(--body); line-height: 1.6; color: var(--ink); background: var(--light); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; line-height: 1.02; margin: 0; letter-spacing: .005em; }
:focus-visible { outline: 4px solid var(--gap); outline-offset: 3px; }

/* Placeholders for things Zoran hasn't given us yet. Deliberately loud. */
.gap { display: inline-block; padding: 0 .35em; border: 2px dashed var(--gap); border-radius: 4px; color: inherit; font-weight: 600; font-size: .9em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; font-family: var(--display); font-style: italic; font-weight: 800;
  text-transform: uppercase; font-size: 1.1rem; line-height: 1.1; text-decoration: none; padding: .65em 1.1em;
  border: 3px solid transparent; border-radius: 6px; cursor: pointer; transform: skewX(-6deg);
}
.btn > * { transform: skewX(6deg); }
.btn-call { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-call:hover, .btn-call:focus-visible { background: var(--blue-bright); border-color: var(--blue-bright); }
.btn-line { background: transparent; color: var(--white); border-color: var(--white); }
.btn-line:hover, .btn-line:focus-visible { background: var(--white); color: var(--ink); }
.btn-big { font-size: 1.35rem; }
.btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1rem;
  padding: .5rem var(--pad); background: var(--dark); color: var(--white); border-bottom: 3px solid var(--blue);
}
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; margin-right: auto; }
.brand img { width: 3rem; height: auto; }
.brand-name { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.35rem; text-transform: uppercase; line-height: .95; }
.brand-name small { display: block; font-size: .78em; color: var(--blue-bright); }
.topnav { display: none; gap: 1.5rem; }
.topnav a { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.1rem; text-transform: uppercase; text-decoration: none; }
.topnav a:hover { color: var(--blue-bright); }
.topbar .btn-call { display: none; }

/* Hero */
.hero {
  position: relative; display: grid; gap: 2rem; padding: 2.5rem var(--pad) 4.5rem; color: var(--white);
  background: var(--dark);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.2rem; background: url(/img/edge-light.svg) no-repeat; background-size: 100% 100%; }
.motto { margin: 0 0 1rem; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.05rem; text-transform: uppercase; color: var(--blue-bright); letter-spacing: .02em; }
.motto span { white-space: nowrap; }
.hero h1 { font-size: clamp(2.4rem, 9vw, 4.6rem); }
.hero h1 span { white-space: nowrap; }
.hero h1 em {
  font-style: inherit; display: table; margin-top: .25em; padding: .08em .45em .14em .3em; color: var(--white);
  background: url(/img/brush.svg) no-repeat; background-size: 100% 100%;
}
.lede { font-size: 1.2rem; max-width: 32rem; margin: 1.2rem 0 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.area { margin: 1.4rem 0 0; font-size: 1rem; color: #c9d3e8; }

.portrait { position: relative; justify-self: center; width: min(100% - 3.5rem, 17rem); margin: 1rem 2.5rem 0 0; }
.portrait picture { display: block; border: 4px solid var(--white); border-radius: 6px; overflow: hidden; box-shadow: 14px 14px 0 var(--blue); transform: rotate(-2deg); }
.portrait .z { position: absolute; top: -6%; right: -14%; width: 62%; transform: rotate(-4deg); }
.portrait figcaption { margin-top: 1.3rem; text-align: center; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.15rem; }

/* Sections */
section { padding: 3.5rem var(--pad); }
.title { font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1.35; margin-bottom: 1.4rem; }
.title span {   /* each wrapped line gets its own brush stroke */
  padding: .1em .45em .14em .3em; color: var(--white);
  background: url(/img/brush.svg) no-repeat; background-size: 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.section-lede { font-size: 1.2rem; max-width: 40rem; margin: -.5rem 0 2rem; color: var(--muted); }

/* Services */
.services ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.services li {
  display: grid; grid-template-columns: 4.2rem 1fr; gap: .2rem 1rem; align-items: center;
  padding: 1rem 1.1rem; background: var(--white); border-left: 6px solid var(--blue); border-radius: 6px;
  box-shadow: 0 2px 10px rgba(11,15,26,.08);
}
.icon { grid-row: span 2; width: 4.2rem; height: 4.2rem; border-radius: 50%; background: var(--blue); display: grid; place-items: center; border: 3px solid var(--dark); }
.icon svg { width: 2.5rem; height: 2.5rem; fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.services h3 { font-size: 1.5rem; align-self: end; }
.services li p { margin: 0; align-self: start; color: var(--muted); font-size: 1.05rem; line-height: 1.45; }
.services-cta { margin: 2rem 0 0; }

/* Why Zoran */
.why { position: relative; background: var(--dark); color: var(--white); padding-top: 4.5rem; padding-bottom: 4.5rem; }
.why::before, .why::after { content: ""; position: absolute; left: 0; right: 0; height: 2.2rem; background-size: 100% 100%; background-repeat: no-repeat; }
.why::before { top: -1px; background-image: url(/img/edge-light-top.svg); }
.why::after { bottom: -1px; background-image: url(/img/edge-light.svg); }
.why ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; counter-reset: why; }
.why li { counter-increment: why; padding-left: 4.2rem; position: relative; }
.why li::before {
  content: counter(why); position: absolute; left: 0; top: -.15rem; width: 3.1rem; height: 3.1rem; display: grid; place-items: center;
  background: var(--blue); color: var(--white); font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.6rem;
  clip-path: polygon(8% 4%, 100% 0, 92% 96%, 0 100%);
}
.why h3 { font-size: 1.8rem; color: var(--white); }
.why p { margin: .3rem 0 0; font-size: 1.15rem; color: #d5dcec; }

/* Quote */
.quote { display: grid; gap: 2rem; }
.quote-intro p { font-size: 1.2rem; margin: 0 0 1.2rem; }
.quote-form { display: grid; gap: 1.1rem; background: var(--white); padding: 1.5rem; border-radius: 8px; border-top: 6px solid var(--blue); box-shadow: 0 2px 14px rgba(11,15,26,.1); }
.field { display: grid; gap: .35rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 1.05rem; padding: 0; }
.field .opt { font-weight: 400; color: var(--muted); }
input, textarea {
  font: inherit; font-size: 1.1rem; width: 100%; padding: .6em .7em; color: var(--ink); background: var(--light);
  border: 2px solid #8a93a6; border-radius: 6px;
}
input:focus, textarea:focus { border-color: var(--blue); outline: 3px solid var(--blue-bright); outline-offset: 1px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .45rem 1rem; margin-top: .4rem; }
.checks label { display: flex; align-items: center; gap: .55rem; font-weight: 400; font-size: 1.05rem; }
.checks input { width: 1.4rem; height: 1.4rem; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.quote-form .btn { justify-self: start; }

/* Notice pages (thanks, error, check-phone) */
.notice { min-height: 60vh; padding-bottom: 6rem; }
.notice p { font-size: 1.2rem; max-width: 40rem; }

/* Footer */
.sitefoot { position: relative; background: var(--dark); color: #d5dcec; padding: 3.5rem var(--pad) 6rem;   /* room for the call bar */ font-size: 1.05rem; }
.sitefoot::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2.2rem; background: url(/img/edge-light-top.svg) no-repeat; background-size: 100% 100%; }
.foot-brand { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.6rem; text-transform: uppercase; color: var(--white); margin: 0 0 .4rem; }
.sitefoot p { margin: .4rem 0; }
.sitefoot a { color: var(--white); }
.sitefoot dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 1rem 0 0; }
.sitefoot dt { color: var(--blue-bright); font-weight: 600; }
.sitefoot dd { margin: 0; }

/* Phone call bar, pinned to the bottom on small screens */
.callbar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 3px solid var(--dark); }
.callbar a {
  display: flex; justify-content: center; align-items: center; gap: .5rem; min-height: 3.6rem; text-decoration: none;
  font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.15rem; text-transform: uppercase;
}
.callbar svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.callbar-call { background: var(--blue); color: var(--white); }
.callbar-quote { background: var(--white); color: var(--ink); }

@media (min-width: 46rem) {
  .services ul { grid-template-columns: repeat(2, 1fr); }
  .why ol { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 62rem) {
  .sitefoot { padding-bottom: 2rem; }
  .callbar { display: none; }
  .topnav { display: flex; }
  .topbar .btn-call { display: inline-flex; }
  .hero { grid-template-columns: 1.4fr 1fr; align-items: center; padding-top: 4rem; padding-bottom: 6rem; }
  .portrait { width: 19rem; }
  .services ul { grid-template-columns: repeat(3, 1fr); }
  .services li { grid-template-columns: 1fr; text-align: left; align-content: start; }
  .services li .icon { grid-row: auto; margin-bottom: .5rem; }
  .quote { grid-template-columns: 1fr 1.5fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
