/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Bai Jamjuree', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2 {
  font-family: 'Teko', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.05;
  color: #1D181F;
}
h1 { font-size: clamp(40px, 5vw, 64px); }
h2 { font-size: clamp(32px, 4vw, 48px); }
h3 {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: #1D181F;
}
.section-eyebrow {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #008614;
  margin-bottom: 8px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Teko', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 30px;
  border-radius: 5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-red {
  background: #008614;
  color: #fff;
  border-color: #008614;
}
.btn-red:hover {
  background: #006b10;
  border-color: #006b10;
}
.btn-outline {
  background: transparent;
  color: #1D181F;
  border-color: #1D181F;
}
.btn-outline:hover {
  background: #1D181F;
  color: #fff;
}
.btn-full { width: 100%; justify-content: center; font-size: 20px; padding: 16px; }
.btn-sm {
  padding: 8px 20px;
  font-size: 15px;
  background: #008614;
  color: #fff;
  border-radius: 5px;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  background: #1D181F;
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
}
.announcement-bar a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}

/* ===== NAVIGATION ===== */
.site-header {
  background: #fff;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-family: 'Teko', sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1D181F;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #008614;
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { white-space: nowrap; }
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.mobile-menu-btn span {
  width: 28px;
  height: 3px;
  background: #1D181F;
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #f5ece4 0%, #f0e4d8 50%, #e8d8c8 100%);
  overflow: hidden;
  position: relative;
}
.hero-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 60px 40px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 40px;
  min-height: 600px;
}
.hero-content {
  padding-bottom: 80px;
  z-index: 2;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Teko', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1D181F;
  margin-bottom: 16px;
}
.red-dot {
  width: 12px;
  height: 12px;
  background: #008614;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.hero-body {
  font-size: 17px;
  color: #444;
  margin: 20px 0 32px;
  max-width: 540px;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-image {
  position: relative;
  align-self: end;
}
.hero-image img {
  max-height: 560px;
  width: auto;
  object-fit: contain;
  margin-left: auto;
}

/* ===== MARQUEE X-CROSS ===== */
.marquee-section {
  position: relative;
  height: 140px;
  overflow: visible;
  z-index: 5;
  background: linear-gradient(135deg, #f5ece4 0%, #f0e4d8 50%, #e8d8c8 100%);
}

/* Outer band: handles rotation + positioning only */
.marquee-band {
  position: absolute;
  top: 50%;
  left: -15%;
  width: 130%;
  background: #1D181F;
  padding: 10px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  overflow: hidden;
}
.marquee-top {
  transform: translateY(-50%) rotate(-4deg);
  z-index: 2;
}
.marquee-bottom {
  transform: translateY(-50%) rotate(4deg);
  z-index: 1;
}

/* Inner scroll: handles only the horizontal scroll animation */
.marquee-scroll {
  display: flex;
  width: max-content;
}
.marquee-scroll-left {
  animation: marquee-left 90s linear infinite;
}
.marquee-scroll-right {
  animation: marquee-right 100s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.marquee-content span {
  font-family: 'Teko', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #EFEEEE;
  padding: 0 12px;
}
.marquee-content .sep {
  color: #008614;
  font-size: 14px;
  padding: 0 4px;
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #f5ece4 0%, #f0e4d8 50%, #e8d8c8 100%);
}
.section-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}
.testimonials-section h2 { margin-bottom: 40px; }
.video-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0 40px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.video-carousel::-webkit-scrollbar { display: none; }
.video-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
}
.video-thumb {
  width: 100%;
  aspect-ratio: 9/16;
  background: #242424;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}
.video-thumb:hover { transform: scale(1.02); }
.play-btn {
  width: 56px;
  height: 56px;
  background: rgba(0, 134, 20, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
}

/* ===== STATS ===== */
.stats-section {
  background: #242424;
  padding: 80px 0;
  color: #EFEEEE;
}
.stats-section h2 { color: #EFEEEE; margin-bottom: 16px; }
.stats-intro {
  color: #aaa;
  font-size: 17px;
  max-width: 700px;
  margin-bottom: 48px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
.stat-card {
  text-align: left;
}
.stat-number {
  font-family: 'Teko', sans-serif;
  font-size: 72px;
  font-weight: 700;
  color: #008614;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.stat-card p {
  font-size: 15px;
  color: #bbb;
  line-height: 1.6;
}
.stats-cta-text {
  font-size: 17px;
  color: #EFEEEE;
  font-weight: 600;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
}

/* ===== SERVICES ===== */
.services-section {
  padding: 80px 0;
  background: #fff;
}
.services-section h2 { margin-bottom: 48px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(20px);
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.service-icon {
  width: 56px;
  height: 56px;
  background: #008614;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: 15px; color: #666; line-height: 1.6; }

/* ===== PROCESS ===== */
.process-section {
  padding: 80px 0;
  background: #f9f9f9;
}
.process-section h2 { margin-bottom: 16px; }
.process-intro {
  font-size: 17px;
  color: #666;
  max-width: 650px;
  margin-bottom: 48px;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
}
.step-number {
  font-family: 'Teko', sans-serif;
  font-size: 56px;
  font-weight: 700;
  color: #008614;
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 14px; color: #666; line-height: 1.6; }

/* ===== BEFORE & AFTER ===== */
.portfolio-section {
  padding: 80px 0;
  background: #fff;
}
.portfolio-section h2 { margin-bottom: 16px; }
.portfolio-intro {
  font-size: 17px;
  color: #666;
  max-width: 650px;
  margin-bottom: 48px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.ba-card {
  border-radius: 12px;
  overflow: hidden;
  background: #f9f9f9;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.ba-slider {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
}
.ba-after, .ba-before {
  position: absolute;
  inset: 0;
}
.ba-after img, .ba-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-before {
  clip-path: inset(0 50% 0 0);
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background: #fff;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ba-handle-icon {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.ba-label {
  position: absolute;
  top: 12px;
  font-family: 'Teko', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 4px 12px;
  border-radius: 4px;
  z-index: 5;
}
.ba-label-after { right: 12px; }
.ba-label-before { left: 12px; }
.ba-info {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ba-info h3 { font-size: 17px; }
.ba-info p { color: #888; font-size: 14px; flex: 1; }

/* ===== FAQ iMessage ===== */
.faq-section {
  padding: 80px 0;
  background: #f9f9f9;
}
.faq-section h2 {
  text-align: center;
  margin-bottom: 40px;
}
.imessage-container {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.imessage-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}
.imessage-avatar {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}
.imessage-header strong {
  display: block;
  font-size: 15px;
  color: #1D181F;
}
.imessage-status {
  font-size: 12px;
  color: #888;
}
.imessage-chat {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.msg-user {
  background: #008614;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 600;
}
.msg-reply {
  background: #f0f0f0;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

/* ===== CONTACT ===== */
.contact-section {
  background: #1D181F;
  padding: 80px 0;
}
.contact-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-cta h2 {
  color: #EFEEEE;
  font-size: clamp(36px, 4vw, 56px);
  margin-bottom: 20px;
}
.contact-cta p {
  color: #aaa;
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #EFEEEE;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s;
}
.contact-link:hover { color: #008614; }
.contact-form-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
}
.contact-form-wrap h3 {
  font-family: 'Teko', sans-serif;
  font-size: 28px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: #1D181F;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 14px;
  color: #333;
  background: #f9f9f9;
  transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #008614;
}
.contact-form textarea { resize: vertical; }

/* ===== FOOTER ===== */
.site-footer {
  background: #151015;
  color: #aaa;
  padding: 60px 0 0;
}
.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  width: 180px;
  margin-bottom: 20px;
}
.footer-cta { margin-top: 8px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4, .footer-social h4 {
  font-family: 'Teko', sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
}
.footer-links a {
  font-size: 14px;
  color: #888;
  transition: color 0.3s;
}
.footer-links a:hover { color: #008614; }
.social-icons {
  display: flex;
  gap: 16px;
}
.social-icons a {
  color: #888;
  transition: color 0.3s;
}
.social-icons a:hover { color: #008614; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 40px;
  text-align: center;
  font-size: 13px;
  color: #666;
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.service-card, .stat-card, .step, .ba-card, .msg, .contact-cta, .contact-form-wrap {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.service-card.revealed, .stat-card.revealed, .step.revealed,
.ba-card.revealed, .msg.revealed, .contact-cta.revealed, .contact-form-wrap.revealed {
  opacity: 1;
  transform: translateY(0);
}
.msg.revealed { transform: translateY(0) scale(1); }
.msg {
  transform: translateY(24px) scale(0.95);
}

/* Tilt transition reset */
.service-card { transition: opacity 0.6s ease, transform 0.3s ease, box-shadow 0.3s ease; }
.service-card.revealed { opacity: 1; }

/* Button hover pulse */
.btn-red { transition: all 0.3s ease, transform 0.15s ease; }
.btn-red:hover { box-shadow: 0 6px 20px rgba(0, 134, 20, 0.3); }

/* Nav active state */
.nav-links a.active { color: #008614; }
.nav-links a.active::after { width: 100%; background: #008614; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding-bottom: 40px; }
  .hero-image { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .contact-container { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .marquee-section { height: 110px; }
  .marquee-top { transform: translateY(-50%) rotate(-6deg); }
  .marquee-bottom { transform: translateY(-50%) rotate(6deg); }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 40px;
    gap: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-container { padding: 40px 20px 0; }
  .section-container { padding: 0 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-container { padding: 0 20px; gap: 40px; }
  .footer-container { grid-template-columns: 1fr; padding: 0 20px 40px; }
  .video-card { flex: 0 0 200px; }
}

@media (max-width: 480px) {
  .marquee-section { height: 100px; }
  .marquee-top { transform: translateY(-50%) rotate(-7deg); }
  .marquee-bottom { transform: translateY(-50%) rotate(7deg); }
  .stats-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
}

