/* =============================================
   REAL ESTATE AUTOMATION — style.css
   ============================================= */

/* ---- Variables ---- */
:root {
  --orange:       #ff7a00;
  --orange-light: #ff9a3c;
  --bg-dark:      #0c0f14;
  --bg-darker:    #08090d;
  --bg-mid:       #111620;
  --bg-white:     #ffffff;
  --bg-light:     #f7f8fa;
  --text-white:   #f0f4ff;
  --text-dark:    #111827;
  --text-muted:   #6b7280;
  --text-mid:     #374151;
  --border-dark:  rgba(255,255,255,0.07);
  --border-light: rgba(0,0,0,0.08);
  --card-dark:    #161c27;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  overflow-x: hidden;
  line-height: 1.65;
}

img { display: block; width: 100%; object-fit: cover; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Utilities ---- */
.mt { margin-top: 16px; }

.section-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.section-label.center { display: block; text-align: center; }

.section-title {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-dark);
}
.section-title.center { text-align: center; }
.section-title.white  { color: var(--text-white); }

.body-text {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--orange-light); transform: translateY(-2px); }
.btn-primary.sm   { padding: 10px 18px; font-size: 0.8rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-white);
  padding: 13px 22px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 0.3s, background 0.3s;
  white-space: nowrap;
}
.btn-ghost:hover  { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.04); }
.btn-ghost.sm     { padding: 10px 18px; font-size: 0.8rem; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp   { from { opacity:0; transform:translateY(36px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulseRing{
  0%   { box-shadow: 0 0 0 0   rgba(255,122,0,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(255,122,0,0); }
  100% { box-shadow: 0 0 0 0   rgba(255,122,0,0); }
}
@keyframes gradMove {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible      { opacity: 1; transform: translateY(0); }
.reveal-delay-1      { transition-delay: 0.12s; }
.reveal-delay-2      { transition-delay: 0.22s; }
.reveal-delay-3      { transition-delay: 0.32s; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(10, 12, 18, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-family: 'Kanit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}
.logo-jury { color: #fff; }
.logo-soft { color: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: #fff;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.3s;
}
.nav-cta:hover { background: var(--orange-light); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border-dark);
  background: rgba(10, 12, 18, 0.97);
}
.mobile-menu.open { display: flex; }
.mobile-menu ul   { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a    { display: block; padding: 11px 0; font-size: 0.9rem; color: rgba(255,255,255,0.8); border-bottom: 1px solid var(--border-dark); }
.mobile-menu a:hover { color: #fff; }
.mobile-cta { color: var(--orange) !important; border-bottom: none !important; font-weight: 600; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  padding: 130px 0 80px;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 50%, rgba(255,122,0,0.05) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(59,130,246,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.case-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255,122,0,0.1);
  border: 1px solid rgba(255,122,0,0.22);
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 22px;
}

.hero-title {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.0;
  margin-bottom: 18px;
  color: #fff;
}
.hero-orange {
  color: var(--orange);
}

.hero-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 28px;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero Image */
.hero-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
}
.hero-img-wrap img { height: 400px; }

.hero-badge {
  position: absolute;
  bottom: 18px; left: 18px;
  background: rgba(8, 9, 13, 0.88);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 16px;
  backdrop-filter: blur(10px);
}
.badge-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.badge-val {
  font-family: 'Kanit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  padding: 60px 0;
  background: var(--bg-white);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.stat-num {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border-light);
  flex-shrink: 0;
}

/* =============================================
   CHALLENGE SECTION
   ============================================= */
.challenge {
  padding: 100px 0;
  background: var(--bg-mid);
}

.challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.challenge-left .section-title { color: var(--text-white); }

.ch-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.ch-card {
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 22px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.ch-card:hover { border-color: rgba(255,122,0,0.22); transform: translateY(-4px); }

.ch-card i {
  color: var(--orange);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.ch-card h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.ch-card p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* Challenge Image */
.challenge-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
}
.challenge-img-wrap img { height: 480px; }

/* =============================================
   SOLUTION SECTION
   ============================================= */
.solution {
  padding: 100px 0;
  background: var(--bg-white);
}

.solution-header {
  margin-bottom: 60px;
}

.solution-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.solution-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.solution-img-wrap img { height: 420px; }

/* Steps */
.solution-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}
.step-item:first-child { padding-top: 0; }
.step-item:last-child  { border-bottom: none; padding-bottom: 0; }

.step-num {
  font-family: 'Kanit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  flex-shrink: 0;
  min-width: 44px;
}

.step-content h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  font-family: 'Kanit', sans-serif;
}
.step-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  padding: 80px 0 100px;
  background: var(--bg-dark);
}

.cta-card {
  background: var(--bg-mid);
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 60%, rgba(255,122,0,0.06) 0%, transparent 55%);
  pointer-events: none;
}

.cta-title {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #fff;
}

.cta-sub {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
}

.cta-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cta-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
}
.cta-list li i { color: var(--orange); font-size: 0.9rem; }

/* CTA Image */
.cta-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
}
.cta-img-wrap img { height: 280px; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-dark);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr 1.6fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-logo { margin-bottom: 14px; display: inline-block; }

.footer-brand p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.75;
  margin-bottom: 20px;
}

.footer-btns { display: flex; flex-direction: column; gap: 10px; max-width: 160px; }

.footer-col h6 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-col a:hover { color: rgba(255,255,255,0.8); }

.footer-address {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
}
.footer-address strong { color: rgba(255,255,255,0.65); display: block; margin-bottom: 2px; }
.footer-email {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--orange);
  transition: opacity 0.2s;
}
.footer-email:hover { opacity: 0.75; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.25); }
.footer-links    { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a  { font-size: 0.75rem; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.7); }

/* =============================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================= */
@media (max-width: 1024px) {
  .hero-grid,
  .challenge-grid,
  .solution-grid,
  .cta-card {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }

  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .hamburger { display: flex; }

  .hero-title { font-size: 3rem; }

  .ch-cards { grid-template-columns: 1fr 1fr; }
}

/* =============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================= */
@media (max-width: 768px) {
  .hero          { padding: 100px 0 60px; }
  .challenge,
  .solution,
  .cta-section   { padding: 70px 0; }
  .footer        { padding: 50px 0 0; }

  .hero-title    { font-size: 2.4rem; }
  .hero-sub      { font-size: 0.85rem; }
  .hero-img-wrap img { height: 240px; }

  .stats-grid    { flex-direction: column; gap: 28px; }
  .stat-divider  { width: 80px; height: 1px; }

  .section-title { font-size: 1.75rem; }

  .challenge-img-wrap img { height: 240px; }
  .ch-cards { grid-template-columns: 1fr; }

  .solution-img-wrap img { height: 240px; }

  .step-num    { font-size: 1.6rem; min-width: 36px; }

  .cta-card    { padding: 36px 24px; border-radius: 16px; gap: 32px; }
  .cta-card::before { display: none; }
  .cta-img-wrap img { height: 200px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-links  { gap: 14px; }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================= */
@media (max-width: 480px) {
  .hero-title    { font-size: 2rem; }
  .hero-btns     { flex-direction: column; align-items: flex-start; }
  .btn-primary,
  .btn-ghost     { width: 100%; justify-content: center; }

  .stat-num      { font-size: 2rem; }
  .cta-title     { font-size: 1.75rem; }
  .section-title { font-size: 1.6rem; }
}