/* =====================================================
   ONE License Advisory – Global Styles
   Colors: #0C37B6 (blue), #D8BD68 (gold), #FFFFFF (white)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700;800&family=Kanit:wght@300;400;500;600;700&display=swap');

:root {
  --blue: #0C37B6;
  --blue-dark: #091f80;
  --blue-light: #1a4fd6;
  --gold: #D8BD68;
  --gold-dark: #b89c40;
  --gold-light: #e8d088;
  --white: #FFFFFF;
  --gray-50: #f8f9fc;
  --gray-100: #f0f2f8;
  --gray-200: #e2e6f0;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --text-main: #1a1a2e;
  --shadow-sm: 0 2px 8px rgba(12, 55, 182, 0.08);
  --shadow-md: 0 4px 20px rgba(12, 55, 182, 0.15);
  --shadow-lg: 0 8px 40px rgba(12, 55, 182, 0.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Sarabun', sans-serif;
  color: var(--text-main);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1,
h2,
h3,
h4,
h5 {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

p {
  font-size: 1.05rem;
  color: var(--gray-700);
}

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

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

/* ── UTILITY ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 56px 0;
}

.text-center {
  text-align: center;
}

.text-blue {
  color: var(--blue);
}

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

.text-white {
  color: var(--white);
}

.bg-blue {
  background: var(--blue);
}

.bg-gold {
  background: var(--gold);
}

.bg-gray {
  background: var(--gray-50);
}

.bg-dark {
  background: var(--blue-dark);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ── SECTION HEADING ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(12, 55, 182, 0.08);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.section-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.section-title {
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.gold-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 16px auto 32px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: 'Kanit', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--blue-dark);
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(216, 189, 104, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
  transform: translateY(-2px);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── TOP BAR ── */
.top-bar {
  background: var(--blue-dark);
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.85);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.top-bar-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  flex-shrink: 0;
}

.top-bar-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.top-bar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}

.top-bar-brand-text .brand-main {
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.top-bar-brand-text .brand-sub {
  font-size: 1rem;
  color: var(--white);
  font-weight: 500;
}

.top-bar-brand-text .brand-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.top-bar-contacts {
  display: grid;
  grid-template-columns: auto auto; /* Two columns for phones and email */
  grid-template-rows: auto auto 1fr;
  gap: 0 42px; /* Row gap 0, Col gap 42px */
  align-items: start;
}

.top-bar-contact-row {
  display: contents;
}

.top-bar-contact-row .top-bar-contact-col:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 4; /* Left column spans all vertical space */
}

.top-bar-contact-row .top-bar-contact-col:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2; /* Right top column (email) */
  margin-bottom: 12px;
}

.top-bar-hours {
  grid-column: 2 / 3;
  grid-row: 2 / 3; /* Right bottom column (hours) */
}

.top-bar-line-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-line-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #06C755;
  border-radius: 8px;
  padding: 6px 14px;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.top-bar-hours .hours-title {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  color: var(--white);
  font-size: 0.85rem;
}

.top-bar-hours .hours-val {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
}

.top-bar-contact-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.top-bar-contact-col .tb-label {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  color: var(--gold-light);
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.top-bar-contact-col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  transition: color 0.2s;
}

.top-bar-contact-col a:hover {
  color: var(--gold);
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(12, 55, 182, 0.10);
  padding: 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  gap: 4px;
}

.navbar-brand {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  list-style: none;
  flex: 1;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Kanit', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-700);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  background: rgba(12, 55, 182, 0.07);
}

.nav-cta .btn {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: url('assets/images/pppppppp_1_11zon.webp') center/2000px 778px no-repeat;
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--white);
  font-weight: 700;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

.page-hero .breadcrumb {
  color: var(--white);
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.page-hero .breadcrumb a {
  color: var(--gold);
}

.page-hero .lead {
  color: var(--white);
  max-width: 620px;
  margin: 14px auto 0;
  font-size: 1.1rem;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(12, 55, 182, 0.15);
}

.card-body {
  padding: 28px;
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* ── SERVICE ICON CARD ── */
.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
  font-size: 1.8rem;
}

/* ── STATS ── */
.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-family: 'Kanit', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-top: 6px;
}

/* ── PROCESS STEPS ── */
.step-item {
  text-align: center;
  position: relative;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--blue-dark);
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(216, 189, 104, 0.4);
}

/* ── TESTIMONIAL ── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.testimonial-text {
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 18px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

.author-info .name {
  font-weight: 600;
  color: var(--blue-dark);
  font-size: 0.95rem;
}

.author-info .role {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ── BLOG CARD ── */
.blog-card .card-img {
  height: 200px;
}

.blog-tag {
  display: inline-block;
  background: rgba(216, 189, 104, 0.25);
  color: var(--blue-dark);
  border: 1px solid rgba(216, 189, 104, 0.7);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.blog-title {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.4;
}

.blog-meta {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 12px;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 12px;
  transition: gap 0.2s;
}

.blog-read-more:hover {
  gap: 8px;
}

/* ── CONTACT ── */
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(12, 55, 182, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.2rem;
}

.contact-info-item h4 {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.contact-info-item p,
.contact-info-item a {
  color: var(--blue-dark);
  font-weight: 500;
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'Sarabun', sans-serif;
  font-size: 1rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

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

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
}

/* ── FOOTER ── */
.footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .footer-logo {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: contain;
  margin-bottom: 12px;
}

.footer-brand .footer-name {
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-brand .footer-tagline {
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-col h4 {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 18px;
  font-size: 1rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: var(--gold);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--gold);
  color: var(--blue-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 10px;
}

/* ── FLOATING ── */
.float-contact {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.float-line {
  background: #06C755;
  color: white;
}

.float-phone {
  background: var(--gold);
  color: var(--blue-dark);
}

.float-top {
  background: var(--blue);
  color: white;
}

.float-btn:hover {
  transform: scale(1.12);
}

/* ── BADGE/TAG ── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-blue {
  background: rgba(12, 55, 182, 0.1);
  color: var(--blue);
}

.badge-gold {
  background: rgba(216, 189, 104, 0.2);
  color: var(--gold-dark);
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-up {
  animation: fadeInUp 0.7s ease forwards;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 820px) {
  .section {
    padding: 56px 0;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .hamburger {
    display: flex;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px;
    box-shadow: var(--shadow-md);
    gap: 4px;
  }

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

  /* ── Mobile Top Bar Layout ── */
  .top-bar .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 16px; 
    text-align: center;
  }
  .top-bar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
  }
  .top-bar-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 6px;
  }
  .top-bar-brand-text {
    border-left: none;
    padding-left: 0;
    width: 100%;
    margin-bottom: 12px;
    text-align: center;
    gap: 8px;
  }
  .top-bar-brand-text .brand-main {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 2px;
  }
  .top-bar-brand-text .brand-sub {
    font-size: 1.15rem;
    font-weight: 500;
  }
  .top-bar-brand-text .brand-tagline {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 8px;
  }
  .top-bar-contacts {
    display: grid;
    grid-template-columns: minmax(auto, 1fr) minmax(auto, 1fr);
    grid-template-rows: auto auto 1fr;
    justify-content: center;
    width: 100%;
    gap: 0 12px;
    margin-top: 16px;
    align-items: start;
  }
  .top-bar-contact-row {
    display: contents;
  }
  .top-bar-contact-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .top-bar-contact-row .top-bar-contact-col:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 4;
  }
  .top-bar-contact-row .top-bar-contact-col:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    margin-bottom: 8px;
  }
  .top-bar-hours {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    text-align: center;
    margin-top: 0;
  }
  .top-bar-contact-col .tb-label {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }
  .top-bar-contact-col a {
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-word;
  }
  .top-bar-hours .hours-title {
    font-size: 1.05rem;
    margin-bottom: 4px;
  }
  .top-bar-hours .hours-val {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 12px 22px;
    font-size: 0.9rem;
  }
}