@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
  src: url(https://fonts.gstatic.com/s/karla/v33/qkBIXvYC6trAT55ZBi1ueQVIjQTD-JqaE0lP.ttf) format('truetype');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 500;
  font-display: fallback;
  src: url(https://fonts.gstatic.com/s/karla/v33/qkBIXvYC6trAT55ZBi1ueQVIjQTDypqaE0lP.ttf) format('truetype');
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500;
  font-display: fallback;
  src: url(https://fonts.gstatic.com/s/rubik/v31/iJWZBXyIfDnIV5PNhY1KTN7Z-Yh-NYiFV0Uw.ttf) format('truetype');
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 600;
  font-display: fallback;
  src: url(https://fonts.gstatic.com/s/rubik/v31/iJWZBXyIfDnIV5PNhY1KTN7Z-Yh-2Y-FV0Uw.ttf) format('truetype');
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: fallback;
  src: url(https://fonts.gstatic.com/s/rubik/v31/iJWZBXyIfDnIV5PNhY1KTN7Z-Yh-4I-FV0Uw.ttf) format('truetype');
}

/* Header navigation tweaks: normal weight + underline active page */
.main-header-menu > .menu-item > .menu-link,
.main-header-menu > .menu-item > .menu-link .menu-text {
  font-weight: 400 !important;
}

.main-header-menu > .menu-item.current-menu-item > .menu-link .menu-text,
.main-header-menu > .menu-item.current_page_item > .menu-link .menu-text,
.main-header-menu > .menu-item.current-menu-ancestor > .menu-link .menu-text,
.main-header-menu > .menu-item.current-menu-parent > .menu-link .menu-text {
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 2px;
}

/* ══════════════════════════════════════════════════════════
   DESKTOP HEADER — fluid scaling across all screen widths
   ══════════════════════════════════════════════════════════ */

/* ── Prevent nav links from wrapping at any desktop width ── */
@media (min-width: 922px) {
  .main-header-menu {
    flex-wrap: nowrap !important;
    white-space: nowrap;
    overflow: visible;
  }
  .main-header-menu > .menu-item > .menu-link .menu-text {
    white-space: nowrap;
  }

  /* Fluid header container: no overflow, full-width safe zone */
  .ast-primary-header-bar .ast-container {
    max-width: 100% !important;
    padding-left: clamp(16px, 3vw, 48px) !important;
    padding-right: clamp(16px, 3vw, 48px) !important;
    box-sizing: border-box;
  }

  /* Logo scales down on tighter desktops */
  .custom-logo {
    max-width: clamp(160px, 16vw, 250px) !important;
    height: auto !important;
    display: block;
  }

  /* Header bar minimum height stays consistent */
  .ast-primary-header-bar {
    min-height: 72px;
    align-items: center;
  }

  /* Push cart/contact button to the far right edge */
  .site-header-primary-section-right {
    justify-content: flex-end !important;
    margin-left: auto !important;
  }
  .ast-builder-layout-element.ast-header-woo-cart {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }
}

/* ── Tighter nav spacing at 922px–1200px ── */
@media (min-width: 922px) and (max-width: 1200px) {
  .main-header-menu > .menu-item > .menu-link {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .main-header-menu > .menu-item > .menu-link .menu-text {
    font-size: 13px !important;
  }
}

/* ── Content container: fluid padding at all desktop widths ── */
@media (min-width: 922px) {
  .ast-container {
    max-width: 1240px;
    padding-left: clamp(16px, 2.5vw, 40px);
    padding-right: clamp(16px, 2.5vw, 40px);
  }

  /* Elementor sections: prevent side overflow */
  .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: min(1200px, 96vw) !important;
    padding-left: clamp(16px, 2vw, 32px) !important;
    padding-right: clamp(16px, 2vw, 32px) !important;
  }

  /* Prevent any section from breaking viewport */
  .elementor-section {
    max-width: 100vw;
    overflow-x: hidden;
  }
}

/* ── Wide desktop (1400px+): ensure layout doesn't go too sparse ── */
@media (min-width: 1400px) {
  .ast-primary-header-bar .ast-container {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ══════════════════════════════════════════════════════════
   MOBILE NAV — move header down and highlight active page
   ══════════════════════════════════════════════════════════ */

/* Mobile nav: make selected page clearer and more polished */
@media (max-width: 921px) {
  /* Push the header bar down from the very top of the screen */
  .ast-primary-header-bar {
    padding-top: 27px !important;
    padding-bottom: 12px !important;
  }

  .ast-mobile-header-wrap .main-header-menu > .menu-item > .menu-link {
    border-radius: 10px;
    margin: 2px 10px;
    padding: 12px 14px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .ast-mobile-header-wrap .main-header-menu > .menu-item.current-menu-item > .menu-link,
  .ast-mobile-header-wrap .main-header-menu > .menu-item.current_page_item > .menu-link,
  .ast-mobile-header-wrap .main-header-menu > .menu-item.current-menu-ancestor > .menu-link,
  .ast-mobile-header-wrap .main-header-menu > .menu-item.current-menu-parent > .menu-link {
    background: #161616;
    color: #ffffff !important;
    transform: translateX(2px);
  }

  .ast-mobile-header-wrap .main-header-menu > .menu-item.current-menu-item > .menu-link .menu-text,
  .ast-mobile-header-wrap .main-header-menu > .menu-item.current_page_item > .menu-link .menu-text,
  .ast-mobile-header-wrap .main-header-menu > .menu-item.current-menu-ancestor > .menu-link .menu-text,
  .ast-mobile-header-wrap .main-header-menu > .menu-item.current-menu-parent > .menu-link .menu-text {
    text-decoration: none;
    color: inherit !important;
    font-weight: 600 !important;
  }
}

/* ══ Global overflow & image safety (all screen sizes) ══ */
html { overflow-x: hidden; }
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* ══════════════════════════════════════════════════════════
   GLOBAL MOBILE IMPROVEMENTS — all Elementor/WordPress pages
   ══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  /* ── Reduce Elementor section side padding on phones ── */
  .elementor-section.elementor-section-boxed > .elementor-container,
  .elementor-top-section > .elementor-container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  /* ── Elementor inner column padding ── */
  .elementor-column > .elementor-widget-wrap {
    padding: 16px 0 !important;
  }

  /* ── Heading size scaling on small screens ── */
  .elementor-heading-title {
    word-break: break-word;
    hyphens: auto;
  }
  .elementor-heading-title.elementor-size-xxl,
  .elementor-heading-title.elementor-size-xl {
    font-size: clamp(1.7rem, 7.5vw, 2.6rem) !important;
    line-height: 1.15 !important;
  }
  .elementor-heading-title.elementor-size-large {
    font-size: clamp(1.35rem, 6vw, 2rem) !important;
    line-height: 1.2 !important;
  }

  /* ── Elementor buttons: minimum 48 px tap target ── */
  .elementor-button {
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* ── Text columns: prevent overflow ── */
  .elementor-widget-text-editor p,
  .elementor-widget-text-editor li {
    font-size: clamp(.9rem, 3.5vw, 1rem) !important;
    line-height: 1.65 !important;
  }

  /* ── Images: always full-width within their column ── */
  .elementor-widget-image img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* ── Force col-50 / col-33 to stack on small phones ── */
@media (max-width: 520px) {
  .elementor-column.elementor-col-50,
  .elementor-column.elementor-col-33 {
    width: 100% !important;
  }
}

/* ── Gallery page: filter bar full-width on mobile ── */
@media (max-width: 600px) {
  #gallery-dropdown-filter {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }
  #gallery-tag-select {
    width: 100%;
    min-width: 0;
    font-size: 1rem;
    min-height: 44px;
    padding: .55rem .9rem;
  }
  #gallery-active-count {
    margin-left: 0;
  }
}

/* ── Elementor section vertical padding on phones ── */
@media (max-width: 480px) {
  .elementor-section {
    padding-top: max(var(--padding-top, 0px), 0px);
    padding-bottom: max(var(--padding-bottom, 0px), 0px);
  }

  /* Tighten any section that has generous padding */
  .elementor-section[data-settings*='"padding"'][data-settings*='"unit":"px"'] {
    padding-top: clamp(24px, 6vw, 60px) !important;
    padding-bottom: clamp(24px, 6vw, 60px) !important;
  }

  /* ── Testimonial / review widgets ── */
  .elementor-testimonial-content {
    font-size: .9rem !important;
    line-height: 1.6 !important;
  }

  /* ── Icon lists / feature lists ── */
  .elementor-icon-list-item {
    margin-bottom: .5rem !important;
  }
  .elementor-icon-list-text {
    font-size: .9rem !important;
  }
}

/* ══ Contact page — dark background, no layout disruption ══ */
/* Only set background on the body and the content wrappers that bleed white.
   Do NOT touch padding/margin — that breaks header, footer and section spacing. */
body.page-id-272 {
  background-color: #080808 !important;
}
body.page-id-272 #content,
body.page-id-272 #primary,
body.page-id-272 .site-main,
body.page-id-272 .entry-content,
body.page-id-272 .ast-article-single {
  background: transparent !important;
}

/* ── Contact page: close gap between hero and form ── */
.elementor-272 .elementor-element-66be1dc {
  padding-bottom: 12px !important;
  margin-bottom: 0 !important;
}
@media (max-width: 767px) {
  .elementor-272 .elementor-element-66be1dc {
    padding-bottom: 8px !important;
  }
}

/* ── Contact Details section: white background with dark text ── */
.elementor-272 .elementor-element-c53729f {
  background-color: #ffffff !important;
}
.elementor-272 .elementor-element-c53729f .elementor-icon-list-text,
.elementor-272 .elementor-element-c53729f .elementor-icon-list-item > a,
.elementor-272 .elementor-element-c53729f .elementor-icon-list-item > a .elementor-icon-list-text {
  color: #1a1a1a !important;
}
.elementor-272 .elementor-element-c53729f .elementor-widget-text-editor p,
.elementor-272 .elementor-element-c53729f .elementor-widget-text-editor {
  color: #1a1a1a !important;
}
.elementor-272 .elementor-element-c53729f .elementor-element-populated {
  color: #1a1a1a !important;
}
