/**
 * Pro Kitchen Remodeling Los Angeles — Brand Color System
 * Color migration tokens only. Layout/typography unchanged.
 */
:root {
  --color-primary: #0F2D4A;
  --color-primary-dark: #0A2238;
  --color-primary-extra-dark: #091B2D;
  --color-primary-light: #34516D;
  --color-primary-soft: #E8EEF3;

  --color-accent: #D4A853;
  --color-accent-hover: #B88A38;
  --color-accent-light: #E5C985;
  --color-accent-soft: #F7F0DF;

  --color-white: #FFFFFF;
  --color-background: #F3F4F6;
  --color-background-light: #F8F9FA;

  --color-heading: #1F2937;
  --color-body: #4B5563;
  --color-text-secondary: #6B7280;
  --color-text-muted: #9CA3AF;

  --color-border: #D1D5DB;
  --color-border-light: #E5E7EB;

  /* Aliases used by embedded component CSS */
  --brand: var(--color-primary);
  --brand-dark: var(--color-primary-dark);
  --brand-light: rgba(15, 45, 74, 0.10);
  --brand-muted: rgba(15, 45, 74, 0.26);
  --text: var(--color-heading);
  --text-muted: rgba(75, 85, 99, 0.85);
  --text-faint: rgba(107, 114, 128, 0.75);
  --bg: var(--color-white);
  --surface: var(--color-background-light);
  --border: var(--color-border-light);
}

/* Integrate into existing Elementor global kit */
.elementor-kit-19 {
  --e-global-color-primary: #0F2D4A;
  --e-global-color-secondary: #0A2238;
  --e-global-color-text: #4B5563;
  --e-global-color-accent: #D4A853;
  --e-global-color-8bbe32c: #E8EEF3;
  --e-global-color-42f8bbe: #F8F9FA;
  --e-global-color-32d715f: #F3F4F6;
  --e-global-color-92b8c61: #0F2D4A30;
}

/* Gold filled buttons: navy text for contrast (never white on #D4A853) */
.elementor-element .elementor-button[style*="background-color:#D4A853"],
.elementor-element .elementor-button[style*="background-color: #D4A853"],
.elementor-element .elementor-button[style*="background:#D4A853"],
.elementor-element .elementor-button[style*="background: #D4A853"] {
  color: #0F2D4A !important;
}

.elementor-widget-rating {
  --e-rating-icon-marked-color: #D4A853;
}

/* Phone field: remove unused country-code padding so placeholder aligns left like other inputs */
.fm-form-container .fm-form div[type="type_phone_new"] input[type="text"],
.fm-form-container .fm-form .fm-type_phone_new input[type="text"] {
  padding-left: 12px !important;
  padding-right: 12px !important;
  text-align: left !important;
}

.fm-form-container .fm-form div[type="type_phone_new"] input[type="text"]::placeholder,
.fm-form-container .fm-form .fm-type_phone_new input[type="text"]::placeholder {
  text-align: left !important;
  opacity: 1;
  color: #6B7280;
}

.fm-form-container .fm-form input.pkr-field-error,
.fm-form-container .fm-form select.pkr-field-error,
.fm-form-container .fm-form textarea.pkr-field-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px #dc2626 !important;
}

/* Back to top — sitewide (matches former footer .pkr-back-top) */
.pkr-back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 30px;
  padding: 9px 18px;
  background: linear-gradient(135deg, #B88A38, #D4A853);
  color: #0F2D4A;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(184, 138, 56, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.3s ease, visibility 0.2s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.pkr-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.pkr-back-to-top:hover,
.pkr-back-to-top:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(184, 138, 56, 0.55);
  color: #fff;
  outline: none;
}
.pkr-back-to-top.is-visible:hover,
.pkr-back-to-top.is-visible:focus {
  transform: translateY(-3px);
}
.pkr-back-to-top:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 45, 74, 0.25), 0 8px 25px rgba(184, 138, 56, 0.55);
}
.pkr-back-to-top i {
  font-size: 12px;
  line-height: 1;
}
@media (max-width: 640px) {
  .pkr-back-to-top {
    right: 16px;
    bottom: 16px;
    padding: 8px 14px;
    font-size: 11px;
  }
}

/* ===== Services mega menu (sibling-site pattern) ===== */
.ekit-template-content-header,
.ekit-template-content-header .elementor,
.ekit-template-content-header .e-con,
.ekit-template-content-header .e-con-inner,
.ekit-template-content-header .elementor-widget-container,
.ekit-template-content-header .ekit-wid-con,
.ekit-template-content-header .elementskit-menu-container,
.ekit-template-content-header .elementskit-navbar-nav,
.ekit-template-content-header .elementskit-dropdown-has {
  overflow: visible !important;
}

@media (min-width: 1024px) {
  .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 {
    left: 50%;
    right: auto;
    width: min(940px, calc(100vw - 28px));
    min-width: min(940px, calc(100vw - 28px));
    max-width: none;
    padding: 16px 0 0;
    margin: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: translate(-38%, -10px);
    z-index: 1200;
  }

  .ekit-nav-dropdown-hover .elementskit-dropdown-has.menu-item-651:hover > .pkr-services-mega.elementskit-dropdown,
  .ekit-nav-dropdown-hover .elementskit-dropdown-has.menu-item-651:focus-within > .pkr-services-mega.elementskit-dropdown {
    transform: translate(-38%, 0);
  }

  .pkr-services-mega > .pkr-mega-li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
  }

  .pkr-services-mega .mega-menu-inner {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 0;
    background: #fff;
    border: 1px solid rgba(15, 45, 74, 0.1);
    border-radius: 20px;
    box-shadow: 0 28px 56px -20px rgba(15, 45, 74, 0.42);
    overflow: hidden;
  }

  .pkr-services-mega .mega-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 380px;
    padding: 30px 26px;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    background-color: #0A2238;
    background-size: cover;
    background-position: center;
  }

  .pkr-services-mega .mega-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(165deg, rgba(15, 45, 74, 0.12) 0%, rgba(15, 45, 74, 0.42) 35%, rgba(10, 34, 56, 0.94) 100%);
  }

  .pkr-services-mega .mega-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
  }

  .pkr-services-mega .mega-eyebrow::before {
    content: "";
    width: 22px;
    height: 3px;
    border-radius: 100px;
    background: #D4A853;
    flex-shrink: 0;
  }

  .pkr-services-mega .mega-title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    max-width: 14ch;
    color: #fff;
  }

  .pkr-services-mega .mega-desc {
    margin: 0 0 18px;
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    max-width: 28ch;
  }

  .pkr-services-mega .mega-intro-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #B88A38, #D4A853);
    color: #0F2D4A !important;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    box-shadow: 0 4px 14px rgba(184, 138, 56, 0.35);
  }

  .pkr-services-mega .mega-intro-link:hover {
    transform: translateY(-1px);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(184, 138, 56, 0.5);
  }

  .pkr-services-mega .mega-panel {
    display: flex;
    flex-direction: column;
    padding: 24px 22px 20px;
    background:
      radial-gradient(120% 80% at 100% 0%, rgba(212, 168, 83, 0.1), transparent 55%),
      linear-gradient(180deg, #fff 0%, #f7f5f1 100%);
  }

  .pkr-services-mega .mega-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 0 4px 14px;
    border-bottom: 1px solid rgba(15, 45, 74, 0.08);
  }

  .pkr-services-mega .mega-panel-label {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #B88A38;
  }

  .pkr-services-mega .mega-panel-note {
    margin: 0;
    font-size: 12px;
    color: rgba(15, 45, 74, 0.55);
    white-space: nowrap;
  }

  .pkr-services-mega .mega-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 4px;
    flex: 1;
    align-content: start;
    margin: 0;
    padding: 0;
  }

  .pkr-services-mega .mega-links a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 12px 12px 10px;
    border-radius: 12px;
    color: #0F2D4A !important;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
  }

  .pkr-services-mega .mega-links a .mega-link-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pkr-services-mega .mega-links a .mega-arrow {
    flex: 0 0 auto;
    opacity: 0;
    transform: translateX(-6px);
    color: #B88A38;
    font-size: 14px;
    font-weight: 700;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .pkr-services-mega .mega-links a:hover,
  .pkr-services-mega .mega-links a:focus-visible {
    background: #fff;
    border-color: rgba(184, 138, 56, 0.28);
    box-shadow: 0 8px 20px -12px rgba(15, 45, 74, 0.25);
    color: #0F2D4A !important;
    transform: translateY(-1px);
  }

  .pkr-services-mega .mega-links a:hover .mega-arrow,
  .pkr-services-mega .mega-links a:focus-visible .mega-arrow {
    opacity: 1;
    transform: translateX(0);
  }

  .pkr-services-mega .mega-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    padding: 13px 18px;
    border-radius: 999px;
    background: #0F2D4A;
    color: #fff !important;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .pkr-services-mega .mega-view-all:hover {
    background: #0A2238;
    transform: translateY(-1px);
    color: #fff !important;
  }
}

@media (min-width: 1024px) and (max-width: 1100px) {
  .pkr-services-mega .mega-menu-inner {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .pkr-services-mega .mega-intro {
    min-height: 340px;
    padding: 24px 20px;
  }
  .pkr-services-mega .mega-title {
    font-size: 22px;
  }
  .pkr-services-mega .mega-links a {
    font-size: 12.5px;
    padding: 11px 10px;
    gap: 9px;
  }
}

/* Mobile off-canvas: stack links, hide intro image */
@media (max-width: 1023px) {
  .pkr-services-mega.elementskit-dropdown {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .pkr-services-mega > .pkr-mega-li {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .pkr-services-mega .mega-menu-inner {
    display: block;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .pkr-services-mega .mega-intro {
    display: none;
  }

  .pkr-services-mega .mega-panel {
    padding: 4px 0 8px;
    background: transparent;
  }

  .pkr-services-mega .mega-panel-head {
    display: none;
  }

  .pkr-services-mega .mega-links {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .pkr-services-mega .mega-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #0F2D4A !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(15, 45, 74, 0.08);
  }

  .pkr-services-mega .mega-links a .mega-arrow {
    color: #B88A38;
    opacity: 0.7;
  }

  .pkr-services-mega .mega-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 16px 4px;
    padding: 12px 16px;
    border-radius: 999px;
    background: #0F2D4A;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
  }
}

/* Header / footer logo — exact brand logo, display sizing only (file unaltered) */
.elementor-widget-theme-site-logo img,
.elementor-widget-theme-site-logo .attachment-full,
.elementskit-nav-logo img,
.pkr-logo img,
.site-header .logo img,
.footer-brand img {
  width: auto !important;
  max-width: 220px !important;
  height: auto !important;
  max-height: 64px !important;
  object-fit: contain !important;
  filter: none !important;
}

.pkr-footer-logo img,
.site-footer img[src*="pro-kitchen-remodeling-los-angeles-logo"],
footer img[src*="pro-kitchen-remodeling-los-angeles-logo"],
.elementor-location-footer img[src*="pro-kitchen-remodeling-los-angeles-logo"],
.pkr-logo img {
  width: auto !important;
  max-width: 240px !important;
  height: auto !important;
  max-height: 72px !important;
  object-fit: contain !important;
  filter: none !important;
}

@media (max-width: 767px) {
  .elementor-widget-theme-site-logo img,
  .elementor-widget-theme-site-logo .attachment-full,
  .elementskit-nav-logo img,
  .site-header .logo img {
    max-width: 170px !important;
    max-height: 52px !important;
  }
}


/* GHL survey embed — match pkr reference implementation */
.ghl-survey-embed {
  --ghl-frame-pad: 14px;
  --ghl-header-h: 58px;
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  margin: 0 auto;
  padding: calc(var(--ghl-header-h) + 10px) var(--ghl-frame-pad) var(--ghl-frame-pad) !important;
  box-sizing: border-box;
  background:
    linear-gradient(135deg, #0F2D4A 0%, #0A2238 55%, #091B2D 100%) 0 0 / 100% var(--ghl-header-h) no-repeat,
    linear-gradient(180deg, #F7F0DF 0%, #FFFFFF 55%);
  border: 1px solid rgba(212, 168, 83, 0.55);
  border-radius: 16px;
  box-shadow:
    0 14px 32px rgba(15, 45, 74, 0.14),
    0 2px 0 rgba(212, 168, 83, 0.35) inset;
}

.ghl-survey-embed::before {
  content: "Get Free Estimate For Your Kitchen Remodel";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: var(--ghl-header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  box-sizing: border-box;
  text-align: center;
  color: #ffffff;
  font-family: inherit;
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  pointer-events: none;
}

.ghl-survey-embed::after {
  content: "";
  position: absolute;
  top: calc(var(--ghl-header-h) - 3px);
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #B88A38, #D4A853, #E5C985, #D4A853, #B88A38);
  z-index: 2;
  pointer-events: none;
}

.ghl-survey-embed iframe {
  position: relative;
  z-index: 1;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  /* Compact start height — form_embed.js grows this with steps; no huge empty gap */
  min-height: 420px !important;
  height: 420px;
  border: 0 !important;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 45, 74, 0.08);
}

/* Gold plate behind shortcode forms */
.elementor-widget-shortcode:has(.ghl-survey-embed) > .elementor-widget-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 10px !important;
  box-sizing: border-box;
  background: linear-gradient(160deg, #D4A853 0%, #E5C985 45%, #B88A38 100%);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 45, 74, 0.16);
}

.elementor-widget-shortcode:has(.ghl-survey-embed),
.elementor-shortcode:has(.ghl-survey-embed) {
  width: 100% !important;
  max-width: 100% !important;
}

/* Keep form column inside its Elementor lane — do not overlap left copy */
@media (min-width: 1024px) {
  .e-con.e-grid:has(> .e-con:last-child .ghl-survey-embed) {
    --e-con-grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr) !important;
  }

  .e-con.e-grid:has(> .e-con:first-child .ghl-survey-embed) {
    --e-con-grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
  }

  .e-con.e-grid > .e-con:has(.ghl-survey-embed) {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
}

/*
 * Homepage only (elementor-164): left copy was exported at ~129% width and
 * ran underneath the form. Keep text fully visible beside the survey.
 */
@media (min-width: 1024px) {
  .elementor-164 .elementor-element-439da7ce {
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 20px !important;
    --gap: 20px !important;
    --column-gap: 20px !important;
    --flex-wrap: nowrap !important;
  }

  .elementor-164 .elementor-element-58cc12a1 {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: calc(52% - 10px) !important;
    min-width: 0 !important;
    --width: auto !important;
    --flex-grow: 1 !important;
    --flex-shrink: 1 !important;
    overflow: visible !important;
    position: relative;
    z-index: 1;
  }

  .elementor-164 .elementor-element-6eb9ead7,
  .elementor-164 .elementor-element-6eb9ead7.e-con {
    width: 100% !important;
    max-width: 100% !important;
    --width: 100% !important;
    --flex-grow: 0 !important;
    --flex-shrink: 1 !important;
  }

  .elementor-164 .elementor-element-13d53eb6 {
    flex: 0 0 46% !important;
    width: 46% !important;
    max-width: 560px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    --width: 46% !important;
    --min-height: 0 !important;
    --flex-grow: 0 !important;
    --flex-shrink: 0 !important;
    overflow: hidden !important;
    position: relative;
    z-index: 2;
    align-self: flex-start !important;
  }

  .elementor-164 .elementor-element-13d53eb6 .ghl-survey-embed,
  .elementor-164 .elementor-element-13d53eb6 .ghl-survey-embed iframe,
  .elementor-164 .elementor-element-13d53eb6 .elementor-widget-shortcode,
  .elementor-164 .elementor-element-13d53eb6 .elementor-widget-container {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
}

/* Popup */
.pum-overlay .pum-container:has(.ghl-survey-embed),
.pum.pum-overlay .pum-container:has(.ghl-survey-embed) {
  max-width: 720px !important;
  width: min(720px, 96vw) !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 24px 60px rgba(9, 27, 45, 0.35) !important;
}

.pum-content .ghl-survey-embed {
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

@media (max-width: 1023px) {
  .e-con.e-flex > .e-con.e-child:has(.ghl-survey-embed) {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 767px) {
  .ghl-survey-embed {
    --ghl-frame-pad: 10px;
    --ghl-header-h: 54px;
    border-radius: 14px;
  }

  .ghl-survey-embed::before {
    font-size: 14px;
    padding: 0 12px;
  }

  .ghl-survey-embed iframe {
    min-height: 460px !important;
    height: 460px;
    border-radius: 10px;
  }

  .elementor-widget-shortcode:has(.ghl-survey-embed) > .elementor-widget-container {
    padding: 8px !important;
    border-radius: 14px;
  }
}
