/* ══════════════════════════════════════════════════════════════════
   Chotima Enterprise — Unified Stylesheet
   ทุกหน้าใช้ไฟล์นี้ไฟล์เดียว: css/style.css
   ══════════════════════════════════════════════════════════════════ */

/* ═══ 1. RESET & VARIABLES ═══ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

:root {
  --font: 'Noto Sans Thai', 'Plus Jakarta Sans', system-ui, sans-serif;
  --primary: #1d8ad9;
  --primary-dark: #1667a6;
  --blue: #0c75c6;
  --blue-d: #0a5a99;
  --blue-l: #e8f4fd;
  --orange: #f97316;
  --orange-l: #fff7ed;
  --orange-glow: #fbbf24;
  --purple: #7c3aed;
  --purple-l: #f5f3ff;
  --green:#23bc0c;
  --text: #1e293b;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --card: #ffffff;
  --border: rgba(148, 163, 184, 0.2);
  --border-soft: rgba(148, 163, 184, 0.35);
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.07);
  --shadow-soft: 0 12px 24px rgba(15, 23, 42, 0.12);
  --radius: 20px;
  --radius-lg: 28px;
  --tr: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-padding-desktop: 32px;
  --container-padding-tablet: 28px;
  --container-padding-mobile: 24px;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

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

html,
body {
  height: 100%;
  width: 100%;
  margin: 0
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased
}

a {
  text-decoration: none;
  color: inherit
}

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

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column
}

main {
  flex: 1
}

/* ═══ 2. CONTAINER ═══ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px
}

section.section {
  padding: 60px 0
}

.section-header {
  text-align: center;
  margin-bottom: 40px
}

.section-header h1 {
  font-size: clamp(1.8rem, 2vw+1rem, 2.2rem);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text)
}

.section-header p {
  color: var(--muted);
  font-size: .95rem
}

.section.section-alt {
  background: var(--bg-alt);
  padding: 60px 0
}

/* Calculator Section Header */
.calc-label h1 {
  color: var(--green)
}

/* Breadcrumb */
.breadcrumb {
  text-align: left;
  padding: 24px 0 0;
  font-size: .83rem;
  color: var(--muted)
}

.breadcrumb a {
  color: var(--purple);
  font-weight: 500
}

.breadcrumb a:hover {
  text-decoration: underline
}

/* ═══ 3. HEADER ═══ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow var(--tr)
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, .08)
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--container-padding-desktop)
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #1f2933;
  text-decoration: none
}

.logo img {
  height: 52px;
  width: auto
}

.logo span {
  color: #0f3c68;
  font-weight: 600;
  letter-spacing: .2px
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0
}

.main-nav a {
  font-size: .92rem;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--tr)
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--tr)
}

.main-nav a:hover {
  color: var(--blue)
}

.main-nav a:hover::after {
  width: 100%
}

/* ── Toggle Button (Animated Hamburger → X) ── */
.nav-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 12px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background .25s ease;
  -webkit-tap-highlight-color: transparent
}

.nav-toggle:hover {
  background: rgba(12, 117, 198, .08)
}

.nav-toggle:active {
  background: rgba(12, 117, 198, .14)
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--text);
  border-radius: 999px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition:
    top .25s ease .25s,
    bottom .25s ease .25s,
    transform .25s ease 0s,
    opacity .15s ease .25s,
    background .25s ease
}

.nav-toggle span:nth-child(1) { top: 12px }
.nav-toggle span:nth-child(2) { top: 50%; transform: translate(-50%, -50%) }
.nav-toggle span:nth-child(3) { bottom: 12px }

.nav-toggle.active span {
  background: var(--blue);
  transition:
    top .25s ease 0s,
    bottom .25s ease 0s,
    transform .25s ease .25s,
    opacity .15s ease .1s,
    background .25s ease
}

.nav-toggle.active span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg)
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0)
}

.nav-toggle.active span:nth-child(3) {
  bottom: 50%;
  transform: translate(-50%, 50%) rotate(-45deg)
}

/* ── Backdrop Overlay ── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(15, 23, 42, .35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible
}

/* ── Mobile Nav ── */
@media(max-width:960px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 101
  }

  .main-nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 88px 24px 32px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 20px 60px rgba(15, 23, 42, .12);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform .4s cubic-bezier(.22, 1, .36, 1),
      opacity .3s ease,
      visibility .3s ease
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px
  }

  .main-nav li {
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .3s ease, transform .3s ease
  }

  .main-nav.open li { opacity: 1; transform: translateY(0) }
  .main-nav.open li:nth-child(1) { transition-delay: .08s }
  .main-nav.open li:nth-child(2) { transition-delay: .13s }
  .main-nav.open li:nth-child(3) { transition-delay: .18s }
  .main-nav.open li:nth-child(4) { transition-delay: .23s }
  .main-nav.open li:nth-child(5) { transition-delay: .28s }
  .main-nav.open li:nth-child(6) { transition-delay: .33s }
  .main-nav.open li:nth-child(7) { transition-delay: .38s }
  .main-nav.open li:nth-child(8) { transition-delay: .43s }

  .main-nav a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    border-radius: 14px;
    transition: background .2s ease, color .2s ease
  }

  .main-nav a:hover,
  .main-nav a:active {
    background: var(--blue-l);
    color: var(--blue)
  }

  .main-nav a::after {
    display: none
  }
}

@media(max-width:640px) {
  .header-inner {
    padding-left: var(--container-padding-mobile);
    padding-right: var(--container-padding-mobile)
  }
}

/* ═══ 4. BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--tr);
  font-family: var(--font);
  text-decoration: none
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #0ea5e9);
  color: #fff;
  box-shadow: 0 8px 20px rgba(12, 117, 198, .3);
  border-color: transparent
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(12, 117, 198, .4)
}

.btn-outline {
  background: #fff;
  border-color: var(--border-soft);
  color: var(--text)
}

.btn-outline:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue)
}

.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 700;
  color: #fff;
  transition: all var(--tr);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15)
}

.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .2)
}

.btn-main.blue {
  background: linear-gradient(135deg, var(--blue), #0ea5e9)
}

.btn-main.purple {
  background: linear-gradient(135deg, var(--purple), #8b5cf6)
}

.back-home {
  text-align: center;
  padding: 0 0 60px
}

/* ═══ 5. HERO ═══ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, .98) 25%, rgba(255, 255, 255, .92) 45%, rgba(255, 255, 255, .6) 65%, rgba(255, 255, 255, 0) 100%);
  z-index: 0
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  pointer-events: none;
  background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, .9) 35%, rgba(255, 255, 255, .5) 65%, rgba(255, 255, 255, 0) 100%);
  z-index: 2
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 40px 80px 60px;
  width: 100%
}

.hero-text {
  max-width: 700px
}

.hero-text h1,
.hero-title-en,
.hero-title-th {
  font-size: clamp(2.4rem, 5vw+1rem, 4.2rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.02em;
  margin: 0 0 1rem;
  color: #1f2937
}

.hero-title-th {
  padding-top: 24px
}

.brand-blue,
.brand-blue1 {
  color: var(--blue)
}

.hero-badge-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #fff4e6;
  border: 1px solid #ffd8a8;
  box-shadow: 0 10px 24px rgba(255, 183, 77, .25);
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 1rem
}

.hero-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ffedd5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--orange)
}

.hero-badge-text {
  white-space: nowrap
}

.hero-text p,
.hero-describe {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #374151;
  max-width: 820px;
  margin: 0 0 1.5rem
}

.redtext {
  color: #dc2626;
  font-weight: 700;
  font-size: 1.15rem
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1rem
}

.hero-actions .btn {
  font-size: 1.02rem;
  padding: 14px 28px
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .88rem;
  margin-top: 4px
}

.hero-badges span {
  border-radius: 999px;
  padding: 6px 14px;
  background: #ffedd5;
  color: #4b5563;
  border: 1px solid #fed7aa
}

/* Hero Visual (Right Side) */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 80px;
  padding-right: 40px;
  min-height: 400px
}

.hero-visual-main {
  display: none
}

.hero-visual-main img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block
}

/* Floating Cards */
.hero-float-card {
  position: relative;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 20px 28px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .1);
  border: 1px solid rgba(148, 163, 184, .15);
  animation: float 4s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 260px
}

.hero-float-card.card-1 {
  animation-delay: 0.5s;
  transform: translateX(-30px)
}

.hero-float-card.card-2 {
  animation-delay: 0s;
  transform: translateX(20px)
}

.hero-float-card.card-3 {
  animation-delay: 1s;
  transform: translateX(-30px)
}

.hero-float-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0
}

.hero-float-card .card-icon.icon-sun {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706
}

.hero-float-card .card-icon.icon-save {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #16a34a
}

.hero-float-card .card-icon.icon-eco {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: #0284c7
}

.hero-float-card .card-content {
  display: flex;
  flex-direction: column
}

.hero-float-card .card-label {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 2px
}

.hero-float-card .card-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text)
}

.hero-float-card .card-value span {
  color: var(--blue)
}

.hero-float-card .card-value .orange {
  color: var(--orange)
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(var(--float-x, 0))
  }
  50% {
    transform: translateY(-10px) translateX(var(--float-x, 0))
  }
}

.hero-float-card.card-1 { --float-x: -30px;}
.hero-float-card.card-2 { --float-x: -150px }
.hero-float-card.card-3 { --float-x: -30px }

@media(max-width:1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 60px 24px;
    text-align: center
  }

  .hero-text {
    max-width: 100%;
    margin: 0 auto
  }

  .hero-text h1,
  .hero-title-en,
  .hero-title-th {
    font-size: clamp(2rem, 4.5vw, 3rem)
  }

  .hero-visual {
    margin-top: 32px;
    order: 2;
    align-items: center;
    padding-right: 0
  }

  .hero-float-card.card-1,
  .hero-float-card.card-2,
  .hero-float-card.card-3 {
    --float-x: 0
  }

  .hero-actions {
    justify-content: center
  }

  .hero-badges {
    justify-content: center
  }
}

@media(max-width:640px) {
  .hero-inner {
    padding: 48px 18px 60px
  }

  .hero-text h1,
  .hero-title-en,
  .hero-title-th {
    font-size: 2rem;
    line-height: 1.2
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch
  }

  .hero-badge-main {
    padding: 8px 16px;
    font-size: .88rem;
    flex-wrap: wrap
  }

  .hero-badge-text {
    white-space: normal
  }

  .hero::after {
    height: 120px
  }

  .hero-visual-main {
    max-width: 320px
  }

  .hero-float-card {
    padding: 10px 14px;
    border-radius: 12px
  }

  .hero-float-card .card-icon {
    width: 32px;
    height: 32px;
    font-size: .85rem
  }

  .hero-float-card .card-value {
    font-size: 1rem
  }
}



/* ═══ 6. ABOUT ═══ */
.about-section {
  background: #fff;
  padding: 80px 0
}

.about-heading {
  text-align: center;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  line-height: 1.2;
  margin-top: 18px;
  margin-bottom: 18px;
  color: var(--text);
  font-weight: 800
}

.about-heading .about-brand {
  color: var(--orange)
}

.about-lead {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  line-height: 1.85;
  font-size: 1rem
}

.about-lead+.about-lead {
  margin-top: 4px
}

.about-card-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px
}

.about-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--tr);
  position: relative;
  overflow: hidden
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tr)
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .1);
  border-color: transparent
}

.about-card:hover::before {
  transform: scaleX(1)
}

.about-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--blue-l);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 1.2rem;
  transition: all var(--tr)
}

.about-card:hover .about-card-icon {
  background: var(--blue);
  color: #fff;
  transform: scale(1.05)
}

.about-card-body {
  width: 100%
}

.about-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center
}

.about-card-text {
  font-size: .88rem;
  line-height: 1.65;
  color: var(--muted);
  text-align: center
}

@media(max-width:1024px) {
  .about-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:640px) {
  .about-heading {
    font-size: 1.8rem
  }

  .about-card-grid {
    grid-template-columns: 1fr
  }

  .about-lead {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset
  }
}

#about {
  scroll-margin-top: 90px
}

/* ═══ 7. CALCULATOR ═══ */
/* ====================================================== */
/* CALCULATOR SECTION                                       */
/* ====================================================== */
.calculator-section {
  padding: 60px 0 80px;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.calculator-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(5,150,105,.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(251,191,36,.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.calculator-section > .container {
  position: relative;
  z-index: 1;
}

/* Floating background icons */
.calc-float-icon {
  position: absolute !important;
  pointer-events: none;
  font-size: 2.2rem;
  opacity: 0;
  z-index: 2;
  animation: calcFloat 5s ease-in-out infinite;
}
.calc-float-icon:nth-child(1) { top: 10px; left: 250px; color: #059669; animation-delay: 0s; }
.calc-float-icon:nth-child(2) { top: 45px; right: 8%; color: #fbbf24; animation-delay: 1.8s; }
.calc-float-icon:nth-child(3) { bottom: 30px; left: 8%; color: #0ea5e9; animation-delay: 3.5s; }
@keyframes calcFloat {
  0%,100% { opacity: 0; transform: translateY(8px) rotate(0deg) scale(.9); }
  50% { opacity: .25; transform: translateY(-20px) rotate(12deg) scale(1.1); }
}

/* Container — กล่องเดียว สองคอลัมน์ติดกัน */
.calc-container {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
  overflow: hidden;
}

.calc-form-box,
.calc-result-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 36px 32px;
}

.calc-form-box {
  background: #fff;
  border-right: 1px solid var(--border);
}

/* ฝั่งขวา — พื้นหลังสีฟ้าอ่อน เชื่อมกับฝั่งซ้ายด้วยมุมโค้งขวา-บน/ล่าง */
.calc-result-box {
   background: linear-gradient(135deg, var(--blue-d), var(--primary));
}



.calc-form-box h3 {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700
}

.form-group {
  margin-bottom: 18px
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
  font-size: .9rem
}

.input-with-suffix {
  position: relative;
  display: flex;
  align-items: center
}

.input-with-suffix input {
  width: 100%;
  padding: 11px 16px;
  padding-right: 60px;
  font-size: .95rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  transition: all var(--tr);
  font-family: var(--font);
  background: #f8fafc;
  color: var(--text)
}

.input-with-suffix input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(12, 117, 198, .1);
  background: #fff;
  outline: none
}

.input-with-suffix .suffix {
  position: absolute;
  right: 16px;
  color: var(--muted);
  font-weight: 500;
  font-size: .88rem
}

.form-note {
  font-size: .75rem;
  color: var(--muted);
  margin: 4px 0 0
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px

}

.result-header i {
  font-size: 1.6rem;
  color: #fbbf24
}

.result-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: white;
}

/* ====================================================== */
/* UNIFIED RESULT CARD SYSTEM                               */
/* การ์ดทุกใบใช้โครงเดียวกัน แต่สีต่างกันตามความหมาย       */
/* ====================================================== */
.result-card {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px !important;
  min-height: 64px;
  border-radius: 10px;
  border-left: 4px solid #1d8ad9;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  transition: transform .2s ease, box-shadow .2s ease;
}

.result-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.result-card span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}
.result-card span:first-child i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.result-card > div {
  flex-shrink: 0;
  text-align: right;
}
.result-card strong {
  font-size: 1.35rem !important;
  font-weight: 800;
}
.result-card .baht {
  display: inline-block;
  margin-left: 4px;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ── สีน้ำเงิน: ประมาณการเงินลงทุน ── */
.highlight-invest {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left-color: #1d8ad9;
}
.highlight-invest span:first-child,
.highlight-invest span:first-child i { color: #1e40af; }
.highlight-invest strong { color: #1d4ed8; }
.highlight-invest .baht { color: #3b82f6; }

/* ── สีส้ม: ค่าไฟหลังติดตั้ง (กรณีปกติ — ยังต้องจ่าย) ── */
.highlight-new-bill {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-left-color: #f97316;
}
.highlight-new-bill span:first-child,
.highlight-new-bill span:first-child i { color: #9a3412; }
.highlight-new-bill strong { color: #ea580c; }
.highlight-new-bill .baht { color: #f97316; }

/* ── สีเขียว: เมื่อค่าไฟหลังติดตั้ง = "มีเงินเหลือ / ขายไฟคืน" ── */
/* JS จะเพิ่ม class .is-profit เมื่อกลายเป็นกำไร */
.highlight-new-bill.is-profit {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-left-color: #059669;
}
.highlight-new-bill.is-profit span:first-child,
.highlight-new-bill.is-profit span:first-child i { color: #065f46; }
.highlight-new-bill.is-profit strong { color: #047857; }
.highlight-new-bill.is-profit .baht { color: #059669; }

/* ── สีเขียว: ประหยัดรายเดือน + ประหยัดรายปี ── */
.highlight-save {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-left-color: #059669;
}
.highlight-save span:first-child,
.highlight-save span:first-child i { color: #065f46; }
.highlight-save strong { color: #047857; }
.highlight-save .baht { color: #059669; }

/* ── สีเขียวเข้ม: ระยะเวลาคืนทุน (เด่นกว่าด้วยตัวเลขใหญ่) ── */
.highlight-roi {
  background: #fffbeb;
  border-left: 3px solid #fbbf24;
}
.highlight-roi span:first-child,
.highlight-roi span:first-child i { color: #78350f; }
.highlight-roi strong { color: #78350f; font-size: 1.5rem !important; }
.highlight-roi .baht { color: #78350f; }

/* Note ใต้ฟอร์มฝั่งซ้าย — บอกที่มาของชั่วโมงแดด */
.calc-form-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 14px;
  background: #fffbeb;
  border-left: 3px solid #fbbf24;
  border-radius: 6px;
  font-size: .875rem;
  color: #78350f;
  line-height: 1.5;
}
.calc-form-note i { color: #f59e0b; margin-top: 3px; flex-shrink: 0; }
.calc-form-note strong { color: #92400e; }

/* CTA ใต้การ์ดผลลัพธ์ */
.result-action {
  margin-top: auto;
  text-align: center;
  padding-top: 20px
}

.result-action p {
  font-size: .9rem;
  color: white;
  margin-bottom: 14px
}

.result-action .btn {
  width: 100%;
  background: #fbbf24;
  color: #111827;
  padding: 13px;
  font-size: 1.05rem;
  font-weight: 700;
  border: none
}

.result-action .btn:hover {
  background: var(--orange);
  color: #fff
}

/* ====================================================== */
/* ANIMATIONS — Calculator Section                          */
/* ====================================================== */

/* Header reveal */
.calc-anim-header { opacity: 0; transform: translateY(30px); transition: all .7s cubic-bezier(.4,0,.2,1); }
.calc-anim-header.in-view { opacity: 1; transform: translateY(0); }
.calc-anim-header .section-chip { opacity: 0; transform: scale(.8); transition: all .5s .2s ease; }
.calc-anim-header.in-view .section-chip { opacity: 1; transform: scale(1); }
.calc-anim-header .section-divider { width: 0; transition: width .6s .4s ease; }
.calc-anim-header.in-view .section-divider { width: 60px; }

/* Form box slides from left */
.calc-anim-form { opacity: 0; transform: translateX(-40px); transition: all .7s .2s cubic-bezier(.4,0,.2,1); }
.calc-anim-form.in-view { opacity: 1; transform: translateX(0); }

/* Result box slides from right */
.calc-anim-result { opacity: 0; transform: translateX(40px); transition: all .7s .35s cubic-bezier(.4,0,.2,1); }
.calc-anim-result.in-view { opacity: 1; transform: translateX(0); }

/* Result items stagger — child(1)=result-header, child(2)=invest, child(3)=new-bill, etc. */
.calc-anim-result .result-item { opacity: 0; transform: translateY(15px); transition: all .4s ease; }
.calc-anim-result .result-action { opacity: 0; transform: translateY(15px); transition: all .4s ease; }
.calc-anim-result.in-view .result-item:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: .45s; }
.calc-anim-result.in-view .result-item:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: .6s; }
.calc-anim-result.in-view .result-item:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: .75s; }
.calc-anim-result.in-view .result-item:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: .9s; }
.calc-anim-result.in-view .result-item:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 1.05s; }
.calc-anim-result.in-view .result-action { opacity: 1; transform: translateY(0); transition-delay: 1.2s; }

/* Pulse glow on ROI number */
.calc-anim-result.in-view .highlight-roi strong {
  display: inline-block;
  animation: roiPulse 2s ease-in-out 1.2s infinite;
}
@keyframes roiPulse {
  0%,100% { transform: scale(1); color: #fbbf24; }
  50% { transform: scale(1.15); color: #da0d0d; filter: drop-shadow(0 0 8px rgba(224, 144, 144, 0.5)); }
}

/* ── Section title two-tone (ใช้กับ calculator section) ── */
.calculator-section .section-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem) !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
}
.calculator-section .section-header h1 .accent-green { color: #059669; }
.calculator-section .section-header p {
  font-size: 1rem !important;
  color: #6b7280 !important;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Section chip (เขียว) — ใช้ใน calculator section */
.calculator-section .section-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 16px;
}
.calculator-section .section-chip.green {
  background: #ecfdf5;
  color: #059669;
}

/* Responsive */
@media (max-width: 860px) {
  .calc-container { grid-template-columns: 1fr; }
  .calc-form-box {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}
@media (max-width: 768px) {
  .form-group-row { grid-template-columns: 1fr; }
  .calc-form-box, .calc-result-box { padding: 28px 22px; }
}

/* ═══ 8. CAROUSEL / SLIDER SECTIONS ═══ */
.home-section {
  padding: 80px 0 60px;
  overflow: hidden;
  position: relative
}

.home-section.alt-bg {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%)
}

.section-top {
  text-align: center;
  margin-bottom: 40px
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px
}

.section-label.blue {
  color: var(--blue)
}

.section-label.purple {
  color: var(--purple)
}

.section-label.orange {
  color: var(--orange)
}

.section-label i {
  font-size: .65rem
}

.section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 10px
}

.section-desc {
  font-size: .95rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto
}

.carousel-header {
  position: relative;
  margin-bottom: 32px
}

.carousel-header .section-top {
  text-align: center;
  margin-bottom: 0
}

.carousel-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 8px;
  align-items: center
}

.carousel-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text);
  transition: all var(--tr);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04)
}

.carousel-arrow:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-l);
  box-shadow: 0 4px 16px rgba(12, 117, 198, .12)
}

.carousel-arrow.purple:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--purple-l)
}

.slider-wrap {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%)
}

.slider-track {
  display: flex;
  gap: 20px;
  width: max-content;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1)
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all var(--tr);
  padding: 0
}

.slider-dot.active {
  width: 24px;
  background: var(--blue)
}

.slider-dot.purple.active {
  background: var(--purple)
}

.section-cta {
  text-align: center;
  margin-top: 36px
}

.placeholder-card {
  width: 320px;
  flex-shrink: 0;
  height: 300px;
  border-radius: var(--radius);
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: .85rem;
  text-align: center;
  padding: 20px
}

/* Project Card */
.p-card {
  width: 320px;
  flex-shrink: 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
  display: flex;
  flex-direction: column;
  /* จำกัดขอบเขตการคำนวณ layout/paint ไว้ในการ์ด ไม่ลามไปทั้งหน้า */
  contain: layout paint
}

.p-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .14);
  border-color: rgba(12, 117, 198, .25)
}

.p-card .card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #e2e8f0
}

.p-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease
}

.p-card:hover .card-img img {
  transform: scale(1.06)
}

.p-card .card-img .kw-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700
}

.p-card .card-img .type-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  color: var(--text);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600
}

.p-card .card-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column
}

.p-card .card-body h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.p-card .card-meta {
  font-size: .75rem;
  color: var(--muted);
  display: flex;
  gap: 12px;
  margin-bottom: 8px
}

.p-card .card-meta span {
  display: flex;
  align-items: center;
  gap: 4px
}

.p-card .card-bottom {
  margin-top: auto;
  display: flex;
  justify-content: flex-end
}

.p-card .btn-view {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--blue-l);
  color: var(--blue);
  transition: all var(--tr)
}

.p-card .btn-view:hover {
  background: var(--blue);
  color: #fff
}

/* Article Card */
.a-card {
  contain: layout paint;
  width: 340px;
  flex-shrink: 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
  display: flex;
  flex-direction: column
}

.a-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .14);
  border-color: rgba(124, 58, 237, .25)
}

.a-card .card-img {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #ede9fe
}

.a-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease
}

.a-card:hover .card-img img {
  transform: scale(1.06)
}

.a-card .card-img .cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  color: var(--purple);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700
}

.a-card .card-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column
}

.a-card .card-body h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.a-card .card-excerpt {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px
}

.a-card .card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto
}

.a-card .card-date {
  font-size: .72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px
}

.a-card .btn-read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--purple-l);
  color: var(--purple);
  transition: all var(--tr)
}

.a-card .btn-read:hover {
  background: var(--purple);
  color: #fff
}

@media(max-width:768px) {
  .carousel-header {
    position: relative
  }

  .carousel-controls {
    position: static;
    justify-content: center;
    margin-top: 16px
  }
}

@media(max-width:640px) {
  .p-card {
    width: 280px
  }

  .a-card {
    width: 290px
  }

  .p-card .card-img {
    height: 170px
  }

  .a-card .card-img {
    height: 150px
  }

  .home-section {
    padding: 60px 0 40px
  }
}

/* ═══ 9. CONTACT (Intro + Page) ═══ */
.contact-intro {
  padding: 60px 0;
  background: linear-gradient(180deg, #f3f7ff 0%, #eef6ff 40%, #f4fbff 100%)
}

.contact-intro-title {
  margin: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  line-height: 1.3;
  color: var(--text);
  text-align: center;
  font-weight: 800
}

.contact-intro-title span {
  display: block;
  color: var(--orange-glow)
}

.contact-intro-subtitle {
  text-align: center;
  margin: 0 0 32px;
  font-size: .95rem;
  color: var(--muted)
}

.contact-advisor-grid {
  max-width: 800px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px
}

.advisor-card {
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .1);
  border: 1px solid var(--border);
  transition: all var(--tr)
}

.advisor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .14)
}

.advisor-avatar {
  width: 130px;
  height: 130px;
  margin: 0 auto 16px;
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid var(--orange-l);
  box-shadow: 0 8px 24px rgba(249, 115, 22, .12)
}

.advisor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.advisor-name {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 700
}

.advisor-role {
  margin: 0 0 4px;
  font-size: .92rem;
  font-weight: 700;
  color: var(--orange)
}

.advisor-caption {
  margin: 0;
  font-size: .85rem;
  color: var(--muted)
}

.contact-cta-row {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px
}

.contact-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .15);
  transition: all var(--tr)
}

.contact-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .2)
}

.contact-cta-phone {
  background: linear-gradient(135deg, var(--orange), #fb923c)
}

.contact-cta-chat {
  background: linear-gradient(135deg, var(--blue), #0ea5e9)
}

.contact-cta-mail {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa)
}

#contact {
  scroll-margin-top: 20px
}

/* Contact page */
.contact-page-header {
  padding-top: 60px;
  padding-bottom: 20px;
  background: var(--bg-alt)
}

.contact-page-content {
  padding: 20px 0 80px
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start
}

.contact-info-box h2 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 800
}

.contact-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 28px
}

.contact-list-info {
  list-style: none;
  padding: 0;
  margin: 0
}

.contact-list-info li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-l);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0
}

.info-text strong {
  display: block;
  color: #374151;
  font-size: 1rem;
  margin-bottom: 3px
}

.info-text span,
.info-text a {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
  text-decoration: none
}

.info-text a:hover {
  color: var(--blue);
  text-decoration: underline
}

.contact-form-wrapper {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, .08);
  border: 1px solid var(--border)
}

.contact-form-wrapper h3 {
  font-size: 1.4rem;
  margin: 0 0 20px;
  color: var(--text);
  font-weight: 700
}

input,
select,
textarea {
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: .9rem;
  background: #f8fafc;
  color: var(--text);
  width: 100%;
  transition: all var(--tr)
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(12, 117, 198, .1);
  background: #fff
}

textarea {
  resize: vertical
}

@media(max-width:900px) {
  .contact-grid {
    grid-template-columns: 1fr
  }

  .contact-advisor-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:768px) {
  .contact-cta-row {
    grid-template-columns: 1fr
  }
}

/* ═══ 10. FOOTER ═══ */
.site-footer {
  background: linear-gradient(135deg, #0a3d62, var(--blue));
  color: #e5f3ff;
  padding: 40px 0 0;
  margin-top: auto;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw)
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: 0 24px
}

.footer-brand-block {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 640px
}

.footer-logo-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(249, 115, 22, .3);
  color: #fff;
  font-size: 1.15rem
}

.footer-brand-text h3 {
  font-size: 1.3rem;
  margin: 0 0 3px;
  font-weight: 700;
  color: #fff
}

.footer-tagline {
  margin: 0 0 8px;
  font-size: .88rem;
  color: #93c5fd
}

.footer-description {
  margin: 0;
  font-size: .88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .7)
}

.footer-contact-block {
  min-width: 260px
}

.footer-contact-block h4 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: .88rem
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.footer-contact-icon i {
  color: #fff;
  font-size: .9rem
}

.footer-contact-block a {
  color: #e5f3ff;
  text-decoration: none;
  transition: color var(--tr)
}

.footer-contact-block a:hover {
  color: var(--orange-glow)
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 12px
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px
}

.footer-bottom-inner p {
  margin: 0;
  font-size: .82rem;
  color: rgba(255, 255, 255, .5)
}

@media(max-width:900px) {
  .footer-main {
    flex-direction: column;
    gap: 24px;
    padding: 0 20px
  }

  .footer-contact-block {
    min-width: 0
  }
}

@media(max-width:600px) {
  .footer-main {
    align-items: center;
    text-align: center
  }

  .footer-brand-block {
    flex-direction: column;
    align-items: center;
    text-align: center
  }

  .footer-contact-list li {
    justify-content: center
  }
}

/* ═══ 11. ANIMATIONS ═══ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px)
  }

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

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0)
}

/* ═══ 12. FLOATING CHAT ═══ */
.float-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #06c755;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 28px rgba(6, 199, 85, .4);
  cursor: pointer;
  transition: all var(--tr);
  border: none
}

.float-chat:hover {
  transform: scale(1.08)
}

/* ===== ปุ่มคำนวณอย่างละเอียด — ลิงก์ไป calculator.html ===== */
.calc-detail-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
    text-decoration: none;
    color: #065f46;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}

.calc-detail-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    opacity: 0;
    transition: opacity .25s ease;
    z-index: 0;
}

.calc-detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, .25);
    border-color: #059669;
}

.calc-detail-btn:hover::before { opacity: 1; }

.calc-detail-btn:hover .calc-detail-btn-icon,
.calc-detail-btn:hover .calc-detail-btn-text strong,
.calc-detail-btn:hover .calc-detail-btn-text small,
.calc-detail-btn:hover .calc-detail-btn-arrow { color: #fff; }

.calc-detail-btn:hover .calc-detail-btn-icon { background: rgba(255,255,255,.2); }

.calc-detail-btn-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: #10b981;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background .25s ease, color .25s ease;
    position: relative;
    z-index: 1;
}

.calc-detail-btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.calc-detail-btn-text strong {
    font-size: 1rem;
    font-weight: 800;
    color: #065f46;
    transition: color .25s ease;
}

.calc-detail-btn-text small {
    font-size: .78rem;
    font-weight: 500;
    color: #047857;
    margin-top: 2px;
    transition: color .25s ease;
}

.calc-detail-btn-arrow {
    flex-shrink: 0;
    color: #059669;
    font-size: 1rem;
    transition: color .25s ease, transform .25s ease;
    position: relative;
    z-index: 1;
}

.calc-detail-btn:hover .calc-detail-btn-arrow {
    transform: translateX(4px);
}

/* Responsive — มือถือเล็กลง */
@media (max-width: 480px) {
    .calc-detail-btn {
        padding: 12px 14px;
        gap: 10px;
    }
    .calc-detail-btn-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .calc-detail-btn-text strong { font-size: .92rem; }
    .calc-detail-btn-text small { font-size: .72rem; }
}
/* ═══ 13. REVEAL ANIMATION ═══
   ใช้คู่กับ js/reveal.js — ดูวิธีใช้ในไฟล์นั้น
   ใช้เฉพาะ opacity + transform เพื่อไม่ให้เกิดการคำนวณ layout ใหม่ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s cubic-bezier(.22, .61, .36, 1),
              transform .65s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.reveal-left  { transform: translateX(-28px) }
.reveal-right { transform: translateX(28px) }
.reveal-zoom  { transform: scale(.94) }
.reveal-fade  { transform: none }

/* จอเล็ก ลดระยะเคลื่อนลง ให้ดูกระชับกว่า */
@media (max-width: 640px) {
  .reveal       { transform: translateY(16px) }
  .reveal-left,
  .reveal-right { transform: translateY(16px) }
}

/* ผู้ใช้ตั้งค่าลดการเคลื่อนไหว — แสดงทันที ไม่มีแอนิเมชัน */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
