/* The Pro-Stucco Handyman: "Sign Shop" look.
   Headings, buttons and labels: Barlow Condensed, uppercase, like trade signage.
   Reading text: Niramit.
   Colors: navy, terracotta, sand. Hard edges, black label bands, faint stucco grain. */

:root {
  --navy: #1d2b3a;
  --navy-2: #2a3d52;
  --black: #111;
  --terracotta: #c8643b;
  --terracotta-dark: #a94f2b;
  --sand: #f5efe6;
  --sand-2: #ebe1d2;
  --sand-3: #d9cdb9;
  --ink: #222;
  --muted: #5b6470;
  --white: #fff;
  --radius: 2px;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Niramit", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  /* Subtle stucco texture, layered over sand backgrounds.
     Two noise layers: a fine sand grain and a softer, larger trowel mottle.
     To make it stronger or weaker, change the last number in each feColorMatrix (0.22 and 0.16). */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.25 0 0 0 0 0.12 0 0 0 0.22 0'/%3E%3C/filter%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.035' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.32 0 0 0 0 0.18 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; display: block; }

a { color: var(--terracotta-dark); }

h1, h2, h3 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  color: var(--navy);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 700; }

/* Section titles sit on a black band, like the sign */
.section h2 {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  padding: 8px 16px 5px;
  margin-bottom: 0.7em;
}

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }

.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 1rem;
  font-weight: 600;
  color: var(--terracotta);
  margin: 0 0 0.6rem;
}

.hidden { display: none; }

/* Buttons: squared plates with a bottom edge */
.btn {
  display: inline-block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  padding: 14px 26px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.btn-lg { padding: 17px 32px 15px; font-size: 1.3rem; }
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.25), inset 0 -3px 0 rgba(0,0,0,0.2);
}
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-primary:active { transform: translateY(1px); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.25), inset 0 -1px 0 rgba(0,0,0,0.2); }
.btn-ghost { color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-ghost-dark { color: var(--navy); background: var(--white); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-ghost-dark:hover { background: var(--sand); }
.btn-dark { background: var(--navy); color: var(--white); box-shadow: inset 0 -3px 0 rgba(0,0,0,0.3); }
.btn-dark:hover { background: var(--navy-2); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 3px solid var(--black);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-logo { height: 46px; width: auto; }
.brand-text {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 0.95;
  letter-spacing: 0.02em;
}
.brand-text small { display: block; font-weight: 600; color: var(--terracotta); font-size: 0.8em; letter-spacing: 0.1em; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }
.header-call { font-size: 1.05rem; padding: 12px 20px 10px; }

/* Hero */
.hero {
  background:
    linear-gradient(115deg, rgba(29,43,58,0.94) 0%, rgba(29,43,58,0.8) 55%, rgba(200,100,59,0.65) 100%),
    url("images/web/hero.jpg") center 42% / cover no-repeat, var(--navy);
  color: var(--white);
  padding-block: clamp(64px, 11vw, 130px);
  border-bottom: 6px solid var(--terracotta);
}
.hero h1 { color: var(--white); max-width: 14ch; margin-bottom: 0.3em; }
.hero .eyebrow { color: #f0b08f; }
.lead { font-size: 1.25rem; font-weight: 500; max-width: 50ch; color: rgba(255,255,255,0.92); margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Trust bar */
.trust { background: var(--sand) var(--grain); border-bottom: 1px solid var(--sand-3); }
.trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 0;
  padding-block: 16px;
  text-align: center;
}
.trust strong {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  padding: 0 28px;
}
.trust strong + strong { border-left: 3px solid var(--terracotta); }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: var(--sand) var(--grain); }
.section-lead { color: var(--muted); max-width: 60ch; margin-top: 0; }

/* Dark call-to-action plate */
.card {
  background: var(--white);
  border: 1px solid var(--sand-3);
  border-left: 6px solid var(--terracotta);
  border-radius: var(--radius);
  padding: 24px;
}
.card p { color: var(--muted); margin: 0; }
.card-cta { background: var(--navy); border-color: var(--navy); border-left-color: var(--terracotta); }
.card-cta h3 { color: var(--white); }
.card-cta p { color: rgba(255,255,255,0.8); margin-bottom: 16px; }

/* Services list: rows that open on hover or tap */
.service-list { margin-top: 8px; border-top: 2px solid var(--navy); }
.section .h2-spaced { margin-top: 56px; }
.service { border-bottom: 1px solid var(--sand-3); }
.service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 4px 18px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s;
}
.service-head:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.service-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 2px solid var(--navy);
  position: relative;
  transition: transform 0.3s, border-color 0.15s, background 0.15s;
}
.service-icon::before, .service-icon::after {
  content: "";
  position: absolute;
  background: var(--navy);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: background 0.15s;
}
.service-icon::before { width: 12px; height: 2px; }
.service-icon::after { width: 2px; height: 12px; }
.service-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.service-body > p { overflow: hidden; margin: 0; color: var(--muted); max-width: 70ch; font-size: 1.05rem; }
.service.open .service-body > p { padding: 0 4px 22px; }
.service.open .service-body { grid-template-rows: 1fr; }
.service.open .service-head { color: var(--terracotta); }
.service.open .service-icon { transform: rotate(45deg); border-color: var(--terracotta); background: var(--terracotta); }
.service.open .service-icon::before, .service.open .service-icon::after { background: var(--white); }
@media (hover: hover) {
  .service:hover .service-body { grid-template-rows: 1fr; }
  .service:hover .service-body > p { padding: 0 4px 22px; }
  .service:hover .service-head { color: var(--terracotta); }
  .service:hover .service-icon { transform: rotate(45deg); border-color: var(--terracotta); background: var(--terracotta); }
  .service:hover .service-icon::before, .service:hover .service-icon::after { background: var(--white); }
}
.service-cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.service-cta p { margin-bottom: 0; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.about-photo { aspect-ratio: 4 / 5; border: 1px solid var(--sand-3); box-shadow: 12px 12px 0 var(--sand-3); }
.about p { font-size: 1.05rem; }

/* Shared photo frame + caption */
.about-photo, .tl-step { margin: 0; position: relative; overflow: hidden; background: var(--sand-2); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo figcaption, .tl-step figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 36px 16px 14px;
  background: linear-gradient(transparent, rgba(17,17,17,0.9));
  color: var(--white);
  font-weight: 600;
  font-size: 0.98rem;
  pointer-events: none;
}

/* Job timelines: tabs on desktop, stacked cards on phones */
.job-tabs { display: none; }
.jobs { display: grid; gap: 24px; margin-top: 8px; }
@media (min-width: 901px) {
  .job-tabs {
    display: flex;
    margin-top: 8px;
    border: 2px solid var(--navy);
    background: var(--white);
  }
  .job-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
    background: none;
    border: none;
    border-right: 2px solid var(--navy);
    padding: 14px 16px 12px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }
  .job-tab:last-child { border-right: none; }
  .job-tab:hover { background: var(--sand); }
  .job-tab:focus-visible { outline: 2px solid var(--terracotta); outline-offset: -4px; }
  .job-tab .num {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    background: var(--sand-2);
    font-size: 0.9rem;
    line-height: 1;
    padding-top: 2px;
  }
  .job-tab[aria-selected="true"] { background: var(--black); color: var(--white); }
  .job-tab[aria-selected="true"] .num { background: var(--terracotta); color: var(--white); }
  .jobs { margin-top: 0; }
  .job { border-top: none; }
  .job:not(.active) { display: none; }
  .job-head h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* the tab already shows the name */
  .jobs .job-head { padding: 18px 24px 14px; }
  .jobs .tl-track { aspect-ratio: auto; height: clamp(420px, 48vw, 600px); }
}
.job {
  background: var(--white);
  border: 2px solid var(--navy);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.job-head { padding: 22px 24px 16px; }
.job-head h3 { margin-bottom: 6px; }
.job-head p { margin: 0; color: var(--muted); font-size: 1rem; }
.timeline { position: relative; }
.tl-track {
  display: flex;
  aspect-ratio: 4 / 3;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  background: var(--navy);
}
.tl-track::-webkit-scrollbar { display: none; }
.tl-track:focus-visible { outline: 3px solid var(--terracotta); outline-offset: -3px; }
.tl-step { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; background: var(--navy); }
/* Blurred copy of the photo fills the frame behind tall or wide photos */
.tl-step::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: var(--photo) center / cover no-repeat;
  filter: blur(18px) brightness(0.6);
}
.tl-step img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; }
.tl-tag {
  display: inline-block;
  font-family: var(--display);
  background: var(--terracotta);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 5px 8px 3px;
  margin-right: 8px;
  vertical-align: 2px;
}
.tl-tag-mid { background: rgba(255,255,255,0.22); }
.tl-btn {
  position: absolute;
  top: calc(50% - 22px);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--white);
  color: var(--navy);
  font-size: 1.9rem;
  line-height: 1;
  box-shadow: 0 2px 0 rgba(0,0,0,0.35);
  cursor: pointer;
  transition: opacity 0.2s, background 0.15s;
}
.tl-btn:hover { background: var(--sand); }
.tl-btn.prev { left: 12px; }
.tl-btn.next { right: 12px; }
.tl-btn:disabled { opacity: 0; pointer-events: none; }
.tl-nav { display: flex; align-items: center; gap: 12px; padding: 14px 20px 0; }
.tl-end, .tl-group-label {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.tl-dots { flex: 1; display: flex; gap: 6px; }
.tl-dot {
  flex: 1;
  height: 6px;
  border: none;
  background: var(--sand-2);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: background 0.2s;
}
.tl-dot::after { content: ""; position: absolute; inset: -12px 0; } /* bigger tap target */
.tl-dot[aria-current="step"] { background: var(--terracotta); }
.tl-dot.done { background: #e2b9a4; }
/* Jobs with several before & after pairs */
.tl-nav.has-parts .tl-end { display: none; }
.tl-nav.has-parts .tl-dots { gap: 18px; }
.tl-group { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tl-group-label { text-align: center; }
.tl-group-dots { display: flex; gap: 6px; }
.tl-status {
  margin: 0;
  padding: 8px 20px 18px;
  text-align: center;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}
.more-link { margin-top: 24px; color: var(--muted); }

/* Areas */
.area-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; margin-top: 8px; }
.areas { display: grid; gap: 14px; }
.area { background: var(--white); border: 1px solid var(--sand-3); border-left: 6px solid var(--terracotta); padding: 20px 24px 18px; }
.area h3 { margin-bottom: 6px; }
.area p { color: var(--muted); margin: 0; font-size: 1rem; }
.map-wrap { margin: 0; }
.county-map { width: 100%; height: auto; display: block; border: 2px solid var(--navy); }
.county-map .water { fill: #cfe3ea; }
.county-map .county-off { fill: #f3efe8; stroke: #c9bfb0; stroke-width: 1; }
.county-map .county-on { fill: var(--terracotta); fill-opacity: 0.85; stroke: var(--white); stroke-width: 2; }
.county-map .county-label { font: 700 20px "Barlow Condensed", sans-serif; fill: var(--white); letter-spacing: 0.1em; }
.county-map .county-label-left { fill: var(--navy); }
.county-map .city-dot { fill: var(--navy); stroke: var(--white); stroke-width: 1.5; }
.county-map .city { font: 600 13px "Niramit", sans-serif; fill: var(--navy); paint-order: stroke; stroke: rgba(255,255,255,0.85); stroke-width: 3px; }
.county-map .water-label { font: italic 500 13px "Niramit", sans-serif; fill: #4f7a8a; }
.map-key { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--muted); font-size: 0.95rem; }
.key-swatch { width: 16px; height: 16px; background: var(--terracotta); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; border-top: 2px solid var(--navy); }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--sand-3); display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.contact-list span {
  width: 90px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.95rem;
}
.contact-list a { font-weight: 600; text-decoration: none; word-break: break-word; }

.form {
  background: var(--sand) var(--grain);
  border: 1px solid var(--sand-3);
  padding: 28px;
  display: grid;
  gap: 16px;
}
.form label {
  display: grid;
  gap: 6px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form select, .form textarea {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.65em 0.8em;
  border: 1px solid #c9bda9;
  border-radius: var(--radius);
  background: var(--white);
  width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--terracotta); outline-offset: -1px; border-color: var(--terracotta); }
.form .optional { font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }
.form input[type="file"] { padding: 0.55em; cursor: pointer; }
.form .btn { justify-self: start; }
.photo-previews { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-previews:empty { display: none; }
.photo-preview { position: relative; width: 84px; height: 84px; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--sand-3); }
.photo-preview button {
  position: absolute;
  top: -8px; right: -8px;
  width: 26px; height: 26px;
  border: 2px solid var(--white);
  background: var(--navy);
  color: var(--white);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.form-note { margin: -4px 0 0; font-size: 0.95rem; color: var(--muted); }
.form-error { margin: 0; color: #a3261b; font-weight: 600; font-size: 0.95rem; }
.form button[disabled] { opacity: 0.7; cursor: wait; }

/* Footer */
.site-footer { background: var(--black); color: rgba(255,255,255,0.8); padding-block: 40px; font-size: 0.98rem; border-top: 6px solid var(--terracotta); }
.site-footer a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); }
.site-footer a:hover { border-bottom-color: var(--terracotta); }
.site-footer strong { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.2rem; color: var(--white); }
.footer-logo { height: 64px; width: auto; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.copy { width: 100%; margin: 0; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* Mobile call bar */
.mobile-bar { display: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .header-call { margin-left: auto; }
  .about, .contact { grid-template-columns: 1fr; }
  .about-photo { max-width: 360px; }
  .area-layout { grid-template-columns: 1fr; }
  .map-wrap { max-width: 520px; }
  .brand-logo { height: 40px; }
  .brand-text { font-size: 1.1rem; }
}

@media (max-width: 600px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .header-call { display: none; }
  .trust strong + strong { border-left: none; }
  .trust strong { font-size: 1.15rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .service-head { font-size: 1.35rem; }
  .tl-btn { width: 38px; height: 38px; top: calc(50% - 19px); font-size: 1.6rem; }
  .tl-btn.prev { left: 8px; }
  .tl-btn.next { right: 8px; }
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 3px solid var(--black);
    z-index: 20;
  }
}
