/*
 * Taj Al Khalij global UI
 * Production-safe static CSS. No runtime Tailwind CDN.
 */

:root {
  --tk-gold: #FFBA03;
  --tk-gold-2: #FFD35A;
  --tk-gold-dark: #9A7000;
  --tk-navy: #181B3C;
  --tk-navy-mid: #263266;
  --tk-navy-light: #33427C;
  --tk-text: #212529;
  --tk-muted: #667085;
  --tk-white: #FFFFFF;
  --tk-light-gray: #F5F6F8;
  --tk-light-gray-2: #EEF1F6;
  --tk-border: #E3E6EA;
  --tk-container: 1240px;
  --tk-section-space: clamp(56px, 6vw, 88px);
  --tk-radius-sm: 6px;
  --tk-radius-md: 10px;
  --tk-radius-lg: 16px;
  --tk-shadow-sm: 0 8px 24px rgba(24, 27, 60, .08);
  --tk-shadow-card: 0 14px 38px rgba(24, 27, 60, .10);
  --tk-shadow-menu: 0 24px 60px rgba(24, 27, 60, .16);
  --tk-transition: 180ms ease;

  /* Brand gradients - use these across Elementor sections instead of creating new gradients page by page. */
  --tk-gradient-gold: linear-gradient(135deg, #FFBA03 0%, #FFD35A 100%);
  --tk-gradient-navy: linear-gradient(135deg, #181B3C 0%, #263266 54%, #33427C 100%);
  --tk-gradient-soft: linear-gradient(135deg, #F8F9FC 0%, #FFF9E8 52%, #F1F4F9 100%);
  --tk-gradient-soft-blue: linear-gradient(135deg, #F7F9FC 0%, #EEF2FA 100%);
  --tk-gradient-white-gold: linear-gradient(135deg, #FFFFFF 0%, #FFF8E3 100%);
}

/* =========================================================
   TAJ AL KHALIJ
   GLOBAL WORDPRESS / ELEMENTOR PAGE RESET
   ---------------------------------------------------------
   Purpose:
   - Remove Twenty Twenty-Five default page spacing
   - Hide WordPress generated page title
   - Remove wrapper padding around Elementor content
   - Prevent horizontal scroll from full-bleed sections
   - Keep page-specific CSS focused only on page design
========================================================= */


/* =========================================================
   01. PAGE OVERFLOW
========================================================= */

/*
 * Full-width sections use:
 * margin-left: calc(50% - 50vw)
 * margin-right: calc(50% - 50vw)
 *
 * Prevent that technique from creating a horizontal scrollbar.
 */

html {
    max-width: 100%;
}


body.page {
    max-width: 100%;

    overflow-x: clip;
}


body.page .wp-site-blocks {
    max-width: 100%;

    overflow-x: clip;
}



/* =========================================================
   02. REMOVE WORDPRESS GENERATED PAGE TITLE
========================================================= */

/*
 * Every custom Taj Al Khalij page contains its own semantic H1,
 * therefore the title generated by Twenty Twenty-Five is hidden.
 */

body.page .wp-block-post-title,
body.page .entry-title,
body.page .page-title,
body.page .elementor-page-title,
body.page h1.wp-block-post-title {
    display: none !important;

    margin: 0 !important;
    padding: 0 !important;

    min-height: 0 !important;
}



/* =========================================================
   03. REMOVE TWENTY TWENTY-FIVE MAIN SPACING
========================================================= */

/*
 * Overrides inline theme spacing such as:
 *
 * style="margin-top:var(--wp--preset--spacing--60)"
 */

body.page main#wp--skip-link--target {
    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;

    min-height: 0;
}



/* =========================================================
   04. REMOVE BLOCK-THEME OUTER WRAPPER SPACING
========================================================= */

/*
 * Overrides wrapper such as:
 *
 * <div
 *   class="wp-block-group alignfull has-global-padding
 *          is-layout-constrained ..."
 *   style="
 *      padding-top:var(--wp--preset--spacing--60);
 *      padding-bottom:var(--wp--preset--spacing--60);
 *   "
 * >
 */

body.page
main#wp--skip-link--target
> .wp-block-group.alignfull.has-global-padding.is-layout-constrained {
    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;

    min-height: 0 !important;
}



/* =========================================================
   05. CONTENT WRAPPER RESET
========================================================= */

body.page .wp-block-post-content,
body.page .entry-content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
}



/* =========================================================
   06. FIRST / LAST BLOCK SPACING
========================================================= */

/*
 * Prevent Gutenberg from creating an extra gap before
 * the first custom section.
 */

body.page .wp-block-post-content > :first-child,
body.page .entry-content > :first-child {
    margin-top: 0 !important;
}


/*
 * Prevent unnecessary space between the final custom section
 * and the global footer.
 */

body.page .wp-block-post-content > :last-child,
body.page .entry-content > :last-child {
    margin-bottom: 0 !important;
}



/* =========================================================
   07. ELEMENTOR PAGE WRAPPER RESET
========================================================= */

body.page .elementor {
    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
}



/* =========================================================
   08. ELEMENTOR HTML WIDGET BASE RESET
========================================================= */

/*
 * Do NOT force every HTML widget to viewport width here.
 * Individual page sections control their own full-bleed layout.
 */

body.page .elementor-widget-html {
    min-width: 0;

    margin-top: 0;
    margin-bottom: 0;
}


body.page
.elementor-widget-html
> .elementor-widget-container {
    min-width: 0;
}



/* =========================================================
   09. GLOBAL MEDIA SAFETY
========================================================= */

body.page img,
body.page video,
body.page iframe,
body.page svg {
    max-width: 100%;
}



/* =========================================================
   10. FULL-BLEED SECTION UTILITY
   Optional reusable class for future sections
========================================================= */

/*
 * For future sections you can simply add:
 *
 * class="tk-full-bleed ..."
 *
 * instead of repeating the viewport breakout CSS.
 */

body.page .tk-full-bleed {
    width: auto !important;
    max-width: none !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    box-sizing: border-box;
}



/* =========================================================
   11. COMMON CONTENT CONTAINER UTILITY
   Optional reusable class
========================================================= */

/*
 * Use inside full-width sections:
 *
 * <div class="tk-section-container">
 */

.tk-section-container {
    width: min(
        1240px,
        calc(100% - 48px)
    );

    max-width: 1240px;

    margin-left: auto;
    margin-right: auto;
}



/* =========================================================
   12. TABLET CONTAINER
========================================================= */

@media (max-width: 1024px) {

    .tk-section-container {
        width:
            calc(100% - 40px);
    }

}



/* =========================================================
   13. MOBILE CONTAINER
========================================================= */

@media (max-width: 767px) {

    .tk-section-container {
        width:
            calc(100% - 30px);
    }

}


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--tk-text);
  background: var(--tk-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a, button {
  transition: color var(--tk-transition), background-color var(--tk-transition), border-color var(--tk-transition), opacity var(--tk-transition), transform var(--tk-transition), box-shadow var(--tk-transition);
}
button, input, textarea, select { font: inherit; }

/* Remove browser black click outlines and replace keyboard focus with brand-safe focus. */
a:focus, button:focus { outline: none; }
a:focus-visible { outline: none; box-shadow: none; }
button:focus-visible,
.tk-btn:focus-visible,
.wp-element-button:focus-visible,
.elementor-button:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 186, 3, .30) !important;
}
.tk-menu a:focus-visible,
.tk-mega-menu a:focus-visible,
.rank-math-breadcrumb a:focus-visible,
.yoast-breadcrumb a:focus-visible,
.woocommerce-breadcrumb a:focus-visible,
.tk-breadcrumb a:focus-visible,
.wp-block-navigation-item__content:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  color: var(--tk-gold-dark);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 14px;
  color: var(--tk-navy);
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}
h1 { font-size: 24px; line-height: 1.28; font-weight: 700; }
h2 { font-size: 22px; line-height: 1.35; font-weight: 700; }
h3 { font-size: 18px; line-height: 1.45; font-weight: 600; }
p { margin: 0 0 18px; }

.wp-site-blocks { padding-top: 0 !important; padding-bottom: 0 !important; }
.wp-site-blocks > .wp-block-template-part { margin-block-start: 0 !important; margin-block-end: 0 !important; }

/* ---------- Reusable layout / section system ---------- */
.tk-container {
  width: min(calc(100% - 40px), var(--tk-container));
  margin-inline: auto;
}
.tk-section { padding-block: var(--tk-section-space); }
.tk-section-sm { padding-block: clamp(36px, 4vw, 56px); }
.tk-section-white { background: var(--tk-white); }
.tk-section-light { background: var(--tk-light-gray); }
.tk-section-soft { background: var(--tk-gradient-soft); }
.tk-section-soft-blue { background: var(--tk-gradient-soft-blue); }
.tk-section-gold-soft { background: var(--tk-gradient-white-gold); }
.tk-section-navy { background: var(--tk-gradient-navy); color: var(--tk-white); }
.tk-section-navy h1,
.tk-section-navy h2,
.tk-section-navy h3 { color: var(--tk-white); }
.tk-section-divider { border-top: 1px solid var(--tk-border); }
.tk-text-center { text-align: center; }
.tk-max-copy { max-width: 720px; }
.tk-max-copy-center { max-width: 720px; margin-inline: auto; text-align: center; }
.tk-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.tk-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.tk-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }

.tk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--tk-gold-dark);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tk-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--tk-gradient-gold);
}
.tk-section-navy .tk-eyebrow { color: var(--tk-gold); }

/* ---------- Common button system ---------- */
.tk-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--tk-radius-sm);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  cursor: pointer;
}
.tk-btn-primary {
  color: var(--tk-navy);
  background: var(--tk-gradient-gold);
  box-shadow: 0 8px 22px rgba(255, 186, 3, .20);
}
.tk-btn-primary:hover {
  color: var(--tk-navy);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 186, 3, .26);
}
.tk-btn-secondary {
  color: var(--tk-white);
  background: var(--tk-gradient-navy);
  box-shadow: 0 8px 22px rgba(24, 27, 60, .14);
}
.tk-btn-secondary:hover { color: var(--tk-white); transform: translateY(-1px); }
.tk-btn-outline {
  color: var(--tk-navy);
  border-color: rgba(24, 27, 60, .28);
  background: transparent;
}
.tk-btn-outline:hover { color: var(--tk-white); background: var(--tk-navy); border-color: var(--tk-navy); }
.tk-btn-light {
  color: var(--tk-navy);
  background: var(--tk-white);
  border-color: rgba(255,255,255,.7);
}

.tk-card {
  height: 100%;
  padding: 24px;
  background: var(--tk-white);
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-md);
}
.tk-card:hover { border-color: rgba(255,186,3,.55); box-shadow: var(--tk-shadow-card); }

/* ---------- Header ---------- */
.tk-site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  background: var(--tk-white);
}
.admin-bar .tk-site-header { top: 32px; }
.tk-site-header.is-scrolled { box-shadow: 0 10px 28px rgba(24, 27, 60, .10); }

.tk-topbar {
  height: 36px;
  min-height: 36px;
  overflow: hidden;
  color: var(--tk-white);
  background: var(--tk-gradient-navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: height 180ms ease, min-height 180ms ease, opacity 140ms ease;
}
.tk-site-header.is-scrolled .tk-topbar {
  height: 0;
  min-height: 0;
  opacity: 0;
}
.tk-topbar-inner {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.tk-topbar-note,
.tk-topbar-contacts {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
}
.tk-topbar-note { color: rgba(255,255,255,.72); }
.tk-topbar-dot {
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  border-radius: 50%;
  background: var(--tk-gold);
}
.tk-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.92);
  font-weight: 600;
}
.tk-topbar-link:hover { color: var(--tk-gold); }
.tk-topbar-link i { color: var(--tk-gold); font-size: 13px; line-height: 1; }
.tk-topbar-divider { width: 1px; height: 14px; background: rgba(255,255,255,.22); }
.tk-topbar-icon {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tk-navy);
  background: var(--tk-gradient-gold);
  border-radius: 50%;
}
.tk-topbar-icon:hover { transform: translateY(-1px); }
.tk-topbar-icon i { font-size: 13px; line-height: 1; }

.tk-navbar {
  position: relative;
  background: var(--tk-white);
}
.tk-navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  /*background: linear-gradient(90deg, var(--tk-gold) 0%, var(--tk-gold) 28%, var(--tk-navy-mid) 65%, var(--tk-navy) 100%);*/
  opacity: .92;
}
.tk-navbar-inner {
  position: relative;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.tk-brand {
  min-width: 220px;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.tk-brand-image {
  display: block;
  width: 400px;
  max-height: 90px;
  object-fit: cover;
  object-position: left center;
}

.tk-navigation {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-left: auto;
}
ul.tk-menu {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}
ul.tk-menu > li { margin: 0; padding: 0; }
.tk-menu > li > a,
.tk-service-trigger > a {
  position: relative;
  min-height: 88px;
  display: flex;
  align-items: center;
  color: var(--tk-navy);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
}
.tk-menu > li > a::after,
.tk-service-trigger > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 2px;
  background: var(--tk-gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tk-transition);
}
.tk-menu > li > a:hover,
.tk-service-trigger > a:hover,
.tk-menu a.is-current { color: var(--tk-gold-dark); }
.tk-menu > li > a:hover::after,
.tk-service-trigger > a:hover::after,
.tk-menu > li > a.is-current::after,
.tk-service-trigger > a.is-current::after { transform: scaleX(1); }

.tk-has-mega-menu { position: static; }
.tk-service-trigger { display: flex; align-items: center; }
.tk-submenu-toggle {
  width: 28px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  padding: 0;
  color: var(--tk-gold-dark);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.tk-submenu-toggle:hover { background: rgba(255,186,3,.10); }
.tk-submenu-toggle i { font-size: 12px; transition: transform var(--tk-transition); }
.tk-has-mega-menu.is-open .tk-submenu-toggle i { transform: rotate(180deg); }

.tk-mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(1160px, calc(100vw - 40px));
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  background: var(--tk-white);
  border-top: 3px solid var(--tk-gold);
  border-radius: 0 0 var(--tk-radius-md) var(--tk-radius-md);
  box-shadow: var(--tk-shadow-menu);
  transition: opacity var(--tk-transition), transform var(--tk-transition), visibility var(--tk-transition);
}
.tk-has-mega-menu:hover .tk-mega-menu,
.tk-has-mega-menu:focus-within .tk-mega-menu,
.tk-has-mega-menu.is-open .tk-mega-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.tk-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 30px;
  padding: 30px 34px 25px;
}
.tk-mega-column { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tk-mega-title {
  margin-bottom: 9px;
  color: var(--tk-navy);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tk-mega-column a {
  padding: 7px 0;
  color: var(--tk-text);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}
.tk-mega-column a:hover,
.tk-mega-column a.is-current { color: var(--tk-gold-dark); transform: translateX(2px); }
.tk-mega-footer {
  padding: 13px 34px;
  background: var(--tk-gradient-soft-blue);
  border-top: 1px solid var(--tk-border);
  font-size: 13px;
  font-weight: 600;
}
.tk-mega-footer a { display: inline-flex; align-items: center; gap: 7px; color: var(--tk-navy); }
.tk-mega-footer a:hover { color: var(--tk-gold-dark); }
.tk-header-cta { white-space: nowrap; }

.tk-menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  background: var(--tk-white);
  border: 1px solid rgba(24, 27, 60, .14);
  border-radius: 8px;
  box-shadow: 0 5px 16px rgba(24,27,60,.06);
  cursor: pointer;
}
.tk-menu-toggle span {
  width: 22px;
  height: 2px;
  display: block;
  background: var(--tk-navy);
}
.tk-mobile-nav-head,
.tk-mobile-contact-panel { display: none; }
body.tk-menu-open { overflow: hidden; }

/* ---------- Footer ---------- */
.tk-footer {
  color: rgba(255,255,255,.86);
  background: linear-gradient(135deg, #263266 0%, #33427C 100%);
  border-top: 3px solid var(--tk-gold);
}
.tk-footer-main { padding-block: 58px 48px; }
.tk-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .8fr 1.05fr 1.25fr;
  gap: 48px;
}
.tk-footer-brand { max-width: 360px; }
.tk-footer-brand-link { display: inline-block; }
.tk-footer-logo {
  display: block;
  width: 238px;
  max-height: 108px;
  margin-bottom: 20px;
  object-fit: contain;
  object-position: left center;
}
.tk-footer-brand p {
  margin: 0;
  max-width: 330px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.75;
}
.tk-footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.tk-footer-title {
  margin-bottom: 8px;
  color: var(--tk-gold);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tk-footer-column > a {
  color: rgba(255,255,255,.86);
  font-size: 13px;
  line-height: 1.55;
}
.tk-footer-column > a:hover { color: var(--tk-gold); }
.tk-footer-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; color: var(--tk-gold) !important; font-weight: 600; }
.tk-footer-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  line-height: 1.55;
}
a.tk-footer-contact-link:hover { color: var(--tk-gold); }
.tk-contact-icon {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tk-gold);
  background: rgba(255,186,3,.10);
  border: 1px solid rgba(255,186,3,.25);
  border-radius: 50%;
}
.tk-contact-icon i { font-size: 14px; line-height: 1; }
.tk-footer-socials { display: flex; align-items: center; gap: 9px; margin-top: 22px; }
.tk-social-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tk-white);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
}
.tk-social-icon i { font-size: 15px; line-height: 1; }
.tk-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(13, 18, 45, .10);
}
.tk-footer-bottom-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
}

/* ---------- Global floating WhatsApp ---------- */
.tk-floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tk-navy);
  background: var(--tk-gradient-gold);
  border: 1px solid rgba(24,27,60,.10);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(24,27,60,.20);
}
.tk-floating-whatsapp:hover {
  color: var(--tk-navy);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(24,27,60,.24);
}
.tk-floating-whatsapp i { font-size: 24px; line-height: 1; }
.tk-floating-whatsapp::after {
  content: "WhatsApp";
  position: absolute;
  right: 64px;
  white-space: nowrap;
  padding: 7px 10px;
  color: var(--tk-white);
  background: var(--tk-navy);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity var(--tk-transition), transform var(--tk-transition);
}
.tk-floating-whatsapp:hover::after { opacity: 1; transform: translateX(0); }

/* ---------- Elementor/global helpers ---------- */
.elementor .tk-container { width: min(calc(100% - 40px), var(--tk-container)); }
.tk-elementor-section { padding-block: var(--tk-section-space); }
.tk-no-bottom-margin > :last-child { margin-bottom: 0 !important; }

/* ---------- Responsive: centralized here once ---------- */
@media (max-width: 1120px) {
  .tk-brand { min-width: 195px; }
  .tk-brand-image { width: 195px; }
  .tk-navigation, ul.tk-menu { gap: 17px; }
  .tk-header-cta { padding-inline: 16px; }
  .tk-mega-grid { gap: 22px; padding-inline: 26px; }
}

@media (max-width: 1024px) {
  .admin-bar .tk-site-header { top: 32px; }
  .tk-topbar { display: none; }
  .tk-navbar-inner { min-height: 76px; }
  .tk-brand { min-width: auto; }
  .tk-brand-image { width: 180px; max-height: 62px; }
  .tk-menu-toggle { display: flex; }

  .tk-navigation {
    position: fixed;
    inset: 0;
    z-index: 10001;
    width: 100vw;
    height: 100dvh;
    display: block;
    margin: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-100%);
    background: var(--tk-white);
    transition: transform 260ms cubic-bezier(.22,.61,.36,1), opacity 180ms ease, visibility 180ms ease;
  }
  .tk-navigation.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .tk-mobile-nav-head {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 22px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--tk-gold), var(--tk-navy-mid)) 1;
    background: var(--tk-white);
  }
  .tk-mobile-brand { display: inline-flex; align-items: center; }
  .tk-mobile-brand img { width: 172px; max-height: 58px; object-fit: contain; object-position: left center; }
  .tk-mobile-close {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--tk-navy);
    background: var(--tk-light-gray);
    border: 1px solid var(--tk-border);
    border-radius: 8px;
    cursor: pointer;
  }
  .tk-mobile-close:hover { color: var(--tk-navy); background: #FFF7DD; border-color: rgba(255,186,3,.42); }
  .tk-mobile-close i { font-size: 19px; line-height: 1; }

  .tk-mobile-nav-scroll {
    height: calc(100dvh - 78px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 22px 34px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFD 100%);
  }
  ul.tk-menu { display: block; }
  ul.tk-menu > li { border-bottom: 1px solid var(--tk-border); }
  .tk-menu > li > a,
  .tk-service-trigger > a {
    min-height: 52px;
    color: var(--tk-navy);
    font-size: 15px;
    font-weight: 600;
  }
  .tk-menu > li > a::after,
  .tk-service-trigger > a::after { display: none; }
  .tk-menu > li > a:hover,
  .tk-service-trigger > a:hover,
  .tk-menu a.is-current { color: var(--tk-gold-dark); }
  .tk-service-trigger { justify-content: space-between; }
  .tk-submenu-toggle {
    width: 42px;
    height: 42px;
    margin-left: 10px;
    color: var(--tk-navy);
    background: var(--tk-light-gray);
    border: 1px solid var(--tk-border);
    border-radius: 8px;
  }

  .tk-mega-menu {
    position: static;
    width: 100%;
    display: none;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .tk-has-mega-menu:hover .tk-mega-menu,
  .tk-has-mega-menu:focus-within .tk-mega-menu { display: none; transform: none; }
  .tk-has-mega-menu.is-open .tk-mega-menu { display: block; transform: none; }
  .tk-mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; padding: 8px 0 18px 14px; }
  .tk-mega-column { margin-top: 8px; }
  .tk-mega-title { color: var(--tk-gold-dark); }
  .tk-mega-column a { display: block; padding: 6px 0; color: var(--tk-text); font-size: 13px; }
  .tk-mega-column a:hover,
  .tk-mega-column a.is-current { color: var(--tk-gold-dark); transform: none; }
  .tk-mega-footer { padding: 12px 0 2px 14px; background: transparent; border-top: 1px solid var(--tk-border); }
  .tk-mega-footer a { color: var(--tk-navy); }

  .tk-header-cta { width: 100%; margin-top: 20px; }
  .tk-mobile-contact-panel {
    display: grid;
    gap: 8px;
    margin-top: 24px;
    padding: 18px;
    background: var(--tk-gradient-soft);
    border: 1px solid var(--tk-border);
    border-radius: var(--tk-radius-md);
  }
  .tk-mobile-contact-title {
    margin-bottom: 4px;
    color: var(--tk-navy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .tk-mobile-contact-panel a {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tk-text);
    font-size: 13px;
    font-weight: 600;
  }
  .tk-mobile-contact-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tk-navy);
    background: var(--tk-gradient-gold);
    border-radius: 50%;
  }

  .tk-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tk-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 782px) {
  .admin-bar .tk-site-header { top: 46px; }
  .admin-bar .tk-navigation { top: 46px; height: calc(100dvh - 46px); }
}

@media (max-width: 700px) {
  .tk-container { width: min(calc(100% - 30px), var(--tk-container)); }
  .tk-navbar-inner { min-height: 72px; }
  .tk-brand-image { width: 164px; max-height: 58px; }
  .tk-mobile-nav-head { min-height: 74px; padding-inline: 16px; }
  .tk-mobile-brand img { width: 160px; max-height: 55px; }
  .tk-mobile-nav-scroll { height: calc(100dvh - 74px); padding: 16px 16px 30px; }
  .tk-mega-grid { grid-template-columns: 1fr; gap: 12px; }
  .tk-grid-2, .tk-grid-3, .tk-grid-4 { grid-template-columns: 1fr; }
  .tk-footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .tk-footer-main { padding-block: 46px 40px; }
  .tk-footer-bottom-inner { min-height: auto; padding-block: 17px; flex-direction: column; align-items: flex-start; }
  .tk-floating-whatsapp { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .tk-floating-whatsapp::after { display: none; }
}

@media (max-width: 430px) {
  .tk-brand-image { width: 152px; }
  .tk-mobile-brand img { width: 150px; }
  .tk-footer-logo { width: 215px; }
}

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

/* ---------- v1.0.6 navigation refinement ---------- */
@media (min-width: 1025px) {
  .tk-navbar {
    background: linear-gradient(180deg, #FFFFFF 0%, #FCFDFE 100%);
    box-shadow: 0 8px 26px rgba(24, 27, 60, .045);
  }

  .tk-navbar::after {
    height: 2px;
    /*background: linear-gradient(90deg, #FFBA03 0%, #FFD35A 22%, #E9EDF6 48%, #263266 76%, #181B3C 100%);*/
    opacity: .95;
  }

  .tk-navbar-inner {
    width: min(calc(100% - 48px), 1320px);
    min-height: 82px;
    gap: 24px;
  }

  .tk-brand {
    min-width: 188px;
  }

  .tk-brand-image {
    width: 188px;
    max-height: 62px;
  }

  .tk-navigation {
    gap: 0;
    margin-left: auto;
  }

  .tk-mobile-nav-scroll {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  ul.tk-menu {
    gap: 3px;
    padding: 5px;
    border: 1px solid rgba(24, 27, 60, .07);
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(24, 27, 60, .025) 0%, rgba(255, 186, 3, .045) 100%);
  }

  .tk-menu > li > a {
    min-height: 42px;
    padding: 0 11px;
    border-radius: 9px;
  }

  .tk-service-trigger {
    min-height: 42px;
    padding-left: 11px;
    padding-right: 3px;
    border-radius: 9px;
  }

  .tk-service-trigger > a {
    min-height: 42px;
    padding: 0;
  }

  .tk-menu > li > a::after,
  .tk-service-trigger > a::after {
    display: none;
  }

  .tk-menu > li > a:hover,
  .tk-menu > li > a.is-current,
  .tk-service-trigger:hover {
    color: var(--tk-navy);
    background: linear-gradient(135deg, rgba(255, 186, 3, .13) 0%, rgba(255, 211, 90, .07) 100%);
  }

  .tk-service-trigger:hover > a,
  .tk-service-trigger:hover .tk-submenu-toggle,
  .tk-service-trigger > a.is-current {
    color: var(--tk-navy);
  }

  .tk-submenu-toggle {
    width: 30px;
    height: 30px;
    margin-left: 2px;
    color: #8A6700;
  }

  .tk-header-cta {
    min-height: 46px;
    margin-left: 2px;
    padding: 10px 18px;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(255, 186, 3, .22);
  }

  .tk-site-header.is-scrolled .tk-navbar-inner {
    min-height: 72px;
  }

  .tk-site-header.is-scrolled .tk-brand-image {
    width: 174px;
    max-height: 56px;
  }

  .tk-site-header.is-scrolled .tk-navbar-inner,
  .tk-site-header.is-scrolled .tk-brand-image {
    transition: min-height 180ms ease, width 180ms ease, max-height 180ms ease;
  }
}

.tk-topbar-contacts {
  gap: 14px;
}

.tk-topbar-whatsapp {
  padding: 5px 10px;
  color: #181B3C;
  background: var(--tk-gradient-gold);
  border-radius: 999px;
}

.tk-topbar-whatsapp:hover {
  color: #181B3C;
  transform: translateY(-1px);
}

.tk-topbar-whatsapp i {
  color: #181B3C;
}

@media (max-width: 1024px) {
  .tk-navigation {
    right: 0;
    left: auto;
    transform: translateX(100%);
  }

  .tk-navigation.is-open {
    transform: translateX(0);
  }

  .tk-mobile-nav-scroll {
    display: block;
  }

  .tk-menu-toggle {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF8E3 100%);
    border-color: rgba(255, 186, 3, .38);
    box-shadow: 0 8px 20px rgba(24, 27, 60, .08);
  }

  .tk-menu-toggle:hover {
    border-color: rgba(255, 186, 3, .70);
    box-shadow: 0 10px 24px rgba(24, 27, 60, .11);
  }
}

/* ---------- v1.0.6 focused refinements ---------- */
/* More prominent logo without changing the overall header balance. */
@media (min-width: 1025px) {
  .tk-brand {
    min-width: 232px;
  }

  .tk-brand-image {
    width: 350px;
    max-height: 90px;
  }

  .tk-site-header.is-scrolled .tk-brand-image {
    width: 210px;
    max-height: 64px;
  }

  /* Cleaner navigation: remove the boxed border around the menu group. */
  ul.tk-menu {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  /* Services mega menu opens only through click state, never by hover/focus. */
  .tk-has-mega-menu:hover .tk-mega-menu,
  .tk-has-mega-menu:focus-within .tk-mega-menu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px);
  }

  .tk-has-mega-menu.is-open .tk-mega-menu,
  .tk-has-mega-menu.is-open:hover .tk-mega-menu,
  .tk-has-mega-menu.is-open:focus-within .tk-mega-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .tk-service-trigger.is-open,
  .tk-has-mega-menu.is-open .tk-service-trigger {
    color: var(--tk-navy);
    background: linear-gradient(135deg, rgba(255,186,3,.13) 0%, rgba(255,211,90,.07) 100%);
  }
}

/* Official WhatsApp green is reserved for the global floating action only. */
.tk-floating-whatsapp {
  color: #FFFFFF;
  background: #25D366;
  border: 0;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .30);
}

.tk-floating-whatsapp:hover {
  color: #FFFFFF;
  background: #20BD5A;
  box-shadow: 0 16px 34px rgba(37, 211, 102, .38);
}

.tk-floating-whatsapp i {
  color: #FFFFFF;
}

.tk-floating-whatsapp::after {
  background: #128C7E;
}

@media (max-width: 1024px) {
  .tk-brand-image {
    width: 192px;
    max-height: 66px;
  }
}

@media (max-width: 700px) {
  .tk-brand-image {
    width: 182px;
    max-height: 62px;
  }
}

@media (max-width: 430px) {
  .tk-brand-image {
    width: 170px;
    max-height: 58px;
  }
}

/* ---------- v1.0.7 sticky navigation fix ---------- */
/* Use a fixed navbar after scroll instead of relying on position: sticky,
   which can be blocked by WordPress/block-theme ancestor overflow rules. */
.tk-site-header {
  position: relative;
  top: auto;
}

.tk-site-header.is-scrolled {
  padding-bottom: 72px;
}

.tk-site-header.is-scrolled .tk-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  width: 100%;
  box-shadow: 0 10px 30px rgba(24, 27, 60, .10);
  animation: tkNavIn 160ms ease-out both;
}

.admin-bar .tk-site-header.is-scrolled .tk-navbar {
  top: 32px;
}

@keyframes tkNavIn {
  from { transform: translateY(-8px); opacity: .96; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 1024px) {
  .tk-site-header.is-scrolled {
    padding-bottom: 76px;
  }
}

@media (max-width: 782px) {
  .admin-bar .tk-site-header.is-scrolled .tk-navbar {
    top: 46px;
  }
}

@media (max-width: 700px) {
  .tk-site-header.is-scrolled {
    padding-bottom: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tk-site-header.is-scrolled .tk-navbar {
    animation: none;
  }
}
