/* === PBN: 3BBHomeFiber — Design System === */
/* Kanit via Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --green-600: #16a34a;
  --green-700: #15803d;
  --orange-500: #f97316;
  --radius: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Kanit', 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  line-height: 1.7;
  background: var(--white);
}

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

/* === Typography === */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: 1.75rem; font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
a { color: var(--blue-600); text-decoration: none; transition: color .15s; }
a:hover { color: var(--blue-700); }

/* === Header === */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.95);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
}
.logo span { color: var(--blue-600); }
nav { display: flex; gap: 6px; }
nav a {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all .15s;
}
nav a:hover, nav a.active {
  color: var(--blue-600);
  background: var(--blue-50);
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--gray-900) 0%, #1e3a5f 50%, var(--blue-600) 100%);
  color: var(--white);
  padding: 88px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 14px; color: var(--white); }
.hero h1 span { color: #93c5fd; }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin: 0 auto 30px;
  font-weight: 300;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s, transform .15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--blue-700); color: var(--white); transform: translateY(-1px); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  transition: all .15s;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }
.btn-green {
  background: var(--green-600);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s, transform .15s;
}
.btn-green:hover { background: var(--green-700); color: var(--white); transform: translateY(-1px); }
.btn-white {
  background: var(--white);
  color: var(--blue-600);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .15s;
}
.btn-white:hover { background: var(--gray-100); color: var(--blue-700); }

/* === Sections === */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 10px; }
.section-header p { color: var(--gray-500); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.bg-white { background: var(--white); }
.bg-gray { background: var(--gray-50); }

/* === Feature Grid (with Lucide icons) === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.feature {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: box-shadow .2s;
}
.feature:hover { box-shadow: var(--shadow-md); }
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 24px; height: 24px; color: var(--blue-600); }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--gray-600); font-size: 0.95rem; }

/* === Package Cards === */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.package-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px 28px;
  text-align: center;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.package-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.package-card.featured { border-color: var(--blue-600); border-width: 2px; }
.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-600);
  color: var(--white);
  padding: 4px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.package-card h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--gray-800); }
.package-card .speed { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 14px; }
.package-card .price { font-size: 2.2rem; font-weight: 800; color: var(--blue-600); margin-bottom: 4px; }
.package-card .price span { font-size: 0.9rem; font-weight: 400; color: var(--gray-400); }
.package-card ul { text-align: left; margin: 18px 0 22px; list-style: none; }
.package-card li {
  padding: 6px 0 6px 26px;
  font-size: 0.9rem;
  color: var(--gray-600);
  position: relative;
}
.package-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 14px;
  background: var(--blue-100);
  border-radius: 50%;
}
.package-card li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 14px;
  width: 4px;
  height: 8px;
  border-right: 2px solid var(--blue-600);
  border-bottom: 2px solid var(--blue-600);
  transform: rotate(45deg);
}
.card-btn {
  display: inline-block;
  background: var(--blue-600);
  color: var(--white);
  padding: 10px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}
.card-btn:hover { background: var(--blue-700); color: var(--white); }

/* === Blog Cards === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--white);
  transition: box-shadow .2s;
}
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 8px; line-height: 1.4; }
.blog-card h3 a { color: var(--gray-900); }
.blog-card h3 a:hover { color: var(--blue-600); }
.blog-card p { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 14px; line-height: 1.6; }
.blog-card .date { color: var(--gray-400); font-size: 0.8rem; font-weight: 400; }

/* === Why / Trust Section === */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  text-align: center;
}
.trust-item .trust-icon {
  width: 64px;
  height: 64px;
  background: var(--blue-50);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.trust-item .trust-icon svg { width: 32px; height: 32px; color: var(--blue-600); }
.trust-item h3 { margin-bottom: 8px; }
.trust-item p { color: var(--gray-500); font-size: 0.95rem; }

/* === CTA Section === */
.cta-section {
  background: var(--blue-600);
  color: var(--white);
  text-align: center;
  padding: 72px 0;
}
.cta-section h2 { color: var(--white); margin-bottom: 10px; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 560px; margin: 0 auto 28px; font-weight: 300; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* === Content Pages === */
.page-content { max-width: 860px; margin: 0 auto; padding: 56px 0; }

/* Breadcrumb */
.breadcrumb { padding: 16px 0; color: var(--gray-500); font-size: 0.85rem; margin-bottom: 8px; }
.breadcrumb a { color: var(--gray-600); }
.breadcrumb a:hover { color: var(--blue-600); }

/* Package Table */
.package-table-section { margin: 48px 0; }
.package-table-section h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-200);
}
.package-table-section > p { color: var(--gray-500); margin-bottom: 20px; font-size: 0.95rem; }
.package-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}
.package-row.header { font-weight: 600; color: var(--gray-400); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--gray-200); }
.package-name { font-weight: 600; color: var(--gray-800); }
.package-speed { color: var(--gray-500); font-size: 0.9rem; }
.package-price { text-align: right; }
.price-tag { font-size: 1.25rem; font-weight: 700; color: var(--blue-600); }
.price-tag span { font-size: 0.85rem; color: var(--gray-400); font-weight: 400; }
.package-features { grid-column: 1 / -1; padding: 0 0 14px 0; margin-top: -6px; }
.package-features ul { display: flex; flex-wrap: wrap; gap: 8px; }
.package-features li { background: var(--blue-50); padding: 4px 14px; border-radius: 100px; font-size: 0.8rem; color: var(--gray-700); }

/* === Blog Post === */
.blog-post h1 { font-size: 2rem; margin-bottom: 4px; }
.blog-post .post-meta { color: var(--gray-400); font-size: 0.9rem; margin-bottom: 36px; }
.blog-post p { margin-bottom: 20px; font-size: 1.05rem; line-height: 1.8; }
.blog-post h2 { font-size: 1.35rem; margin: 40px 0 14px; color: var(--gray-900); }
.blog-post h3 { font-size: 1.1rem; margin: 28px 0 10px; color: var(--gray-800); }
.blog-post ol, .blog-post ul { margin: 14px 0 22px 28px; }
.blog-post ol { list-style-type: decimal; }
.blog-post ul { list-style-type: disc; }
.blog-post li { margin-bottom: 6px; line-height: 1.7; }
.blog-post .highlight-box {
  background: var(--blue-50);
  border-left: 4px solid var(--blue-600);
  padding: 18px 22px;
  margin: 28px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
}
.blog-post .highlight-box strong { color: var(--blue-600); }

/* === Contact Cards === */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 32px 0 40px; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow .2s;
}
.contact-card:hover { box-shadow: var(--shadow-md); }
.contact-card .cc-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.contact-card .cc-icon svg { width: 24px; height: 24px; color: var(--blue-600); }
.contact-card h3 { margin-bottom: 8px; color: var(--gray-800); }
.contact-card p { color: var(--gray-500); font-size: 0.9rem; }
.contact-card a { color: var(--blue-600); }
.referral-box {
  background: var(--blue-50);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  font-size: 1.05rem;
}

/* === Footer === */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
  margin-bottom: 36px;
}
.footer-grid h4 { color: var(--white); margin-bottom: 14px; font-size: 0.95rem; font-weight: 600; }
.footer-grid a { display: block; color: var(--gray-500); padding: 4px 0; font-size: 0.9rem; transition: color .15s; }
.footer-grid a:hover { color: var(--white); }
.footer-grid p { font-size: 0.9rem; line-height: 1.7; }
.copyright {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--gray-800);
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* === Utility === */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }

/* === Responsive === */
@media (max-width: 768px) {
  nav { gap: 2px; }
  nav a { font-size: 0.8rem; padding: 8px 10px; }
  .hero { padding: 60px 0 70px; }
  .package-grid { grid-template-columns: 1fr; }
  .package-row { grid-template-columns: 1fr 1fr; }
  .package-row .package-speed { display: none; }
  .package-row.header .package-speed { display: block; }
  .blog-post h1 { font-size: 1.6rem; }
  section { padding: 56px 0; }
  .feature { flex-direction: column; text-align: center; }
  .feature-icon { margin: 0 auto; }
}
