/* ==========================================================================
   KleanAZZ — site styles
   One stylesheet, no build step. Brand values in :root only.

   This is a like-for-like port of the previous WordPress site (Bridge theme +
   WPBakery). Colours and type were sampled from the live page: the brand green
   #92C954 appeared 8 times in its CSS and matches the buttons and headings.
   ========================================================================== */

/* --- Fonts: self-hosted, not linked from Google -------------------------
   Faster, one less third-party connection, and no privacy note needed.
   Only the weights actually used are shipped (63 KB total).
   ---------------------------------------------------------------------- */
@font-face { font-family:"Poppins"; src:url("../fonts/poppins-600.woff2") format("woff2");
             font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:"Poppins"; src:url("../fonts/poppins-700.woff2") format("woff2");
             font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Raleway"; src:url("../fonts/raleway-400.woff2") format("woff2");
             font-weight:400; font-style:normal; font-display:swap; }

:root {
  --green:       #92C954;   /* brand green, straight off the old site */
  --green-dark:  #7CB142;   /* hover only */
  --black:       #000000;
  --ink:         #313131;   /* body copy */
  --ink-soft:    #5A5A5A;
  --white:       #FFFFFF;
  --rule:        #E2E2E2;

  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Raleway", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap:    72rem;
  --gutter:  clamp(1.25rem, 4vw, 3rem);
  --section: clamp(3.5rem, 8vw, 6rem);
}

/* --- Reset-ish ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.09rem);
  line-height: 1.75;
}
img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; margin: 0; line-height: 1.2; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--black); color: var(--white); padding: .75rem 1.25rem; text-decoration: none;
}
.skip-link:focus { left: .5rem; top: .5rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

/* Green underlined uppercase section headings, as per the original */
.section-title {
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
  color: var(--green);
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: .12em;
  text-decoration-thickness: .06em;
  margin-bottom: 1.5rem;
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .85rem 1.5rem;
  border: 0; border-radius: 3px;
  cursor: pointer;
  transition: background .2s ease;
}
.btn:hover { background: var(--green-dark); color: var(--white); }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--black);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 5rem;
}
.site-header__logo img { width: 130px; height: auto; }

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav a {
  font-family: var(--font-head); font-weight: 600;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
}
.nav a:hover { color: var(--green); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid #444; border-radius: 3px;
  padding: .5rem .65rem; cursor: pointer; color: var(--white);
}

@media (max-width: 48rem) {
  .nav-toggle { display: inline-flex; }
  .site-header__inner { flex-wrap: wrap; }
  .nav {
    order: 3; width: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    border-top: 1px solid #222; padding-bottom: .75rem;
  }
  .nav[hidden] { display: none; }
  .nav a, .nav .btn { padding: .85rem 0; width: 100%; }
  .nav .btn { background: none; color: var(--green); padding-inline: 0; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; background: var(--black); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* The original tints the banner photo green — that tint IS the brand look here,
   so it is reproduced rather than dropped. */
/* A flat overlay, NOT multiply. Multiply darkened the photo into olive; the
   original tint is brighter and flatter, so a plain alpha wash matches it. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(146,201,84,.78);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  min-height: clamp(18rem, 34vw, 28rem);
  display: grid; place-items: center; text-align: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}
/* max-width 46ch and a 2.5rem cap so the headline breaks across two lines at
   desktop, as the original did. At 20ch it wrapped to four and lost the shape. */
.hero h1 {
  color: var(--white);
  font-size: clamp(1.5rem, 1rem + 2.1vw, 2.5rem);
  max-width: 42ch;
  text-shadow: 0 2px 12px rgba(0,0,0,.28);
}

/* --- About ---------------------------------------------------------------- */
.about__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 52rem) { .about__grid { grid-template-columns: 1fr 1fr; } }
.about__figure { margin: 0; }
.about__figure img { width: 100%; height: auto; }

/* --- Services ------------------------------------------------------------- */
.services { background: var(--black); color: var(--white); }
.services .section-title { color: var(--green); }

.services__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.service { text-align: center; }
.service__media { position: relative; margin-bottom: 2.4rem; }
.service__media img { width: 100%; aspect-ratio: 15 / 8; object-fit: cover; }

/* The green circular badge overlapping the bottom of each tile — the original
   used Font Awesome's fa-address-card. Inlined as SVG here: same look, without
   pulling in a ~75 KB icon font for four glyphs. */
.service__icon {
  position: absolute; left: 50%; bottom: 0;
  transform: translate(-50%, 50%);
  width: 3.1rem; height: 3.1rem; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: grid; place-items: center;
}
.service__icon svg { width: 1.4rem; height: 1.4rem; }

.service__name {
  font-family: var(--font-head); font-weight: 600;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); margin: 0;
}

/* --- Contact -------------------------------------------------------------- */
.contact__lede { max-width: 60ch; }

.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-family: var(--font-head); font-weight: 600;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); margin-bottom: .5rem;
}
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--black);
  border-radius: 0;
  padding: .7rem .85rem;
}
.field input:focus, .field textarea:focus { border-color: var(--green); outline: 2px solid transparent; }
.field textarea { min-height: 8rem; resize: vertical; }
.field__hint { font-size: .82rem; color: var(--ink-soft); margin: .4rem 0 0; }

/* Honeypot — off-screen rather than display:none; many bots skip hidden fields. */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  border-left: 3px solid #A5453B; background: #F7E9E6; color: #6E2A23;
  padding: 1rem 1.25rem; margin-bottom: 1.5rem;
}

/* --- Utility pages (thanks / 404) ----------------------------------------- */
.pane { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--section); }
.pane h1 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); color: var(--green); text-transform: uppercase; }

@media print {
  .site-header, .nav-toggle { display: none; }
  body { color: #000; }
}
