/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary-red: #ea333b;
  --primary-yellow: #f8be14;
  --primary-white: #ffffff;
  --dark-gray: #242424;
  --light-gray: #e4e7e9;
  --bg-gray: #f3f5f7;
  --text-main: #111111;
  --text-muted: #666666;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Gabarito', sans-serif;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: #ffffff;
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* =========================================
   BUTTONS
========================================= */

.btn-kiosk {
  background-color: #ff0000;
  color: var(--primary-white);
  position: relative;
  align-items: center;

  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.14);
}

.btn-black {
  background-color: #ff0000;
  color: var(--primary-white);
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
}

.btn-red {
  background-color: #fff;
  color: var(--primary-red);
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
}

.btn-yellow {
  background-color: #fff;
  color: var(--primary-yellow);
  background-color: #fff;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
}

.btn-outline-white {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  box-shadow: none;
}

.btn-outline-white:hover {
  background-color: #fff;
  color: var(--primary-yellow);
}

.btn-signage {
  background-color: var(--primary-white);
  color: var(--primary-red);
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
}

.btn-display {
  background-color: var(--primary-yellow);
  color: var(--primary-white);
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
}

.btn-smart-tv {
  background-color: var(--primary-red);
  color: var(--primary-white);
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
}

/* =========================================
   HEADER & NAV
========================================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  margin-bottom: 20px;
}

.logo img {
  height: 38px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  gap: 40px;
  margin-left: auto;
  margin-right: 40px;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 14px;
  text-transform: capitalize;
  opacity: .9;
}

nav a:hover {
  color: var(--primary-red);
  opacity: 1;
}

.search-icon svg {
  width: 22px;
  height: 22px;
  cursor: pointer;
  color: var(--text-main);
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  border-radius: 30px;
  padding: 80px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
  position: relative;
}

.hero-content {
  flex: 1.2;
  max-width: 55%;
  z-index: 2;
}

.hero h1 {
  font-size: 76px;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -3px;
  color: #111;
}

.hero h2 {
  font-size: 20px;
  margin-bottom: 24px;
  color: #333;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.hero p {
  font-size: 15px;
  margin-bottom: 35px;
  color: #444;
  max-width: 85%;
  text-align: center;
}

.hero-images {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
  height: 450px;
}

.img-hero-kiosk {
  max-height: 130%;
  width: auto;
  position: absolute;
  bottom: -80px;
  right: -20px;
  transform-origin: bottom right;
}

/* =========================================
   BANNER GRID
========================================= */
.banner-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 50px;
}

.banner-card {
  width: 100%;
  border-radius: 20px;
  position: relative;
  min-height: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: visible;
  color: #fff;
}

/* เนื้อหาที่อยู่หน้า image */
.banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
  width: 100%;
  align-items: flex-start;
}

/* Title base */
.hero-title-red {
  margin: 0;
  line-height: 0.88;
  position: relative;
  letter-spacing: -1px;
  margin-top: 50px;
  align-self: flex-start;
}

.hero-title-yellow {
  margin: 0;
  line-height: 0.88;
  position: relative;
  letter-spacing: -1px;

}

.hero-title-yellow {
  margin: 0;
  line-height: 0.88;
  position: relative;
  letter-spacing: -1px;
}

.hero-title-red span,
.hero-title-yellow span,
.hero-title-dark span {
  display: block;
}

/* Red card layout */
.banner-card.bg-red {
  background-color: var(--primary-red);
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: 30px 80px 30px 40px;
  /* เพิ่ม Padding ด้านขวาเป็น 80px */
  text-align: left;
}

.banner-card.bg-red .banner-content {
  flex: none;
  width: auto;
  margin-left: auto;
}

/* Yellow/Dark ใช้โครงเดียวกัน 100% */
.banner-card.bg-yellow,
.banner-card.bg-dark {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}

/* สีพื้น */
.banner-card.bg-yellow {
  background-color: var(--primary-yellow);
}

.banner-card.bg-dark {
  background-color: var(--dark-gray);
}


/* ---- Font sizes per card ---- */
.hero-title-red .small {
  font-size: 24px;
}

.hero-title-red .big {
  font-size: 48px;
}

.hero-title-yellow .yellow-small {
  font-size: 24px;
}

.hero-title-yellow .yellow-big {
  font-size: 48px;
}

.hero-title-dark .dark-small {
  font-size: 24px;
}

.hero-title-dark .dark-big {
  font-size: 40px;
}

/* Yellow/Dark title tweak (ตามที่อยากให้เล็กลงนิด) */
.banner-card.bg-yellow .hero-title-yellow {
  line-height: 0.9;
}

.banner-card.bg-dark .hero-title-dark {
  line-height: 0.9;
}

/* ---- Images overlapping cards ---- */
.banner-img-red {
  position: absolute;
  left: 21px;
  bottom: 29px;
  height: 75%;
  width: auto;
  z-index: 1;
  filter: drop-shadow(10px 15px 25px rgba(0, 0, 0, 0.30));
  pointer-events: none;
}

.banner-img-yellow {
  position: absolute;
  right: 10px;
  bottom: 0px;
  height: 65%;
  width: auto;
  z-index: 1;
  filter: drop-shadow(-10px 10px 20px rgba(0, 0, 0, 0.20));
  pointer-events: none;
}

.banner-img-dark {
  position: absolute;
  right: 10px;
  bottom: 10px;
  height: 70%;
  width: auto;
  z-index: 1;
  filter: drop-shadow(-10px 10px 20px rgba(0, 0, 0, 0.40));
  pointer-events: none;
}

/* =========================================
   BENEFITS ROW
========================================= */
.benefits {
  display: flex;
  justify-content: space-between;
  padding: 20px 0 50px 0;
  margin-bottom: 40px;
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.benefit-icon {
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
}

.benefit-icon svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}

.benefit-text h4 {
  font-size: 15px;
  margin-bottom: 4px;
  color: #111;
}

.benefit-text p {
  font-size: 13px;
  color: var(--text-muted);
}

/* =========================================
   PRODUCT SECTIONS
========================================= */
.product-section {
  border-radius: 30px;
  padding: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
  gap: 60px;
  position: relative;
  overflow: visible;
}

.product-content {
  flex: 1.2;
  z-index: 2;
}

.product-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  min-height: 260px;
}

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

.product-title-display {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.product-title-display .display-small {
  font-size: 44px;
  line-height: 0.88;
  letter-spacing: 1.5px;
}

.product-title-display .display-big {
  font-size: 77px;
  line-height: 0.58;
  letter-spacing: 1.5px;
}

.product-title-display h2 {
  font-size: 50px;
  line-height: 0.88;
  letter-spacing: 1.5px;
  margin-top: 10px;
}

.product-image-display {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  min-height: 140px;
}

.product-image-display img {
  width: 120%;
  height: auto;
  position: absolute;
  top: 10%;
  left: 35%;
}


.product-title span {
  font-size: 24px;
  line-height: 0.88px;
  letter-spacing: 1.5px;
}

.product-title .sigage-small {
  font-size: 50px;
  line-height: 0.88;
  letter-spacing: 1.5px;
}

.product-title .sigage-big {
  font-size: 70px;
  line-height: 0.58;
  letter-spacing: 1.5px;
}

.product-section h2 {
  font-size: 48px;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: 1.5px;
  margin-top: 10px;
}

.product-section p {
  font-size: 15px;
  margin-bottom: 35px;
  line-height: 1.8;
  max-width: 90%;
}

/* Base layout for product images */
.product-image img {
  width: 100%;
  height: auto;
  position: absolute;
  top: 10%;
  left: 35%;
}


.product-image-dark {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  min-height: 140px;
}

.product-image-dark img {
  width: 90%;
  height: auto;
  position: absolute;
  top: 40%;
  left: 40%;
}

/* Specific Product Images Styles */
.product-img-red {
  transform: translate(-40%, -40%) scale(1.3);
  filter: drop-shadow(-10px 20px 30px rgba(0, 0, 0, 0.30));
}

.product-img-white {
  transform: translate(-30%, -40%) scale(1.1);
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.10));
  margin-top: 10px;
}

.product-img-dark {
  transform: translate(-40%, -50%) scale(1.2);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .30));
}

.section-red {
  background: linear-gradient(135deg, #eb343c 0%, #d8232a 100%);
  color: #fff;
  box-shadow: 0 20px 40px rgba(234, 51, 59, 0.30);
}

.section-red p {
  color: rgba(255, 255, 255, 0.90);
}

.section-white {
  background-color: transparent;
  color: var(--text-main);
  margin-top: 150px;
  margin-bottom: 170px;
}

.section-white .product-content {
  padding-left: 80px;
}

.section-white p {
  color: var(--text-muted);
}

.section-dark {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  color: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.40);
  margin-bottom: 80px;
  margin-top: -125px;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.80);
}

.flex-reverse {
  flex-direction: row-reverse;
}


/* =========================================
   FOOTER BANNER & BOTTOM FOOTER
========================================= */
.footer-banner {
  background-color: var(--bg-gray);
  padding: 15px max(20px, calc((100vw - 1400px) / 2 + 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 150px;
  margin-bottom: 20px;
}

.contact-info {
  margin-left: 0px;
  flex: 1;
  /* Allow contact info to grow */
}

.footer-contact {
  display: flex;
  align-self: flex-start;
  gap: 40px;
  align-items: center;
  flex: 2;
  /* Increased flex ratio to give more space to text vs image */
}

.qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-info h3 {
  font-size: 30px;
  margin-bottom: 15px;
  color: #222;
  white-space: nowrap;
  /* Prevent title from wrapping */
}

.contact-info p,
.address-block p {
  font-size: 13px;
  color: #555;
  margin-bottom: 2px;
  /* reduced margin for tighter grouping */
  line-height: 1.4;
  font-weight: 500;
  white-space: nowrap;
  /* Prevent all paragraph text from wrapping */
}

.contact-info .address-block {
  margin-top: 15px;
  margin-bottom: 12px;
}

.contact-info .company-name {
  color: #222;
  /* darker color as seen in picture */
}

.contact-methods {
  display: flex;
  align-items: center;
  gap: 15px;
  /* space between phone and email */
  margin-top: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #555;
  font-weight: 500;
}

.contact-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
}

.footer-img-group {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  height: 200px;
}

.foot-img-main {
  height: 155%;
  width: auto;
  object-fit: contain;
  position: relative;
  right: -30px;
  top: -40px;
}

.footer-links a {
  color: var(--text-main);
  text-decoration: none;
  text-transform: capitalize;
}

.footer-links a:hover {
  color: var(--primary-red);
}

/* =========================================
   ANIMATIONS
========================================= */
.hidden {
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
}

.slide-up {
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.8s;
}

.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
  margin-bottom: 100px;
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}