/* ============================================================
   Thailand Studio — Guide Sub-Site Design System
   Shared CSS for all guide sub-sites
   Font: Nunito | Accents: Teal #0D7377, Navy #1a1a2e, Thai Gold #D4A843
   ============================================================ */

/* --- Reset & Base --- */
*, *::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: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #2d2d2d;
  background: #fafafa;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #0D7377;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #D4A843;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a2e;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: #0D7377;
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* --- Super Nav (Ecosystem Bar) --- */
.super-nav {
  background: #1a1a2e;
  border-bottom: 2px solid #D4A843;
  padding: 0;
  position: relative;
  z-index: 1000;
}

.super-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.super-nav__inner::-webkit-scrollbar {
  display: none;
}

.super-nav__label {
  color: #D4A843;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  padding: 10px 12px 10px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  margin-right: 4px;
}

.super-nav__link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 10px 10px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
  border-radius: 4px;
}

.super-nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.super-nav__link--active {
  color: #D4A843;
  background: rgba(212, 168, 67, 0.1);
}

.super-nav__link--active:hover {
  color: #D4A843;
}

/* --- Main Navbar --- */
.navbar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.navbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a1a2e;
  text-decoration: none;
}

.navbar__logo:hover {
  color: #0D7377;
}

.navbar__logo-icon {
  font-size: 1.5rem;
}

.navbar__logo-text {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.navbar__logo-text span {
  color: #0D7377;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar__link {
  color: #555;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.navbar__link:hover {
  color: #0D7377;
  background: rgba(13, 115, 119, 0.06);
}

.navbar__link--active {
  color: #0D7377;
  background: rgba(13, 115, 119, 0.08);
}

/* --- Mobile Menu Toggle --- */
.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #1a1a2e;
}

.navbar__toggle svg {
  width: 24px;
  height: 24px;
}

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 16px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu__link {
  display: block;
  color: #555;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mobile-menu__link:hover {
  color: #0D7377;
  background: rgba(13, 115, 119, 0.06);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #0D7377 0%, #0a5c5f 40%, #1a1a2e 100%);
  color: #fff;
  padding: 80px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(212, 168, 67, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.hero__inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  background: rgba(212, 168, 67, 0.2);
  border: 1px solid rgba(212, 168, 67, 0.4);
  color: #D4A843;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.hero__title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #D4A843;
  letter-spacing: -0.01em;
}

.hero__stat-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* --- Intro Section --- */
.intro {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  text-align: center;
}

.intro__text {
  font-size: 1.15rem;
  color: #555;
  line-height: 1.85;
}

/* --- Cards Grid --- */
.cards-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

.cards-section__title {
  text-align: center;
  font-size: 1.75rem;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.cards-section__subtitle {
  text-align: center;
  font-size: 1rem;
  color: #777;
  margin-bottom: 48px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 32px 28px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0D7377, #D4A843);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  border-color: #0D7377;
  box-shadow: 0 8px 32px rgba(13, 115, 119, 0.1);
  transform: translateY(-4px);
}

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

.card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.card:hover .card__title {
  color: #0D7377;
}

.card__description {
  font-size: 0.9rem;
  color: #777;
  line-height: 1.6;
  flex: 1;
}

.card__arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0D7377;
}

.card__arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.card:hover .card__arrow svg {
  transform: translateX(4px);
}

/* --- Footer --- */
.footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 24px;
  text-align: center;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer__link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: #D4A843;
}

.footer__divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #0D7377, #D4A843);
  margin: 0 auto 24px;
  border: none;
}

.footer__brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer__brand span {
  color: #D4A843;
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}

.footer__tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 2.25rem;
  }

  .hero__stats {
    gap: 24px;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .navbar__links {
    display: none;
  }

  .navbar__toggle {
    display: block;
  }

  .hero {
    padding: 56px 20px 48px;
  }

  .hero__title {
    font-size: 1.85rem;
  }

  .hero__subtitle {
    font-size: 1.05rem;
  }

  .hero__stats {
    gap: 16px;
  }

  .hero__stat-value {
    font-size: 1.15rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    padding: 24px 22px;
  }

  .intro {
    padding: 40px 20px 32px;
  }

  .intro__text {
    font-size: 1.05rem;
  }

  .footer__links {
    gap: 16px;
  }

  .super-nav__label {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.5rem;
  }

  .hero__badge {
    font-size: 0.7rem;
    padding: 5px 16px;
  }

  .hero__stats {
    flex-direction: column;
    gap: 12px;
  }

  .super-nav__link {
    font-size: 0.7rem;
    padding: 10px 8px;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.5s ease backwards;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7) { animation-delay: 0.35s; }
.card:nth-child(8) { animation-delay: 0.4s; }

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #D4A843;
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Selection --- */
::selection {
  background: rgba(13, 115, 119, 0.2);
  color: #1a1a2e;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0D7377;
}

/* --- Print Styles --- */
@media print {
  .super-nav,
  .navbar,
  .mobile-menu,
  .skip-link {
    display: none !important;
  }

  .hero {
    background: #fff !important;
    color: #1a1a2e !important;
    padding: 24px 0;
  }

  .hero__title,
  .hero__stat-value {
    color: #1a1a2e !important;
  }

  .hero__subtitle,
  .hero__stat-label {
    color: #555 !important;
  }

  .hero__badge {
    border-color: #1a1a2e !important;
    color: #1a1a2e !important;
  }

  .card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }

  .footer {
    background: #fff !important;
    color: #555 !important;
    border-top: 1px solid #ddd;
  }
}
