/*
 * DK Colourwala — Global Stylesheet
 * All custom CSS beyond what theme.json provides.
 * Variables mirror theme.json custom tokens.
 */

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  --dkc-color-text:          #555146;
  --dkc-color-surface:       #D7D1C5;
  --dkc-color-surface-light: #F5F2EE;
  --dkc-color-red:           #D34B3D;
  --dkc-color-orange:        #FEA01C;
  --dkc-color-blue:          #425081;
  --dkc-color-whatsapp:      #128049;
  --dkc-color-whatsapp-dark: #0E6A3C;
  --dkc-icon-whatsapp:       url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347z'/%3E%3Cpath d='M12 0C5.373 0 0 5.373 0 12c0 2.131.558 4.13 1.534 5.86L.057 23.852l6.063-1.589A11.953 11.953 0 0012 24c6.627 0 12-5.373 12-12S18.627 0 12 0zm0 21.818a9.818 9.818 0 01-5.016-1.371l-.36-.213-3.719.977.993-3.648-.234-.374A9.806 9.806 0 012.182 12C2.182 6.579 6.579 2.182 12 2.182S21.818 6.579 21.818 12 17.421 21.818 12 21.818z'/%3E%3C/svg%3E");
  --dkc-color-white:         #FFFFFF;
  --dkc-color-black:         #1A1917;
  --dkc-color-muted:         #7A7469;

  --dkc-font:                'Poppins', system-ui, -apple-system, sans-serif;

  --dkc-paint-line:          linear-gradient(90deg, #D34B3D 0% 28%, #FEA01C 40% 60%, #425081 72% 100%);

  --dkc-radius-sm:   4px;
  --dkc-radius-md:   8px;
  --dkc-radius-lg:   16px;
  --dkc-radius-pill: 9999px;

  --dkc-shadow-sm:   0 1px 3px rgba(85,81,70,.12), 0 1px 2px rgba(85,81,70,.08);
  --dkc-shadow-md:   0 4px 12px rgba(85,81,70,.15), 0 2px 4px rgba(85,81,70,.10);
  --dkc-shadow-lg:   0 10px 30px rgba(85,81,70,.18), 0 4px 8px rgba(85,81,70,.12);

  --dkc-transition:  0.2s ease;
  --dkc-header-h:    72px;
}

/* ── Base reset & base styles ───────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--dkc-font);
  color: var(--dkc-color-text);
  background-color: var(--dkc-color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Accessibility ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--dkc-color-text);
  color: var(--dkc-color-white);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0 0 var(--dkc-radius-md) var(--dkc-radius-md);
  text-decoration: none;
  transition: top var(--dkc-transition);
}
.skip-link:focus {
  top: 0;
}

*:focus-visible {
  outline: 3px solid var(--dkc-color-orange);
  outline-offset: 2px;
}

/* ── Paint line component ───────────────────────────────────── */
.dkc-paint-line {
  height: 6px;
  background: var(--dkc-paint-line);
  border-radius: 3px;
}

/* ── Section label style ─────────────────────────────────────── */
.is-style-section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dkc-color-blue);
  margin-bottom: 1rem;
}
.is-style-section-label::before {
  content: '';
  width: 2rem;
  height: 3px;
  border-radius: 2px;
  background: var(--dkc-color-red);
  flex-shrink: 0;
}
/* Centred headers: keep dash + text centred */
.has-text-align-center.is-style-section-label,
.has-text-align-center > .is-style-section-label,
[style*="text-align:center"] > .is-style-section-label {
  justify-content: center;
}

/* ── Block style: card ───────────────────────────────────────── */
.is-style-card {
  background: var(--dkc-color-white);
  border-radius: var(--dkc-radius-lg);
  box-shadow: var(--dkc-shadow-sm);
  overflow: hidden;
}

.is-style-card-hover {
  background: var(--dkc-color-white);
  border-radius: var(--dkc-radius-lg);
  box-shadow: var(--dkc-shadow-sm);
  overflow: hidden;
  transition: transform var(--dkc-transition), box-shadow var(--dkc-transition);
}
.is-style-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--dkc-shadow-md);
}

/* ── Block style: paint-line-top ─────────────────────────────── */
.is-style-paint-line-top {
  border-top: 6px solid transparent;
  border-image: var(--dkc-paint-line) 1;
}

/* ── Block style: paint-line separator ──────────────────────── */
.wp-block-separator.is-style-paint-line {
  height: 6px;
  background: var(--dkc-paint-line);
  border: none;
  border-radius: 3px;
}

/* ── Block style: rounded image ─────────────────────────────── */
.wp-block-image.is-style-rounded img {
  border-radius: var(--dkc-radius-lg);
}

/* ── Block style: paint-border image ────────────────────────── */
.wp-block-image.is-style-paint-border img {
  border-radius: var(--dkc-radius-md);
  outline: 6px solid transparent;
  outline-offset: 4px;
  box-shadow: 0 0 0 6px var(--dkc-color-orange);
}

/* ── Stars rating ────────────────────────────────────────────── */
.dkc-stars {
  color: var(--dkc-color-orange);
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  gap: 1px;
}
.dkc-star--empty {
  color: var(--dkc-color-surface);
}

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dkc-color-white);
  box-shadow: 0 1px 0 rgba(85,81,70,.1);
  min-height: var(--dkc-header-h);
}

/* ── Navigation ─────────────────────────────────────────────── */
.wp-block-navigation a {
  text-decoration: none;
  color: var(--dkc-color-text);
  font-weight: 500;
  transition: color var(--dkc-transition);
}
.wp-block-navigation a:hover {
  color: var(--dkc-color-red);
}

/* Mobile menu toggle */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  color: var(--dkc-color-text) !important;
}

/* ── Mobile sticky CTA bar ───────────────────────────────────── */
.dkc-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--dkc-color-white);
  border-top: 1px solid var(--dkc-color-surface);
  padding: 0.625rem 1rem;
  gap: 0.5rem;
}
@media (max-width: 767px) {
  .dkc-mobile-cta {
    display: flex;
  }
  body {
    padding-bottom: 4rem;
  }
}

.dkc-mobile-cta__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 0.5rem;
  border-radius: var(--dkc-radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--dkc-transition);
  border: none;
  cursor: pointer;
}
.dkc-mobile-cta__btn:hover {
  opacity: 0.9;
}
.dkc-mobile-cta__btn--call {
  background: var(--dkc-color-blue);
  color: var(--dkc-color-white);
}
.dkc-mobile-cta__btn--wa {
  background: var(--dkc-color-whatsapp);
  color: var(--dkc-color-white);
}
.dkc-mobile-cta__btn--quote {
  background: var(--dkc-color-red);
  color: var(--dkc-color-white);
}

/* ── Hero section ────────────────────────────────────────────── */
.dkc-hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 6rem);
  overflow: hidden;
}
.dkc-hero__cols {
  margin: 0;
  align-items: center;
}

/* Paint-chip composition (stand-in for hero photography) */
.dkc-hero__chips {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: clamp(320px, 38vw, 520px);
}
.dkc-chip {
  flex: 1 1 0;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  padding: 0.5rem;
  border-radius: var(--dkc-radius-lg);
  box-shadow: var(--dkc-shadow-md);
}
.dkc-chip { height: 82%; transform-origin: bottom center; }
.dkc-chip--red    { background: var(--dkc-color-red);    color: var(--dkc-color-white); transform: translateY(-1.5rem) rotate(-4deg); }
.dkc-chip--orange { background: var(--dkc-color-orange); color: var(--dkc-color-black); transform: translateY(1.5rem) rotate(1.5deg); }
.dkc-chip--blue   { background: var(--dkc-color-blue);   color: var(--dkc-color-white); transform: translateY(-0.5rem) rotate(4deg); }
.dkc-chip .dkc-chip__label {
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.5rem;
  border-radius: var(--dkc-radius-md);
  background: var(--dkc-color-white);
  color: var(--dkc-color-text);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

/* Text-link button style */
.wp-block-button.is-style-text-link .wp-block-button__link {
  background: transparent;
  color: var(--dkc-color-text);
  padding: 0.25rem 0;
  border-radius: 0;
  border-bottom: 2px solid var(--dkc-color-orange);
  transition: color var(--dkc-transition), border-color var(--dkc-transition);
}
.wp-block-button.is-style-text-link .wp-block-button__link::after {
  content: ' \2192';
}
.wp-block-button.is-style-text-link .wp-block-button__link:hover {
  background: transparent;
  color: var(--dkc-color-red);
  border-color: var(--dkc-color-red);
}

/* ── Section spacing ─────────────────────────────────────────── */
.dkc-section {
  padding-block: clamp(3rem, 6vw, 6rem);
}

.dkc-section--dark {
  background: var(--dkc-color-text);
  color: var(--dkc-color-white);
}

.dkc-section--surface {
  background: var(--dkc-color-surface-light);
}

.dkc-section--surface-dark {
  background: var(--dkc-color-surface);
}

/* ── Process steps ───────────────────────────────────────────── */
.dkc-step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--dkc-color-white);
  border: 2px solid var(--dkc-color-red);
  color: var(--dkc-color-red);
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Trust strip ─────────────────────────────────────────────── */
.dkc-trust-strip {
  background: var(--dkc-color-white);
  border-bottom: 1px solid var(--dkc-color-surface);
  padding-block: 1.25rem;
}
.dkc-trust-strip__row {
  gap: 0.75rem 2rem;
}
.dkc-trust-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dkc-color-text);
}
.dkc-trust-item::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--dkc-color-red);
  flex-shrink: 0;
}
.dkc-trust-item:nth-child(2)::before { background: var(--dkc-color-orange); }
.dkc-trust-item:nth-child(3)::before { background: var(--dkc-color-blue); }

/* ── Service card ────────────────────────────────────────────── */
.dkc-service-card {
  background: var(--dkc-color-white);
  border-radius: var(--dkc-radius-lg);
  overflow: hidden;
  box-shadow: var(--dkc-shadow-sm);
  transition: transform var(--dkc-transition), box-shadow var(--dkc-transition);
}
.dkc-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dkc-shadow-md);
}
.dkc-service-card__body {
  padding: 1.5rem;
}
.dkc-service-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--dkc-radius-md);
  background: var(--dkc-color-surface-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--dkc-color-red);
}

/* ── Project card ────────────────────────────────────────────── */
.dkc-project-card {
  background: var(--dkc-color-white);
  border-radius: var(--dkc-radius-lg);
  overflow: hidden;
  box-shadow: var(--dkc-shadow-sm);
  transition: transform var(--dkc-transition), box-shadow var(--dkc-transition);
}
.dkc-project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dkc-shadow-md);
}
.dkc-project-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.dkc-project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.dkc-project-card:hover .dkc-project-card__img img {
  transform: scale(1.04);
}
.dkc-project-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.dkc-project-card__cat {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dkc-color-red);
  margin-bottom: 0.375rem;
}
.dkc-project-card__location {
  font-size: 0.8125rem;
  color: var(--dkc-color-muted);
  margin-top: 0.375rem;
}

/* ── Testimonial card ────────────────────────────────────────── */
.dkc-testimonial-card {
  background: var(--dkc-color-white);
  border-radius: var(--dkc-radius-lg);
  padding: 2rem;
  box-shadow: var(--dkc-shadow-sm);
  border-top: 4px solid var(--dkc-color-orange);
}
.dkc-testimonial-card__quote {
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.dkc-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.dkc-testimonial-card__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--dkc-color-surface);
  overflow: hidden;
  flex-shrink: 0;
}
.dkc-testimonial-card__name {
  font-weight: 600;
  font-size: 0.9375rem;
}
.dkc-testimonial-card__location {
  font-size: 0.8125rem;
  color: var(--dkc-color-muted);
}

/* ── CTA section ─────────────────────────────────────────────── */
.dkc-cta-section {
  padding-block: clamp(2.5rem, 5vw, 5rem);
}
.dkc-cta-card {
  border-radius: var(--dkc-radius-lg);
  padding: clamp(2rem, 5vw, 4.5rem);
  overflow: hidden;
}
.dkc-cta-card > .wp-block-separator.is-style-paint-line {
  max-width: 8rem;
  margin: 0 0 2rem;
}
.dkc-cta-card__cols {
  margin: 0;
}
.dkc-cta-card__buttons .wp-block-button,
.dkc-cta-card__buttons .wp-block-button__link {
  width: 100%;
  text-align: center;
}

/* ── Footer ──────────────────────────────────────────────────────
   Four columns on desktop (brand · services · company · contact),
   brand row + three columns on tablet, two columns on phones.
   Text uses the full surface colour: the 80% tint read 4.0:1 on the
   footer brown, below the 4.5:1 minimum. Orange is kept for icons
   and accents only (3.9:1 is fine for non-text). */
.site-footer {
  --dkc-footer-text:   var(--dkc-color-surface);
  --dkc-footer-line:   rgba(255,255,255,0.12);
  --dkc-footer-tile:   rgba(255,255,255,0.07);
  --dkc-footer-pad:    var(--wp--style--root--padding-left, clamp(1rem, 4vw, 2rem));
  position: relative;
  padding: 0; /* core gives groups with a background 2.375em side padding */
  background: var(--dkc-color-text);
  color: var(--dkc-footer-text);
  font-size: 0.9375rem;
  line-height: 1.6;
}
/* Brand paint stripe along the top edge */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--dkc-paint-line);
}
.site-footer a {
  color: var(--dkc-footer-text);
  text-decoration: none;
  transition: color var(--dkc-transition);
}
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--dkc-color-white);
}
.site-footer a:focus-visible {
  outline: 2px solid var(--dkc-color-orange);
  outline-offset: 3px;
  border-radius: 2px;
}
.site-footer > * { margin-block: 0; }

.dkc-footer-main,
.dkc-footer-bar {
  width: calc(100% - 2 * var(--dkc-footer-pad));
  max-width: 1200px;
  margin-inline: auto !important;
}
.dkc-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 2.5rem 3.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 3.5rem);
}
.dkc-footer-main > *,
.dkc-footer-main > * > *,
.dkc-footer-brand > * { margin-block: 0; }

/* Brand column */
.dkc-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}
.site-footer .wp-block-site-logo img {
  width: 200px !important;
  height: auto !important;
  max-width: 100%;
  display: block;
  filter: brightness(0) invert(1);
}
.site-footer .wp-block-site-logo:empty::before {
  content: 'DK Colourwala';
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dkc-color-white);
  white-space: nowrap;
  display: block;
}
.dkc-footer-tagline {
  max-width: 30ch;
  color: var(--dkc-footer-text);
}

/* Social icons — official brand glyphs; hover fills with the brand colour */
.dkc-social-links {
  --dkc-brand-instagram: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%);
  --dkc-brand-facebook:  #0866FF;
  --dkc-brand-youtube:   #FF0000;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0.25rem 0 0;
  padding: 0;
}
.dkc-social-links li { margin: 0; padding: 0; }
.site-footer .dkc-social-links__link {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--dkc-footer-tile);
  border: 1px solid var(--dkc-footer-line);
  color: var(--dkc-color-white);
  transition: background var(--dkc-transition), border-color var(--dkc-transition), transform var(--dkc-transition);
}
.dkc-social-links__link .dkc-icon { width: 1.125rem; height: 1.125rem; }
.dkc-social-links__link:hover,
.dkc-social-links__link:focus-visible {
  border-color: transparent;
  transform: translateY(-2px);
}
.dkc-social-links__link--instagram:hover,
.dkc-social-links__link--instagram:focus-visible { background: var(--dkc-brand-instagram); }
.dkc-social-links__link--facebook:hover,
.dkc-social-links__link--facebook:focus-visible { background: var(--dkc-brand-facebook); }
.dkc-social-links__link--youtube:hover,
.dkc-social-links__link--youtube:focus-visible { background: var(--dkc-brand-youtube); }

/* Column headings: white label with a short paint-line underline */
.site-footer .dkc-footer-heading {
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  position: relative;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dkc-color-white);
}
.site-footer .dkc-footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--dkc-paint-line);
}

/* Link lists (services + company) */
.dkc-footer-nav,
.site-footer .dkc-footer-services .wp-block-post-template {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.dkc-footer-nav li { margin: 0; padding: 0; }
.dkc-footer-services .wp-block-post-title {
  margin: 0;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.5;
}
.dkc-footer-nav a {
  display: inline-block;
  transition: color var(--dkc-transition), transform var(--dkc-transition);
}
.dkc-footer-nav a:hover { transform: translateX(3px); }

/* Contact list */
.dkc-footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dkc-footer-contact__item {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: start;
  column-gap: 0.875rem;
  margin: 0;
}
.dkc-footer-contact__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--dkc-radius-md);
  background: var(--dkc-footer-tile);
  color: var(--dkc-color-orange);
}
.dkc-footer-contact__icon .dkc-icon { width: 1.125rem; height: 1.125rem; }
.dkc-footer-contact__body {
  padding-top: 0.375rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.dkc-footer-contact__line { display: block; }
.dkc-footer-hours__row {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  column-gap: 0.5rem;
}
.dkc-footer-hours__day {
  color: inherit;
  font-weight: 600;
  white-space: nowrap;
}
.site-footer .dkc-footer-hours__day {
  color: var(--dkc-color-white);
  font-weight: 500;
}

/* The same contact list on light pages (Contact, Get a Quote) */
.wp-block-post-content .dkc-footer-contact {
  padding-left: 0;
  line-height: 1.6;
}
.wp-block-post-content .dkc-footer-hours__row {
  grid-template-columns: 6rem minmax(0, 1fr);
}
.wp-block-post-content .dkc-footer-contact__icon {
  background: var(--dkc-color-surface-light);
  color: var(--dkc-color-red);
}
.wp-block-post-content .dkc-footer-contact a {
  color: var(--dkc-color-text);
  text-decoration: none;
}
.wp-block-post-content .dkc-footer-contact a:hover,
.wp-block-post-content .dkc-footer-contact a:focus-visible {
  color: var(--dkc-color-red);
  text-decoration: underline;
}

/* Bottom bar */
.dkc-footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem;
  /* Keep the credit clear of the floating WhatsApp / back-to-top buttons */
  padding-inline-end: max(0px, calc(8rem - max(var(--dkc-footer-pad), (100vw - 1200px) / 2)));
  border-top: 1px solid var(--dkc-footer-line);
  font-size: 0.8125rem;
}
.dkc-footer-bar > * { margin: 0 !important; }
.dkc-footer-bar a {
  color: var(--dkc-color-white);
  font-weight: 500;
}
.dkc-footer-bar a:hover { color: var(--dkc-color-orange); }

.dkc-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1023px) {
  .dkc-footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr) minmax(0, 1.5fr); gap: 2.5rem 1.75rem; }
  .dkc-footer-brand {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--dkc-footer-line);
  }
  .dkc-footer-tagline { flex: 1 1 16rem; }
}
@media (max-width: 600px) {
  .dkc-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.25rem; }
  .dkc-footer-brand { flex-direction: column; align-items: flex-start; padding-bottom: 2.25rem; }
  .dkc-footer-tagline { flex: none; }
  .dkc-footer-col--contact { grid-column: 1 / -1; }
  .dkc-footer-bar { flex-direction: column; align-items: flex-start; padding-inline-end: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dkc-social-links__link:hover,
  .dkc-social-links__link:focus-visible,
  .dkc-footer-nav a:hover { transform: none; }
}

/* ── Grid helpers ────────────────────────────────────────────── */
.dkc-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}
.dkc-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
}
.dkc-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.5rem;
}

/* ── Responsive typography ───────────────────────────────────── */
@media (max-width: 600px) {
  .wp-block-heading.has-5-xl-font-size {
    font-size: 2.25rem !important;
  }
  .wp-block-heading.has-hero-font-size {
    font-size: clamp(2rem, 8vw, 2.5rem) !important;
  }
}

/* ── Floating WhatsApp button (desktop/tablet) ───────────────── */
.dkc-fab-wa {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 150;
  width: 3.5rem;
  height: 3.5rem;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
}
.dkc-fab-wa.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.dkc-fab-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,.55);
}
.dkc-fab-wa svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: #fff;
  flex-shrink: 0;
}
.dkc-fab-wa__tooltip {
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%);
  background: var(--dkc-color-text);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.375rem 0.75rem;
  border-radius: var(--dkc-radius-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.dkc-fab-wa__tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--dkc-color-text);
}
.dkc-fab-wa:hover .dkc-fab-wa__tooltip {
  opacity: 1;
}
@media (max-width: 767px) {
  .dkc-fab-wa { display: none; }
}

/* ── Scroll-to-top button ────────────────────────────────────── */
.dkc-scroll-top {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  z-index: 150;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--dkc-color-white);
  color: var(--dkc-color-text);
  border: 2px solid var(--dkc-color-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--dkc-shadow-sm);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
}
.dkc-scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.dkc-scroll-top:hover {
  box-shadow: var(--dkc-shadow-md);
  border-color: var(--dkc-color-orange);
  color: var(--dkc-color-red);
}
.dkc-scroll-top svg {
  width: 1.125rem;
  height: 1.125rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}
@media (max-width: 767px) {
  /* The bottom action bar owns the lower edge on mobile */
  .dkc-scroll-top { display: none; }
}

/* ── FAQ accordion ───────────────────────────────────────────── */
.wp-block-details {
  border-bottom: 1px solid var(--dkc-color-surface);
  margin: 0 !important;
}
.wp-block-details + .wp-block-details {
  border-top: none;
}
.wp-block-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dkc-color-text);
  list-style: none;
  user-select: none;
}
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::marker { display: none; }
.dkc-faq-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--dkc-color-surface-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.3s ease;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--dkc-color-red);
  font-weight: 300;
  font-style: normal;
}
.wp-block-details[open] .dkc-faq-icon {
  transform: rotate(45deg);
  background: var(--dkc-color-red);
  color: #fff;
}
.wp-block-details > :not(summary) {
  overflow: hidden;
  padding-bottom: 0;
  transition: padding-bottom 0.3s ease;
}
.wp-block-details[open] > :not(summary) {
  padding-bottom: 1.25rem;
}
.wp-block-details > :not(summary) p {
  color: var(--dkc-color-muted);
  line-height: 1.75;
  margin: 0;
  font-size: 0.9375rem;
}

/* ── Stats / counter section ─────────────────────────────────── */
.dkc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 1.5rem;
  text-align: center;
}
.dkc-stat-item {
  padding: 2rem 1rem;
}
.dkc-stat-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--dkc-color-red);
  line-height: 1;
  display: block;
}
.dkc-stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dkc-color-muted);
  margin-top: 0.5rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Project filter tabs ─────────────────────────────────────── */
.dkc-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.dkc-filter-tab {
  padding: 0.5rem 1.25rem;
  border-radius: var(--dkc-radius-pill);
  background: var(--dkc-color-surface-light);
  color: var(--dkc-color-text);
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  display: inline-block;
}
.dkc-filter-tab:hover,
.dkc-filter-tab.is-active {
  background: var(--dkc-color-red);
  color: #fff;
  border-color: var(--dkc-color-red);
}

/* ── Paint swatch strip ──────────────────────────────────────── */
.dkc-swatch-strip {
  display: flex;
  height: 8px;
  width: 100%;
  overflow: hidden;
  border-radius: var(--dkc-radius-pill);
}
.dkc-swatch-strip__item {
  flex: 1;
  transition: flex 0.4s ease;
}
.dkc-swatch-strip__item:hover {
  flex: 3;
}

/* ── Google rating badge ─────────────────────────────────────── */
.dkc-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--dkc-color-white);
  border: 1px solid var(--dkc-color-surface);
  border-radius: var(--dkc-radius-pill);
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dkc-color-text);
  box-shadow: var(--dkc-shadow-sm);
}
.dkc-google-badge__logo {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.dkc-google-badge__stars {
  color: #FBBC05;
  letter-spacing: 0.04em;
}
.dkc-google-badge__count {
  color: var(--dkc-color-muted);
  font-weight: 500;
}

/* ── Process steps desktop connector ─────────────────────────── */
@media (min-width: 768px) {
  .dkc-process-grid {
    position: relative;
  }
  .dkc-process-grid::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: calc(3rem / 2);
    right: calc(3rem / 2);
    height: 2px;
    background: repeating-linear-gradient(
      90deg,
      var(--dkc-color-surface) 0,
      var(--dkc-color-surface) 6px,
      transparent 6px,
      transparent 14px
    );
    pointer-events: none;
    z-index: 0;
  }
  .dkc-step-number {
    position: relative;
    z-index: 1;
  }
}

/* ── Header scroll state ─────────────────────────────────────── */
.site-header.is-scrolled,
header.wp-block-template-part.is-scrolled {
  box-shadow: 0 2px 12px rgba(85,81,70,.14);
}

/* ── Header — logo & nav alignment ──────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--dkc-color-surface-light);
}
.site-header .wp-block-site-logo {
  flex-shrink: 0;
}
/* Logo is 374x80. The block writes an inline width, so set width (not height)
   with !important and let height follow the aspect ratio — no squashing. */
.site-header .wp-block-site-logo img {
  width: clamp(190px, 17vw, 240px) !important;
  height: auto !important;
  max-width: none;
  display: block;
}
/* Fallback text logo when image not set */
.site-header .wp-block-site-logo:empty::before {
  content: 'DK Colourwala';
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dkc-color-text);
  white-space: nowrap;
}
/* Navigation links */
.site-header .wp-block-navigation a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dkc-color-text);
  text-decoration: none;
  transition: color var(--dkc-transition);
}
.site-header .wp-block-navigation a:hover,
.site-header .wp-block-navigation .current-menu-item > a {
  color: var(--dkc-color-red);
}

/* ── Blog card — featured image placeholder ──────────────────── */
.is-style-card-hover .wp-block-post-featured-image:empty,
.is-style-card-hover .wp-block-post-featured-image a:empty {
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--dkc-color-surface) 0%, var(--dkc-color-surface-light) 100%);
  position: relative;
}
.is-style-card-hover .wp-block-post-featured-image:empty::before,
.is-style-card-hover .wp-block-post-featured-image a:empty::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2z' stroke='%23D34B3D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' opacity='0.25'/%3E%3C/svg%3E") center / 60px no-repeat;
}
/* When post has a featured image, show it */
.is-style-card-hover .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transition: transform 0.45s ease;
}
.is-style-card-hover:hover .wp-block-post-featured-image img {
  transform: scale(1.04);
}

/* Blog card body spacing */
.is-style-card-hover .wp-block-group {
  height: 100%;
}

/* Blog listing — label + category */
.wp-block-post-template .wp-block-post-date {
  font-size: 0.75rem;
  color: var(--dkc-color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ── Blog listing page header ────────────────────────────────── */
.wp-block-query .wp-block-post-template {
  row-gap: 2rem;
  column-gap: 2rem;
}

/* ── Single blog post ─────────────────────────────────────────── */
.wp-block-post-featured-image.alignwide img {
  border-radius: var(--dkc-radius-lg);
}
/* Hero fallback when no featured image */
.single-post main > .wp-block-group:first-child {
  min-height: 0;
}

/* ── Testimonials coming-soon card ──────────────────────────── */
.dkc-testimonials-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--dkc-color-white);
  border-radius: var(--dkc-radius-lg);
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--dkc-shadow-sm);
  border-top: 4px solid var(--dkc-color-orange);
}
.dkc-testimonials-cta__icon {
  font-size: 1.75rem;
  letter-spacing: 0.1em;
  color: #FBBC05;
  margin-bottom: 1rem;
}
.dkc-testimonials-cta__msg {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dkc-color-muted);
  margin: 0 0 0.75rem;
}
.dkc-testimonials-cta__sub {
  font-size: 0.9375rem;
  color: var(--dkc-color-text);
  margin: 0;
}
.dkc-testimonials-cta__sub a {
  color: var(--dkc-color-red);
  font-weight: 600;
  text-decoration: none;
}
.dkc-testimonials-cta__sub a:hover {
  text-decoration: underline;
}

/* ── Testimonial card star rating ────────────────────────────── */
.dkc-testimonial-card__stars {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: #FBBC05;
  margin-bottom: 0.875rem;
}

/* ── Site logo — override WP default styling ─────────────────── */
.wp-block-site-logo a {
  display: inline-flex;
  align-items: center;
}

/* ── Mobile menu improvements ─────────────────────────────────── */
@media (max-width: 767px) {
  .site-header {
    padding-block: 0.625rem;
  }
  .site-header .wp-block-site-logo img {
    width: 180px !important;
  }
}

/* ── Blog archive — cards on mobile ─────────────────────────── */
@media (max-width: 599px) {
  .wp-block-post-template.is-flex-container {
    grid-template-columns: 1fr !important;
  }
}

/* ── About page / standard pages ─────────────────────────────── */
.wp-block-post-content h2 {
  margin-top: 2.5rem;
}
.wp-block-post-content p + h2 {
  margin-top: 2.5rem;
}

/* ── Service archive cards — icon fill ───────────────────────── */
.dkc-service-card .dkc-icon svg {
  fill: var(--dkc-color-red);
}

/* ── Standard page hero ───────────────────────────────────────── */
.dkc-page-hero {
  border-bottom: 1px solid var(--dkc-color-surface);
}
.dkc-page-hero .wp-block-post-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0;
}

/* Service card — image placeholder when no featured image set */
.dkc-service-card .wp-block-post-featured-image:empty,
.dkc-service-card .wp-block-post-featured-image img[src=""] {
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--dkc-color-text) 0%, var(--dkc-color-blue) 100%);
}
.dkc-service-card .wp-block-post-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.dkc-service-card:hover .wp-block-post-featured-image img {
  transform: scale(1.03);
}

/* Featured image below the hero header */
.wp-block-post-featured-image.alignwide {
  margin-inline: auto;
  max-width: var(--wp--style--global--wide-size, 1200px);
}
.wp-block-post-featured-image.alignwide img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 0 0 var(--dkc-radius-lg) var(--dkc-radius-lg);
}

/* Post content typography */
.wp-block-post-content h2 {
  font-size: 1.5rem;
  margin-top: 2.25rem;
  margin-bottom: 0.875rem;
}
.wp-block-post-content h3 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
  margin-bottom: 0.625rem;
}
.wp-block-post-content p {
  line-height: 1.8;
  color: var(--dkc-color-text);
}
/* Prose lists only (List block or plain lists). UI lists in page content,
   such as query grids and the contact list, keep their own spacing. */
.wp-block-post-content :is(ul, ol):is(.wp-block-list, :not([class])) {
  padding-left: 1.5rem;
  line-height: 1.8;
}
.wp-block-post-content :is(ul, ol):is(.wp-block-list, :not([class])) > li {
  margin-bottom: 0.375rem;
}
.wp-block-post-content strong {
  color: var(--dkc-color-text);
}
.wp-block-post-content a {
  color: var(--dkc-color-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.wp-block-post-content a:hover {
  color: var(--dkc-color-text);
}

/* ── Blog archive — page header ───────────────────────────────── */
.dkc-blog-header {
  background: var(--dkc-color-surface-light) !important;
}

/* ── Related posts — query on single service ─────────────────── */
.single-service .wp-block-query .wp-block-post-template {
  column-gap: 1.5rem;
  row-gap: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   Redesign — shared layout components (home first)
   ═══════════════════════════════════════════════════════════════ */

/* Section rhythm: 96px desktop / 64px mobile */
.dkc-section {
  padding-block: clamp(4rem, 8vw, 6rem);
}

/* Heading sizes — one scale for sections */
.wp-block-heading.has-section-font-size {
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--dkc-color-black);
  margin-top: 0;
}
.dkc-section--dark .wp-block-heading,
.dkc-cta-card .wp-block-heading {
  color: var(--dkc-color-white);
}

/* Split layout: sticky intro column + content column */
.dkc-split {
  margin: 0;
  align-items: flex-start;
}
@media (min-width: 782px) {
  .dkc-split__intro {
    position: sticky;
    top: calc(var(--dkc-header-h) + 2rem);
  }
}
.dkc-split--head {
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

/* Service list (numbered editorial rows) */
.dkc-service-list .wp-block-post-template {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: dkc-service;
  border-top: 1px solid var(--dkc-color-surface);
}
.dkc-service-list .wp-block-post-template > li {
  counter-increment: dkc-service;
  margin: 0;
}
.dkc-service-row {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr 2rem;
  column-gap: 1rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--dkc-color-surface);
  transition: background var(--dkc-transition), padding-left var(--dkc-transition);
}
.dkc-service-row::before {
  content: counter(dkc-service, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--dkc-color-red);
  padding-top: 0.45rem;
}
.dkc-service-row::after {
  content: '\2192';
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  font-size: 1.25rem;
  color: var(--dkc-color-text);
  transition: transform var(--dkc-transition), color var(--dkc-transition);
}
.dkc-service-row > * {
  grid-column: 2;
  margin: 0;
}
.dkc-service-row .wp-block-post-title {
  font-weight: 600;
  line-height: 1.3;
}
.dkc-service-row .wp-block-post-title a {
  color: var(--dkc-color-black);
  text-decoration: none;
}
/* Whole row is the click target */
.dkc-service-row .wp-block-post-title a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.dkc-service-row .wp-block-post-excerpt {
  margin-top: 0.375rem;
  color: var(--dkc-color-text);
}
.dkc-service-row .wp-block-post-excerpt__excerpt {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dkc-service-row:hover {
  padding-left: 0.5rem;
}
.dkc-service-row:hover::after {
  transform: translateX(4px);
  color: var(--dkc-color-red);
}
.dkc-service-row:hover .wp-block-post-title a {
  color: var(--dkc-color-red);
}

/* Feature list (Why choose us) */
.dkc-feature {
  border-top: 3px solid var(--dkc-color-red);
  padding-top: 1.25rem;
}
.dkc-feature--orange { border-top-color: var(--dkc-color-orange); }
.dkc-feature--blue   { border-top-color: var(--dkc-color-blue); }
.dkc-feature .wp-block-heading {
  margin: 0 0 0.5rem;
  color: var(--dkc-color-black);
}
.dkc-feature p {
  margin: 0;
}

/* Process timeline */
.dkc-process-grid {
  margin: 0;
}
.dkc-step .wp-block-heading {
  margin: 0 0 0.5rem;
  color: var(--dkc-color-black);
}
.dkc-step p:not(.dkc-step-number) {
  margin: 0;
}
@media (max-width: 781px) {
  .dkc-process-grid {
    position: relative;
  }
  .dkc-process-grid::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.4rem;
    width: 2px;
    background: var(--dkc-color-surface);
  }
  .dkc-step {
    position: relative;
    padding-left: 4.25rem;
  }
  .dkc-step .dkc-step-number {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    z-index: 1;
  }
}

/* Card hover — services/projects keep existing styles */

/* ── Header refinements ─────────────────────────────────────── */
.site-header .wp-block-buttons .wp-block-button__link {
  white-space: nowrap;
  font-size: 0.875rem;
}
/* Switch to the menu toggle earlier than WP's 600px default */
@media (max-width: 1099px) {
  .site-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none;
  }
  .site-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex;
  }
}
@media (max-width: 899px) {
  .site-header .wp-block-button.is-style-whatsapp {
    display: none;
  }
}
@media (max-width: 767px) {
  /* Mobile: logo + menu toggle only; the bottom bar carries the CTAs */
  .site-header .wp-block-buttons {
    display: none;
  }
  .site-header > .wp-block-group {
    flex-wrap: nowrap;
  }
  .site-header .wp-block-site-logo img {
    width: 170px !important;
  }
}

/* ==========================================================================
   Forms (Forminator) - Contact + Get a Quote
   The plugin's "default" design is neutral; this skins it with the brand tokens.
   Scoped to .forminator-ui.forminator-custom-form so other plugin UI is unaffected. The :not(#dkc-form) matches the specificity of the
   per-form stylesheet Forminator generates (#forminator-module-N), so these rules win by source order.
   ========================================================================== */
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) {
  --dkc-form-border: var(--dkc-color-muted);
  --dkc-form-gap: 1.25rem;
  font-family: var(--dkc-font);
  color: var(--dkc-color-text);
  background: var(--dkc-color-white);
  border: 1px solid var(--dkc-color-surface);
  border-top: 4px solid var(--dkc-color-red);
  border-radius: var(--dkc-radius-lg);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  box-shadow: var(--dkc-shadow-sm);
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dkc-form-gap);
  margin: 0 0 var(--dkc-form-gap);
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-row.forminator-row-last {
  margin-bottom: 0;
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-row > .forminator-col {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0;
  margin: 0;
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-row > .forminator-col:only-child {
  flex-basis: 100%;
}

/* Labels, descriptions */
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-label {
  display: block;
  margin: 0 0 0.375rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dkc-color-black);
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-required {
  color: var(--dkc-color-red);
  margin-left: 0.125rem;
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-description {
  display: block;
  margin: 0 0 0.5rem;
  font-family: inherit;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--dkc-color-text);
}

/* Text inputs, textarea */
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-input,
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--dkc-color-black);
  background: var(--dkc-color-white);
  border: 1px solid var(--dkc-form-border);
  border-radius: var(--dkc-radius-md);
  box-shadow: none;
  transition: border-color var(--dkc-transition), box-shadow var(--dkc-transition);
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-textarea {
  min-height: 8rem;
  resize: vertical;
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-input::placeholder,
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-textarea::placeholder {
  color: var(--dkc-color-muted);
  opacity: 1;
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-input:hover,
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-textarea:hover {
  border-color: var(--dkc-color-text);
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-input:focus,
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-textarea:focus {
  outline: 0;
  border-color: var(--dkc-color-blue);
  box-shadow: 0 0 0 3px rgba(66, 80, 129, 0.25);
}

/* Select (Select2 skin) */
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .select2-container .select2-selection--single,
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-select .select2-selection--single {
  min-height: 3rem;
  border: 1px solid var(--dkc-form-border);
  border-radius: var(--dkc-radius-md);
  background: var(--dkc-color-white);
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .select2-selection__rendered {
  font-family: inherit;
  font-size: 1rem;
  line-height: 3rem;
  color: var(--dkc-color-black);
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .select2-container--open .select2-selection--single,
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .select2-container--focus .select2-selection--single {
  border-color: var(--dkc-color-blue);
  box-shadow: 0 0 0 3px rgba(66, 80, 129, 0.25);
}

/* Checkbox group: two-column grid of tappable option tiles */
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-field[role="group"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-field[role="group"] > .forminator-label,
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-field[role="group"] > .forminator-description,
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-field[role="group"] > .forminator-error-message {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-checkbox {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  min-height: 3rem;
  padding: 0.5rem 0.875rem;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--dkc-color-black);
  background: var(--dkc-color-surface-light);
  border: 1px solid var(--dkc-color-surface);
  border-radius: var(--dkc-radius-md);
  cursor: pointer;
  transition: border-color var(--dkc-transition), background-color var(--dkc-transition);
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-checkbox:hover {
  border-color: var(--dkc-color-muted);
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-checkbox:has(input:checked) {
  background: var(--dkc-color-white);
  border-color: var(--dkc-color-blue);
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-checkbox:has(input:focus-visible) {
  outline: 3px solid rgba(66, 80, 129, 0.45);
  outline-offset: 1px;
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-checkbox .forminator-checkbox-box {
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  border: 1.5px solid var(--dkc-form-border);
  border-radius: var(--dkc-radius-sm);
  background: var(--dkc-color-white);
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-checkbox input:checked + .forminator-checkbox-box {
  background-color: var(--dkc-color-blue);
  border-color: var(--dkc-color-blue);
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-checkbox .forminator-checkbox-label {
  margin: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

/* Validation */
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-error-message {
  display: block;
  margin: 0.375rem 0 0;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: #A8271A; /* red darkened for 4.5:1 on white; --dkc-color-red is below that */
  background: none;
  padding: 0;
  box-shadow: none;
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-has_error .forminator-input,
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-has_error .forminator-textarea,
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-has_error .select2-selection--single {
  border-color: var(--dkc-color-red);
  box-shadow: 0 0 0 1px var(--dkc-color-red);
}

/* Submit */
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-button-submit {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.875rem 2rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dkc-color-white);
  background: var(--dkc-color-red);
  border: 0;
  border-radius: var(--dkc-radius-pill);
  cursor: pointer;
  transition: background-color var(--dkc-transition);
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-button-submit:hover,
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-button-submit:focus-visible {
  background: var(--dkc-color-black);
  color: var(--dkc-color-white);
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-button-submit:focus-visible {
  outline: 3px solid rgba(66, 80, 129, 0.6);
  outline-offset: 2px;
}
@media (min-width: 600px) {
  .forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-button-submit {
    width: auto;
    min-width: 14rem;
  }
}

/* Success / error banners */
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-response-message {
  margin: 0 0 var(--dkc-form-gap);
  padding: 1rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
  border-radius: var(--dkc-radius-md);
  border: 1px solid transparent;
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-response-message:not(.forminator-show) {
  display: none;
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-response-message.forminator-success {
  color: #0E5F36;
  background: #EAF6EF;
  border-color: var(--dkc-color-whatsapp);
}
.forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-response-message.forminator-error {
  color: #8A1F14;
  background: #FCEEEC;
  border-color: var(--dkc-color-red);
}

@media (max-width: 599px) {
  .forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-row > .forminator-col {
    flex-basis: 100%;
  }
  .forminator-ui.forminator-custom-form.forminator-design--default:not(#dkc-form) .forminator-field[role="group"] {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Mobile menu overlay: left-aligned, larger tap targets */
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  align-items: flex-start !important;
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-size: 1.25rem;
  font-weight: 600;
  padding-block: 0.375rem;
}

/* No block-gap seam between header, main and footer */
.wp-site-blocks > main,
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part + * {
  margin-block-start: 0;
}

@media (max-width: 600px) {
  .dkc-hero__chips {
    height: 240px;
    padding-inline: 0.5rem;
    gap: 0.5rem;
  }
  .dkc-chip .dkc-chip__label {
    font-size: 0.6875rem;
    padding: 0.5rem 0.25rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Redesign — inner pages (services, projects, blog, pages)
   ═══════════════════════════════════════════════════════════════ */

/* Page head: label + H1 + lede on warm surface, paint line underneath */
.dkc-page-head {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
}
.dkc-page-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--dkc-paint-line);
}
.dkc-page-head .wp-block-heading,
.dkc-page-head .wp-block-post-title,
.dkc-page-head .wp-block-query-title {
  font-size: clamp(2.25rem, 1.4rem + 3.5vw, 3.5rem) !important;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--dkc-color-black);
  margin: 0;
  max-width: 20ch;
}
.dkc-page-head .is-style-section-label,
.dkc-page-head .wp-block-post-terms {
  margin: 0 0 1rem;
}
.dkc-page-head__lede {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  color: var(--dkc-color-text);
}
.dkc-page-head__lede p { margin: 0; }
.dkc-page-head .wp-block-term-description:empty { display: none; }

/* Detail head (single service / project): text + optional image */
.dkc-detail-hero__cols { margin: 0; }
.dkc-detail-hero__text { flex-grow: 1; }
.dkc-detail-hero__media:not(:has(.wp-block-post-featured-image)) { display: none; }
.dkc-detail-hero .wp-block-post-featured-image { margin: 0; }
.dkc-detail-hero .wp-block-post-featured-image img {
  width: 100%;
  border-radius: var(--dkc-radius-lg);
  box-shadow: var(--dkc-shadow-md);
}
.dkc-detail-hero .wp-block-post-terms a {
  color: inherit;
  text-decoration: none;
}

/* Wide service list (archive): two columns of numbered rows */
@media (min-width: 782px) {
  .dkc-service-list--wide .wp-block-post-template {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 4rem;
    border-top: 0;
  }
  .dkc-service-list--wide .wp-block-post-template > li:nth-child(-n+2) {
    border-top: 1px solid var(--dkc-color-surface);
  }
}

/* Sticky enquiry card */
.dkc-aside-card {
  background: var(--dkc-color-surface-light);
  border-top: 3px solid var(--dkc-color-red);
  border-radius: 0 0 var(--dkc-radius-lg) var(--dkc-radius-lg);
  padding: 1.75rem;
}
.dkc-aside-card .wp-block-heading { margin: 0 0 0.5rem; color: var(--dkc-color-black); }
.dkc-aside-card p { margin: 0 0 1.25rem; }
.dkc-aside-card .wp-block-buttons { gap: 0.75rem; }

/* Sections with no content render nothing */
.dkc-related:not(:has(.wp-block-post-template)) { display: none; }
.dkc-before-after-block:not(:has(.dkc-before-after)) { display: none; }

/* Project / blog cards: flat, image-led */
.dkc-project-card { box-shadow: none; border: 1px solid var(--dkc-color-surface); }
.dkc-project-card .wp-block-post-title { margin: 0; }
.dkc-project-card .wp-block-post-title a,
.dkc-post-card .wp-block-post-title a {
  color: var(--dkc-color-black);
  text-decoration: none;
}
.dkc-project-card .wp-block-post-title a:hover,
.dkc-post-card .wp-block-post-title a:hover { color: var(--dkc-color-red); }
.dkc-project-card .wp-block-post-terms a {
  color: var(--dkc-color-red);
  text-decoration: none;
}
.dkc-project-card__img:empty,
.dkc-project-card__img:not(:has(img)) {
  background: var(--dkc-color-surface-light);
}

.dkc-post-card .wp-block-post-featured-image {
  margin: 0 0 1.25rem;
  overflow: hidden;
  border-radius: var(--dkc-radius-lg);
  background: var(--dkc-color-surface-light);
}
.dkc-post-card .wp-block-post-featured-image img {
  width: 100%;
  transition: transform 0.4s ease;
}
.dkc-post-card:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.dkc-post-card .wp-block-post-date {
  margin: 0 0 0.375rem;
  font-size: 0.8125rem;
  color: var(--dkc-color-muted);
}
.dkc-post-card .wp-block-post-title { margin: 0 0 0.5rem; line-height: 1.3; }
.dkc-post-card .wp-block-post-excerpt { margin: 0; }
.dkc-post-card .wp-block-post-excerpt__excerpt { margin: 0 0 0.5rem; }
.dkc-post-card .wp-block-post-excerpt__more-link {
  color: var(--dkc-color-red);
  font-weight: 600;
  text-decoration: none;
}

/* Single post */
.dkc-post-head .dkc-post-head__meta { gap: 0.75rem; margin-bottom: 1rem; }
.dkc-post-head .wp-block-post-terms a {
  color: var(--dkc-color-red);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
/* Muted grey is only 4.15:1 on the cream head, so the date uses body text */
.dkc-post-head .wp-block-post-date { color: var(--dkc-color-text); }
.dkc-post-image { padding-top: clamp(1.5rem, 4vw, 3rem); }
.dkc-post-image .wp-block-post-featured-image { margin: 0; }
.dkc-post-image .wp-block-post-featured-image img {
  border-radius: var(--dkc-radius-lg);
  max-height: 520px;
  width: 100%;
  object-fit: cover;
}
.dkc-post-image:not(:has(.wp-block-post-featured-image)) { display: none; }
.dkc-section--post { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

/* Constrained layout centres narrower children with !important; keep heads left-aligned */
.dkc-page-head > .wp-block-heading,
.dkc-page-head > .wp-block-post-title,
.dkc-page-head > .wp-block-query-title,
.dkc-page-head > .dkc-page-head__lede,
.dkc-page-head > .is-style-section-label,
.dkc-detail-hero__text > * {
  margin-inline: 0 !important;
}
.dkc-detail-hero__text > .wp-block-post-title { max-width: 18ch; }

/* ── Buttons — single source of truth ───────────────────────────
   WordPress puts is-style-* on the .wp-block-button wrapper, not the link.
   Colour rules are scoped with :not(.has-text-color) so editor-chosen colours
   still win, and are (0,3,0)+ so they beat `.wp-block-post-content a` and
   `.site-footer a`. The icon is in normal flow (flex gap), so inline padding
   from the editor can never make it overlap the label. */
.wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.wp-block-button .wp-block-button__link:not(.has-text-color) {
  color: var(--dkc-color-white);
}
.wp-block-button .wp-block-button__link:not(.has-text-color):hover,
.wp-block-button .wp-block-button__link:not(.has-text-color):focus-visible {
  color: var(--dkc-color-white);
  text-decoration: none;
}

/* Outline (light backgrounds) */
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) {
  background: transparent;
  color: var(--dkc-color-red);
  border: 2px solid var(--dkc-color-red);
}
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):hover,
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):focus-visible {
  background: var(--dkc-color-red);
  color: var(--dkc-color-white);
}

/* Ghost (dark backgrounds) */
.wp-block-button.is-style-ghost .wp-block-button__link:not(.has-text-color) {
  background: transparent;
  color: var(--dkc-color-white);
  border: 2px solid var(--dkc-color-white);
}
.wp-block-button.is-style-ghost .wp-block-button__link:not(.has-text-color):hover,
.wp-block-button.is-style-ghost .wp-block-button__link:not(.has-text-color):focus-visible {
  background: var(--dkc-color-white);
  color: var(--dkc-color-text);
}

/* Text link */
.wp-block-button.is-style-text-link .wp-block-button__link:not(.has-text-color) {
  color: var(--dkc-color-text);
}
.wp-block-button.is-style-text-link .wp-block-button__link:not(.has-text-color):hover,
.wp-block-button.is-style-text-link .wp-block-button__link:not(.has-text-color):focus-visible {
  background: transparent;
  color: var(--dkc-color-red);
}

/* WhatsApp (accessible green: white text >= 4.5:1) */
.wp-block-button.is-style-whatsapp .wp-block-button__link {
  background: var(--dkc-color-whatsapp);
}
.wp-block-button.is-style-whatsapp .wp-block-button__link:hover,
.wp-block-button.is-style-whatsapp .wp-block-button__link:focus-visible {
  background: var(--dkc-color-whatsapp-dark);
}
.wp-block-button.is-style-whatsapp .wp-block-button__link::before {
  content: '';
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background: currentColor;
  -webkit-mask: var(--dkc-icon-whatsapp) center / contain no-repeat;
  mask: var(--dkc-icon-whatsapp) center / contain no-repeat;
}

/* Legacy size-class aliases used by content stored before the slug fix (has-x-l → xl) */
.has-x-l-font-size   { font-size: var(--wp--preset--font-size--xl); }
.has-2-x-l-font-size { font-size: var(--wp--preset--font-size--2-xl); }
.has-3-x-l-font-size { font-size: var(--wp--preset--font-size--3-xl); }
.has-4-x-l-font-size { font-size: var(--wp--preset--font-size--4-xl); }
.has-5-x-l-font-size { font-size: var(--wp--preset--font-size--5-xl); }

/* ── Alignment audit fixes ───────────────────────────────────── */
/* Auto-width columns (CTA button column) must not grow and starve the text column */
.wp-block-columns > .wp-block-column[style*="flex-basis:auto"],
.wp-block-columns > .wp-block-column.dkc-col-auto {
  flex: 0 0 auto;
  width: auto;
  max-width: max-content;
}
/* Only for rows of 1–2 columns; a 16rem floor on 3–4 column rows (footer,
   process) overflows between 782px and ~1100px. */
.wp-block-columns:not(:has(> .wp-block-column:nth-child(3))) > .wp-block-column:not([style*="flex-basis"]) {
  min-width: min(100%, 16rem);
}
/* Every direct child of a page head hugs the left edge of the head's column */
.dkc-page-head > * {
  margin-inline: 0 !important;
}
.dkc-post-head .wp-block-post-title {
  max-width: 100%;
}
.dkc-post-head .dkc-page-head__lede {
  max-width: 100%;
}
.dkc-post-head .dkc-post-head__meta {
  justify-content: flex-start;
}

/* ── Standard pages ───────────────────────────────────────────
   Stored page content is a stack of alignfull groups with their own
   padding. Each group gets the same 1200px grid as the page head; running
   text keeps a reading measure and stays left-aligned on that grid. */
.dkc-section--page { padding-block: 0; }
.dkc-section--page .wp-block-post-content:not(:has(> .alignfull)) {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.dkc-section--page .wp-block-post-content .alignfull.is-layout-constrained {
  padding-inline: max(var(--wp--style--root--padding-right, 1rem), calc((100% - 1200px) / 2)) !important;
}
/* Stored bands carry a fixed 5rem top/bottom padding; scale it down on small screens */
@media (max-width: 781px) {
  .dkc-section--page .wp-block-post-content .alignfull.is-layout-constrained {
    padding-block: 3rem !important;
  }
}
.dkc-section--page .wp-block-post-content .alignfull.is-layout-constrained > * {
  max-width: none;
}
.dkc-section--page .wp-block-post-content .alignfull.is-layout-constrained > :where(p, h1, h2, h3, h4, ul, ol, blockquote),
.dkc-section--page .wp-block-post-content > :where(p, h2, h3, h4, ul, ol, blockquote) {
  max-width: 46rem;
  margin-inline: 0 !important;
}
.dkc-section--page .wp-block-post-content .wp-block-columns {
  gap: clamp(1.5rem, 4vw, 4rem);
}
/* The page head carries the H1: hide one duplicated at the top of stored content */
.dkc-section--page .wp-block-post-content > :first-child > h1:first-child,
.dkc-section--page .wp-block-post-content > h1:first-child {
  display: none;
}

/* Section label wins over heading element sizes (stored content uses an h3) */
.wp-block-heading.is-style-section-label,
.wp-block-post-content .wp-block-heading.is-style-section-label {
  font-size: 0.8125rem;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 1rem;
}
/* First stored band duplicates the page-head surface: render it on white */
.dkc-section--page .wp-block-post-content > .wp-block-group:first-child > .alignfull:first-child[style*="dk-surface-light"] {
  background-color: var(--dkc-color-white) !important;
}

/* Page heads: sit on the same centred grid as the content below, at any viewport */
.dkc-page-head {
  --dkc-head-w: 1200px;
  padding-inline: max(var(--wp--style--root--padding-right, 1rem), calc((100% - var(--dkc-head-w)) / 2)) !important;
}
.dkc-post-head { --dkc-head-w: 780px; }
.dkc-page-head > * { max-width: none; }
.dkc-page-head > .wp-block-heading,
.dkc-page-head > .wp-block-post-title,
.dkc-page-head > .wp-block-query-title { max-width: 20ch; }
.dkc-post-head > .wp-block-post-title { max-width: 100%; }
.dkc-page-head > .dkc-page-head__lede { max-width: 38rem; }
.dkc-post-head > .dkc-page-head__lede { max-width: 100%; }

/* ── Client-editable content helpers ─────────────────────────── */

/* Sections fed by a Query loop render nothing until there are posts */
.dkc-hide-if-empty:not(:has(.wp-block-post-template)) { display: none; }

/* Hero: a Image block placed in the right-hand column replaces the colour chips */
.dkc-hero__cols .wp-block-image { margin: 0; }
.dkc-hero__cols .wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--dkc-radius-lg);
}

/* Project meta line, details list and photo gallery */
.dkc-project-meta {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--dkc-color-muted);
}
.dkc-project-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem 1.5rem;
  margin: 0 0 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--dkc-color-surface);
  border-bottom: 1px solid var(--dkc-color-surface);
}
.dkc-project-details dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dkc-color-muted);
}
.dkc-project-details dd { margin: 0.125rem 0 0; font-weight: 600; }
.dkc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}
.dkc-gallery__item { margin: 0; }
.dkc-gallery__link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--dkc-radius-md, 12px);
  cursor: zoom-in;
}
.dkc-gallery__link:focus-visible {
  outline: 3px solid var(--dkc-color-blue);
  outline-offset: 3px;
}
.dkc-gallery__item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--dkc-radius-md, 12px);
  display: block;
  transition: transform 0.35s ease;
}
.dkc-gallery__link:hover img,
.dkc-gallery__link:focus-visible img { transform: scale(1.04); }
/* Shown only while a slow photo downloads before the lightbox opens. */
.dkc-gallery__link.is-loading { cursor: progress; }
.dkc-gallery__link.is-loading::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 2.25rem;
  height: 2.25rem;
  margin: -1.125rem 0 0 -1.125rem;
  border: 3px solid var(--dkc-color-white);
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0;
  animation: dkc-gallery-spin 0.8s linear infinite, dkc-gallery-fade-in 0.2s ease 0.25s forwards;
}
@keyframes dkc-gallery-spin { to { transform: rotate(360deg); } }
@keyframes dkc-gallery-fade-in { to { opacity: 0.9; } }
@media (prefers-reduced-motion: reduce) {
  .dkc-gallery__item img { transition: none; }
  .dkc-gallery__link.is-loading::after { animation: dkc-gallery-fade-in 0.2s ease 0.25s forwards; }
}

/* Gallery lightbox (PhotoSwipe, loaded on demand) */
.pswp {
  --pswp-bg: var(--dkc-color-black);
  --pswp-placeholder-bg: transparent; /* no grey box flashing before a photo loads */
  font-family: var(--dkc-font);
}
.pswp__dkc-caption {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 52rem);
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
  color: var(--dkc-color-white);
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: center;
  pointer-events: none;
}
.pswp__dkc-caption:empty { display: none; }
.dkc-gallery-block:not(:has(.dkc-gallery)) { display: none; }

/* Testimonial author shortcode output */
.dkc-testimonial-card__author p { margin: 0; }
.dkc-service-areas { margin: 0; padding-left: 1.25rem; }

/* Muted lede on dark bands (service CTA); replaces an unsupported inline opacity style */
.dkc-lede-on-dark {
  opacity: 0.8;
}

/* Full-width button (replaces core button width attr, which newer editors rewrite on save) */
.wp-block-buttons > .wp-block-button.dkc-btn-full {
  width: 100%;
  flex-basis: 100%;
}
.wp-block-button.dkc-btn-full .wp-block-button__link {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
