
/*! JK Design Build Custom Styles */

/* ── Google Fonts ── */
body, p, li, td, th { font-family: 'Inter', 'DINOT1', sans-serif; }
h1, h2, h3, .Index-gallery-item-content-heading, .Index-gallery-item-content-body, .sqs-block-image .design-layout-poster .image-title p { font-family: 'Montserrat', 'Novecento1', sans-serif; }

/* ── Color Variables ── */
:root {
  --jk-charcoal: #1a1a1a;
  --jk-dark: #2c2c2c;
  --jk-gold: #b8860b;
  --jk-gold-light: #d4a843;
  --jk-light: #f5f5f0;
  --jk-white: #ffffff;
}

/* ── Base ── */
h1, h2, h3 { color: var(--jk-charcoal); }

/* ── Hero Section ── */
.jk-hero-content {background: rgba(0,0,0,.5);text-align: center;color: var(--jk-white);padding: 80px 20px;}
.jk-hero-title { font-size: 3.2rem; margin-bottom: 16px; letter-spacing: -0.02em; color: var(--jk-white); }
.jk-hero-subtitle { font-size: 1.3rem; margin-bottom: 32px; opacity: 0.9; color: var(--jk-white); }
.jk-hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ── */
.jk-btn { display: inline-block; padding: 14px 32px; text-decoration: none; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; border-radius: 2px; transition: background-color 0.2s, color 0.2s; }
.jk-btn-primary { background-color: var(--jk-gold); color: var(--jk-white); }
.jk-btn-primary:hover { background-color: var(--jk-gold-light); color: var(--jk-white); }
.jk-btn-secondary { background-color: transparent; color: var(--jk-white); border: 2px solid var(--jk-white); }
.jk-btn-secondary:hover { background-color: var(--jk-white); color: var(--jk-charcoal); }

/* ── Section Variants ── */
.jk-section-dark { background-color: var(--jk-charcoal); color: var(--jk-light); }
.jk-section-dark h2, .jk-section-dark h3 { color: var(--jk-white); }
.jk-section-dark p { color: var(--jk-light); }
.jk-section-dark a { color: var(--jk-gold-light); }

.jk-section-cta .jk-cta-content { text-align: center; color: var(--jk-white); padding: 0 20px; }
.jk-section-cta .jk-cta-content h2 { color: var(--jk-white); }
.jk-section-cta { background-color: var(--jk-charcoal) !important; }
.jk-section-cta .jk-hero-buttons { margin-top: 32px; }

/* CTA is a closing band, not a full-screen hero — drop the 240px
   Index-page--has-image content padding it inherits. Section padding
   carries the vertical rhythm; .jk-cta-content keeps horizontal only. */
.jk-section-cta.Index-page--has-image .Index-page-content { padding-top: 80px; padding-bottom: 80px; }
@media (max-width: 640px) {
  .jk-section-cta.Index-page--has-image .Index-page-content { padding-top: 50px; padding-bottom: 50px; }
}

/* Vertical rhythm between layout rows inside an Index section.
   Squarespace's 17px block gutters don't apply in these layouts (all
   block/row paddings resolve to 0), so heading blocks sit flush on the
   grids that follow them. Add a top margin to every layout child after
   the first. */
.Index-page .sqs-layout > * + * { margin-top: 48px; }
@media (max-width: 768px) {
  .Index-page .sqs-layout > * + * { margin-top: 32px; }
}

/* ── Sticky / Overlay Header ──
   The branding+nav header is fixed so it stays visible while scrolling
   (sticky nav). Transparent over the hero, then switches to a solid white
   bar with dark text once the page scrolls (body.jk-scrolled toggled by
   JS in footer.php). The logo is dark, so the solid state must be light. */
.Header--bottom.Header--overlay { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: background-color .25s ease, box-shadow .25s ease; }
body.jk-scrolled .Header--bottom.Header--overlay { background-color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
/* Compact the header when sticky: drop the overlay's 40px top padding on scroll. */
.Header--bottom .Header-inner--bottom { transition: padding-top .25s ease; }
body.jk-scrolled .Header--bottom .Header-inner--bottom { padding-top: 0 !important; }
body.jk-scrolled .Header--bottom .Header-nav-item,
body.jk-scrolled .Header--bottom .Header-nav-item:visited { color: var(--jk-charcoal) !important; }
body.jk-scrolled .Header--bottom .Header-nav-item:hover,
body.jk-scrolled .Header--bottom .Header-nav-item.Header-nav-item--active { color: var(--jk-gold) !important; }

/* Smooth in-page scrolling, with an offset so anchor targets clear the fixed header. */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }

/* ── Cards Grid ── */
.jk-cards-grid { display: flex; flex-wrap: wrap; gap: 0; }
.sqs-layout > .jk-cards-grid { margin-left: 0; margin-right: 0; } /* neutralize Squarespace row -17px bleed */
.jk-cards-grid > .col { display: flex; flex: 0 0 25%; }
.jk-cards-grid > .col > .jk-card { width: 100%; }

/* Cards grid: 3 cols on tablet, 1 col full-width on mobile */
@media (max-width: 1024px) {
  .jk-cards-grid > .col { flex: 0 0 33.3333%; }
}
@media (max-width: 640px) {
  .jk-cards-grid > .col { flex: 0 0 100%; }
}
.jk-card { background: var(--jk-white); padding: 32px 24px; text-align: center; border: 1px solid #e5e5e5; transition: box-shadow 0.2s; text-decoration: none; color: inherit; display: block; }
.jk-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); text-decoration: none; color: inherit; }
.jk-card h3 { font-size: 1.1rem; margin: 16px 0 8px; }
.jk-card p { font-size: 0.9rem; color: #666; line-height: 1.5; margin: 0; }
.jk-card-icon { font-size: 2rem; color: var(--jk-gold); margin-bottom: 12px; }

.jk-section-dark .jk-card { background: var(--jk-dark); border-color: #3a3a3a; }
.jk-section-dark .jk-card h3 { color: var(--jk-white); }
.jk-section-dark .jk-card p { color: #ccc; }
.jk-section-dark .jk-card-icon { color: var(--jk-gold-light); }

.jk-card-market { text-decoration: none; }
.jk-card-market:hover { transform: translateY(-2px); }

/* ── Project filter bar (filterable gallery on the Projects page) ── */
.jk-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 16px; }
.jk-filter-btn { background: transparent; border: 1px solid var(--jk-charcoal); color: var(--jk-charcoal); padding: 9px 20px; font-family: inherit; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.jk-filter-btn:hover { background-color: var(--jk-charcoal); color: #fff; }
.jk-filter-btn.is-active { background-color: var(--jk-gold); border-color: var(--jk-gold); color: #fff; }
@media (max-width: 640px) {
  .jk-filter-btn { padding: 7px 14px; font-size: 0.75rem; }
}

/* ── Project Cards ── */
.jk-project-card { text-decoration: none; color: inherit; display: block; }
.jk-project-card h3 { font-size: 1.05rem; margin: 12px 0 4px; color: var(--jk-charcoal); }
.jk-project-card-image { overflow: hidden; }
.jk-project-card-image img { width: 100%; height: auto; display: block; transition: transform 0.3s; }
.jk-project-card:hover .jk-project-card-image img { transform: scale(1.03); }
.jk-project-location { font-size: 0.85rem; color: #888; }

/* ── Steps ── */
.jk-steps-grid { display: flex; flex-wrap: wrap; text-align: center; }
.jk-step { padding: 32px 20px; }
.jk-step-number { width: 56px; height: 56px; line-height: 56px; border-radius: 50%; background-color: var(--jk-gold); color: var(--jk-white); font-size: 1.4rem; font-weight: 700; margin: 0 auto 20px; font-family: 'Montserrat', sans-serif; }
.jk-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.jk-step p { font-size: 0.9rem; color: #666; line-height: 1.5; }

/* ── Trust Badges ── */
.jk-trust-grid { display: flex; flex-wrap: wrap; text-align: center; }
/* 3 columns (overrides the sqs span-3 25% width), 2 on tablet, 1 on mobile */
.jk-trust-grid > .col { flex: 0 0 33.3333%; }
@media (max-width: 768px) { .jk-trust-grid > .col { flex: 0 0 50%; } }
@media (max-width: 480px) { .jk-trust-grid > .col { flex: 0 0 100%; } }
.jk-trust-badge { padding: 24px 16px; }
.jk-trust-badge-icon { font-size: 2.2rem; color: var(--jk-gold-light); margin-bottom: 12px; }
.jk-trust-badge p { font-size: 0.9rem; color: var(--jk-light); line-height: 1.5; }

/* ── Leader Profile ── */
.jk-leader-profile { display: flex; gap: 40px; align-items: flex-start; padding: 40px 0; }
.jk-leader-photo { flex: 0 0 280px; }
.jk-leader-photo img { width: 100%; height: auto; border-radius: 2px; }
.jk-leader-info h3 { font-size: 1.5rem; margin-bottom: 4px; }
.jk-leader-title { font-size: 1rem; color: var(--jk-gold); margin-bottom: 16px; font-weight: 500; }
.jk-leader-bio { font-size: 0.95rem; line-height: 1.7; color: #555; }

/* ── Values Grid ── */
.jk-values-grid { display: flex; flex-wrap: wrap; gap: 0; }
.jk-value-card { padding: 32px 24px; text-align: center; border: 1px solid #e5e5e5; }
.jk-value-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--jk-gold); }
.jk-value-card p { font-size: 0.9rem; color: #666; line-height: 1.5; }

/* ── Contact Info ── */
.jk-contact-info { margin-bottom: 24px; }
.jk-contact-info p { font-size: 1rem; line-height: 1.8; }
.jk-contact-info a { color: var(--jk-gold); }

/* ── Footer ── */
.Footer .sqs-html-content p { color: #999; font-size: 0.85rem; }

/* ── Misc ── */
.markdown-block { padding-top: 0; padding-bottom: 0; }
.archive-block-wrapper { margin-left: auto; margin-right: auto; }
.text-align-center { text-align: center; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .jk-hero-title { font-size: 2rem; }
  .jk-hero-subtitle { font-size: 1rem; }
  .jk-hero-buttons { flex-direction: column; align-items: center; }
  .jk-leader-profile { flex-direction: column; }
  .jk-leader-photo { flex: none; width: 200px; }
}

/* ── Single Project Page ── */
.BlogItem-title { display: none; }
.BlogItem-pagination { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 40px; padding-top: 20px; border-top: 1px solid #e5e5e5; }
.BlogItem-pagination-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--jk-charcoal); max-width: 45%; }
.BlogItem-pagination-link:hover { color: var(--jk-gold); }
.BlogItem-pagination-link--next { text-align: right; margin-left: auto; }
.BlogItem-pagination-link--disabled { visibility: hidden; }
.BlogItem-pagination-link-icon { flex-shrink: 0; color: var(--jk-gold); }
@media (max-width: 600px) {
  .BlogItem-pagination { flex-direction: column; gap: 16px; }
  .BlogItem-pagination-link { max-width: 100%; }
}

/* ── Contact Form 7 ── */
.wpcf7 .form-wrapper {
  max-width: 600px;
  font-weight: 300;
  letter-spacing: .02em;
  font-size: 16px;
  line-height: 1.5em;
  color: #555;
}
.wpcf7 .form-item { margin-bottom: 24px; }
.wpcf7 fieldset { border: none; padding: 0; margin: 0 0 24px; }
.wpcf7 fieldset legend { font-size: 1rem; font-weight: 600; margin-bottom: 12px; color: var(--jk-charcoal); }
.wpcf7 label { display: block; font-size: 0.85rem; color: #666; margin-bottom: 6px; }
.wpcf7 label .required { color: #999; font-weight: normal; }
.wpcf7 .field.first-name,
.wpcf7 .field.last-name { display: inline-block; width: 48%; vertical-align: top; }
.wpcf7 .field.first-name { margin-right: 4%; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
  width: 100%; padding: 12px 0; border: none; border-bottom: 1px solid #ddd;
  font-size: 1rem; background: transparent; outline: none; transition: border-color 0.2s;
  font-family: inherit;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus { border-bottom-color: var(--jk-charcoal); }
.wpcf7 textarea {
  width: 100%; padding: 12px 0; border: none; border-bottom: 1px solid #ddd;
  font-size: 1rem; background: transparent; outline: none; resize: vertical;
  min-height: 120px; font-family: inherit; transition: border-color 0.2s;
}
.wpcf7 textarea:focus { border-bottom-color: var(--jk-charcoal); }
.wpcf7 .form-button-wrapper { margin-top: 32px; }
.wpcf7 input[type="submit"] {
  background: var(--jk-charcoal); color: #fff; border: none;
  padding: 14px 48px; font-size: 0.85rem; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer; transition: background 0.2s;
}
.wpcf7 input[type="submit"]:hover { background: var(--jk-gold); }
.wpcf7 .wpcf7-spinner { display: none; }
.wpcf7 .wpcf7-not-valid-tip { font-size: 0.8rem; color: #d00; margin-top: 4px; }
.wpcf7 .wpcf7-response-output { border: none; padding: 12px 0; margin: 16px 0 0; font-size: 0.9rem; }
@media (max-width: 600px) {
  .wpcf7 .field.first-name,
  .wpcf7 .field.last-name { display: block; width: 100%; margin-right: 0; }
}

/* ── Force visible elements (no Squarespace animation JS) ── */
.image-inset,
.image-card-wrapper,
.sqs-dynamic-text-container,
.sqs-block-image .intrinsic,
.sqs-block-image figure {
    opacity: 1 !important;
    visibility: visible !important;
}

.sqs-block-image .design-layout-poster .image-title-wrapper {
    font-size: 1.8rem !important;
}
.sqs-block-image .design-layout-poster .image-title sqs-dynamic-text,
.sqs-block-image .design-layout-poster .image-title p {
    font-size: inherit !important;
}

/* ── Hero Poster Text (replaces Squarespace poster image) ── */
.jk-hero-poster {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12% 0;
}
.jk-hero-poster-text {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
    .jk-hero-poster-text { font-size: 2rem; }
}

/* ── Client Logo Gallery Grid ── */
.sqs-gallery-block-grid .sqs-gallery-design-grid { display: flex; flex-wrap: wrap; }
.sqs-gallery-block-grid .sqs-gallery-design-grid-slide .margin-wrapper { margin-bottom: 26px; }
.sqs-gallery-block-grid .sqs-gallery-design-grid-slide .image-slide-anchor { display: block; aspect-ratio: 1; overflow: hidden; }
.sqs-gallery-block-grid .sqs-gallery-design-grid-slide img.thumb-image { width: 100%; height: 100%; object-fit: contain; padding: 12px; }

/* Parallax figure height is set inline by footer.php JS (scaled image height).
   Do NOT force height:100% here — it clips the figure to viewport height and
   the parallax transform then exposes a dark gap at the bottom of the hero. */

/* ── Summary Block Autogrid (Project Category Pages) ── */
.summary-block-wrapper { padding: 0; }
.summary-block-header { text-align: center; margin-bottom: 24px; }
.summary-header-text { font-family: 'Montserrat', sans-serif; font-size: 0; display: none; }
.summary-item-list { display: flex; flex-wrap: wrap; gap: 21px; }
.summary-item { flex: 1 1 calc(33.333% - 14px); max-width: calc(33.333% - 14px); }
.summary-thumbnail-outer-container { margin-bottom: 12px; }
.summary-thumbnail-container { display: block; text-decoration: none; }
.summary-thumbnail { overflow: hidden; position: relative; padding-bottom: 66.67%; background: #eee; }
.summary-thumbnail img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.summary-item:hover .summary-thumbnail img { transform: scale(1.03); }
.summary-content { text-align: left; }
.summary-title { margin: 0 0 4px; }
.summary-title a { font-family: 'Montserrat', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--jk-charcoal); text-decoration: none; line-height: 1.3; }
.summary-title a:hover { color: var(--jk-gold); }
.summary-metadata-item { font-size: 0.85rem; color: #888; }
@media (max-width: 900px) {
  .summary-item { flex: 1 1 calc(50% - 11px); max-width: calc(50% - 11px); }
}
@media (max-width: 600px) {
  .summary-item { flex: 1 1 100%; max-width: 100%; }
}
