/* ==========================================================================
   พระนครทอง (PRANAKORNTHONG) - LUXURY REDESIGN STYLESHEET
   Theme: Modern Luxury White - Gold - Slate Gray
   Typography: Prompt & Kanit (Google Fonts)
   Interactions: Spring Bouncy Micro-animations & Rounded Curves
   ========================================================================== */

:root {
  /* Royal Gold Palette */
  --gold-primary: #D4AF37;
  --gold-secondary: #AA771C;
  --gold-light: #FBF5B7;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --gold-gradient: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
  --gold-gradient-soft: linear-gradient(135deg, #E6CA65 0%, #D4AF37 50%, #AA771C 100%);
  --gold-subtle-bg: rgba(212, 175, 55, 0.08);

  /* Modern White & Pearl */
  --bg-main: #FAFAF9;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --border-light: rgba(226, 232, 240, 0.8);
  --border-gold: rgba(212, 175, 55, 0.4);

  /* Slate & Charcoal Gray */
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --gray-dark: #0F172A;
  --gray-card: #1E293B;
  --gray-surface: #F1F5F9;

  /* Line & Call brand colors */
  --line-color: #06C755;
  --line-glow: rgba(6, 199, 85, 0.35);
  --tel-color: #EAB308;
  --tel-glow: rgba(234, 179, 8, 0.35);

  /* Curves & Spring Transitions */
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --radius-pill: 9999px;
  --spring-bounce: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0,0,0,0.05);
  --shadow-gold: 0 12px 32px -4px rgba(170, 119, 28, 0.25);
  --shadow-float: 0 20px 35px -8px rgba(0, 0, 0, 0.18);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  color: var(--gray-dark);
  line-height: 1.25;
}

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

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

/* Luxury Gold Text Gradient */
.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gold-solid {
  color: var(--gold-secondary);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--spring-bounce);
  padding: 1.25rem 0;
}

.site-header.scrolled {
  padding: 0.65rem 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid var(--border-gold);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 15px var(--gold-glow);
  border: 2px solid #E6CA65;
  transition: var(--spring-bounce);
}

.brand-logo:hover img {
  transform: scale(1.08) rotate(4deg);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: var(--gold-gradient);
  border-radius: var(--radius-pill);
  transition: var(--spring-bounce);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--gold-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Luxury Pill Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-family: 'Kanit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  transition: var(--spring-bounce);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.96);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #1A1A1A;
  box-shadow: 0 8px 22px var(--gold-glow);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 28px rgba(170, 119, 28, 0.4);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-secondary);
  border: 1.5px solid var(--gold-secondary);
}

.btn-outline-gold:hover {
  background: var(--gold-subtle-bg);
  transform: translateY(-2px) scale(1.02);
  border-color: var(--gold-primary);
}

.btn-line {
  background: var(--line-color);
  color: #FFFFFF;
  box-shadow: 0 8px 20px var(--line-glow);
}

.btn-line:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 26px rgba(6, 199, 85, 0.45);
}

.btn-tel {
  background: var(--gray-dark);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
}

.btn-tel:hover {
  transform: translateY(-3px) scale(1.03);
  background: #000000;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--gray-dark);
  font-size: 1.5rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 8.5rem;
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.06) 0%, transparent 40%),
              linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(#D4AF37 0.75px, transparent 0.75px);
  background-size: 28px 28px;
  opacity: 0.12;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-secondary);
  margin-bottom: 1.5rem;
  animation: floatSoft 4s ease-in-out infinite;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 580px;
}

/* Trust Guarantee Pills */
.hero-guarantees {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #FFFFFF;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-dark);
  transition: var(--spring-bounce);
}

.guarantee-item:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 20px var(--gold-glow);
}

.guarantee-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-gradient);
  color: #1A1A1A;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero Visual & Image Showcase */
.hero-visual {
  position: relative;
}

.hero-main-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(212, 175, 55, 0.3);
  background: #FFFFFF;
  transition: var(--spring-bounce);
}

.hero-main-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-float), 0 0 35px var(--gold-glow);
}

.hero-image-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-main-card:hover .hero-image-wrapper img {
  transform: scale(1.06);
}

.hero-card-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-badge-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
}

.hero-badge-sub {
  font-size: 0.8rem;
  color: #CBD5E1;
}

/* Floating floating tags on hero */
.floating-stat-card {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  background: #FFFFFF;
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 3;
  animation: floatHard 5s ease-in-out infinite;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--gold-subtle-bg);
  color: var(--gold-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.stat-value {
  font-family: 'Kanit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gray-dark);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SERVICES SECTION (จบครบในที่เดียว)
   ========================================================================== */
.services-section {
  padding: 6.5rem 0;
  background: #FFFFFF;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-secondary);
  background: var(--gold-subtle-bg);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
  border: 1px solid var(--border-gold);
}

.section-title {
  font-size: 2.65rem;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--spring-bounce);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: #FFFFFF;
  box-shadow: var(--shadow-lg), 0 0 25px var(--gold-glow);
  border-color: var(--border-gold);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  box-shadow: 0 6px 16px var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: var(--spring-bounce);
}

.service-card:hover .service-icon-box {
  transform: scale(1.12) rotate(-5deg);
  background: var(--gold-gradient);
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
  color: var(--gray-dark);
}

.service-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features li::before {
  content: '✓';
  color: var(--gold-secondary);
  font-weight: 800;
}

/* ==========================================================================
   PORTFOLIO & SHOWCASE (ผลงานจริงคัดสรร)
   ========================================================================== */
.portfolio-section {
  padding: 6.5rem 0;
  background: #F8FAFC;
  position: relative;
}

.portfolio-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 3.25rem;
}

.tab-btn {
  padding: 0.65rem 1.45rem;
  font-family: 'Kanit', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--spring-bounce);
}

.tab-btn:hover {
  color: var(--gold-secondary);
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: var(--gray-dark);
  color: #FFFFFF;
  border-color: var(--gray-dark);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
  font-weight: 600;
}

/* Project Cards Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--spring-bounce);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-lg), 0 0 30px var(--gold-glow);
  border-color: var(--border-gold);
}

.project-image-box {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
  background: #E2E8F0;
  cursor: pointer;
}

.project-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image-box img {
  transform: scale(1.08);
}

.project-tag-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.project-photos-count {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.75);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  backdrop-filter: blur(6px);
}

.project-content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--gold-secondary);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.project-title {
  font-size: 1.22rem;
  line-height: 1.35;
  margin-bottom: 0.85rem;
  color: var(--gray-dark);
}

.project-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-surface);
}

.meta-chip {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--gray-surface);
  color: var(--text-muted);
  font-weight: 500;
}

.btn-view-gallery {
  width: 100%;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  background: var(--gold-subtle-bg);
  color: var(--gold-secondary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: var(--spring-bounce);
}

.btn-view-gallery:hover {
  background: var(--gold-gradient);
  color: #1A1A1A;
  transform: translateY(-2px);
}

/* Fences & Walls Subgrid */
.fences-container {
  margin-top: 4.5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border-light);
}

.fences-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.fence-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--spring-bounce);
  cursor: pointer;
}

.fence-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-md);
}

.fence-img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.fence-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.fence-card:hover .fence-img-wrap img {
  transform: scale(1.08);
}

.fence-info {
  padding: 1.15rem;
}

.fence-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.fence-loc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   WHY CHOOSE US (ทำไมต้องเลือกพระนครทอง)
   ========================================================================== */
.why-us-section {
  padding: 6.5rem 0;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.07) 0%, transparent 40%),
              #FFFFFF;
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.why-feature-card {
  display: flex;
  gap: 1.35rem;
  padding: 1.5rem;
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: var(--spring-bounce);
}

.why-feature-card:hover {
  transform: translateX(8px);
  background: #FFFFFF;
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-md), 0 0 20px var(--gold-glow);
}

.feature-num {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--gold-gradient);
  color: #1A1A1A;
  font-family: 'Kanit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px var(--gold-glow);
}

.feature-title {
  font-size: 1.22rem;
  margin-bottom: 0.35rem;
  color: var(--gray-dark);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.why-media-box {
  position: relative;
}

.why-image-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-gold);
}

.why-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   VIDEO & SOCIAL SECTION (YouTube & Facebook)
   ========================================================================== */
.media-section {
  padding: 6rem 0;
  background: #F8FAFC;
  position: relative;
  overflow: hidden;
}

.media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.video-frame-card,
.social-page-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.video-frame-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  padding: clamp(1.25rem, 3.5vw, 2rem);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.video-player-box {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0F172A;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.25rem;
}

.video-player-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  border: none;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF;
  padding: clamp(0.75rem, 2.5vw, 1.5rem);
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
}

.play-pulse-btn {
  width: clamp(48px, 9vw, 68px);
  height: clamp(48px, 9vw, 68px);
  border-radius: var(--radius-pill);
  background: var(--gold-gradient);
  color: #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 0.65rem;
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
  animation: pulseGold 2s infinite;
  transition: var(--spring-bounce);
  flex-shrink: 0;
}

.video-placeholder:hover .play-pulse-btn {
  transform: scale(1.12);
}

.video-title-prompt {
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: #FFFFFF;
  margin-bottom: 0.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.video-sub-prompt {
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  color: #94A3B8;
  line-height: 1.4;
}

.video-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  margin-top: auto;
}

.social-page-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: clamp(1.25rem, 3.5vw, 2rem);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.fb-brand-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.fb-icon-circle {
  width: clamp(42px, 8vw, 52px);
  height: clamp(42px, 8vw, 52px);
  border-radius: var(--radius-pill);
  background: #1877F2;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  flex-shrink: 0;
}

.fb-preview-box {
  background: var(--bg-main);
  border-radius: var(--radius-md);
  padding: clamp(0.85rem, 2.5vw, 1.25rem);
  border: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  word-break: break-word;
}

/* ==========================================================================
   ARTICLES & KNOWLEDGE BASE (สาระน่ารู้เรื่องการถมดิน)
   ========================================================================== */
.articles-section {
  padding: 6.5rem 0;
  background: #FFFFFF;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-card {
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--spring-bounce);
}

.article-card:hover {
  transform: translateY(-6px);
  background: #FFFFFF;
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-lg), 0 0 25px var(--gold-glow);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.article-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-secondary);
  background: var(--gold-subtle-bg);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.article-title {
  font-size: 1.35rem;
  line-height: 1.35;
  margin-bottom: 1rem;
  color: var(--gray-dark);
}

.article-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Q&A / FAQ SECTION (ถาม-ตอบ ข้อสงสัยยอดฮิต)
   ========================================================================== */
.faq-section {
  padding: 6.5rem 0;
  background: #F8FAFC;
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--spring-bounce);
}

.faq-item.active {
  border-color: var(--gold-primary);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

.faq-question {
  width: 100%;
  padding: 1.4rem 1.75rem;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: 'Kanit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray-dark);
  text-align: left;
}

.faq-icon-arrow {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--gray-surface);
  color: var(--gold-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: var(--spring-bounce);
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
  background: var(--gold-gradient);
  color: #1A1A1A;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.75rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.4rem;
}

/* ==========================================================================
   CALL TO ACTION (CTA BANNER)
   ========================================================================== */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.cta-card {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  color: #FFFFFF;
  font-size: 2.85rem;
  margin-bottom: 1.25rem;
}

.cta-desc {
  font-size: 1.15rem;
  color: #CBD5E1;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #0B1120;
  color: #94A3B8;
  padding: 5rem 0 2.5rem 0;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  line-height: 1.7;
  margin-top: 1rem;
}

.footer-heading {
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold-gradient);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a:hover {
  color: var(--gold-light);
  transform: translateX(4px);
  display: inline-block;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #64748B;
}

/* ==========================================================================
   STICKY FLOATING CONTACT BUTTONS (ปุ่มโทร & ไลน์ค้างตลอดเวลา)
   ========================================================================== */
.floating-actions-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 999;
}

.fab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  font-family: 'Kanit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-float);
  transition: var(--spring-bounce);
  animation: springEntry 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.fab-btn:hover {
  transform: translateY(-5px) scale(1.08);
}

.fab-btn:active {
  transform: scale(0.95);
}

.fab-line {
  background: linear-gradient(135deg, #06C755 0%, #05A847 100%);
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 25px rgba(6, 199, 85, 0.45);
}

.fab-tel {
  background: var(--gold-gradient);
  color: #1A1A1A;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.45);
}

.fab-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Sticky Bottom Bar for Mobile */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 1rem;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.08);
  border-top: 1px solid var(--border-gold);
  z-index: 998;
}

.mobile-bar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* ==========================================================================
   LIGHTBOX MODAL (ขยายภาพขนาดใหญ่ HD & สไลเดอร์)
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 25, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrapper {
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.lightbox-img-wrapper img {
  max-height: 75vh;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.lightbox-caption {
  margin-top: 1rem;
  color: #FFFFFF;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
}

.lightbox-close-btn {
  position: absolute;
  top: -3.5rem;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--spring-bounce);
}

.lightbox-close-btn:hover {
  background: var(--gold-gradient);
  color: #1A1A1A;
  transform: rotate(90deg) scale(1.1);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border: none;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--spring-bounce);
}

.lightbox-nav-btn:hover {
  background: var(--gold-gradient);
  color: #1A1A1A;
  transform: translateY(-50%) scale(1.15);
}

.lightbox-prev {
  left: -4rem;
}

.lightbox-next {
  right: -4rem;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatHard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulseGold {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

@keyframes springEntry {
  0% { transform: scale(0.6) translateY(50px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Reveal on Scroll */
.reveal-item {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-title {
    font-size: 2.75rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fences-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .media-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .lightbox-prev {
    left: 1rem;
  }
  .lightbox-next {
    right: 1rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.85rem 0;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    padding: 2rem 1.5rem;
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    transition: var(--spring-bounce);
    border-bottom: 2px solid var(--gold-primary);
  }
  .nav-links.active {
    transform: translateY(0);
  }
  .header-actions {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-guarantees {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .fences-grid {
    grid-template-columns: 1fr;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .media-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .video-frame-card,
  .social-page-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }
  .video-footer-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .video-footer-row .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .floating-actions-container {
    display: none; /* replaced by mobile sticky bar */
  }
  .mobile-sticky-bar {
    display: block;
  }
  .hero-card-badge {
    position: static;
    margin-top: 1rem;
    background: var(--gray-dark);
  }
}

@media (max-width: 480px) {
  .media-section {
    padding: 4rem 0;
  }
  .video-frame-card,
  .social-page-card {
    padding: 1rem 0.85rem;
  }
  .video-placeholder {
    padding: 0.5rem;
  }
  .play-pulse-btn {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
  }
  .video-title-prompt {
    font-size: 0.9rem;
  }
  .video-sub-prompt {
    font-size: 0.72rem;
  }
}
