/* JKC Tile — Option B "Midnight Slate"
   Dark premium contractor: slate/coal canvas (the logo's native ground),
   azure gradient accents, angular chamfers echoing the JKC wordmark. */

:root {
  --coal: #0a0e14;
  --slate: #10161f;
  --panel: #151d29;
  --panel-2: #1a2433;
  --line: #26334a;
  --text: #e9eef6;
  --dim: #97a4b8;
  --royal: #0d51ab;
  --blue: #1f6bb5;
  --azure: #3594cd;
  --glow: 0 16px 44px -18px rgba(53, 148, 205, 0.55);
  --chamfer: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--coal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .btn {
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.02em;
}

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--azure); color: #06121e; padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--azure);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; font-weight: 700; font-size: 1.02rem;
  text-decoration: none; border: 1.5px solid transparent;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  padding: 0.66rem 1.4rem; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease,
    color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 0.85rem 1.8rem; font-size: 1.1rem; }
.btn-primary {
  background: linear-gradient(120deg, var(--royal), var(--azure));
  color: #fff; box-shadow: var(--glow);
}
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(21, 29, 41, 0.6); }
.btn-ghost:hover { border-color: var(--azure); color: var(--azure); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.4rem; padding: 0.75rem 0; }
.brand {
  display: flex; align-items: baseline; gap: 0.55rem;
  text-decoration: none; margin-right: auto;
}
.brand-mark { display: block; height: 30px; width: auto; align-self: center; }
.brand-text {
  font-family: "Rajdhani", sans-serif; font-weight: 700;
  font-size: 1.15rem; letter-spacing: 0.42em; color: var(--text);
}
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  text-decoration: none; color: var(--dim); font-weight: 600;
  font-size: 0.93rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.site-nav a:hover { color: var(--azure); }
@media (max-width: 860px) {
  .site-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background-image:
    linear-gradient(100deg, rgba(10, 14, 20, 0.94) 34%, rgba(10, 14, 20, 0.72) 58%, rgba(13, 81, 171, 0.28)),
    var(--hero-img, none);
  --hero-img: url("/assets/hero-shower.jpg");
  background-color: var(--slate);
  background-size: cover; background-position: center right;
  border-bottom: 1px solid var(--line);
  padding: 6rem 0 5.4rem;
}
.hero h1 {
  font-size: clamp(2.8rem, 6.4vw, 4.4rem); font-weight: 700;
  line-height: 0.98; margin: 0.8rem 0 1.1rem;
  background: linear-gradient(115deg, #ffffff 40%, var(--azure));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  color: var(--dim); font-size: 1.1rem; max-width: 33rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.8rem 0 1.5rem; }
.hero-trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 0;
  font-weight: 600; font-size: 0.9rem; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.hero-trust li { display: flex; align-items: center; }
.hero-trust li + li::before {
  content: ""; display: inline-block; width: 22px; height: 2px;
  background: var(--azure); margin: 0 0.9rem; transform: skewX(-30deg);
}
@media (max-width: 700px) {
  .hero { padding: 3.6rem 0 3.2rem; background-position: center; }
  .hero-trust li { width: 100%; }
  .hero-trust li + li::before { display: none; }
}

/* ---------- Trust strip ---------- */
.trustbar { background: var(--slate); border-bottom: 1px solid var(--line); }
.trustbar-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  padding: 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.1rem;
  border-left: 1px solid var(--line);
}
.trust-item:first-child { border-left: none; }
.trust-item strong {
  font-family: "Rajdhani", sans-serif; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 1.02rem; color: var(--azure);
}
.trust-item span { color: var(--dim); font-size: 0.85rem; }
@media (max-width: 860px) {
  .trustbar-inner { grid-template-columns: 1fr 1fr; }
  .trust-item { border-left: none; border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: 4.6rem 0; }
.section h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.6rem); font-weight: 700;
  margin: 0.5rem 0 1.9rem;
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-card {
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  clip-path: var(--chamfer);
  padding: 1.6rem 1.5rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--azure); }
.service-icon {
  width: 52px; height: 52px; margin-bottom: 1rem;
  display: grid; place-items: center; color: var(--azure);
  background: rgba(53, 148, 205, 0.12);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.service-card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 0.4rem; }
.service-card p { color: var(--dim); font-size: 0.94rem; }
@media (max-width: 960px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Recent work gallery ---------- */
.work-lede { color: var(--dim); margin: -1rem 0 1.6rem; max-width: 38rem; }
.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.work-item {
  margin: 0; position: relative; overflow: hidden;
  clip-path: var(--chamfer); background: var(--panel);
  aspect-ratio: 3 / 4;
}
.work-featured { grid-column: span 2; aspect-ratio: auto; }
.work-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s ease;
}
.work-item:hover img { transform: scale(1.045); }
.work-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1rem 0.8rem;
  background: linear-gradient(transparent, rgba(6, 10, 16, 0.88));
  font-family: "Rajdhani", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.86rem;
}
@media (max-width: 960px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-item { aspect-ratio: 1 / 1; }
  .work-featured { grid-column: span 1; aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .work-item img { transition: none; }
  .work-item:hover img { transform: none; }
}

/* ---------- Follow strip ---------- */
.follow {
  background: var(--slate); border-top: 1px solid var(--line);
  padding: 2.6rem 0;
}
.follow-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; flex-wrap: wrap;
}
.follow h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.2rem; }
.follow p { color: var(--dim); }

/* ---------- Commercial band ---------- */
.band {
  background-image:
    linear-gradient(100deg, rgba(10, 14, 20, 0.92) 30%, rgba(13, 47, 92, 0.72) 70%, rgba(13, 81, 171, 0.5)),
    var(--band-img, none);
  --band-img: url("/assets/commercial-floor.jpg");
  background-color: var(--slate);
  background-size: cover; background-position: center;
  border-block: 1px solid var(--line);
  padding: 5.4rem 0;
}
.band h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700;
  margin: 0.5rem 0 0.7rem;
}
.band p { color: var(--dim); max-width: 36rem; margin-bottom: 1.6rem; }

/* ---------- Why / About ---------- */
.why-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem;
  align-items: start;
}
.why-copy p { color: var(--dim); max-width: 34rem; }
.check-list { list-style: none; margin: 1.4rem 0 1.8rem; display: grid; gap: 0.7rem; }
.check-list li { padding-left: 1.8rem; position: relative; color: var(--dim); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 12px; height: 12px; background: var(--azure);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.check-list strong { color: var(--text); }
.why-side { display: grid; gap: 1.4rem; }
.craft-photo { margin: 0; }
.craft-photo img {
  display: block; width: 100%; height: auto;
  clip-path: var(--chamfer);
}
.craft-photo figcaption { font-size: 0.82rem; color: var(--dim); margin-top: 0.6rem; }
.steps {
  background: var(--panel); border: 1px solid var(--line);
  clip-path: var(--chamfer); padding: 1.5rem 1.5rem 1.2rem;
}
.steps-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }
.steps-list { list-style: none; display: grid; gap: 1rem; }
.steps-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.step-num {
  flex: 0 0 auto; width: 30px; height: 30px;
  background: linear-gradient(120deg, var(--royal), var(--azure));
  color: #fff; font-weight: 700; font-family: "Rajdhani", sans-serif;
  display: grid; place-items: center; font-size: 0.95rem;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.steps-list p { color: var(--dim); font-size: 0.9rem; }
@media (max-width: 860px) { .why-inner { grid-template-columns: 1fr; } }

/* ---------- Service area ---------- */
.area { background: var(--slate); border-block: 1px solid var(--line); }
.area-lede { color: var(--dim); margin-bottom: 1.2rem; }
.city-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.city-chips li {
  background: var(--panel); border: 1px solid var(--line);
  padding: 0.45rem 1.1rem; font-weight: 600; font-size: 0.92rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.city-chips li:last-child {
  background: linear-gradient(120deg, var(--royal), var(--azure));
  border-color: transparent; color: #fff;
}

/* ---------- Contact ---------- */
.contact { padding-bottom: 5.2rem; }
.contact-inner {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem;
  align-items: start;
}
.contact-info p { color: var(--dim); max-width: 30rem; }
.contact-list { margin-top: 1.6rem; display: grid; gap: 0.9rem; }
.contact-list div { display: grid; grid-template-columns: 120px 1fr; gap: 0.6rem; }
.contact-list dt {
  color: var(--dim); font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; padding-top: 0.15rem;
}
.contact-list dd { font-weight: 600; }
.contact-list a { color: var(--azure); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.lead-form {
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  clip-path: var(--chamfer);
  padding: 1.9rem;
}
.form-row { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.lead-form label {
  font-weight: 600; font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--dim);
}
.lead-form input, .lead-form select, .lead-form textarea {
  font: inherit; color: var(--text);
  border: 1.5px solid var(--line); border-radius: 4px;
  padding: 0.65rem 0.8rem; background: var(--coal); width: 100%;
}
.lead-form select option { background: var(--coal); }
.lead-form textarea { resize: vertical; min-height: 96px; max-height: 320px; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: 2px solid var(--azure); outline-offset: 1px; border-color: var(--azure);
}
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--dim); font-size: 0.84rem; margin: 0.2rem 0 1rem; }
.form-status { margin-top: 0.9rem; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #4fd08c; }
.form-status.err { color: #ff7a70; }
@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--slate); border-top: 1px solid var(--line); color: var(--dim); }
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 1.6rem; padding: 2.6rem 0 1.4rem;
}
.footer-brand {
  font-family: "Rajdhani", sans-serif; font-weight: 700; color: var(--text);
  font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 0.3rem;
}
.footer-inner p { font-size: 0.92rem; }
.footer-links { display: grid; gap: 0.5rem; }
.footer-links a { color: var(--dim); text-decoration: none; font-size: 0.94rem; }
.footer-links a:hover { color: var(--azure); }
.footer-legal { border-top: 1px solid var(--line); padding: 1rem 0 1.6rem; }
.footer-legal p { font-size: 0.8rem; color: #6b7889; }

/* ---------- Sticky mobile action bar ---------- */
.callbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(10, 14, 20, 0.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  gap: 0.6rem;
}
.callbar .btn { flex: 1; white-space: nowrap; padding-inline: 0.6rem; }
@media (max-width: 700px) {
  .callbar { display: flex; }
  body { padding-bottom: 76px; }
}

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
