/**
 * Pro Kitchen Remodeling — sitewide responsive / overflow / a11y foundation
 * Loaded after brand-palette.css. Preserves desktop navy/gold design.
 * Do not use html/body overflow-x:hidden as the primary overflow fix.
 */

/* ---------- Foundation ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
}

table {
  max-width: 100%;
}

.elementor,
.elementor-section,
.elementor-container,
.elementor-widget-wrap,
.e-con,
.e-con-inner,
.elementor-widget,
.elementor-widget-container,
.swiper,
.swiper-wrapper,
.swiper-slide {
  min-width: 0;
}

.elementor-section,
.e-con.e-parent,
.elementor-widget-media-carousel,
.elementor-swiper {
  max-width: 100%;
}

/* Prevent full-bleed helpers from expanding document width inside padded parents */
.alignfull {
  margin-inline: 0;
  max-width: 100%;
  width: 100%;
}

/* Safe page gutters for Elementor content shells */
@media (max-width: 767px) {
  .elementor-section .elementor-container,
  .e-con > .e-con-inner,
  .elementor-location-header .e-con-inner,
  .elementor-location-footer .e-con-inner {
    padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  }
}

/* ---------- Media / embeds ---------- */
.ghl-survey-embed,
.ghl-survey-embed iframe,
.pkr-map-frame,
.pkr-map-frame iframe,
.elementor-widget-html iframe,
.elementor-widget-google_maps iframe,
.elementor-custom-embed iframe {
  width: 100% !important;
  max-width: 100% !important;
}

.ghl-survey-embed {
  min-width: 0 !important;
}

.pkr-map-frame {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.pkr-map-frame iframe {
  display: block;
  height: clamp(220px, 42vw, 280px);
  border: 0;
}

.pkr-map-frame iframe[data-pkr-map-src]:not([src]) {
  min-height: 220px;
  background: #0A2238;
}

/* ---------- Homepage overflow root causes ---------- */
/* Styles grid was forced to 1484px at ≥768px → page wider than viewport */
.elementor-164 .elementor-element.elementor-element-9039792 {
  --width: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
}

/* Other Elementor fixed content widths that can exceed mid-size desktops */
.elementor-164 .elementor-element.elementor-element-9bb6374 {
  --content-width: min(1406px, 100%) !important;
  max-width: 100% !important;
}

.elementor-164 .elementor-element.elementor-element-6eb9ead7 {
  --width: 100% !important;
  max-width: 100% !important;
}

/* Hero heading negative margin expanded layout on mid widths */
.elementor-164 .elementor-element.elementor-element-561be17 > .elementor-widget-container {
  margin-right: 0 !important;
  max-width: 100%;
}

@media (min-width: 1400px) {
  .elementor-164 .elementor-element.elementor-element-561be17 > .elementor-widget-container {
    margin-right: -40px !important;
  }
}

/* Project gallery / Swiper: clip only the carousel viewport, not the page */
.elementor-164 .elementor-element.elementor-element-72624c3e,
.elementor-widget-media-carousel,
.elementor-widget-media-carousel .elementor-widget-container,
.elementor-element:has(> .elementor-widget-container .elementor-main-swiper),
#projects,
#projects .e-con,
#projects .e-con-inner {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: clip !important;
  overflow-y: visible;
}

.elementor-widget-media-carousel .swiper,
.elementor-widget-media-carousel .elementor-main-swiper,
.elementor-widget-media-carousel .elementor-thumbnails-swiper,
.elementor-swiper {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  contain: inline-size;
}

.elementor-widget-media-carousel .swiper-wrapper {
  /* Track may be wider than viewport; parent .swiper must clip */
  max-width: none;
}

.elementor-widget-media-carousel .swiper-slide {
  max-width: 100%;
  box-sizing: border-box;
}

/* Override home.css fallback that sized 11 slides as 6-across with nowrap */
.elementor-164 .elementor-element.elementor-element-72624c3e .elementor-thumbnails-swiper:not(.swiper-initialized) .swiper-wrapper,
.elementor-164 .elementor-element.elementor-element-72624c3e .elementor-thumbnails-swiper.pkr-gallery-fallback .swiper-wrapper,
.elementor-widget-media-carousel .elementor-thumbnails-swiper:not(.swiper-initialized) .swiper-wrapper,
.elementor-widget-media-carousel .elementor-thumbnails-swiper.pkr-gallery-fallback .swiper-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.elementor-164 .elementor-element.elementor-element-72624c3e .elementor-thumbnails-swiper:not(.swiper-initialized) .swiper-slide,
.elementor-164 .elementor-element.elementor-element-72624c3e .elementor-thumbnails-swiper.pkr-gallery-fallback .swiper-slide,
.elementor-widget-media-carousel .elementor-thumbnails-swiper:not(.swiper-initialized) .swiper-slide,
.elementor-widget-media-carousel .elementor-thumbnails-swiper.pkr-gallery-fallback .swiper-slide {
  flex: 0 0 calc(33.333% - 8px) !important;
  width: calc(33.333% - 8px) !important;
  max-width: calc(33.333% - 8px) !important;
  aspect-ratio: 1 / 1;
  height: auto !important;
}

@media (min-width: 768px) {
  .elementor-164 .elementor-element.elementor-element-72624c3e .elementor-thumbnails-swiper:not(.swiper-initialized) .swiper-slide,
  .elementor-164 .elementor-element.elementor-element-72624c3e .elementor-thumbnails-swiper.pkr-gallery-fallback .swiper-slide,
  .elementor-widget-media-carousel .elementor-thumbnails-swiper:not(.swiper-initialized) .swiper-slide,
  .elementor-widget-media-carousel .elementor-thumbnails-swiper.pkr-gallery-fallback .swiper-slide {
    flex: 0 0 calc(16.666% - 12px) !important;
    width: calc(16.666% - 12px) !important;
    max-width: calc(16.666% - 12px) !important;
  }
}

/* ---------- Header / navigation (hamburger before crowding @1100) ---------- */
@media (max-width: 1099px) {
  /* Logo left, hamburger right — row previously packed to start (~58% width) */
  .elementor-170 .elementor-element.elementor-element-52d58c38 {
    --justify-content: space-between !important;
    justify-content: space-between !important;
    width: 100% !important;
    align-items: center !important;
  }

  .elementor-170 .elementor-element.elementor-element-9d55d25 {
    margin-inline-start: auto !important;
    --justify-content: flex-end !important;
  }

  button.elementskit-menu-hamburger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    color: #0F2D4A;
  }

  button.elementskit-menu-close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .elementskit-menu-overlay {
    display: block !important;
    position: fixed;
    z-index: 14;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background-color: rgba(51, 51, 51, 0.5);
  }

  .elementskit-menu-overlay.active {
    left: 0 !important;
  }

  .ekit_menu_responsive_tablet > .elementskit-navbar-nav-default {
    background-color: #f7f7f7;
  }

  .elementskit-navbar-nav-default.elementskit-menu-offcanvas-elements,
  .elementskit-menu-container.elementskit-menu-offcanvas-elements {
    width: 100% !important;
    max-width: 350px !important;
    position: fixed !important;
    top: 0 !important;
    left: -100vw !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 15;
    display: flex !important;
    flex-direction: column-reverse !important;
    justify-content: flex-end !important;
    transition: left 0.6s cubic-bezier(0.6, 0.1, 0.68, 0.53);
  }

  .elementskit-menu-offcanvas-elements.active,
  .elementskit-menu-container.active {
    left: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .ekit_menu_responsive_tablet .elementskit-navbar-nav-default .elementskit-dropdown {
    display: none;
    position: relative;
    max-height: 0;
    box-shadow: none;
  }

  .ekit_menu_responsive_tablet .elementskit-navbar-nav-default .elementskit-dropdown.elementskit-dropdown-open {
    display: block;
    max-height: 2500px;
    opacity: 1;
    visibility: visible;
  }
}

body.elementskit-menu-active {
  overflow: hidden;
  touch-action: none;
}

.elementskit-navbar-nav a,
.elementskit-navbar-nav .elementskit-submenu-panel a,
.pkr-services-mega .mega-links a {
  min-height: 44px;
}

@media (max-width: 767px) {
  .elementor-widget-theme-site-logo img,
  .elementskit-nav-logo img {
    max-width: 160px !important;
    max-height: 48px !important;
  }

  /* Compact top-bar: keep call action, reduce decorative crowding */
  .ekit-template-content-header .elementor-icon-list-items {
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .ekit-template-content-header .elementor-social-icons-wrapper {
    display: none;
  }
}

/* Mega menu must not expand document width */
@media (min-width: 1100px) {
  .elementskit-navbar-nav-default .elementskit-dropdown-has.menu-item-651 > .pkr-services-mega.elementskit-dropdown,
  .ekit-nav-dropdown-hover .elementskit-dropdown-has.menu-item-651 > .pkr-services-mega.elementskit-dropdown {
    width: min(940px, calc(100vw - 32px)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 32px) !important;
  }
}

/* ---------- Homepage / Elementor section rhythm ---------- */
@media (max-width: 1024px) {
  .elementor-164 .elementor-element.elementor-element-99a9ace {
    --min-height: 520px !important;
    --gap: 0px 24px !important;
    --row-gap: 24px !important;
    --column-gap: 24px !important;
  }
}

@media (max-width: 767px) {
  .elementor-164 .elementor-element.elementor-element-99a9ace {
    --min-height: 0 !important;
    min-height: 0 !important;
  }

  .elementor-164 .elementor-element.elementor-element-99a9ace .elementor-button-wrapper,
  .elementor-164 .elementor-element.elementor-element-99a9ace .elementor-button-link {
    width: 100%;
  }

  .elementor-164 .elementor-element.elementor-element-99a9ace .elementor-button {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .elementor-heading-title {
    overflow-wrap: anywhere;
    word-wrap: break-word;
    hyphens: auto;
  }

  /*
   * Signature Features / icon-boxes: Elementor mobile-position-block-start
   * stacks icon above text — keep icon beside label sitewide.
   * Specificity must match styles-core: .elementor-widget-icon-box.elementor-mobile-position-block-start
   */
  .elementor-widget-icon-box.elementor-mobile-position-block-start .elementor-icon-box-wrapper {
    flex-direction: row !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 10px !important;
  }

  .elementor-widget-icon-box.elementor-mobile-position-block-start .elementor-icon-box-icon {
    flex-shrink: 0;
    margin: 0 !important;
  }

  .elementor-widget-icon-box.elementor-mobile-position-block-start .elementor-icon {
    font-size: 15px !important;
  }

  .elementor-widget-icon-box.elementor-mobile-position-block-start .elementor-icon-box-content,
  .elementor-widget-icon-box.elementor-mobile-position-block-start .elementor-icon-box-title,
  .elementor-widget-icon-box.elementor-mobile-position-block-start .elementor-icon-box-title a {
    text-align: left !important;
    word-spacing: normal !important;
  }

  /* Projects / About / Blogs heroes: kill desktop negative pull-up margins */
  .elementor-2207 .elementor-element.elementor-element-8d9af98,
  .elementor-1355 .elementor-element.elementor-element-1536dab,
  .elementor-2681 .elementor-element.elementor-element-e83b23f {
    --min-height: 0 !important;
    min-height: 0 !important;
    --gap: 16px 16px !important;
    --row-gap: 16px !important;
    --column-gap: 16px !important;
    padding-block: 48px 40px !important;
  }

  .elementor-2207 .elementor-element.elementor-element-1b8b8aa > .elementor-widget-container,
  .elementor-2207 .elementor-element.elementor-element-fb54f5d > .elementor-widget-container,
  .elementor-1355 .elementor-element.elementor-element-fa170af > .elementor-widget-container,
  .elementor-1355 .elementor-element.elementor-element-fca854d > .elementor-widget-container,
  .elementor-2681 .elementor-element.elementor-element-3069bca > .elementor-widget-container,
  .elementor-2681 .elementor-element.elementor-element-7a180bb > .elementor-widget-container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .elementor-2207 .elementor-element.elementor-element-637eca8 .elementor-heading-title,
  .elementor-1355 .elementor-element.elementor-element-9513902 .elementor-heading-title,
  .elementor-2681 .elementor-element.elementor-element-2cfeef1 .elementor-heading-title {
    font-size: clamp(1.55rem, 7vw, 2.25rem) !important;
    line-height: 1.2 !important;
  }

  .elementor-2207 .elementor-element.elementor-element-1b8b8aa,
  .elementor-1355 .elementor-element.elementor-element-fa170af,
  .elementor-2681 .elementor-element.elementor-element-3069bca {
    line-height: 1.5 !important;
  }

  /* Gold trust pills safety (Elementor exported line-height:1px) */
  .elementor-164 .elementor-element.elementor-element-7502cb8,
  .elementor-164 .elementor-element.elementor-element-025458e,
  .elementor-164 .elementor-element.elementor-element-937e881,
  .elementor-164 .elementor-element.elementor-element-3cfd0e5,
  .elementor-1355 .elementor-element.elementor-element-b465019,
  .elementor-1355 .elementor-element.elementor-element-f2ed7f0,
  .elementor-1355 .elementor-element.elementor-element-f857c5a,
  .elementor-1355 .elementor-element.elementor-element-8db7a93 {
    line-height: 1.25 !important;
  }

  .elementor-164 .elementor-element.elementor-element-7502cb8 > .elementor-widget-container,
  .elementor-164 .elementor-element.elementor-element-025458e > .elementor-widget-container,
  .elementor-164 .elementor-element.elementor-element-937e881 > .elementor-widget-container,
  .elementor-164 .elementor-element.elementor-element-3cfd0e5 > .elementor-widget-container,
  .elementor-1355 .elementor-element.elementor-element-b465019 > .elementor-widget-container,
  .elementor-1355 .elementor-element.elementor-element-f2ed7f0 > .elementor-widget-container,
  .elementor-1355 .elementor-element.elementor-element-f857c5a > .elementor-widget-container,
  .elementor-1355 .elementor-element.elementor-element-8db7a93 > .elementor-widget-container {
    padding: 12px 14px !important;
    box-sizing: border-box !important;
  }

  /* Service-page gold pills with same exported line-height bug */
  .elementor-213 .elementor-element.elementor-element-56b07d5,
  .elementor-213 .elementor-element.elementor-element-0611599,
  .elementor-213 .elementor-element.elementor-element-589c825,
  .elementor-213 .elementor-element.elementor-element-ffa35a3,
  .elementor-477 .elementor-element.elementor-element-4b428ba8,
  .elementor-477 .elementor-element.elementor-element-3a121ac2,
  .elementor-477 .elementor-element.elementor-element-dbf951d,
  .elementor-477 .elementor-element.elementor-element-6fcf6011,
  .elementor-477 .elementor-element.elementor-element-2c477391 {
    line-height: 1.25 !important;
  }

  .elementor-213 .elementor-element.elementor-element-56b07d5 > .elementor-widget-container,
  .elementor-213 .elementor-element.elementor-element-0611599 > .elementor-widget-container,
  .elementor-213 .elementor-element.elementor-element-589c825 > .elementor-widget-container,
  .elementor-213 .elementor-element.elementor-element-ffa35a3 > .elementor-widget-container,
  .elementor-477 .elementor-element.elementor-element-4b428ba8 > .elementor-widget-container,
  .elementor-477 .elementor-element.elementor-element-3a121ac2 > .elementor-widget-container,
  .elementor-477 .elementor-element.elementor-element-dbf951d > .elementor-widget-container,
  .elementor-477 .elementor-element.elementor-element-6fcf6011 > .elementor-widget-container,
  .elementor-477 .elementor-element.elementor-element-2c477391 > .elementor-widget-container {
    padding: 12px 14px !important;
    box-sizing: border-box !important;
  }
}

/* Service / style / project card grids: single column on narrow phones */
@media (max-width: 480px) {
  .elementor-164 .elementor-element.elementor-element-9039792,
  .elementor .elementor-widget-image-box .elementor-image-box-wrapper,
  .city-page .services-grid,
  .city-page .styles-grid,
  .city-page .projects-grid {
    --e-con-grid-template-columns: 1fr !important;
    grid-template-columns: 1fr !important;
  }
}

/* Trust / stats */
.pkr-stats {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .pkr-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Footer */
.pkr-footer,
.pkr-container,
.pkr-grid {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.pkr-container {
  width: 100%;
  padding-inline: clamp(16px, 4vw, 40px);
}

.pkr-grid > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pkr-tagline,
.pkr-list a,
.pkr-heading {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

@media (max-width: 768px) {
  .pkr-grid {
    grid-template-columns: 1fr !important;
  }

  .pkr-footer a,
  .pkr-legal a,
  .pkr-footer .elementor-social-icon,
  .elementor-location-footer .elementor-social-icon {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
  }

  .pkr-bottom-inner {
    flex-direction: column;
    text-align: center;
    padding-inline: 16px;
  }
}

/* Privacy / long unbroken URLs / emails */
.content a,
.content-inner a,
.privacy a,
body.privacy a,
main a,
.elementor-icon-box-description,
.elementor-icon-box-title,
.elementor-widget-text-editor a,
.elementor-icon-list-text,
a[href^="mailto:"],
a[href^="tel:"] {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Icon-box mailto typography/wrap is owned by brand-palette.css
   (.elementor-icon-box-description a[href^="mailto:"]) */

.elementor-icon-box-wrapper,
.elementor-icon-box-content {
  max-width: 100%;
  min-width: 0;
}

/* ---------- Forms / inputs (iOS zoom prevention) ---------- */
@media (max-width: 767px) {
  input,
  select,
  textarea,
  .fm-form input,
  .fm-form select,
  .fm-form textarea,
  .ghl-survey-embed input,
  .ghl-survey-embed select,
  .ghl-survey-embed textarea {
    font-size: 16px !important;
  }
}

/* ---------- Accordion / touch targets ---------- */
.elementskit-accordion .elementskit-card-header,
.elementskit-accordion .elementskit-btn-link {
  min-height: 44px;
  width: 100%;
}

.elementor-swiper-button,
.swiper-button-prev,
.swiper-button-next {
  min-width: 44px;
  min-height: 44px;
}

/* ---------- City pages ---------- */
.city-page,
.city-page .container,
.city-page .hero,
.city-page .hero-inner,
.city-page .intro-grid,
.city-page .cta-row {
  max-width: 100%;
  min-width: 0;
}

.city-page .container {
  width: 100%;
  padding-inline: clamp(16px, 4vw, 24px);
  box-sizing: border-box;
}

.city-page .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Marquee tracks (reviews + gallery): constrain wrap so max-content children cannot expand page width */
.city-page .reviews-track-wrap,
.reviews-track-wrap,
.city-page .gallery-track-wrap,
.gallery-track-wrap {
  display: block;
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  contain: inline-size paint;
}

/* Marquee sections intentionally clip the wide animated track after wrap containment */
.city-page section:has(.reviews-track-wrap),
.city-page section:has(.gallery-track-wrap),
main.city-page {
  overflow-x: clip;
  max-width: 100%;
}

.city-page .reviews-track,
.reviews-track,
.city-page .gallery-track,
.gallery-track {
  /* intentional wide track for marquee; clipped by wrap */
  max-width: none;
}

.city-page .review-card,
.review-card {
  width: min(360px, calc(100% - 0px)) !important;
  max-width: min(360px, 100%) !important;
  box-sizing: border-box;
}

.city-page .gallery-card,
.gallery-card {
  max-width: min(300px, 85vw);
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  .city-page .reviews-track,
  .reviews-track,
  .city-page .gallery-track,
  .gallery-track {
    animation: none !important;
    transform: none !important;
  }
}

.city-page .cta-row .btn {
  min-height: 44px;
}

@media (max-width: 767px) {
  .city-page .intro-grid,
  .city-page .services-grid,
  .city-page .value-grid,
  .city-page .faq-grid {
    grid-template-columns: 1fr !important;
  }

  .city-page .cta-row .btn {
    flex: 1 1 100%;
    text-align: center;
    justify-content: center;
  }

  .city-page .trust-badges {
    gap: 8px 14px !important;
    margin-top: 20px !important;
  }

  .city-page .hero h1 {
    font-size: clamp(1.55rem, 7vw, 2.2rem) !important;
    max-width: none !important;
  }
}

/* ---------- Typography / spacing ---------- */
@media (max-width: 480px) {
  .elementor-widget-heading .elementor-heading-title {
    line-height: 1.2;
  }

  .elementor-widget-text-editor,
  .elementor-widget-text-editor p {
    font-size: clamp(0.95rem, 3.8vw, 1.05rem);
  }
}

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

  .swiper-wrapper {
    transition-duration: 0ms !important;
  }
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible,
.elementor-button:focus-visible,
.elementskit-menu-hamburger:focus-visible,
.elementskit-menu-close:focus-visible,
.elementskit-btn-link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #D4A853;
  outline-offset: 2px;
}

/* ---------- Generic Elementor page overflow guards ---------- */
.elementor-page .e-con[style*="width:"],
.elementor .e-con,
.elementor-section,
.elementor-container,
.elementor-top-section,
.elementor-inner-section {
  max-width: 100%;
}

/* Clamp Elementor percentage widths that exceed parent */
.elementor .e-con.e-parent,
.elementor .e-con.e-child {
  box-sizing: border-box;
}

.elementor-widget-image img,
.elementor-widget-image-box img,
.elementor-widget-image-carousel img {
  max-width: 100%;
  height: auto;
}

/* Buttons wrap cleanly */
.elementor-widget-button .elementor-button-wrapper {
  max-width: 100%;
}

@media (max-width: 480px) {
  .elementor-widget-button .elementor-button {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

/* ==========================================================================
   Mobile visual redesign (<768px)
   Premium phone composition — same navy/gold brand, not squeezed desktop.
   Primary canvas: 375px. Tablet 768–1024 keeps separate rules above.
   ========================================================================== */
@media (max-width: 767px) {
  :root {
    --pkr-gutter: clamp(16px, 5vw, 24px);
    --pkr-section-y: 52px;
    --pkr-section-y-compact: 36px;
    --pkr-card-pad: 22px;
    --pkr-card-gap: 18px;
  }

  /* Gutters: replace Elementor 10px side padding defaults */
  .elementor .e-con-boxed > .e-con-inner,
  .elementor .e-con > .e-con-inner,
  .elementor-section .elementor-container,
  .city-page .container,
  .pkr-container {
    padding-inline: var(--pkr-gutter) !important;
  }

  /* Section rhythm — soften blanket 70px mobile section pads (page content only) */
  .elementor:not(.elementor-170):not(.elementor-172) .e-con.e-parent {
    --padding-top: var(--pkr-section-y) !important;
    --padding-bottom: var(--pkr-section-y) !important;
    --padding-left: var(--pkr-gutter) !important;
    --padding-right: var(--pkr-gutter) !important;
  }

  .elementor:not(.elementor-170):not(.elementor-172) .e-con.e-parent.e-con-full {
    --padding-left: 0 !important;
    --padding-right: 0 !important;
  }

  /* Typography scale */
  .elementor-kit-19 h1,
  .elementor h1.elementor-heading-title,
  .elementor .elementor-widget-heading h1.elementor-heading-title {
    font-size: clamp(2rem, 8.2vw, 2.35rem) !important; /* ~32–38px */
    line-height: 1.08 !important;
    letter-spacing: -0.02em;
  }

  .elementor-kit-19 h2,
  .elementor h2.elementor-heading-title,
  .elementor .elementor-widget-heading h2.elementor-heading-title {
    font-size: clamp(1.65rem, 6.5vw, 2rem) !important; /* ~26–32px */
    line-height: 1.15 !important;
  }

  .elementor-kit-19 h3,
  .elementor h3.elementor-heading-title,
  .elementor .elementor-widget-heading h3.elementor-heading-title {
    font-size: clamp(1.2rem, 4.8vw, 1.375rem) !important; /* ~19–22px */
    line-height: 1.25 !important;
  }

  .elementor-widget-text-editor,
  .elementor-widget-text-editor p,
  .elementor-icon-box-description,
  .city-page p {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  /* ---- Header: calm 64–72px row; hide noisy top address/social strip ---- */
  .elementor-170 .elementor-element.elementor-element-94afed3 {
    display: none !important; /* gold top strip: address + phone/email icons */
  }

  .ekit-template-content-header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .elementor-170 .elementor-element.elementor-element-497fdd61 {
    min-height: 64px;
    max-height: 72px;
  }

  .elementor-170 .elementor-element.elementor-element-497fdd61 > .e-con-inner {
    padding-inline: 16px !important;
    min-height: 64px;
    align-items: center !important;
  }

  .elementor-170 .elementor-element.elementor-element-52d58c38 {
    min-height: 64px;
    align-items: center !important;
    padding-block: 8px !important;
    width: 100% !important;
  }

  .elementor-170 .elementor-element.elementor-element-3339c55e {
    --width: auto !important;
    flex: 1 1 auto !important;
    max-width: calc(100% - 56px) !important;
  }

  .elementor-170 .elementor-widget-theme-site-logo img {
    max-width: 168px !important;
    max-height: 48px !important;
  }

  .elementskit-menu-container.active {
    padding: 20px 0 32px !important;
  }

  .elementskit-navbar-nav > li > a {
    min-height: 48px !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
  }

  /* ---- Homepage hero ---- */
  .elementor-164 .elementor-element.elementor-element-99a9ace {
    --min-height: 0 !important;
    min-height: 0 !important;
    padding-block: 56px 48px !important;
    --gap: 20px !important;
    --row-gap: 20px !important;
  }

  .elementor-164 .elementor-element.elementor-element-99a9ace .e-con.e-child,
  .elementor-164 .elementor-element.elementor-element-dbe06d3,
  .elementor-164 .elementor-element.elementor-element-50007a8 {
    width: 100% !important;
    max-width: 100% !important;
    --width: 100% !important;
    flex: 1 1 auto !important;
  }

  .elementor-164 .elementor-element.elementor-element-99a9ace .elementor-widget-button,
  .elementor-164 .elementor-element.elementor-element-99a9ace .elementor-widget-button .elementor-widget-container,
  .elementor-164 .elementor-element.elementor-element-99a9ace .elementor-button-wrapper,
  .elementor-164 .elementor-element.elementor-element-4f43e2c,
  .elementor-164 .elementor-element.elementor-element-4ebda21,
  .elementor-164 .elementor-element.elementor-element-4f43e2c .elementor-widget-container,
  .elementor-164 .elementor-element.elementor-element-4ebda21 .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
  }

  .elementor-164 .elementor-element.elementor-element-99a9ace .elementor-widget-button .elementor-button,
  .elementor-164 .elementor-element.elementor-element-99a9ace a.elementor-button {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px !important;
    justify-content: center !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  /* Trust / stats 2×2 */
  .elementor-164 .elementor-element.elementor-element-28f3bb2 {
    --e-con-grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    --e-con-grid-template-rows: repeat(2, auto) !important;
    --gap: 12px 12px !important;
    --row-gap: 12px !important;
    --column-gap: 12px !important;
  }

  .elementor-164 .elementor-element.elementor-element-7502cb8 > .elementor-widget-container,
  .elementor-164 .elementor-element.elementor-element-025458e > .elementor-widget-container,
  .elementor-164 .elementor-element.elementor-element-937e881 > .elementor-widget-container,
  .elementor-164 .elementor-element.elementor-element-3cfd0e5 > .elementor-widget-container {
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Service / value cards: natural height, single column */
  .elementor-164 .elementor-element.elementor-element-6ae604f2,
  .elementor-164 .elementor-element.elementor-element-4c4ed309,
  .elementor-164 .elementor-element.elementor-element-15369ee0,
  .elementor-164 .elementor-element.elementor-element-1b69fee4,
  .elementor-164 .elementor-element.elementor-element-61f3c547,
  .elementor-164 .elementor-element.elementor-element-c411e7f {
    --min-height: 0 !important;
    min-height: 0 !important;
  }

  .elementor .e-con.e-grid {
    --gap: var(--pkr-card-gap) !important;
    --row-gap: var(--pkr-card-gap) !important;
    --column-gap: var(--pkr-card-gap) !important;
  }

  .elementor-widget-image-box .elementor-image-box-wrapper,
  .elementor-widget-icon-box .elementor-icon-box-wrapper {
    padding: 4px 0;
  }

  /* Soften large mobile section gaps (50px gallery gaps → 16–20) */
  .elementor-164 .elementor-element.elementor-element-72624c3e,
  .elementor-widget-media-carousel {
    --margin-top: 0 !important;
  }

  .elementor-widget-media-carousel .elementor-main-swiper:not(.elementor-thumbnails-swiper) {
    aspect-ratio: 16 / 10;
    max-height: 260px;
    height: auto !important;
  }

  .elementor-widget-media-carousel .elementor-main-swiper .swiper-slide,
  .elementor-widget-media-carousel .elementor-carousel-image {
    height: 100% !important;
    min-height: 220px;
    max-height: 260px;
    background-size: cover !important;
    background-position: center !important;
  }

  .elementor-swiper-button,
  .elementor-swiper-button-prev,
  .elementor-swiper-button-next {
    width: 44px !important;
    height: 44px !important;
  }

  /* GHL form as mobile card */
  .ghl-survey-embed {
    --ghl-frame-pad: 16px;
    border-radius: 14px !important;
    padding-inline: 16px !important;
  }

  /* Process / FAQ accordion touch rows */
  .elementskit-accordion .elementskit-card-header,
  .elementskit-accordion .elementskit-btn-link,
  .elementor-accordion .elementor-tab-title {
    min-height: 52px !important;
    padding: 14px 16px !important;
    width: 100%;
  }

  .elementskit-accordion .elementskit-card,
  .elementor-accordion .elementor-accordion-item {
    margin-bottom: 10px !important;
  }

  /* CTA buttons hierarchy */
  .elementor-widget-button .elementor-button {
    min-height: 52px !important;
    padding: 14px 20px !important;
  }

  .elementor-widget-button .elementor-button-wrapper {
    width: 100%;
  }

  /* City / link chips */
  .elementor-widget-icon-list .elementor-icon-list-item a,
  .city-page .city-list a,
  .pkr-list a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Kitchen-style feature cards: left-aligned content + CTA */
  .elementor-mobile-position-block-start {
    text-align: left !important;
  }

  .elementor-1995 .elementor-widget-button .elementor-button-wrapper {
    text-align: left !important;
  }
}

/* Slightly roomier at 390–480 */
@media (min-width: 390px) and (max-width: 767px) {
  :root {
    --pkr-section-y: 56px;
  }
}

/* Tablet: keep 2-col grids; do not apply phone-only header strip hide undo needed — strip hide is phone only */
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor .e-con.e-grid {
    --e-con-grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Fixed mobile call bar — hidden on desktop */
.pkr-mobile-call-bar {
  display: none;
}

@media (max-width: 767px) {
  .pkr-mobile-call-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    background: linear-gradient(135deg, #B88A38 0%, #D4A853 55%, #C4963E 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 -4px 18px rgba(15, 45, 74, 0.18);
    -webkit-tap-highlight-color: transparent;
  }

  .pkr-mobile-call-bar:hover,
  .pkr-mobile-call-bar:focus,
  .pkr-mobile-call-bar:visited,
  .pkr-mobile-call-bar:active {
    color: #ffffff !important;
    text-decoration: none !important;
  }

  .pkr-mobile-call-bar:focus-visible {
    outline: 2px solid #0F2D4A;
    outline-offset: -2px;
  }

  .pkr-mobile-call-bar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: #fff;
  }

  .pkr-mobile-call-bar__icon svg {
    display: block;
    width: 18px;
    height: 18px;
  }

  .pkr-mobile-call-bar__text {
    color: #ffffff !important;
    white-space: nowrap;
  }

  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  body.elementskit-menu-active .pkr-mobile-call-bar {
    display: none;
  }
}

/* ===== Authors (HMM-style) ===== */
.authors-hero {
  background: var(--color-primary, #0F2D4A);
  color: #fff;
  padding: 7.5rem 1.25rem 3.5rem;
}
.authors-hero .authors-breadcrumb,
.authors-hero .authors-breadcrumb a { color: rgba(255,255,255,.72); text-decoration: none; font-size: .875rem; }
.authors-hero .authors-breadcrumb a:hover { color: #fff; }
.authors-hero .authors-breadcrumb .current { color: #fff; }
.authors-hero-title {
  margin: 1.25rem 0 .75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: #fff;
  font-weight: 800;
}
.authors-hero-intro {
  max-width: 40rem;
  opacity: .9;
  font-size: 1.05rem;
  line-height: 1.6;
}
.authors-hero-inner,
.authors-section-inner,
.authors-cta-inner,
.author-posts-inner,
.author-desc-inner { max-width: 80rem; margin: 0 auto; }
.authors-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 4rem 1.25rem;
}
@media (min-width: 640px) { .authors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .authors-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.author-card {
  display: block;
  background: #fff;
  border: 1px solid rgba(15,45,74,.08);
  border-radius: 1.25rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease, transform .2s ease;
}
.author-card:hover { box-shadow: 0 12px 40px rgba(15,45,74,.12); transform: translateY(-2px); }
.author-avatar {
  width: 5.5rem; height: 5.5rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary, #0F2D4A);
  color: #fff;
  font-weight: 800; font-size: 1.5rem;
}
.author-avatar--img { padding: 0; overflow: hidden; background: transparent; }
.author-avatar--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-card .author-label {
  margin-top: 1.25rem; font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent, #D4A853);
}
.author-card h2 { margin: .4rem 0 .25rem; font-size: 1.25rem; color: var(--color-heading, #1F2937); font-weight: 800; }
.author-card .author-role { font-size: .9rem; font-weight: 600; color: rgba(31,41,55,.7); }
.author-card .author-blurb { margin-top: .75rem; font-size: .9rem; line-height: 1.55; color: rgba(75,85,99,.9); }
.author-card .author-more { margin-top: 1rem; display: inline-flex; font-size: .9rem; font-weight: 700; color: var(--color-accent-hover, #B88A38); }
.authors-cta {
  background: var(--color-primary, #0F2D4A);
  color: #fff;
  padding: 4rem 1.25rem;
  text-align: center;
}
.authors-cta h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0 0 1rem; color: #fff; font-weight: 800; }
.authors-cta p { opacity: .88; max-width: 32rem; margin: 0 auto 1.75rem; }
.authors-cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.authors-cta-actions a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.6rem; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: .95rem;
}
.authors-cta-actions .cta-primary { background: var(--color-accent, #D4A853); color: var(--color-primary, #0F2D4A); }
.authors-cta-actions .cta-primary:hover { background: var(--color-accent-hover, #B88A38); }
.authors-cta-actions .cta-outline { border: 2px solid #fff; color: #fff; }
.authors-cta-actions .cta-outline:hover { background: #fff; color: var(--color-primary, #0F2D4A); }

.author-desc-page {
  background: var(--color-background-light, #F8F9FA);
  padding: 7.5rem 1.25rem 4.5rem;
}
.author-desc-page .author-breadcrumb {
  margin-bottom: 2.5rem;
  font-size: .875rem;
}
.author-desc-page .author-breadcrumb a { color: rgba(31,41,55,.65); text-decoration: none; }
.author-desc-page .author-breadcrumb a:hover { color: var(--color-accent-hover, #B88A38); }
.author-desc-page .author-breadcrumb .current { color: var(--color-heading, #1F2937); }
.author-desc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: start;
}
@media (min-width: 900px) {
  .author-desc-grid {
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 3.25rem;
  }
}
.author-desc-photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary, #0F2D4A);
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 8px 30px rgba(15,45,74,.08);
}
.author-desc-photo--img { padding: 0; background: transparent; overflow: hidden; }
.author-desc-photo--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-desc-label {
  margin: 0;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-accent, #D4A853);
}
.author-desc-name {
  margin: .75rem 0 0;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.12;
  color: var(--color-heading, #1F2937);
  font-weight: 800;
}
.author-desc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: .85rem;
}
.author-desc-role {
  margin: 0;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(31,41,55,.5);
}
.author-linkedin-btn {
  display: inline-flex;
  color: var(--color-primary, #0F2D4A);
  transition: color .2s ease, transform .2s ease;
}
.author-linkedin-btn:hover {
  color: var(--color-accent-hover, #B88A38);
  transform: translateY(-1px);
}
.author-linkedin-icon { display: block; }
.author-desc-bio { margin-top: 2rem; }
.author-desc-bio p {
  margin: 0 0 1.2rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(75,85,99,.95);
}
.author-desc-bio p:last-child { margin-bottom: 0; }
.author-posts {
  padding: 3.5rem 1.25rem;
  background: #fff;
}
.author-posts .author-profile-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-accent, #D4A853); margin-bottom: .75rem;
}
.author-posts h2 { color: var(--color-heading, #1F2937); margin: .5rem 0; font-weight: 800; }
.author-posts p { color: rgba(75,85,99,.9); line-height: 1.6; max-width: 42rem; }

/* Keep Elementor header solid/readable on light author pages */
body.page-authors .ekit-template-content-header .elementor-170 > .elementor-element.e-con-boxed,
body.page-author .ekit-template-content-header .elementor-170 > .elementor-element.e-con-boxed,
body.page-authors .elementor-element-94afed3,
body.page-author .elementor-element-94afed3,
body.page-authors .elementor-element-497fdd61,
body.page-author .elementor-element-497fdd61 {
  background-color: var(--color-primary, #0F2D4A) !important;
}
body.page-authors .ekit-template-content-header,
body.page-author .ekit-template-content-header {
  position: relative;
  z-index: 100;
}
