﻿/*
 * =============================================================================
 * WOOD SHOP — Main Stylesheet
 * =============================================================================
 * Same writing style as keramica:
 *   - Nest full child class names inside parents
 *   - Use & only for :hover, :focus, ::before, ::after, &.state
 *   - START / END section comments
 *
 * TABLE OF CONTENTS (Ctrl+F / Cmd+F: "SECTION NAME START"):
 *   1. Global & Variables     7. Hero               13. Trusted Brands
 *   2. Section Header         8. Categories         14. CTA Banner
 *   3. Buttons                9. Applications       15. Footer
 *   4. Social Icons          10. Why Choose Us      16. Swiper Sliders
 *   5. Header                11. About Us           17. Scroll to Top
 *   6. Offcanvas             12. Featured Products  18. RTL
 *   19. Inner Pages
 * =============================================================================
 */

/* ========== 1. GLOBAL & VARIABLES START ========== */
:root {
  --color-primary: #5a4128;
  --color-secondary: #5e8500;
  --color-brown-dark: #3b2a18;
  --color-brown-light: #b8956a;
  --color-brown-hover: #d4b896;
  --btn-gradient: linear-gradient(135deg, var(--color-brown-dark) 0%, var(--color-brown-light) 100%);
  --btn-gradient-hover: linear-gradient(135deg, var(--color-brown-light) 0%, var(--color-brown-hover) 100%);
  --primary-green: var(--color-secondary);
  --primary-green-dark: #5fa001;
  --primary-green-light: #8ed42a;
  --wood-cream: #faf8f4;
  --gold: var(--color-brown-light);
  --text-dark: #1b1c19;
  --text-muted: #4f453d;
  --text-light: #999999;
  --white: #ffffff;
  --border-color: #d2c4b9;
  --shadow-sm: 0 8px 32px rgba(90, 65, 40, 0.08);
  --shadow-md: 0 12px 40px rgba(90, 65, 40, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --font-family: "Almarai", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Baloo Bhaijaan 2", "Segoe UI", Georgia, "Times New Roman", serif;
  --transition: 0.3s ease;
  --green-glow: color-mix(in srgb, var(--color-secondary) 25%, transparent);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  text-align: start;
}

body {
  font-family: var(--font-family);

  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  text-align: start;
}

.num-ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

.footer-branch__addr .num-ltr {
  display: inline;
  unicode-bidi: embed;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.hero .hero-content h1,
.hero-mobile .hero-content h1 {
  font-family: var(--font-display);
}

::selection {
  background: color-mix(in srgb, var(--color-secondary) 18%, transparent);
  color: var(--text-dark);
}

::-webkit-scrollbar {
  width: 10px;
  background: var(--color-brown-light);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 10px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

.text-green {
  color: var(--color-secondary) !important;
}

/* ========== 1. GLOBAL & VARIABLES END ========== */

/* ========== 2. SECTION HEADER START ========== */
.section-header {
  z-index: 1;
  text-align: start;
}

.section-header__watermark {
  position: absolute;
  top: 50%;
  inset-inline-start: 0;
  transform: translateY(-60%);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  color: #bbbbbb;
  opacity: 0.3;
  white-space: nowrap;
  pointer-events: none;
  z-index: -1;
  user-select: none;
  display: none;
}

.section-header__tag {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 0.85px var(--color-secondary);
  paint-order: stroke fill;
  padding-bottom: 0.45rem;

  i {
    -webkit-text-stroke: 0;
    color: var(--color-secondary);
    font-size: 1.05em;
  }

  &::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 52px;
    height: 3px;
    border-radius: var(--radius-pill);
    background: linear-gradient(to left,
        var(--color-secondary),
        rgba(94, 133, 0, 0.08));
  }
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--color-primary);
  margin: 0;
  text-align: start;

  span {
    color: var(--color-secondary);
  }
}

.section-header__lead {
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 580px;
  text-align: start;
}

.section-header--start {
  .section-header__tag::after {
    inset-inline-start: 0;
    inset-inline-end: auto;
    left: auto;
    transform: none;
  }

  .section-header__lead {
    margin-inline: 0;
  }
}

.section-header--compact {
  .section-header__title {
    font-size: clamp(1.55rem, 3vw, 2.15rem);
  }

  .section-header__tag {
    font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  }
}

.section-header--center {
  text-align: center;

  .section-header__watermark {
    inset-inline-start: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
  }

  .section-header__title {
    text-align: center;
  }

  .section-header__inner {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
  }

  .section-header__tag {
    text-align: center;

    &::after {
      inset-inline-start: 50%;
      left: 50%;
      right: auto;
      transform: translateX(-50%);
      width: 76px;
      background: linear-gradient(to left,
          transparent,
          var(--color-secondary),
          transparent);
    }
  }

  .section-header__lead {
    margin-inline: auto;
    text-align: center;
  }
}

.section-categories,
.section-featured {
  .section-header__watermark {
    inset-inline-start: 0;
    transform: translateY(-60%);
  }
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
  text-align: start;
}

/* ========== 2. SECTION HEADER END ========== */

/* ========== 3. BUTTONS START ========== */
.theme-btn {
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 0;
  overflow: hidden;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 13px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  gap: 12px;
  width: fit-content;

  .btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--white);
    color: var(--color-primary);
    font-size: 0.95rem;
    transform: rotate(-45deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  &:hover {
    .btn-icon {
      transform: translateY(-3px) rotate(-45deg);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
  }
}

.btn-style-one {
  padding-block: 12px;
  padding-inline: 36px 12px;
  color: var(--white);
  border-radius: var(--radius-pill);
  background: var(--btn-gradient);

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom left;
    transform-origin: bottom inline-start;
    transition: transform 500ms cubic-bezier(0.86, 0, 0.07, 1);
    background: var(--btn-gradient-hover);
    border-radius: inherit;
  }

  &:hover {
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);

    &::before {
      transform: scaleY(1);
      transform-origin: top right;
      transform-origin: top inline-end;
    }
  }
}

.btn-outline-ws {
  padding: 13px 38px;
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  background: transparent;
  border: 2px solid var(--color-primary);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;

  &:hover {
    background-color: var(--color-primary);
    color: var(--white);
    transform: translateY(-2px);
  }
}

.btn-lang-nav {
  padding: 10px 22px !important;
  font-size: 13px !important;
  min-width: auto;
}

/* ========== 3. BUTTONS END ========== */
/* =============================================
   #                   LOADING                      #
   ============================================= */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;

  .loader-container {
    position: relative;
    width: 72px;
    height: 72px;
  }

  .pulse-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid color-mix(in srgb, var(--color-secondary) 25%, transparent);
    border-top-color: var(--color-secondary);
    animation: loaderSpin 0.7s linear infinite;
  }
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}
/* ========== 4. SOCIAL ICONS START ========== */
.social-icon {
  inset-inline-end: 0 !important;
  margin-inline-end: 16px;
  margin-bottom: 50px;
  width: fit-content;
  height: fit-content;

  a {
    background: var(--color-secondary) !important;
    color: var(--white);
    border: 2px solid var(--border-color);
    padding: 0.8rem;
    border-radius: 50px;
    margin: 0.5rem;
    text-decoration: none;
    width: 55px;
    height: 55px;
    font-size: 25px;
    transition: transform 0.3s ease;

    &:hover {
      background: var(--color-secondary) !important;
      color: var(--white);
      border-color: var(--border-color);
      transform: translateY(-5px) scale(1.05);
      filter: brightness(1.1);
    }
  }
}

/* ========== 4. SOCIAL ICONS END ========== */

/* ========== 5. HEADER & NAVIGATION START ========== */
@keyframes headerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header {
  position: relative;
  z-index: 1050;

  .navbar {
    z-index: 1050;
    transition: background 0.35s ease, box-shadow 0.35s ease;
    animation: headerSlideDown 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  &.fixed {
    .navbar {
      box-shadow: var(--shadow-md);
      background: var(--white) !important;
    }

    .desktop-nav {
      .nav-link {
        color: var(--color-primary) !important;

        &:hover,
        &.nav-link-active {
          color: var(--color-secondary) !important;
        }
      }
    }

    .navbar-toggler {
      i {
        color: var(--color-primary);
      }
    }

    .header-logo {
      img {
        filter: none;
        background: var(--color-brown-dark);
        border-radius: 8px;
        padding: 4px 8px;
      }
    }
  }
}

.header-col {
  z-index: 2;
}

.header-logo {
  z-index: 3;

  img {
    height: auto;
    object-fit: contain;
    transition: filter 0.3s ease, width 0.3s ease;
  }
}

.fixed-top {
  .desktop-nav {
    .nav-link {
      color: var(--white) !important;

      &:hover,
      &.nav-link-active {
        color: var(--color-secondary) !important;
      }
    }
  }

  .navbar-toggler,
  .navbar-toggler i {
    color: var(--white);
  }
}

.navbar {
  .desktop-nav {
    .nav-item {
      position: relative;
    }

    .nav-link {
      font-weight: 600;
      font-size: 1rem;
      line-height: 80px;
      padding: 0 14px !important;
      color: var(--white);
      white-space: nowrap;
    }

    .dropdown-menu {
      position: absolute !important;
      top: 100%;
      inset-inline-end: auto;
      inset-inline-start: 0;
      z-index: 1050;
      display: block !important;
      margin: 0;
      border: none;
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-md);
      padding: 8px 0;
      min-width: 240px;
      background: var(--white);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(8px);
      transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    .dropdown:hover>.dropdown-menu,
    .dropdown:focus-within>.dropdown-menu,
    .dropdown.show>.dropdown-menu {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0);
    }

    .dropdown-item {
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--color-primary);
      padding: 10px 18px;
      text-align: justify;
      white-space: normal;
      transition: background 0.25s ease, color 0.25s ease;

      &:hover,
      &:focus {
        background: color-mix(in srgb, var(--color-secondary) 12%, transparent);
        color: var(--color-secondary);
      }
    }

    .dropdown-submenu {
      position: relative;

      >.dropdown-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;

        &:after {
          display: none;
        }
      }

      >.dropdown-menu {
        top: 0;
        margin: 0;
        min-width: 220px;
        z-index: 1060;
        transform: translateY(4px);
      }

      &:hover>.dropdown-menu,
      &:focus-within>.dropdown-menu,
      &.show>.dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
      }
    }

    .dropdown-category-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      margin: 4px 8px 8px;
      padding: 10px 14px;
      border-radius: calc(var(--radius-md) - 4px);
      background: color-mix(in srgb, var(--color-secondary) 14%, transparent);
      color: var(--color-secondary);
      font-size: 0.88rem;
      font-weight: 700;
      text-decoration: none;
      white-space: normal;

      &:hover,
      &:focus {
        background: color-mix(in srgb, var(--color-secondary) 20%, transparent);
        color: var(--color-secondary);
      }
    }
  }
}

/* منتجات (يمين في RTL): القائمة الفرعية تفتح لليسار نحو المنتصف */
.header-nav-start {
  .dropdown-submenu {
    >.dropdown-menu {
      right: 100%;
      left: auto;
    }
  }
}

/* صور / ميديا (يسار في RTL): القائمة الفرعية تفتح لليمين نحو المنتصف */
.header-nav-end {
  .dropdown-menu {
    inset-inline-start: auto;
    inset-inline-end: 0;
  }

  .dropdown-submenu {
    >.dropdown-menu {
      left: auto;
      right: 100%;
    }

    >.dropdown-item {
      &::after {
        transform: scaleX(-1);
      }
    }
  }
}

.nav-link.dropdown-toggle {
  &::after {
    display: none;
  }
}

.header-search {
  position: relative;
  margin: 0;
  flex-shrink: 0;
  width: 200px;

  .header-search-input {
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 16px;
    padding-inline-end: 44px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    font-family: var(--font-family);
    font-size: 0.85rem;
    line-height: 1.2;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;

    &::-webkit-search-decoration,
    &::-webkit-search-cancel-button,
    &::-webkit-search-results-button,
    &::-webkit-search-results-decoration {
      display: none;
      -webkit-appearance: none;
    }

    &::placeholder {
      color: rgba(255, 255, 255, 0.72);
      opacity: 1;
    }

    &:hover {
      background: rgba(255, 255, 255, 0.22);
      border-color: rgba(255, 255, 255, 0.55);
    }

    &:focus {
      background: rgba(255, 255, 255, 0.97);
      border-color: rgba(255, 255, 255, 0.97);
      color: var(--color-primary);
      box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);

      &::placeholder {
        color: var(--text-muted);
      }
    }
  }

  .header-search-btn {
    position: absolute;
    inset-inline-end: 4px;
    inset-inline-start: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--btn-gradient);
    color: var(--white);
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;

    i {
      display: block;
      line-height: 1;
    }

    &:hover {
      transform: translateY(-50%) scale(1.06);
      box-shadow: 0 4px 14px rgba(59, 42, 24, 0.28);
      filter: brightness(1.05);
    }

    &:focus-visible {
      outline: 2px solid var(--color-secondary);
      outline-offset: 2px;
    }
  }
}

.header.fixed {
  .header-search-input {
    background: var(--wood-cream);
    border-color: var(--border-color);
    color: var(--color-primary);

    &::placeholder {
      color: var(--text-muted);
    }

    &:hover {
      background: var(--white);
      border-color: color-mix(in srgb, var(--color-primary) 25%, var(--border-color));
    }

    &:focus {
      background: var(--white);
      border-color: var(--color-secondary);
      box-shadow: 0 4px 16px rgba(59, 42, 24, 0.1);
    }
  }
}

.header-search--mobile {
  width: 100%;

  .header-search-input {
    width: 100%;
    background: var(--wood-cream);
    border-color: var(--border-color);
    color: var(--color-primary);

    &::placeholder {
      color: var(--text-muted);
    }

    &:hover,
    &:focus {
      width: 100%;
      background: var(--white);
      border-color: var(--color-secondary);
    }
  }
}

/* ========== 5. HEADER & NAVIGATION END ========== */

/* ========== 6. OFFCANVAS START ========== */
.offcanvas {
  .offcanvas-header {
    .navbar-brand {
      img {
        filter: none !important;
        background: var(--color-brown-dark);
        border-radius: 8px;
        padding: 6px 10px;
      }
    }
  }

  .offcanvas-body {
    .nav-link {
      text-align: justify !important;
      color: var(--color-primary) !important;
      transition: all 0.3s ease;
      font-size: 1rem;
      font-weight: 700;
      padding: 0.7rem 0.35rem;
      position: relative;
      z-index: 1;

      &:hover {
        color: var(--color-secondary) !important;
      }
    }
  }

  .list-contact {
    a {
      color: var(--text-dark);
      transition: all 0.3s ease;

      &:hover {
        font-weight: 700;
        color: var(--color-secondary);
      }
    }
  }
}

.mobile-accordion {
  .mobile-accordion__btn {
    background: transparent;
    border: none;
    cursor: pointer;

    i {
      font-size: 0.85rem;
      color: var(--color-secondary);
      transition: transform 0.25s ease;
    }

    &:not(.collapsed) {
      i {
        transform: rotate(180deg);
      }
    }
  }

  .mobile-accordion__menu {
    margin: 0 0 0.35rem;
    padding-block: 0.25rem 0.5rem;
    padding-inline: 0.75rem 0;
    border-inline-start: 2px solid rgba(94, 133, 0, 0.25);
    border-inline-end: 0;

    .dropdown-item {
      font-size: 0.92rem;
      font-weight: 600;
      color: var(--text-muted);
      padding: 0.55rem 0.75rem;
      border-radius: 8px;
      white-space: normal;

      &:hover,
      &:focus {
        background: rgba(94, 133, 0, 0.1);
        color: var(--color-secondary);
      }
    }

    .mobile-accordion__menu--nested {
      margin-top: 0.15rem;
      padding-inline-start: 0.5rem;
      border-inline-start-color: rgba(94, 133, 0, 0.15);

      .dropdown-item {
        font-size: 0.85rem;
        font-weight: 500;
      }
    }
  }
}

/* ========== 6. OFFCANVAS END ========== */

/* ========== 7. HERO START ========== */
.hero,
.hero-mobile {
  .swiper {
    color: var(--white);
  }

  .swiper-slide {
    overflow: hidden;
  }

  .overlay {
    inset: 0;
    z-index: 2;
    pointer-events: none;
  }

  .hero-slide-img {
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transform-origin: center center;
    will-change: transform;
  }

  .hero-content {
    top: 50%;
    transform: translateY(-50%) !important;
    pointer-events: none;
    color: var(--white);
    z-index:1;
  }

  .hero-text {
    pointer-events: auto;
  }

  .hero-eyebrow {
    position: relative;
    display: inline-block;
    color: var(--color-secondary);
    font-weight: 700;
    text-align: justify;




    &::before {
      content: "";
      position: absolute;
      inset-inline-end: auto;
      inset-inline-start: 0;
      bottom: 0;
      height: 2px;
      background: var(--color-secondary);
    }
  }

  .hero-content {
    h1 {
      font-weight: 800;
      text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    }

    .lead {
      line-height: 1.7;
      opacity: 0.92;
      margin-bottom: 0;
      text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    }
  }
}

@keyframes heroZoomIn {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.14);
  }
}

@keyframes heroZoomOut {
  from {
    transform: scale(1.14);
  }

  to {
    transform: scale(1);
  }
}

.hero {
  .swiper {
    height: 100vh;
    min-height: 560px;
  }

  .swiper-slide {
    height: 100vh;
  }

  .overlay {
    background: linear-gradient(-80deg,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.5) 42%,
        rgba(255, 255, 255, 0.05) 100%);
  }

  .hero-slide-img {
    transition: none;
  }

  .hero-slide-img.is-zoom-in {
    animation: heroZoomIn 5.5s ease-out forwards;
  }

  .hero-slide-img.is-zoom-out {
    animation: heroZoomOut 5.5s ease-out forwards;
  }

  .hero-content {
    padding-top: 80px;
  }

  .hero-eyebrow {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;

    &::before {
      width: 70px;
      inset-inline-start: 0;
    }
  }

  .hero-content {
    text-align: justify !important;

    h1 {
      font-size: clamp(2.25rem, 5vw, 4rem);
      margin-bottom: 1rem;
      line-height: 1.15;
    }

    .lead {
      font-size: clamp(1rem, 2vw, 1.2rem);
      max-width: 540px;
    }
  }

  .hero-btn-outline {
    border-color: rgba(255, 255, 255, 0.85);
    color: var(--white);
    background: transparent;

    &:hover {
      background: var(--white);
      color: var(--color-primary);
      border-color: var(--white);
    }
  }

  .hero-pagination {
    top: 50% !important;
    bottom: auto !important;
    inset-inline-end: 40px !important;
    inset-inline-start: auto !important;
    width: auto !important;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 12;
  }

  .swiper-pagination-bullet {
    background: transparent;
    opacity: 1;
    width: 4px;
    height: 40px;
    margin: 0 !important;
    transition: all 0.35s ease;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50px !important;
    cursor: pointer;
  }

  .swiper-pagination-bullet-active {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 4px var(--green-glow);
  }
}

@media (max-width: 767.98px) {
  .hero {
    .swiper {
      height: auto;
      min-height: 0;
    }

    .swiper-slide {
      height: 68vh;
      min-height: 420px;
      max-height: 580px;
    }

    .overlay {
      background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.25) 35%,
        rgba(0, 0, 0, 0.78) 100%
      );
    }

    .hero-content {
      align-items: flex-end !important;
      padding-top: 100px;
      padding-bottom: 2.75rem;
      text-align: start !important;

      h1 {
        font-size: clamp(1.55rem, 6.5vw, 2.1rem);
        margin-bottom: 0.65rem;
        line-height: 1.3;
      }

      .lead {
        font-size: 0.92rem;
        line-height: 1.65;
        max-width: 100%;
      }
    }

    .hero-eyebrow {
      font-size: 0.85rem;
      margin-bottom: 0.75rem;
      padding-bottom: 8px;

      &::before {
        width: 48px;
      }
    }

    .hero-actions .theme-btn {
      padding: 12px 20px;
      font-size: 0.88rem;
    }

    .hero-pagination {
      top: auto !important;
      bottom: 14px !important;
      inset-inline: 0 !important;
      width: 100% !important;
      transform: none;
      flex-direction: row;
      justify-content: center;
      gap: 8px;
    }

    .swiper-pagination-bullet {
      width: 10px;
      height: 10px;
      border-width: 1px;
    }
  }
}

.hero-mobile {
  .swiper {
    height: auto;
  }

  .swiper-slide {
    height: 72vh;
  
  }

  .overlay {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.25) 35%,
        rgba(0, 0, 0, 0.78) 100%);
  }

  .hero-slide-img {
    object-position: center center;
    transition: none;
  }

  .hero-slide-img.is-zoom-in {
    animation: heroZoomIn 5.5s ease-out forwards;
  }

  .hero-slide-img.is-zoom-out {
    animation: heroZoomOut 5.5s ease-out forwards;
  }

  .hero-content {
    align-items: flex-end !important;
    top: 35% !important;
    transform: translateY(0%) !important;
    padding-bottom: 3.25rem;

    h1 {
      font-size: clamp(1.55rem, 6.5vw, 2.1rem);
      margin-bottom: 0.65rem;
      line-height: 1.3;
    }

    .lead {
      font-size: 0.92rem;
      line-height: 1.65;
      max-width: 100%;
    }
  }

  .hero-eyebrow {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    padding-bottom: 8px;

    &::before {
      width: 48px;
    }
  }

  .hero-actions {
    .theme-btn {
      padding: 12px 20px;
      font-size: 0.88rem;
    }
  }

  .hero-pagination-mobile {
    bottom: 14px !important;
    top: auto !important;
    inset-inline: 0 !important;
    width: 100% !important;
    transform: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    z-index: 12;
  }

  .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
    width: 8px;
    height: 8px;
    margin: 0 !important;
    transition: all 0.3s ease;
    border: none;
    border-radius: 50px !important;
    cursor: pointer;
  }

  .swiper-pagination-bullet-active {
    width: 26px;
    background: var(--color-secondary);
    box-shadow: 0 0 0 3px var(--green-glow);
  }
}

/* ========== 7. HERO END ========== */

/* ========== 8. CATEGORIES START ========== */
.section-categories {
  background: var(--wood-cream);
}

.categories-slider-wrap {
  .categoriesSwiper {
    overflow: hidden;
    padding-bottom: 4px;

    .swiper-slide {
      height: auto;
    }
  }

  .categories-nav-btn {
    position: absolute;
    top: 42%;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(90, 65, 40, 0.16);
    border-radius: 50%;
    background: var(--white);
    color: var(--color-primary);
    box-shadow: 0 8px 22px rgba(59, 42, 24, 0.12);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;

    &:hover {
      background: var(--color-primary);
      color: var(--white);
      transform: scale(1.05);
    }
  }

  .categories-prev {
    inset-inline-start: -6px;
  }

  .categories-next {
    inset-inline-end: -6px;
  }

  .categories-pagination {
    position: static !important;
    width: auto !important;
    display: flex;
    justify-content: center;
    gap: 8px;

    .swiper-pagination-bullet {
      width: 10px;
      height: 10px;
      margin: 0 !important;
      background: rgba(90, 65, 40, 0.25);
      opacity: 1;
      transition: width 0.35s ease, background 0.35s ease;
    }

    .swiper-pagination-bullet-active {
      width: 28px;
      border-radius: var(--radius-pill);
      background: var(--color-primary);
    }
  }
}

.category-card {
  transition: transform var(--transition);
  border-radius: 18px;
  overflow: hidden;

  &:hover {
    transform: translateY(-8px);

    .category-card-inner {
      box-shadow: 0 16px 44px rgba(90, 65, 40, 0.12);
    }

    .category-card-img {
      transform: scale(1.06);
    }

    .category-card-btn {
      transform: translateY(0) rotate(-90deg);
      box-shadow: 0 10px 24px rgba(59, 42, 24, 0.28);
    }
  }

  .category-card-inner {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 10px 36px rgba(90, 65, 40, 0.08);
    color: inherit;
    transition: box-shadow var(--transition);
    overflow: hidden !important;
  }

  .category-card-media {
    position: relative;
    height: 290px;
    border-radius: 18px;
    overflow: hidden !important;
  }

  .category-card-img {
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s ease;
  }

  .category-card-badge {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid rgba(210, 196, 185, 0.9);
    color: var(--color-primary);
    font-size: 1.05rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    z-index: 2;
  }

  .category-card-body {
    text-align: justify;
    position: absolute;
    bottom: 0;
    padding: 35px 18px 45px;
    width: 100%;
    z-index: 1;
    overflow: hidden;
    border-radius: 24px;

    &::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 60%, rgba(0, 0, 0, 0.7) 100%);
      z-index: -1;
      opacity: 0.5;
      border-radius: 18px;
    }

    &::before {
      content: "";
      position: absolute;
      inset-inline-end: -1px;
      bottom: -1px;
      width: 70px;
      height: 70px;
      background: var(--wood-cream);
      border-start-start-radius: 100%;
      z-index: 1;
    }

    h3 {
      /* margin: 0 0 8px; */
      font-family: var(--font-display);
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--white);
      line-height: 1.35;
      text-align: center;
    }

    p {
      margin: 0;
      font-size: 0.82rem;
      line-height: 1.65;
      color: var(--white);
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
  }

  .category-card-btn {
    position: absolute;
    inset-inline-end: 5px;
    bottom: 8px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--btn-gradient);
    color: var(--white);
    font-size: 1rem;
    box-shadow: 0 6px 18px rgba(59, 42, 24, 0.22);
    transform: rotate(-45deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
}

/* ========== 8. CATEGORIES END ========== */

/* ========== 9. APPLICATIONS START ========== */
.section-applications{
  background: var(--wood-cream);
}
.application-item {
  &:hover {
    .application-img {
      border-color: var(--primary-green);
      transform: scale(1.03);
    }
  }

  h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
  }
}

.application-img {
  max-width: 250px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--border-color);
  transition: border-color var(--transition), transform var(--transition);

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* ========== 9. APPLICATIONS END ========== */

/* ========== 10. WHY CHOOSE US START ========== */
.section-why {
  position: relative;
  z-index: 1;

  background: var(--wood-cream);
}

.why-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform var(--transition), box-shadow var(--transition);

  &:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }

  p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
  }
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--primary-green);
  font-size: 1.25rem;
}

.why-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-green);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

/* ========== 10. WHY CHOOSE US END ========== */

/* ========== 11. ABOUT US START ========== */
.section-about {
  overflow: hidden;
}

.about-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-align: start;
}

.about-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 480px;
  text-align: start;
}

.about-image-wrap {
  border-radius: 80px;
}

.about-image {
  height: 350px;
  object-fit: cover;
}

/* ========== 11. ABOUT US END ========== */

/* ========== 12. FEATURED PRODUCTS START ========== */
.section-featured {
  position: relative;
  z-index: 1;
  
}
.featuredSwiper {
  .swiper-slide {
    height: auto;
  }
}

.featured-product-card {
  color: inherit;
  border-radius: 20px;

  &:hover {
    .featured-product-img {
      img {
        transform: scale(1.08);
      }

      &::after {
        opacity: 0.95;
      }
    }
  }
}

.featured-product-img {
  height: 270px;
  background: #1a1a1a;
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.45) 32%,
        rgba(0, 0, 0, 0.08) 58%,
        transparent 72%);
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s ease;
  }
}

.featured-product-name {
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 28px 18px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Corner ribbon badge */
.featured-ribbon {
  position: absolute;
  top: 1.15rem;
  inset-inline-start: -2.35rem;
  z-index: 3;
  width: 11.5rem;
  margin: 0;
  padding: 0.55rem 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: var(--white);
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  background: linear-gradient(180deg,
      #78a30a 0%,
      var(--color-secondary) 48%,
      #4a6b00 100%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  transform: rotate(45deg);
  transform-origin: center;
  overflow: hidden;

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        transparent 35%,
        rgba(255, 255, 255, 0.28) 50%,
        transparent 65%);
    animation: featured-ribbon-shine 3.8s ease-in-out infinite;
    pointer-events: none;
  }

  &::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
  }
}

@keyframes featured-ribbon-shine {

  0%,
  55% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

.featured-product-card:hover {
  .featured-ribbon {
    filter: brightness(1.06);
  }
}

.featured-nav-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--text-dark);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  font-size: 1.1rem;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease, color 0.25s ease;

  &:hover {
    color: var(--primary-green);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16);
    transform: translateY(-50%) scale(1.05);
  }

  &.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
  }
}

.featured-prev {
  inset-inline-start: -10px;
  inset-inline-end: auto;
}

.featured-next {
  inset-inline-end: -10px;
  inset-inline-start: auto;
}

/* ========== 12. FEATURED PRODUCTS END ========== */

/* ========== 13. TRUSTED BRANDS START ========== */
.partnersSwiper {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;

  .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 88px;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: filter 0.3s ease, opacity 0.3s ease;
    border-inline-end: 1px solid var(--border-color);

    &:last-child {
      border-inline-end: none;
    }

    &:hover {
      filter: grayscale(0%);
      opacity: 1;
    }
  }
}

.partner-logo {
  display: block;
  width: auto;
  max-width: 140px;
  max-height: 64px;
  height: auto;
  object-fit: contain;
}

/* ========== 13. TRUSTED BRANDS END ========== */

/* ========== 14. CTA BANNER START ========== */
.cta-banner {
  border-radius: var(--radius-xl);
  /* height: 60vh; */
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
}

.cta-desc {
  font-size: 1rem;
  color: var(--white);
  text-align: justify;
}

/* ========== 14. CTA BANNER END ========== */

/* ========== 15. FOOTER START ========== */
.site-footer {
  position: relative;
  z-index: 1;

  color: var(--white);
  overflow: hidden;

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: #000;
    opacity: 0.5;
  }

  >* {
    position: relative;
    z-index: 1;
  }
}

.footer-hotline,
.footer-bottom {
  gap: 1rem 2rem;
  padding: 1.1rem 1.5rem;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-hotline {
  margin: 0 0 2.25rem;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  text-align: center;

  .footer-hotline__label {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: var(--white);

    i {
      color: var(--primary-green-light);
      font-size: 1.2rem;
    }
  }

  .footer-hotline__phones {
    gap: 0.55rem 0.85rem;

    a {
      gap: 0.4rem;
      padding: 0.45rem 0.9rem;
      border-radius: var(--radius-pill);
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: var(--white);
      font-size: 0.92rem;
      font-weight: 600;

      .num-ltr {
        direction: ltr;
        unicode-bidi: isolate;
        display: inline-block;
      }
      transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition);

      i {
        color: var(--primary-green-light);
        font-size: 0.85rem;
      }

      &:hover {
        background: var(--color-secondary);
        border-color: var(--color-secondary);
        color: var(--white);
        transform: translateY(-2px);

        i {
          color: var(--white);
        }
      }
    }
  }
}

.footer-logo {
  width: 200px;
  height: auto;
  transition: transform var(--transition);
}

.footer-brand {
  &:hover {
    .footer-logo {
      transform: scale(1.04);
    }
  }
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.25rem;
  max-width: 340px;
  text-align: justify;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.35rem;
  position: relative;
  padding-bottom: 0.7rem;
  text-align: start;

  &::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 40px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: var(--radius-pill);
  }
}

.footer-heading--spacer {
  visibility: hidden;
  pointer-events: none;
  text-align: justify;

  &::after {
    display: none;
  }
}

.footer-branch {
  li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: start;

    &:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: none;
    }
  }

  .footer-branch__name {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-green-light);
    margin-bottom: 0.4rem;
    text-align: start;
  }

  .footer-branch__addr {
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.55;
    margin-bottom: 0.45rem;
    text-align: start;

    i {
      color: var(--color-secondary);
      font-size: 0.9rem;
      margin-top: 0.15rem;
      flex-shrink: 0;
    }

    .num-ltr {
      display: inline;
      unicode-bidi: embed;
    }
  }

  .footer-branch__phones {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
    padding-inline-start: 1.3rem;
    text-align: start;

    a {
      font-size: 0.85rem;
      color: rgba(255, 255, 255, 0.82);
      transition: color var(--transition);
      direction: ltr;
      unicode-bidi: isolate;
      display: block;
      width: fit-content;
      max-width: 100%;
      text-align: left;

      &:hover {
        color: var(--primary-green-light);
      }
    }
  }
}

.footer-social {
  margin-top: 0.25rem;

  a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--white);
    font-size: 0.95rem;
    transition:
      background var(--transition),
      border-color var(--transition),
      transform var(--transition);

    &:hover {
      background: var(--color-secondary);
      border-color: var(--color-secondary);
      transform: translateY(-3px);
      color: var(--white);
    }
  }
}

.footer-bottom {
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;

  .footer-bottom__copy {
    font-size: 0.85rem;
    opacity: 0.88;
  }

  .footer-bottom__social {
    a {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: var(--white);
      font-size: 0.8rem;
      transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition);

      &:hover {
        background: var(--color-secondary);
        border-color: var(--color-secondary);
        color: var(--white);
      }
    }
  }
}

/* ========== 15. FOOTER END ========== */

/* ========== 16. SWIPER SLIDERS START ========== */
.applicationsSwiper {
  overflow: visible;

  .swiper-slide {
    height: auto;
  }
}

.ws-slider-footer {
  .swiper-pagination {
    position: static !important;
    width: auto !important;
    gap: 8px;
  }

  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 !important;
    background: rgba(90, 65, 40, 0.25);
    opacity: 1;
    transition: width 0.35s ease, background 0.35s ease;
  }

  .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
  }
}

.ws-nav-btn {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(90, 65, 40, 0.18);
  border-radius: 50%;
  background: var(--white);
  color: var(--color-primary);
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;

  &:hover {
    background: var(--color-primary);
    color: var(--white);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(90, 65, 40, 0.2);
  }

  &.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
    transform: none;
    box-shadow: none;
  }
}

/* ========== 16. SWIPER SLIDERS END ========== */

/* ========== 17. SCROLL TO TOP START ========== */
.scroll-top-btn {
  position: fixed;
  bottom: 80px;
  inset-inline-start: 1.5rem;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--color-secondary);
  border: 2px solid var(--border-color) !important;
  color: var(--white);
  border: none;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
  z-index: 1020;
  cursor: pointer;

  &.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  &:hover {
    background: var(--primary-green-dark);
  }
}

/* ========== 17. SCROLL TO TOP END ========== */

/* ========== 18. DIRECTION (LTR / RTL) START ========== */
/*
 * Base layout uses logical properties (inset-inline-*, margin-inline-*,
 * padding-inline-*, border-inline-*, text-align: start) so Arabic (rtl)
 * and English (ltr) both work from dir="rtl" / dir="ltr" on <html>.
 */
[dir="ltr"] {
  .btn-style-one {
    padding-inline: 12px 36px;
  }

  .theme-btn {
    .btn-icon {
      transform: rotate(45deg);
    }

    &:hover {
      .btn-icon {
        transform: translateY(-3px) rotate(45deg);
      }
    }
  }

  .category-card {
    .category-card-btn {
      transform: rotate(45deg);
    }

    &:hover {
      .category-card-btn {
        transform: translateY(0) rotate(90deg);
      }
    }
  }

  .contact-map-card {
    .contact-map-card__btn {
      transform: rotate(45deg);
    }

    &:hover {
      .contact-map-card__btn {
        transform: translateY(0) rotate(90deg);
      }
    }
  }

  .product-type-item {
    .product-type-item__arrow {
      i {
        transform: rotate(45deg);
      }
    }
  }

  .branch-rail__item {
    &:hover {
      transform: translateX(4px);
    }

    &.active {
      .branch-rail__arrow {
        transform: translateX(2px);
      }
    }
  }

  .hero {
    .overlay {
      background: linear-gradient(80deg,
          rgba(0, 0, 0, 0.78) 0%,
          rgba(0, 0, 0, 0.5) 42%,
          rgba(255, 255, 255, 0.05) 100%);
    }
  }

  /* Start-side nav (Products in LTR = left): open flyouts to the right */
  .header-nav-start {
    .dropdown-submenu {
      >.dropdown-menu {
        left: 100%;
        right: auto;
      }

      >.dropdown-item {
        &::after {
          transform: none;
        }
      }
    }
  }

  /* End-side nav (Photos/Media in LTR = right): open flyouts toward center */
  .header-nav-end {
    .dropdown-submenu {
      >.dropdown-menu {
        right: 100%;
        left: auto;
      }

      >.dropdown-item {
        &::after {
          transform: scaleX(-1);
        }
      }
    }
  }

  .header .dropdown-toggle {
    .bi-chevron-left {
      display: inline-block;
      transform: scaleX(-1);
    }
  }
}

/* ========== 18. DIRECTION (LTR / RTL) END ========== */

/* ========== 19. INNER PAGES (page hero) START ========== */
.page-hero {
  height: 50vh;

  padding-bottom: 32px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;

  .overlay {
    inset: 0;
    background: rgba(27, 28, 25, 0.58);
    z-index: 0;
  }

  .container {
    z-index: 1;
  }

  .breadcrumb {
    margin-bottom: 12px;
  }

  .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;

    &:hover {
      color: var(--white);
    }
  }

  .breadcrumb-item.active {
    color: var(--white);
    font-weight: 600;

  }

  .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
    float: none;
    padding-inline-end: 10px;
  }

  .page-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--white);
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);

  }
}

/* ========== 19. INNER PAGES END ========== */

/* ========== 20. PRODUCTS PAGES START ========== */
.product-detail-section {
  background: var(--white);
}

.product-detail-media {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.product-detail-zoom {
  cursor: zoom-in;
}

.product-detail-main-img {
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

.product-detail-main-link {
  cursor: zoom-in;
  text-decoration: none;
}

.product-detail-thumb-link {
  display: block;
  width: 72px;
  height: 72px;
  cursor: zoom-in;
  border: 2px solid transparent;
  transition: border-color var(--transition), opacity var(--transition);
}

.product-detail-thumb-link:hover {
  border-color: var(--color-secondary);
  opacity: 0.95;
}

.product-thumb {
  height: 85px;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity var(--transition), box-shadow var(--transition);

  img {
    border-radius: 12px;
  }

  &:hover,
  &.is-active {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--color-secondary);
  }
}

.product-detail-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.product-detail-subtitle {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 1.5rem 0 0.85rem;
}

.product-detail-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  text-align: start;
}

.product-detail-body {
  .elementor-section {
    margin-bottom: 1.5rem;
  }

  .elementor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    align-items: flex-start;
  }

  .elementor-column {
    flex: 1 1 100%;
    min-width: 0;
  }

  .elementor-col-50 {
    flex: 1 1 100%;
  }

  .elementor-widget-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .elementor-widget-heading + .elementor-widget-heading .elementor-heading-title {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: lowercase;
  }

  .elementor-heading-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--color-secondary);
    margin: 0;
    line-height: 1.2;
  }

  .description,
  .elementor-widget-text-editor {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.8;
  }

  ul.detail-content.icons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
  }

  ul.detail-content.icons li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
    padding: 0;
    border: 0;
  }

  ul.detail-content.icons li i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border: 1px solid #1f1f1f;
    border-radius: 50%;
    font-style: normal;
    flex-shrink: 0;
  }

  ul.detail-content.icons li svg {
    width: 42px;
    height: 42px;
    display: block;
  }

  .icon_description {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-dark);
    max-width: 9rem;
  }

  .products-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.95rem;
  }

  .products-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
  }

  .products-table tr:nth-child(even) td {
    background: #f7f7f7;
  }

  .products-table tr td:first-child {
    color: var(--text-muted);
    width: 42%;
  }

  .products-table tr td:last-child {
    color: var(--text-dark);
  }

  .products-table strong {
    font-weight: 700;
    color: var(--text-dark);
  }

  .elementor-widget-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
  }

  .elementor-spacer,
  .elementor-widget-spacer {
    display: none;
  }

  > .elementor > section.elementor-section:first-child {
    display: none;
  }
}

/* Flat selectors — icon grid sizing (must not rely on nesting for SVG bounds) */
.product-detail-body ul.detail-content.icons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.product-detail-body ul.detail-content.icons li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 0;
  border: 0;
  list-style: none;
}

.product-detail-body ul.detail-content.icons li > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  min-width: 82px;
  max-width: 82px;
  min-height: 82px;
  max-height: 82px;
  overflow: hidden;
  border: 1px solid #1f1f1f;
  border-radius: 50%;
  font-style: normal;
  flex-shrink: 0;
  box-sizing: border-box;
}

.product-detail-body ul.detail-content.icons li > i > svg {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  min-width: 0;
  flex: 0 0 auto;
  display: block;
}

.product-detail-body .icon_description {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-dark);
  max-width: 9rem;
}

.product-detail-body .products-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.25rem;
  font-size: 0.88rem;
}

.product-detail-body .products-table td {
  padding: 0.55rem 0.75rem;
  border: 1px solid #e6e6e6;
  vertical-align: middle;
}

.product-detail-body .products-table tr:nth-child(odd) td {
  background: #f3f3f3;
}

.product-detail-body .products-table tr:nth-child(even) td {
  background: #fff;
}

.product-detail-body .products-table tr td:first-child {
  color: #8f8f8f;
  font-weight: 400;
  width: 40%;
}

.product-detail-body .products-table tr td:last-child {
  color: #2f2f2f;
}

.product-detail-body .products-table strong {
  font-weight: 700;
  color: #2f2f2f;
}

.product-detail-body .elementor-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  align-items: flex-start;
}

.product-detail-body .elementor-column,
.product-detail-body .elementor-col-50 {
  flex: 1 1 100%;
  min-width: 0;
}

.product-detail-body .elementor-col-50 > .elementor-widget-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-detail-body .elementor-col-50:first-child > .elementor-widget-wrap {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
}

.product-detail-body .elementor-widget-heading.elementor-widget__width-auto {
  width: auto;
  flex: 0 0 auto;
}

.product-detail-body .elementor-widget-text-editor,
.product-detail-body .elementor-widget-html {
  flex: 1 1 100%;
  width: 100%;
}

.product-detail-body .elementor-col-50:first-child .elementor-heading-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--color-secondary);
  margin: 0;
  line-height: 1.1;
  text-transform: lowercase;
}

.product-detail-body .elementor-col-50:first-child .elementor-widget-heading + .elementor-widget-heading .elementor-heading-title {
  font-family: var(--font-body, "Almarai", sans-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: #9a9a9a;
  text-transform: lowercase;
}

.product-detail-body .description {
  font-size: 0.92rem;
  color: #8a8a8a;
  line-height: 1.75;
  margin-top: 0.25rem;
}

.product-detail-body .tabmenu-content {
  display: none;
}

.product-detail-body .elementor-col-50:last-child .elementor-widget-text-editor:first-of-type {
  font-size: 0.78rem;
  line-height: 1.65;
  color: #9a9a9a;
}

.product-detail-body .elementor-col-50:last-child .elementor-heading-title {
  font-family: var(--font-body, "Almarai", sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #3f3f3f;
  margin: 0.5rem 0 0.25rem;
}

.product-detail-body .elementor-heading-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--color-secondary);
  margin: 0;
  line-height: 1.2;
}

.product-detail-body .description,
.product-detail-body .elementor-widget-text-editor {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.product-detail-body > .elementor > section.elementor-section:first-child {
  display: none;
}

.product-detail-related .product-types-sidebar {
  position: static;
  top: auto;
  background: transparent;
  border: 0;
  padding: 0;
}

.product-detail-hero .product-detail-main-img {
  max-height: 520px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .product-detail-body ul.detail-content.icons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .product-detail-body .elementor-col-50 {
    flex: 0 0 calc(50% - 1.25rem);
    max-width: calc(50% - 1.25rem);
  }

  .product-detail-body ul.detail-content.icons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .product-detail-body ul.detail-content.icons {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Collection category pages (e.g. HPL Stone Story) */
.category-collection-section {
  background: var(--white);
}

.category-collection-body {
  max-width: 1200px;
  margin: 0 auto;
}

.category-collection-body .elementor-section {
  margin-bottom: 1.5rem;
}

.category-collection-body .elementor-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: flex-start;
}

.category-collection-body .elementor-column,
.category-collection-body .elementor-col-50 {
  flex: 1 1 100%;
  min-width: 0;
}

.category-collection-body .elementor-widget-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.category-collection-body .elementor-widget-image img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 2rem;
}

.category-collection-body .elementor-col-100 .elementor-widget-text-editor,
.category-collection-body .tac .elementor-widget-text-editor,
.category-collection-body .cz_title.tac .cz_wpe_content {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.category-collection-body .elementor-widget-text-editor,
.category-collection-body .cz_wpe_content {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.category-collection-body .elementor-widget-text-editor p,
.category-collection-body .cz_wpe_content p {
  margin-bottom: 1rem;
}

.category-collection-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
  font-size: 0.92rem;
}

.category-collection-body table td,
.category-collection-body table th {
  border: 1px solid #e4e4e4;
  padding: 0.7rem 0.85rem;
  vertical-align: top;
  color: #4a4a4a;
}

.category-collection-body table tr:first-child td,
.category-collection-body table tr:first-child th {
  background: #f3f3f3;
  font-weight: 700;
  color: var(--color-primary);
}

.category-collection-body table tr:nth-child(even) td {
  background: #fafafa;
}

.category-collection-body .cz_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0 auto;
}

.category-collection-body .cz_grid_item.cz_grid_first {
  display: none;
}

.category-collection-body .cz_grid_item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.category-collection-body .cz_grid_link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: zoom-in;
}

.category-collection-body .cz_grid_link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.category-collection-body .cz_grid_link:hover img {
  transform: scale(1.04);
}

.category-collection-body .cz_grid_details {
  position: absolute;
  left: 50%;
  text-align: center;
  pointer-events: none;
}

.category-collection-body .cz_grid_details:has(h5:not(:empty)) {
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 1.5rem);
  max-width: 100%;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.45rem 0.65rem;
}

.category-collection-body .cz_grid_details h5 {
  margin: 0;
  font-family: var(--font-body, "Almarai", sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  text-transform: none;
  letter-spacing: 0.01em;
}

.category-collection-body .cz_grid_details:has(.cz_grid_icon),
.category-collection-body .cz_grid_details:has(.fa-search) {
  top: auto;
  bottom: 0.85rem;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.category-collection-body .cz_grid_details .cz_grid_icon,
.category-collection-body .cz_grid_details .fa-search {
  color: var(--color-primary);
  font-size: 0;
  line-height: 1;
  width: 1rem;
  height: 1rem;
  display: inline-block;
}

.category-collection-body .cz_grid_details .cz_grid_icon::before,
.category-collection-body .cz_grid_details .fa-search::before {
  font-family: "bootstrap-icons";
  content: "\f52a";
  font-size: 1rem;
  color: var(--color-primary);
  font-style: normal;
  font-weight: normal;
}

@media (min-width: 576px) {
  .category-collection-body .cz_grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }
}

@media (min-width: 992px) {
  .category-collection-body .elementor-col-50 {
    flex: 0 0 calc(50% - 1.25rem);
    max-width: calc(50% - 1.25rem);
  }

  .category-collection-body .cz_grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .category-collection-body .cz_grid_details h5 {
    font-size: 0.78rem;
  }
}

.category-collection-intro {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #5a5a5a;
}

.product-detail-list {
  li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.55rem 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);

    &:last-child {
      border-bottom: none;
    }

    i {
      color: var(--color-secondary);
      font-size: 1.15rem;
      flex-shrink: 0;
      margin-top: 0.1rem;
    }
  }
}

.product-types-sidebar {
  background: var(--wood-cream, #f7f3ee);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem 1.5rem;
  position: sticky;
  top: 110px;

  .product-types-sidebar__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.35rem;
  }

  .product-types-sidebar__lead {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
  }
}

.product-type-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);

  &:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--color-secondary);

    .product-type-item__arrow {
      background: var(--color-secondary);
      color: var(--white);
    }

    .product-type-item__title {
      color: var(--color-secondary);
    }
  }

  .product-type-item__media {
    width: 68px;
    height: 68px;
    border-radius: 12px;

    img {
      object-fit: cover;
      display: block;
    }
  }

  .product-type-item__title {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.35;
    margin-bottom: 0.2rem;
    transition: color var(--transition);
  }

  .product-type-item__desc {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
  }

  .product-type-item__arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--wood-cream, #f7f3ee);
    color: var(--color-primary);
    font-size: 0.85rem;
    transition: background var(--transition), color var(--transition);

    i {
      transform: rotate(-45deg);
    }
  }
}

/* ========== 20. PRODUCTS PAGES END ========== */

/* ========== 21. GALLERY PAGES START ========== */
.section-gallery {
  background: var(--wood-cream);
}

.ws-gallery-item {
  position: relative;
  height: 440px;
  border-radius: var(--radius-md);
  background: #1a1a1a;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);

  .ws-gallery-item__img {
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s ease;
  }

  .ws-gallery-item__zoom {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: color-mix(in srgb, var(--color-primary) 45%, transparent);
    color: var(--white);
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition);
  }

  &:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);

    .ws-gallery-item__img {
      transform: scale(1.08);
    }

    .ws-gallery-item__zoom {
      opacity: 1;
    }
  }
}

/* ========== 21. GALLERY PAGES END ========== */

/* ========== 22. VIDEOS PAGES START ========== */
.section-videos {
  background: var(--wood-cream);
}

.ws-video-card {
  border-radius: var(--radius-lg);
  background: #111;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform var(--transition), box-shadow var(--transition);

  &:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }

  .ws-video-card__frame {
    border-radius: inherit;

    iframe {
      border: 0;
      width: 100%;
      height: 100%;
    }
  }
}

/* ========== 22. VIDEOS PAGES END ========== */

/* ========== 23. CONTACT PAGE START ========== */
.contact-hotlines {
  background: linear-gradient(120deg,
      color-mix(in srgb, var(--color-primary) 92%, #000) 0%,
      var(--color-primary) 45%,
      color-mix(in srgb, var(--color-secondary) 35%, var(--color-primary)) 100%);
  color: var(--white);
}

.contact-hotline-strip__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-secondary) 85%, #fff);
  color: var(--white);
  font-size: 1.45rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact-hotline-strip__tag {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0.15rem;
}

.contact-hotline-strip__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
}

.contact-phone-chip {
  background: color-mix(in srgb, var(--white) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--white) 28%, transparent);
  color: var(--white);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);

  &:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--white);
    transform: translateY(-2px);
  }

  i {
    font-size: 0.95rem;
  }
}

.contact-phone-chip--wa {
  background: #25d366;
  border-color: #25d366;
  color: var(--white);

  &:hover {
    background: #1ebe57;
    border-color: #1ebe57;
  }
}

.section-contact {
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--color-secondary) 12%, transparent), transparent 42%),
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--color-primary) 10%, transparent), transparent 40%),
    var(--wood-cream);
}

.branch-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-inline-start: 0.85rem;

  &::before {
    content: "";
    position: absolute;
    inset-inline-start: 1.55rem;
    top: 1.1rem;
    bottom: 1.1rem;
    width: 2px;
    background: linear-gradient(to bottom,
        color-mix(in srgb, var(--color-secondary) 70%, transparent),
        color-mix(in srgb, var(--color-primary) 25%, transparent));
  }

  .nav-item {
    width: 100%;
  }

  /* Reset Bootstrap nav-link / nav-pills — keep original branch-rail look */
  .nav-link.branch-rail__item {
    --bs-nav-link-padding-x: 0.95rem;
    --bs-nav-link-padding-y: 0.85rem;
    --bs-nav-link-color: inherit;
    --bs-nav-link-hover-color: inherit;
    --bs-nav-pills-border-radius: 18px;
    --bs-nav-pills-link-active-color: inherit;
    --bs-nav-pills-link-active-bg: var(--white);
    margin: 0;
    border-radius: 18px;
    font-weight: inherit;
    text-decoration: none;
    box-shadow: none;
  }
}

.branch-rail__item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: start;
  border: 1px solid var(--border-color) !important;
  background: color-mix(in srgb, var(--white) 88%, transparent) !important;
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 0.85rem 0.95rem;
  cursor: pointer;
  color: inherit !important;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);

  &:hover,
  &:focus,
  &:focus-visible {
    transform: translateX(-4px);
    border-color: color-mix(in srgb, var(--color-secondary) 45%, var(--border-color)) !important;
    background: color-mix(in srgb, var(--white) 88%, transparent) !important;
    color: inherit !important;
    box-shadow: none;
  }

  &.active,
  &.active:hover,
  &.active:focus {
    background: var(--white) !important;
    border-color: var(--color-secondary) !important;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--color-secondary) 18%, transparent);
    color: inherit !important;

    .branch-rail__num {
      background: var(--color-secondary);
      color: var(--white);
    }

    .branch-rail__name {
      color: var(--color-secondary);
    }

    .branch-rail__arrow {
      opacity: 1;
      transform: translateX(-2px);
    }
  }
}

.branch-rail__num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  background: var(--color-primary);
  color: var(--white);
  transition: background var(--transition), color var(--transition);
}

.branch-rail__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex-grow: 1;
}

.branch-rail__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--color-primary);
  transition: color var(--transition);
}

.branch-rail__addr {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.branch-rail__arrow {
  opacity: 0.35;
  color: var(--color-primary);
  transition: opacity var(--transition), transform var(--transition);
}

.contact-map-card {
  transition: transform var(--transition);
  border-radius: 18px;
  overflow: hidden;

  &:hover {
    transform: translateY(-8px);

    .contact-map-card__inner {
      box-shadow: 0 16px 44px rgba(90, 65, 40, 0.12);
    }

    .contact-map-card__iframe {
      transform: scale(1.03);
    }

    .contact-map-card__btn {
      transform: translateY(0) rotate(-90deg);
      box-shadow: 0 10px 24px rgba(59, 42, 24, 0.28);
    }
  }

  .contact-map-card__inner {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 10px 36px rgba(90, 65, 40, 0.08);
    color: inherit;
    transition: box-shadow var(--transition), opacity 0.2s ease, transform 0.2s ease;
    overflow: hidden !important;

    &.is-switching {
      opacity: 0.55;
      transform: translateY(4px);
    }
  }

  .contact-map-card__media {
    position: relative;
    height: min(520px, 68vw);
    min-height: 360px;
    border-radius: 18px;
    overflow: hidden !important;
    background: #1a120c;
  }

  .contact-map-card__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: saturate(0.85) contrast(1.04);
    transition: transform 0.55s ease;
  }

  .contact-map-card__badge {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid rgba(210, 196, 185, 0.9);
    color: var(--color-primary);
    font-size: 1.05rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    z-index: 2;
  }

  .contact-map-card__body {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 1;
    overflow: hidden;
    border-radius: 24px;
    padding: 16px 18px 78px;
    text-align: start;

    &::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      opacity: 0.8;
      border-radius: 18px;
      background: linear-gradient(160deg,
          rgba(42, 28, 16, 0.15) 0%,
          rgba(42, 28, 16, 0.55) 40%,
          rgba(26, 16, 8, 0.88) 100%);
    }

    &::before {
      content: "";
      position: absolute;
      inset-inline-end: -1px;
      bottom: -1px;
      width: 70px;
      height: 70px;
      background: var(--wood-cream);
      border-start-start-radius: 100%;
      z-index: 1;
    }
  }

  .contact-map-card__city {
    display: inline-block;
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-secondary);
    background: color-mix(in srgb, var(--white) 92%, transparent);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
  }

  .contact-map-card__title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.35;
  }

  .contact-map-card__address {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--white);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .contact-map-card__phones {
    margin-top: 0.75rem;
    position: relative;
    z-index: 2;
  }

  .contact-map-card__phone {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    background: color-mix(in srgb, var(--white) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--white) 28%, transparent);
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    transition: background var(--transition), border-color var(--transition);
    direction: ltr;
    unicode-bidi: isolate;

    &:hover {
      background: var(--color-secondary);
      border-color: var(--color-secondary);
      color: var(--white);
    }
  }

  .contact-map-card__btn {
    position: absolute;
    inset-inline-end: 5px;
    bottom: 8px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--btn-gradient);
    color: var(--white);
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(59, 42, 24, 0.22);
    transform: rotate(-45deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
}

.contact-aside-list {
  li {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 0.95rem;

    &:last-child {
      border-bottom: none;
    }
  }
}

.contact-aside-list__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--color-secondary) 14%, transparent);
  color: var(--color-secondary);
  font-size: 1.05rem;
}

.contact-compose {
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 16px 48px rgba(90, 65, 40, 0.1);
  border: 1px solid color-mix(in srgb, var(--border-color) 80%, transparent);
}

.contact-visual {
  min-height: 100%;
  background: #1a120c;

  .contact-visual__img {
    object-fit: cover;
    object-position: center;
    min-height: 520px;
    transition: transform 0.7s ease;
  }

  &:hover {
    .contact-visual__img {
      transform: scale(1.04);
    }
  }

  .contact-visual__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg,
        rgba(26, 18, 12, 0.2) 0%,
        rgba(26, 18, 12, 0.45) 42%,
        rgba(26, 18, 12, 0.92) 100%);
    pointer-events: none;
  }

  .contact-visual__content {
    padding: 2rem 1.6rem 2.1rem;
    color: var(--white);
  }

  .contact-visual__tag {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 0.85px var(--color-secondary);
  }

  .contact-visual__title {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }

  .contact-visual__lead {
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
    max-width: 28rem;
  }

  .contact-visual__stat {
    min-width: 88px;

    strong {
      display: block;
      font-family: var(--font-display);
      font-size: 1.35rem;
      font-weight: 800;
      color: var(--color-secondary);
      line-height: 1.1;
    }

    span {
      font-size: 0.78rem;
      color: rgba(255, 255, 255, 0.72);
    }
  }
}

.contact-form--modern {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background:
    linear-gradient(145deg,
      color-mix(in srgb, var(--wood-cream) 70%, #fff) 0%,
      var(--white) 55%);
  padding: clamp(1.5rem, 3vw, 2.4rem);

  .contact-form__heading {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 800;
    color: var(--color-primary);
  }

  .contact-form__hint {
    font-size: 0.82rem;
    color: var(--text-muted);
  }

  .contact-form__wa {
    text-decoration: none;
    color: #1fa855;
    font-weight: 700;
    font-size: 0.92rem;
    transition: color var(--transition);

    &:hover {
      color: var(--color-secondary);
    }

    i {
      font-size: 1.15rem;
    }
  }
}

.contact-field {
  position: relative;

  .contact-field__input {
    width: 100%;
    border: 0;
    border-bottom: 1.5px solid color-mix(in srgb, var(--color-primary) 18%, transparent);
    border-radius: 0;
    background: transparent;
    padding: 1.15rem 0 0.55rem;
    font-size: 0.98rem;
    color: var(--color-primary);
    outline: none;
    box-shadow: none;
    transition: border-color var(--transition), background var(--transition);
    appearance: none;

    &:focus {
      border-bottom-color: var(--color-secondary);
      background: color-mix(in srgb, var(--color-secondary) 4%, transparent);
    }
  }

  .contact-field__label {
    position: absolute;
    inset-inline-start: 0;
    top: 0.95rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    pointer-events: none;
    transition: transform 0.2s ease, font-size 0.2s ease, color 0.2s ease, top 0.2s ease;
  }

  .contact-field__input:focus+.contact-field__label,
  .contact-field__input:not(:placeholder-shown)+.contact-field__label {
    top: 0;
    font-size: 0.72rem;
    color: var(--color-secondary);
  }
}

.contact-field--select {
  .contact-field__input {
    padding-top: 1.25rem;
    cursor: pointer;
  }

  .contact-field__label {
    top: 0;
    font-size: 0.72rem;
    color: var(--color-secondary);
  }

  &::after {
    content: "";
    position: absolute;
    inset-inline-end: 0;

    top: 50%;
    width: 0.55rem;
    height: 0.55rem;
    border-inline-end: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
    opacity: 0.55;
  }
}

.contact-field--area {
  .contact-field__input {
    resize: vertical;
    min-height: 120px;
    line-height: 1.7;
  }
}

/* ========== 23. CONTACT PAGE END ========== */