/*
Theme Name: ZK Pro Builders Child
Template:   kadence
Version:    1.0.1
Text Domain: zk-child

------------------------------------------------------------------
EXPECTED MARKUP (so block render templates and these styles line up)
------------------------------------------------------------------
Each flexible-content layout outputs a <section class="zk-section zk-<layout>">,
with an inner .zk-container. Key hooks:

  .zk-hero        > .zk-hero__text / .zk-hero__media (.zk-reveal[before/after])
  .zk-ticker
  .zk-features    > .zk-features__grid > .zk-feature
  .zk-gallery     > .zk-gallery__grid + optional .zk-gallery__cta
  .zk-mood        > .zk-mood__grid > .zk-mood__item
  .zk-services    > .zk-services__intro / .zk-services__list (li)
  .zk-pricing     > .zk-pricing__grid > .zk-tier (.is-highlighted)
  .zk-testimonials> .zk-trust__grid > .zk-quote
  .zk-contact     > .zk-contact__grid (about / photo / details)
  .zk-cta

  .zk-btn / .zk-btn--primary / .zk-btn--secondary
------------------------------------------------------------------
*/

/* Prefer enqueuing fonts via wp_enqueue_style. @import kept for portability. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* palette */
  --zk-bg:        #F4EFE7;  /* warm off-white */
  --zk-bg-alt:    #ECE4D8;  /* light beige — alternating sections */
  --zk-surface:   #FBF8F3;  /* cards / lifted surfaces */
  --zk-ink:       #2D2A25;  /* graphite text */
  --zk-ink-soft:  #6E665B;  /* secondary text */
  --zk-line:      #D9CEBE;  /* hairline / architectural lines */
  --zk-gold:      #AD8B57;  /* muted gold */
  --zk-gold-deep: #8F6F3D;  /* gold on hover / dark accent */

  /* type */
  --zk-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --zk-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* scale */
  --zk-step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.85rem);
  --zk-step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --zk-step-1:  clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  --zk-step-2:  clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem);
  --zk-step-3:  clamp(2.6rem, 1.9rem + 3.2vw, 4.2rem);

  /* rhythm */
  --zk-container: 1200px;
  --zk-gutter: clamp(1.25rem, 4vw, 3rem);
  --zk-section-y: clamp(3.5rem, 7vw, 6.5rem);
  --zk-radius: 2px;            /* architectural: almost-square corners */
  --zk-ease: cubic-bezier(0.4, 0, 0.1, 1);
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--zk-bg);
  color: var(--zk-ink);
  font-family: var(--zk-body);
  font-size: var(--zk-step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--zk-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  color: var(--zk-ink);
}

p { margin: 0 0 1em; color: var(--zk-ink-soft); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* utility eyebrow / captions — the editorial "label" device */
.zk-eyebrow {
  font-family: var(--zk-body);
  font-size: var(--zk-step--1);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--zk-gold);
  margin: 0 0 1rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.zk-container {
  width: 100%;
  max-width: var(--zk-container);
  margin-inline: auto;
  padding-inline: var(--zk-gutter);
}

.zk-section { padding-block: var(--zk-section-y); }
.zk-section--alt { background: var(--zk-bg-alt); }

/* a true hairline that reads as an architectural line */
.zk-rule {
  border: 0;
  border-top: 1px solid var(--zk-line);
  margin: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.zk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--zk-body);
  font-size: var(--zk-step--1);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 1.8em;
  border: 1px solid transparent;
  border-radius: var(--zk-radius);
  cursor: pointer;
  transition: background-color .25s var(--zk-ease), color .25s var(--zk-ease), border-color .25s var(--zk-ease);
}
.zk-btn--primary { background: var(--zk-gold); color: #fff; }
.zk-btn--primary:hover { background: var(--zk-gold-deep); }
.zk-btn--secondary {
  background: transparent;
  color: var(--zk-ink);
  border-color: var(--zk-line);
}
.zk-btn--secondary:hover { border-color: var(--zk-ink); }

/* ============================================================
   HERO + REVEAL  (the signature element)
   ============================================================ */
.zk-hero { padding-block: var(--zk-section-y); }
.zk-hero .zk-container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.zk-hero__heading { font-size: var(--zk-step-2); max-width: 16ch; }
.zk-hero__sub { font-size: var(--zk-step-1); color: var(--zk-ink-soft); max-width: 36ch; font-family: var(--zk-display); }
.zk-hero__price {
  margin: 1.75rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--zk-line);
  font-family: var(--zk-display);
  font-size: var(--zk-step-1);
  color: var(--zk-ink);
}
.zk-hero__buttons { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }

/* before/after slider — pure CSS framing; JS sets --pos (0–100%) */
.zk-reveal {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--zk-radius);
  overflow: hidden;
  --pos: 50%;
  user-select: none;
  box-shadow: 0 30px 60px -40px rgba(45, 42, 37, 0.55);
}
.zk-reveal img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.zk-reveal__after { clip-path: inset(0 0 0 var(--pos)); }
.zk-reveal__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 1px;
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-0.5px);
  pointer-events: none;
}
.zk-reveal__handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--zk-surface);
  border: 1px solid var(--zk-line);
  display: grid;
  place-items: center;
  cursor: ew-resize;
  color: var(--zk-gold);
}
.zk-reveal__label {
  position: absolute;
  bottom: 1rem;
  font-size: var(--zk-step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
  pointer-events: none;
}
.zk-reveal__label--before { left: 1rem; }
.zk-reveal__label--after  { right: 1rem; }

/* ============================================================
   TICKER / BANNER STRIP
   ============================================================ */
.zk-ticker {
  background: var(--zk-bg-alt);
  border-block: 1px solid var(--zk-line);
  text-align: center;
  padding-block: 1.1rem;
}
.zk-ticker p {
  margin: 0;
  font-family: var(--zk-display);
  font-size: var(--zk-step-1);
  color: var(--zk-ink);
}

/* ============================================================
   FEATURES / WHY CHOOSE US
   ============================================================ */
.zk-features { text-align: center; }
.zk-features__heading { font-size: var(--zk-step-2); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.zk-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.zk-feature {
  padding: 0 clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid var(--zk-line);
}
.zk-feature:first-child { border-left: 0; }
.zk-feature__icon { width: 100px; height: 100px; margin: 0 auto 1.1rem; color: var(--zk-gold); }
.zk-feature__icon img, .zk-feature__icon svg { width: 100%; height: 100%; object-fit: contain; }
.zk-feature h3 { font-size: var(--zk-step-1); }
.zk-feature p { font-size: var(--zk-step--1); }

/* ============================================================
   GALLERY
   ============================================================ */
.zk-gallery__heading { text-align: center; font-size: var(--zk-step-2); margin-bottom: 2.5rem; }
.zk-gallery__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.zk-gallery__grid img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--zk-radius); }
.zk-gallery__cta {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.zk-gallery__cta .zk-btn {
  background: var(--zk-surface);
  color: var(--zk-ink);
  box-shadow: 0 16px 40px -24px rgba(45,42,37,.6);
}

/* ============================================================
   MATERIAL MOOD
   ============================================================ */
.zk-mood__heading { text-align: center; font-size: var(--zk-step-2); margin-bottom: 2.5rem; }
.zk-mood__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.zk-mood__item { position: relative; overflow: hidden; border-radius: var(--zk-radius); }
.zk-mood__item img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .8s var(--zk-ease);
}
.zk-mood__item:hover img { transform: scale(1.04); }
.zk-mood__title {
  position: absolute;
  left: 1.25rem;
  bottom: 1.1rem;
  margin: 0;
  color: #fff;
  font-size: var(--zk-step-1);
  text-shadow: 0 1px 10px rgba(0,0,0,.45);
}

/* ============================================================
   SERVICES + INTRO SPLIT
   ============================================================ */
.zk-services .zk-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.zk-services__intro h2 { font-size: var(--zk-step-2); }
.zk-services__accent {
  font-family: var(--zk-display);
  font-size: var(--zk-step-2);
  color: var(--zk-gold);
  display: block;
  margin: -0.2em 0 0.8rem;
}
.zk-services__rheading { font-size: var(--zk-step-1); margin-bottom: 1.25rem; }
.zk-services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 1.5rem;
}
.zk-services__list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--zk-step-0);
  color: var(--zk-ink);
}
.zk-services__list li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid var(--zk-gold);
  border-radius: var(--zk-radius);
  background:
    linear-gradient(45deg, transparent 42%, var(--zk-gold) 42%, var(--zk-gold) 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, var(--zk-gold) 42%, var(--zk-gold) 58%, transparent 58%);
  background-size: 60% 60%;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================================================
   PRICING TIERS
   ============================================================ */
.zk-pricing { text-align: center; }
.zk-pricing__heading { font-size: var(--zk-step-2); }
.zk-pricing__note { max-width: 48ch; margin: 0 auto 3rem; }
.zk-pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  text-align: left;
}
.zk-tier {
  background: var(--zk-surface);
  border: 1px solid var(--zk-line);
  border-radius: var(--zk-radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.zk-tier.is-highlighted { border-color: var(--zk-gold); }
.zk-tier__name { font-size: var(--zk-step-1); margin-bottom: 0.25rem; }
.zk-tier__price { font-family: var(--zk-display); font-size: var(--zk-step-1); color: var(--zk-gold); margin-bottom: 0.75rem; }
.zk-tier p { font-size: var(--zk-step--1); margin: 0; }

/* ============================================================
   TRUST WALL
   ============================================================ */
.zk-testimonials__heading { text-align: center; font-size: var(--zk-step-2); margin-bottom: 2.5rem; }
.zk-trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.zk-quote {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-left: 2px solid var(--zk-gold);
  background: var(--zk-surface);
  border-radius: var(--zk-radius);
}
.zk-quote p {
  font-family: var(--zk-display);
  font-size: var(--zk-step-1);
  color: var(--zk-ink);
  margin-bottom: 0.75rem;
}
.zk-quote cite {
  font-style: normal;
  font-size: var(--zk-step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zk-ink-soft);
}

/* ============================================================
   ABOUT + CONTACT
   ============================================================ */
.zk-contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.zk-contact__about h2 { font-size: var(--zk-step-2); }
.zk-contact__photo img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--zk-radius); }
.zk-contact__details { font-size: var(--zk-step-0); }
.zk-contact__details a { text-decoration: none; }
.zk-contact__row { display: flex; align-items: center; gap: 0.7rem; padding-block: 0.5rem; }
.zk-contact__row svg { color: var(--zk-gold); flex: 0 0 auto; }
.zk-contact__qr { display: flex; gap: 1rem; margin-top: 1.25rem; }
.zk-contact__qr figure { margin: 0; text-align: center; max-width: 110px; }
.zk-contact__qr img { width: 100%; border: 1px solid var(--zk-line); border-radius: var(--zk-radius); }
.zk-contact__qr figcaption { font-size: var(--zk-step--1); color: var(--zk-ink-soft); margin-top: 0.4rem; }

/* ============================================================
   CTA BAND
   ============================================================ */
.zk-cta { background: var(--zk-bg-alt); text-align: center; }
.zk-cta__heading { font-size: var(--zk-step-2); }
.zk-cta p { max-width: 50ch; margin: 0 auto 1.75rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .zk-hero .zk-container { grid-template-columns: 1fr; }
  .zk-hero__media { order: -1; }
  .zk-features__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
  .zk-feature:nth-child(3) { border-left: 0; }
  .zk-gallery__grid,
  .zk-mood__grid { grid-template-columns: repeat(2, 1fr); }
  .zk-services .zk-container { grid-template-columns: 1fr; }
  .zk-contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .zk-features__grid { grid-template-columns: 1fr; }
  .zk-feature { border-left: 0; border-top: 1px solid var(--zk-line); padding: 1.5rem 0 0; }
  .zk-feature:first-child { border-top: 0; padding-top: 0; }
  .zk-gallery__grid,
  .zk-mood__grid,
  .zk-services__list { grid-template-columns: 1fr; }
  .zk-hero__buttons .zk-btn { flex: 1 1 100%; }
}

/* ============================================================
   A11Y
   ============================================================ */
:where(a, button, .zk-btn, .zk-reveal__handle):focus-visible {
  outline: 2px solid var(--zk-gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .zk-mood__item:hover img { transform: none; }
}

/* ============================================================
   ZK — Kadence overrides
   Paste this block at the very END of style.css
   (or save as zk-overrides.css and enqueue after zk-child).
   These rules intentionally use !important to beat Kadence's
   customizer CSS, which loads inline after the stylesheet.
   ============================================================ */

/* 1. Warm editorial background instead of Kadence's default blue. */
body,
.wp-site-blocks,
.site,
.site-container,
.content-bg,
.content-area,
.entry-content,
.entry-content-wrap {
	/*background-color: var(--zk-bg) !important;*/
}

/* 2. Serif display headings (beats Kadence's heading font). */
h1, h2, h3, h4,
.zk-hero__heading,
.zk-section h2,
.zk-section h3 {
	font-family: var(--zk-display) !important;
	font-weight: 500 !important;
	letter-spacing: 0.005em;
	color: var(--zk-ink) !important;
}

/* 3. Hero heading breathes to 2–3 lines like the mockup. */
.zk-hero__heading {
	max-width: 16ch;
	line-height: 1.06 !important;
}

/* 4. Gallery: force a uniform 3:4 crop across the grid. */
.zk-gallery__grid { grid-auto-rows: 1fr; }
.zk-gallery__grid img {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 3 / 4;
	object-fit: cover !important;
	display: block;
	border-radius: var(--zk-radius);
}

/* 5. Services checklist: clean gold checkbox (replaces broken glyph). */
.zk-services__list li::before {
	content: "\2713";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	border: 1px solid var(--zk-gold);
	border-radius: var(--zk-radius);
	background: none !important;
	color: var(--zk-gold);
	font-size: 11px;
	line-height: 1;
}

/* 6. Material mood: caption on its own line, smaller and dimmer. */
.zk-mood__title {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	line-height: 1.12;
}
.zk-mood__title small {
	font-family: var(--zk-body);
	font-size: 0.72rem;
	font-weight: 400;
	opacity: 0.85;
}

/* 7. Contact rows: graphite/gold instead of Kadence link blue. */
.zk-contact__details a { color: var(--zk-ink) !important; }
.zk-contact__details a:hover { color: var(--zk-gold) !important; }

/* 8. Keep images in these sections square-cornered (architectural). */
.zk-section img { border-radius: var(--zk-radius); }

/* ============================================================
   ZK — Contact form (Fluent Forms)
   Append to style.css (after the Kadence overrides block).
   ============================================================ */

/* Layout: intro left, form box right; stacks on mobile. */
.zk-form .zk-container {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: stretch;
}
.zk-form__intro { display: flex; flex-direction: column; }
.zk-form__intro h2 { font-size: var(--zk-step-2); }
.zk-form__intro p { max-width: 34ch; }

.zk-form__box {
	background: var(--zk-surface);
	border: 1px solid var(--zk-line);
	border-radius: var(--zk-radius);
	padding: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 820px) {
	.zk-form .zk-container { grid-template-columns: 1fr; }
}

/* --- Fluent Forms fields restyled to match the ZK design --- */
.zk-form .fluentform .ff-el-group { margin-bottom: 1.1rem; }

.zk-form .fluentform .ff-el-input--label label,
.zk-form .fluentform label {
	font-family: var(--zk-body);
	font-size: var(--zk-step--1);
	letter-spacing: 0.04em;
	color: var(--zk-ink-soft);
	margin-bottom: 0.35rem;
}

.zk-form .fluentform input[type="text"],
.zk-form .fluentform input[type="email"],
.zk-form .fluentform input[type="tel"],
.zk-form .fluentform input[type="number"],
.zk-form .fluentform textarea,
.zk-form .fluentform select {
	width: 100%;
	background: var(--zk-bg);
	border: 1px solid var(--zk-line);
	border-radius: var(--zk-radius);
	padding: 0.85em 1em;
	font-family: var(--zk-body);
	font-size: var(--zk-step-0);
	color: var(--zk-ink);
	box-shadow: none;
	transition: border-color 0.2s ease;
}

.zk-form .fluentform input:focus,
.zk-form .fluentform textarea:focus,
.zk-form .fluentform select:focus {
	outline: none;
	border-color: var(--zk-gold);
}

.zk-form .fluentform textarea { min-height: 120px; resize: vertical; }

/* Submit button mirrors .zk-btn--primary (!important beats Fluent Forms' inline color). */
.zk-form .fluentform .ff-btn-submit,
.zk-form .fluentform button[type="submit"],
.zk-form .fluentform .ff_btn_style {
	background: var(--zk-gold) !important;
	background-image: none !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: var(--zk-radius) !important;
	font-family: var(--zk-body);
	font-size: var(--zk-step--1);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.95em 2em;
	cursor: pointer;
	transition: background-color 0.25s ease;
}
.zk-form .fluentform .ff-btn-submit:hover,
.zk-form .fluentform button[type="submit"]:hover,
.zk-form .fluentform .ff_btn_style:hover {
	background: var(--zk-gold-deep) !important;
}

/* Google map — grows to fill the left column down to the form's bottom. */
.zk-form__map {
	margin-top: 1.75rem;
	flex: 1 1 auto;
	min-height: 300px;
	border: 1px solid var(--zk-line);
	border-radius: var(--zk-radius);
	overflow: hidden;
}
.zk-form__map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	filter: grayscale(0.15);
}

/* ============================================================
   ZK — How we work (process steps)
   Append to style.css.
   ============================================================ */
.zk-process__heading { text-align: center; font-size: var(--zk-step-2); margin-bottom: 0.75rem; }
.zk-process__intro {
	text-align: center;
	max-width: 52ch;
	margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}

.zk-process__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
}

.zk-step {
	padding: 0 clamp(1rem, 2.5vw, 2rem);
	border-left: 1px solid var(--zk-line);
}
.zk-step:first-child { border-left: 0; }

.zk-step__num {
	font-family: var(--zk-display);
	font-size: var(--zk-step-2);
	line-height: 1;
	color: var(--zk-gold);
	margin-bottom: 0.75rem;
}
.zk-step__title { font-size: var(--zk-step-1); margin-bottom: 0.4rem; }
.zk-step p { font-size: var(--zk-step--1); }

@media (max-width: 900px) {
	.zk-process__grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 0; }
	.zk-step:nth-child(3) { border-left: 0; }
}
@media (max-width: 560px) {
	.zk-process__grid { grid-template-columns: 1fr; }
	.zk-step { border-left: 0; border-top: 1px solid var(--zk-line); padding: 1.5rem 0 0; }
	.zk-step:first-child { border-top: 0; padding-top: 0; }
}