/* ============================
   CSS VARIABLES
   ============================ */
:root {
  --blue-dark:   #0a2d6e;
  --blue:        #1565c0;
  --blue-light:  #1e88e5;
  --blue-pale:   #e3f2fd;
  --yellow:      #fdd835;
  --yellow-dark: #f9a825;
  --white:       #ffffff;
  --gray-light:  #f5f7fa;
  --gray:        #9e9e9e;
  --text:        #1a1a2e;
  --text-soft:   #546e7a;
  --shadow-sm:   0 2px 12px rgba(21,101,192,.10);
  --shadow-md:   0 8px 32px rgba(21,101,192,.15);
  --shadow-lg:   0 20px 60px rgba(21,101,192,.18);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  all .3s cubic-bezier(.4,0,.2,1);
}

/* ============================
   RESET & BASE
   ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-weight: 300;
  font-family: 'Prompt', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* Thai language: use Noto Sans Thai */
:lang(th),
[lang="th"],
p, h1, h2, h3, h4, h5, h6, li, span, a, button, time, label, input, textarea {
  font-family: 'Prompt', sans-serif;
}

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

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

ul { list-style: none; }

/* ============================
   CONTAINER
   ============================ */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--yellow);
  color: var(--blue-dark);
  border-color: var(--yellow);
}
.btn--primary:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(253,216,53,.4);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn--outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--blue-dark);
  font-weight: 700;
}
.btn--yellow:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(253,216,53,.45);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}

.btn--full { width: 100%; justify-content: center; }

/* ============================
   SECTION COMMONS
   ============================ */
.section { padding: 100px 0; }
.section--gray { background: var(--gray-light); }

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__header--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}
.section__header--split .section__title { margin-bottom: 0; }
.section__header--split .section__desc {
  text-align: right;
  max-width: 380px;
  margin: 0;
  flex-shrink: 0;
}

.products__tag-center {
  text-align: center;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .section__header--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .section__header--split .section__desc {
    text-align: left;
    max-width: 100%;
  }
  .products__tag-center {
    margin-top: 0;
    margin-bottom: 32px;
  }
}

.section__tag {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}
.section__title span { color: var(--blue); }

.section__desc {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* หน้าแรก (index): หัวข้อแต่ละเซกชัน — น้ำหนักฟอนต์เบาลงเล็กน้อย */
.page-home .section__tag { font-weight: 500; }
.page-home .section__title { font-weight: 500; }
.page-home .vision__title { font-weight: 500; }
.page-home .accordion__title { font-weight: 600; }
.page-home .pcard__name-bar h3,
.page-home .pcard__body h3 { font-weight: 500; }
.page-home .why-card h3 { font-weight: 600; }
.page-home .contact__info h3,
.page-home .contact__form h3 { font-weight: 600; }
.page-home .cd-banner__label { font-weight: 600; }
.page-home .cd-banner__sub { font-weight: 500; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
  font-size: .9rem;
  margin-top: 12px;
  transition: var(--transition);
}
.card-link:hover { gap: 10px; color: var(--blue-dark); }

/* ============================
   TOP BAR
   ============================ */
.topbar {
  background: var(--blue-dark);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  padding: 8px 0;
  position: relative;
  z-index: 1000;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar__text i { margin-right: 4px; color: var(--yellow); }

.topbar__social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar__social a {
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  transition: var(--transition);
}
.topbar__social a:hover { color: var(--yellow); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  font-size: .8rem;
}
.lang { cursor: pointer; color: rgba(255,255,255,.6); transition: var(--transition); }
.lang.active, .lang:hover { color: var(--yellow); font-weight: 700; }
.divider { color: rgba(255,255,255,.3); }

/* ============================
   NAVBAR
   ============================ */
.navbar {
  background: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

/* Transparent hero mode — only on index.html before scroll */
.navbar.hero-top {
  background: #ffffff;
  box-shadow: none;
}
.navbar.hero-top .navbar__logo-img {
  filter: none;
}
.navbar.hero-top .navbar__menu > li > a {
  color: var(--text);
}
.navbar.hero-top .navbar__menu > li > a:hover,
.navbar.hero-top .navbar__menu > li > a.active {
  color: var(--blue);
  background: rgba(21,101,192,0.08);
}
.navbar.hero-top .navbar__hamburger span {
  background: var(--blue-dark);
}

/* Push content down since navbar is now fixed */
body {
  padding-top: 100px;
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100px;
  max-width: 95%; /* override default container width to push logo left */
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
  margin-right: 40px;
}
.navbar__logo:hover {
  opacity: 0.82;
}
.navbar__logo-img {
  height: 90px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer__logo-img {
  height: 75px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Search bar */

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1.5px solid #d1e8e4;
  border-radius: 50px;
  padding: 4px 10px;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
  font-family: inherit;
  color: #8aaba6;
  padding: 3px 6px;
  border-radius: 50px;
  transition: all 0.2s ease;
  letter-spacing: .06em;
}
.lang-btn:hover {
  color: var(--blue);
}
.lang-btn--active {
  background: var(--blue);
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(21,101,192,0.25);
}
.lang-divider {
  color: #cde4e0;
  font-size: .75rem;
  user-select: none;
}

/* Menu */
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.navbar__menu > li { position: relative; }

.navbar__menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text);
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.navbar__menu > li > a:hover,
.navbar__menu > li > a.active {
  color: var(--blue);
  background: rgba(21,101,192,0.08);
}
.navbar__menu > li > a.active {
  font-weight: 700;
}
.navbar__menu > li > a i { font-size: .65rem; transition: var(--transition); }
.navbar__menu > li:hover > a i { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(21,101,192,.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  overflow: hidden;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 12px 20px;
  font-size: 1rem;
  color: var(--text);
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.dropdown li a:hover {
  background: var(--blue-pale);
  color: var(--blue);
  border-left-color: var(--blue);
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar__hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  height: 88vh;
  min-height: 560px;
  max-height: 860px;
  overflow: hidden;
  margin-top: -100px;
}

.hero__slides { height: 100%; }

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero__slide.active { opacity: 1; z-index: 1; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(8,34,90,.88) 0%, rgba(16,82,180,.6) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 88vh;
  min-height: 560px;
  max-height: 860px;
  max-width: 820px;
  margin: 0 auto;
  padding-top: 140px;   /* clear fixed navbar */
  padding-bottom: 60px;
}

.hero__tag {
  display: inline-block;
  background: rgba(253,216,53,.15);
  color: var(--yellow);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 8px 24px;
  border-radius: 50px;
  border: 1px solid rgba(253,216,53,.4);
  margin: 0 auto 20px;
  width: fit-content;
  animation: fadeUp .6s .2s both;
}

.hero__title {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  animation: fadeUp .6s .4s both;
}
.hero__title span { color: var(--yellow); font-weight: 600; }

/* สโลแกนไทย slide 1: สองบรรทัดขนาดฟอนต์เดียวกัน + บรรทัดแรกหนึ่งบรรทัดทุกความกว้างจอ */
.hero__title .hero__th-title-line1,
.hero__title .hero__th-title-line2 {
  display: inline-block;
  letter-spacing: -0.02em;
  font-weight: 500;
  font-size: clamp(0.88rem, calc((100vw - 48px) / 19.5), 3.65rem);
}
.hero__title .hero__th-title-line1 {
  white-space: nowrap;
  max-width: 100%;
  color: var(--white);
}

.hero__title--slogan {
  font-size: clamp(2.5rem, 6.5vw, 6.5rem) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  line-height: 1.1;
}
.hero__title--slogan span {
  /* Revert to the clean website theme colors */
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  filter: none;
  
  display: inline-block;
  font-weight: 600;
  
  /* First word (Dedicated 2) is pure white with a soft white glow */
  color: var(--white);
  text-shadow: 0px 4px 16px rgba(0, 0, 0, 0.6), 0px 0px 12px rgba(255, 255, 255, 0.4);
}

.hero__title--slogan span:last-of-type {
  /* Second word (Cranes) is brand yellow with a soft yellow glow */
  color: var(--yellow);
  text-shadow: 0px 4px 16px rgba(0, 0, 0, 0.6), 0px 0px 12px rgba(253, 216, 53, 0.4);
}

.hero__sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: 32px;
  animation: fadeUp .6s .6s both;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp .6s .8s both;
}

/* Indicators */
.hero__indicators {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  z-index: 10;
  display: flex;
  gap: 10px;
}
.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: 2px solid rgba(255,255,255,.6);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.indicator.active {
  background: var(--yellow);
  border-color: var(--yellow);
  width: 28px;
  border-radius: 5px;
}

/* Scroll */
.hero__scroll {
  display: none;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%        { transform: translateX(-50%) translateY(8px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================
   STATS
   ============================ */
.stats {
  background: var(--blue-dark);
  padding: 36px 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-card {
  text-align: center;
  color: var(--white);
  padding: 28px 20px;
  background: var(--blue-dark);
  transition: var(--transition);
}
.stat-card:hover {
  background: rgba(255,255,255,.06);
}
.stat-card i {
  font-size: 1.4rem;
  color: var(--yellow);
  margin-bottom: 10px;
  opacity: .85;
}
.stat-card h3 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  display: inline;
}
.stat-card span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yellow);
}
.stat-card p {
  margin-top: 6px;
  color: rgba(255,255,255,.55);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .04em;
}

/* ============================
   VISION CARDS
   ============================ */
.vision__container {
  position: relative;
  z-index: 1;
}
.vision__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}
.vision__card {
  background: var(--blue-dark);
  color: var(--white);
  padding: 45px 30px 36px;
  border-radius: 16px;
  position: relative;
  margin-top: 36px; /* Make space for floating icon */
  box-shadow: 0 10px 30px rgba(10, 45, 110, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.vision__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(10, 45, 110, 0.15);
}
.vision__icon {
  position: absolute;
  top: -32px;
  right: 32px;
  width: 72px;
  height: 72px;
  background: var(--yellow);
  color: var(--blue-dark);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 20px rgba(253, 216, 53, 0.3);
  transition: transform 0.4s ease;
}
.vision__card:hover .vision__icon {
  transform: scale(1.1) rotate(5deg);
}
.vision__title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--white);
  line-height: 1.3;
}
.vision__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

@media (max-width: 768px) {
  .vision__cards {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

/* ============================
   ABOUT
   ============================ */
.about.section.section--gray {
  background-color: var(--gray-light);
  background-image: url("hero1.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  position: relative;
}

.about.section.section--gray::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(245,247,250,0.92);
  pointer-events: none;
  z-index: 0;
}

.about__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__visual { position: relative; }
.about__img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about__img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform .5s ease;
}
.about__img-wrap:hover img { transform: scale(1.04); }

.about__badge {
  position: absolute;
  bottom: 28px;
  right: -20px;
  background: var(--yellow);
  color: var(--blue-dark);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  min-width: 110px;
}
.badge__num {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}
.badge__num sup { font-size: 1rem; }
.badge__label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  margin-top: 4px;
  line-height: 1.3;
}

.about__text .section__tag { text-align: left; }
.about__text .section__title { text-align: left; margin-bottom: 20px; }
.about__desc {
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about__list {
  margin: 24px 0 32px;
  display: grid;
  gap: 12px;
}
.about__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: var(--text);
}
.about__list li i { color: var(--blue); font-size: 1rem; flex-shrink: 0; }

/* About inline stats */
.about-stats-section {
  padding: 56px 0;
  background: var(--gray-light);
}

.about__stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.about__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.about__stat-num {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 600;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -2px;
  margin: 0;
}

.about__stat-label {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}

.about__stat-divider {
  width: 1px;
  height: 48px;
  background: #dce6f7;
  margin: 0 32px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .about-stats-section { padding: 40px 0; }

  .about__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  /* ซ่อน divider ทั้งหมด */
  .about__stat-divider { display: none; }

  .about__stat {
    padding: 28px 16px;
  }

  /* เส้นกั้นขวา — stat col แรก (1st และ 3rd stat = nth-child 1, 5) */
  .about__stats .about__stat:nth-child(1) { border-right: 1px solid #dce6f7; }
  .about__stats .about__stat:nth-child(5) {
    border-right: 1px solid #dce6f7;
    border-top: 1px solid #dce6f7;
  }
  /* เส้นกั้นบน — stat แถว 2 */
  .about__stats .about__stat:nth-child(7) { border-top: 1px solid #dce6f7; }

  .about__stat-num { font-size: clamp(2.2rem, 8vw, 3rem); }
  .about__stat-label { font-size: 0.88rem; }
}

/* ============================
   PRODUCTS
   ============================ */
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.product-card:hover {
  border-color: var(--blue-pale);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}
.product-card:hover::before { transform: scaleX(1); }

.product-card.featured {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
  border-color: transparent;
}
.product-card.featured h3,
.product-card.featured p { color: var(--white); }
.product-card.featured p { opacity: .85; }
.product-card.featured .product-card__icon { background: rgba(255,255,255,.15); color: var(--yellow); }
.product-card.featured .card-link { color: var(--yellow); }
.product-card.featured::before { background: var(--yellow); }

.product-card__badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--yellow);
  color: var(--blue-dark);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

.product-card__icon {
  width: 60px; height: 60px;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: var(--transition);
}
.product-card:hover .product-card__icon {
  background: var(--blue);
  color: var(--white);
}
.product-card.featured:hover .product-card__icon {
  background: var(--yellow);
  color: var(--blue-dark);
}

.product-card__body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.product-card__body p {
  font-size: .9rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ============================
   PRODUCT CARDS WITH PHOTO
   ============================ */
.products__grid--photo {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pcard {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(21,101,192,.10);
  transition: var(--transition);
  aspect-ratio: 3/2;
  cursor: pointer;
}
.pcard:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Image fills the whole card */
.pcard__img-wrap {
  position: absolute;
  inset: 0;
}
.pcard__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.pcard:hover .pcard__img-wrap img { transform: scale(1.07); }

/* Dark gradient always visible at bottom for product name */
.pcard__name-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(to top, rgba(10,45,110,.82) 0%, transparent 100%);
  z-index: 2;
  transition: var(--transition);
}
.pcard__name-bar h3 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

/* Hover overlay */
.pcard__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    to top,
    rgba(10,45,110,.95) 0%,
    rgba(21,101,192,.80) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.pcard:hover .pcard__overlay {
  opacity: 1;
  transform: translateY(0);
}
.pcard:hover .pcard__name-bar {
  opacity: 0;
}

/* Content inside overlay */
.pcard__icon {
  width: 32px; height: 32px;
  background: var(--yellow);
  color: var(--blue-dark);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem;
  margin-bottom: 8px;
  flex-shrink: 0;
  transform: translateY(4px);
  transition: transform .3s ease .04s;
}
.pcard:hover .pcard__icon { transform: translateY(0); }

.pcard__body {
  transform: translateY(6px);
  transition: transform .3s ease .04s;
}
.pcard:hover .pcard__body { transform: translateY(0); }

.pcard__body h3 {
  font-size: .88rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 5px;
  line-height: 1.3;
}
.pcard__body p {
  font-size: .75rem;
  color: rgba(255,255,255,.80);
  line-height: 1.55;
  margin-bottom: 10px;
}
.pcard__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--yellow);
  color: var(--blue-dark);
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  transition: var(--transition);
  width: fit-content;
}
.pcard__btn:hover {
  background: var(--yellow-dark);
  box-shadow: 0 4px 16px rgba(253,216,53,.45);
}

/* Remove old card-link inside overlay */
.pcard__body .card-link { display: none; }

@media (max-width: 1024px) {
  .products__grid--photo { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 700px) {
  .products__grid--photo { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 420px) {
  .products__grid--photo { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ============================
   WHY US  – photo background style
   ============================ */
.whyus.section {
  background: url('hero1.webp') center center / cover no-repeat;
  position: relative;
  padding: 56px 0;
}
.whyus.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,45,110,.88) 0%, rgba(21,101,192,.80) 100%);
}
.whyus .container { position: relative; z-index: 1; }
.whyus .section__tag {
  background: rgba(253,216,53,.18);
  color: var(--yellow);
}
.whyus .section__title {
  color: var(--white);
}
.whyus .section__title span { color: var(--yellow); }

.whyus__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.why-card {
  background: transparent;
  border-radius: 0;
  padding: 40px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  border: none;
  border-right: 1px solid rgba(255,255,255,.08);
}
.why-card:last-child { border-right: none; }
.why-card:hover {
  background: rgba(255,255,255,.07);
  transform: none;
  box-shadow: none;
}
.why-card__num {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(255,255,255,.05);
  line-height: 1;
}
.why-card__icon {
  font-size: 2rem;
  color: var(--yellow);
  margin-bottom: 16px;
  transition: var(--transition);
  display: block;
}
.why-card:hover .why-card__icon {
  color: var(--white);
  transform: scale(1.15);
}
.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}
.why-card p {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
}

/* ============================
   SERVICES SECTION
   ============================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.service-block::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-block:hover {
  border-color: var(--blue-pale);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}
.service-block:hover::after { transform: scaleX(1); }

/* Icon */
.service-block__icon-wrap {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--yellow);
  margin-bottom: 20px;
  transition: var(--transition);
  flex-shrink: 0;
}
.service-block:hover .service-block__icon-wrap {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 24px rgba(21,101,192,.25);
}

/* Number tag */
.service-block__tag {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(21,101,192,.06);
  line-height: 1;
  pointer-events: none;
}

/* Content */
.service-block__content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.service-block__content > p {
  color: var(--text-soft);
  line-height: 1.75;
  font-size: .9rem;
  margin-bottom: 16px;
}
.service-block__list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.service-block__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .87rem;
  color: var(--text-soft);
}
.service-block__list li i { color: var(--blue); font-size: .8rem; flex-shrink: 0; }

/* Highlight box */
.service-highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--blue-pale);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 8px;
  border-left: 3px solid var(--blue);
}
.service-highlight > i {
  font-size: 1.3rem;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}
.service-highlight h4 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 4px;
}
.service-highlight p {
  font-size: .83rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .services__grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .service-block { padding: 28px 22px; }
}

/* ============================
   CTA BANNER
   ============================ */
.cta-banner {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}
.cta-banner__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #1976d2 100%);
}
.cta-banner__bg::after {
  content: '';
  position: absolute;
  right: -100px; top: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(253,216,53,.25) 0%, transparent 70%);
}
.cta-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-banner__text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.cta-banner__text p {
  color: rgba(255,255,255,.8);
  font-size: 1rem;
}
.cta-banner__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================
   NEWS + SERVICES (combined)
   ============================ */

/* Two-column layout */
.news-services.section { padding: 80px 0; }

.ns-layout {
  display: block;
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- LEFT: News ---------- */
.ns-news .section__tag { margin-bottom: 6px; }
.ns-news .section__title { margin-bottom: 28px; }

.ns-news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: var(--transition);
}
.ns-news-card:hover {
  border-color: var(--blue-pale);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.ns-news-card__img {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.ns-news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.ns-news-card:hover .ns-news-card__img img { transform: scale(1.05); }
.ns-news-card__cat {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--blue);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ns-news-card__body {
  padding: 28px;
}
.ns-news-card__body time {
  font-size: .78rem;
  color: var(--blue-light);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.ns-news-card__body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--text);
}
.ns-news-card__body p {
  font-size: .9rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 18px;
}

/* ---------- RIGHT: Services Accordion ---------- */
.ns-services .section__tag { margin-bottom: 6px; }
.ns-services .section__title { margin-bottom: 28px; }

.accordion { display: flex; flex-direction: column; gap: 12px; }

.accordion__item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  overflow: hidden;
  transition: border-color .25s;
}
.accordion__item--open,
.accordion__item:focus-within {
  border-color: var(--blue-pale);
  box-shadow: var(--shadow-md);
}

.accordion__header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background .2s;
}
.accordion__header:hover { background: var(--gray-light); }

.accordion__icon-wrap {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue-pale);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background .25s, color .25s;
}
.accordion__item--open .accordion__icon-wrap {
  background: var(--blue);
  color: var(--white);
}

.accordion__title {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.accordion__arrow {
  font-size: .8rem;
  color: var(--text-soft);
  transition: transform .3s ease;
  flex-shrink: 0;
}
.accordion__item--open .accordion__arrow { transform: rotate(180deg); }

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  padding: 0 20px;
}
.accordion__item--open .accordion__body {
  max-height: 400px;
  padding: 0 20px 20px;
}

.accordion__body p {
  font-size: .9rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 12px;
}
.accordion__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.accordion__list li {
  font-size: .88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.accordion__list li i {
  color: var(--blue);
  font-size: .8rem;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .ns-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ============================
   CONTACT
   ============================ */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
}

.contact__info h3,
.contact__form h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text);
}

.contact__list {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}
.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .92rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.contact__list li i {
  color: var(--blue);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.contact__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.contact__socials a {
  position: relative;
  z-index: 1;
  width: 42px; height: 42px;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: var(--transition);
}
.contact__socials a:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-3px);
}

.contact__map-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(21, 101, 192, 0.12);
  transition: var(--transition);
}
.contact__map-link:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.contact__map-link img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Form */
.contact__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(21,101,192,.08);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 18px;
  border: 2px solid #e8edf5;
  border-radius: var(--radius);
  font-size: .92rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 4px rgba(30,136,229,.12);
}
.form-group textarea { resize: vertical; }
.form-group select { cursor: pointer; }

/* ============================
   CAREER + DOWNLOAD BANNER
   ============================ */
.cd-banner {
  background: var(--gray-light);
  padding: 40px 0;
}
.cd-banner__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.cd-banner__card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.cd-banner__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

/* Career card — photo background */
.cd-banner__card--career {
  background: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=900&auto=format&fit=crop') center/cover no-repeat;
}
/* fallback gradient if no image */
.cd-banner__card--career::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,45,110,.55), rgba(30,136,229,.45));
  z-index: 1;
  transition: opacity .3s;
}
.cd-banner__card--career:hover::before { opacity: .7; }

/* Download card — industrial machinery photo */
.cd-banner__card--download {
  background: url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?w=900&auto=format&fit=crop') center/cover no-repeat;
}
.cd-banner__card--download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(120,0,0,.72), rgba(60,0,0,.65));
  z-index: 1;
}

.cd-banner__overlay { display: none; }

.cd-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cd-banner__label {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .08em;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.cd-banner__sub {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  letter-spacing: .12em;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

@media (max-width: 640px) {
  .cd-banner__grid { grid-template-columns: 1fr; }
  .cd-banner__card { height: 160px; }
  .cd-banner__label { font-size: 1.8rem; }
}

/* ============================
   FOOTER — white background, blue text & icons
   ============================ */
.footer {
  position: relative;
  z-index: 2;
  background: var(--white);
  color: var(--blue-dark);
  padding-top: 60px;
  border-top: 1px solid rgba(21, 101, 192, 0.12);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.5fr 1.4fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(21, 101, 192, 0.12);
}

.footer img[src*="Logo-D2c"],
.footer__col img.footer-logo {
  filter: none;
}
.footer__brand .navbar__logo { margin-bottom: 16px; display: inline-flex; }
.footer__brand p {
  font-size: .9rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--blue-dark);
}
.footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.footer__socials a,
.footer .footer__socials a[style] {
  width: 40px;
  height: 40px;
  background: var(--blue-pale) !important;
  color: var(--blue) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  border: 1px solid rgba(21, 101, 192, 0.12);
}
.footer__socials a:hover {
  background: var(--blue) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  border-color: var(--blue);
}
.footer__col { padding-top: 8px; color: var(--blue-dark); }
.footer__col h3,
.footer__col h4,
.footer .footer__col h3[style],
.footer .footer__col h4[style] {
  color: var(--blue-dark) !important;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}
.footer__col h3::after,
.footer__col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
.footer__col p,
.footer__col div,
.footer__col span,
.footer .footer__col[style],
.footer .footer__col p[style],
.footer .footer__col div[style],
.footer .footer__col span[style] {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--blue-dark) !important;
}
.footer__col a[href^="mailto"],
.footer .footer__col a[href^="mailto"][style] {
  color: var(--blue) !important;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__col a[href^="mailto"]:hover {
  color: var(--blue-light) !important;
  text-decoration: underline;
}
.footer__col img.footer-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 16px;
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col ul li a {
  font-size: .88rem;
  color: var(--blue);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer__col ul li a:hover {
  color: var(--blue-light);
  padding-left: 6px;
}
.footer__contact { gap: 14px !important; }
.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--blue-dark);
}
.footer__contact li i { color: var(--blue); flex-shrink: 0; margin-top: 2px; }

.footer__logo .logo-d2 { color: var(--blue-dark); font-size: 1.6rem; }
.footer__logo .logo-cranes { color: var(--blue); font-size: .95rem; }

.footer__bottom {
  padding: 20px 0;
  background: var(--white);
}
.footer__bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom p {
  font-size: .82rem;
  color: var(--text-soft);
}

/* ============================
   FLOAT CONTACT BAR (inject via script.js)
   Desktop: sticky vertical pill on viewport right · Tablet/mobile ≤1024px: fixed bottom strip
   ============================ */
.d2c-float {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 920;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border-radius: 14px 0 0 14px;
  box-shadow: 0 12px 40px rgba(10, 45, 110, 0.22);
  font-family: 'Prompt', sans-serif;
  font-weight: 500;
  transition:
    transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s ease;
}

@media (min-width: 1025px) {
  /* Large screens: แถบชิดขวาแคบ — เห็นเฉพาะไอคอน พอ hover / keyboard focus ค่อยขยายให้เห็นข้อความ */
  .d2c-float {
    transform: translateY(-50%);
    box-shadow: 0 6px 20px rgba(10, 45, 110, 0.12);
    cursor: pointer;
    max-width: 56px;
    transition:
      transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 0.35s ease,
      max-width 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .d2c-float:hover,
  .d2c-float:focus-within {
    max-width: min(340px, 90vw);
    box-shadow: 0 12px 40px rgba(10, 45, 110, 0.22);
  }

  /* อย่าซ่อนข้อความถ้าระบบขอลดความเคลื่อนไหว — ให้เห็นปุ่มครบอยู่แล้ว */
  @media not (prefers-reduced-motion: reduce) {
    .d2c-float:not(:hover):not(:focus-within) .d2c-float__btn span {
      display: none;
    }

    .d2c-float:not(:hover):not(:focus-within) .d2c-float__btn {
      justify-content: center;
      padding: 12px 14px;
      gap: 0;
    }
  }
}

.d2c-float__btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 16px 12px 14px;
  min-height: 48px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: filter 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.d2c-float__btn:hover {
  filter: brightness(1.06);
}

.d2c-float__btn:active {
  filter: brightness(0.94);
}

.d2c-float__btn i {
  font-size: 1.05rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.d2c-float__btn--phone {
  background: linear-gradient(180deg, #1976d2 0%, #1565c0 100%);
}

.d2c-float__btn--line {
  background: linear-gradient(180deg, #07c956 0%, #06c755 100%);
}

.d2c-float__btn--quote {
  background: linear-gradient(180deg, #f0983a 0%, #e67e22 100%);
  font-weight: 600;
}

.d2c-float__btn--quote span {
  font-weight: 500;
}

@media (max-width: 1024px) {
  /* leave room so footer/content isn’t hidden behind the sticky bar */
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .d2c-float {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: row;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -6px 32px rgba(10, 45, 110, 0.18);
    justify-content: stretch;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .d2c-float__btn {
    flex: 1 1 0;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    min-height: auto;
    padding: 12px 6px calc(12px + env(safe-area-inset-bottom, 0px));
    font-size: 0.78rem;
    white-space: normal;
    text-align: center;
    border-radius: 0;
    line-height: 1.25;
  }

  .d2c-float__btn i {
    font-size: 1.2rem;
    margin-bottom: 2px;
  }

  .back-to-top.visible {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    right: 16px;
  }
}

@media (max-width: 380px) {
  .d2c-float__btn {
    font-size: 0.65rem;
    padding-left: 4px;
    padding-right: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .d2c-float__btn {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 1025px) {
  .d2c-float {
    transition: none;
    transform: translateY(-50%);
    max-width: min(340px, 90vw);
    box-shadow: 0 12px 40px rgba(10, 45, 110, 0.22);
  }
}

/* ============================
   BACK TO TOP
   ============================ */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(21,101,192,.4);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--blue-dark);
  transform: translateY(-4px);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  /* Tablet / iPad — hamburger + overlay menu */
  .navbar { height: 70px; }
  .navbar__inner { height: 70px; gap: 12px; }
  .navbar__logo-img { height: 56px; }
  .lang-switcher {
    margin-left: auto;
    padding: 3px 8px;
  }

  body {
    padding-top: 70px;
  }
  .hero {
    margin-top: -70px;
  }
  .hero__content {
    padding-top: 70px;
  }

  .navbar__menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    z-index: 998;
    border-top: 3px solid var(--blue);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .navbar__menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .navbar__hamburger {
    display: flex;
    position: relative;
    z-index: 1001;
    cursor: pointer;
    padding: 8px;
    margin-left: 0;
    flex-shrink: 0;
  }
  .navbar__hamburger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .navbar__hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .navbar__hamburger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--blue-pale);
    margin-left: 16px;
    margin-top: 4px;
    display: none;
  }
  .has-dropdown.open .dropdown {
    display: block;
  }

  /* Disable hover-flyout; Product submenu uses tap (.open) on tablet */
  .has-dropdown:hover:not(.open) .dropdown {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
  }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr; gap: 48px; }
  .about__visual { max-width: 540px; margin: 0 auto; }
  .about__badge { right: 10px; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .whyus__grid { grid-template-columns: repeat(2, 1fr); }
  .news__grid { grid-template-columns: 1fr 1fr; }
  .news-card--featured { grid-column: span 2; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .topbar { display: none; }

  .hero__title { font-size: 2rem; }

  .products__grid { grid-template-columns: 1fr; }
  .products__grid--photo { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .whyus__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .why-card {
    padding: 28px 16px;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  .why-card:nth-child(2n) {
    border-right: none;
  }
  .why-card:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .why-card__num {
    font-size: 2.2rem;
    top: 12px;
    right: 12px;
  }
  .why-card__icon {
    font-size: 1.65rem;
  }
  .why-card h3 {
    font-size: 0.92rem;
  }
  .why-card p {
    font-size: 0.76rem;
    line-height: 1.55;
  }

  .news__grid { grid-template-columns: 1fr; }
  .news-card--featured { grid-column: auto; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .contact__form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner__inner { flex-direction: column; text-align: center; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .about__badge { right: 0; }
}

/* ============================
   POWERAIL PAGES — Conductor code & split layouts (mobile)
   Shared by powerail-hfp*.html, etc.
   ============================ */
.ph-conductor-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 4vw, 20px);
  align-items: start;
}

.ph-conductor-split--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 860px) {
  .ph-conductor-split,
  .ph-conductor-split--pair,
  .ph-order-layout {
    grid-template-columns: 1fr !important;
  }

  /* Inline grids on product pages: force single column */
  .ph-order-grid {
    grid-template-columns: 1fr !important;
  }

  .ph-order-label {
    flex-wrap: wrap;
    line-height: 1.4;
    row-gap: 4px;
  }

  .ph-code-box {
    font-size: clamp(0.82rem, 4vw, 1rem) !important;
    padding: 10px 14px !important;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
    box-sizing: border-box;
  }

  .ph-code-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .ph-code-key {
    margin-top: 0 !important;
    align-self: flex-start;
  }

  .ph-code-val {
    width: 100%;
    min-width: 0;
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .ph-spec-pills {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 10px !important;
  }

  .ph-spec-pill {
    justify-content: center;
    min-width: 0;
    padding: 10px 12px !important;
    font-size: 0.84rem !important;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .ph-spec-table .ph-spec-row {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .ph-spec-table .ph-spec-head {
    min-width: 0 !important;
    flex: none !important;
    border-right: none !important;
    border-bottom: 1px solid #eef2fa;
    padding-bottom: 8px;
  }

  .ph-spec-table .ph-spec-desc {
    padding-top: 4px;
  }
}
