/* pohpunpanyaafterklass.com - Tourist Info Site */
:root {
  --color-bg: #f8f6f3;
  --color-surface: #ffffff;
  --color-text: #2c2c2c;
  --color-text-muted: #5a5a5a;
  --color-accent: #2d6a6a;
  --color-accent-hover: #245454;
  --color-border: #e8e4df;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --radius: 12px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--color-accent-hover); }

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header — no transform/filter so fixed .nav is positioned relative to viewport */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  overflow: visible;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(0.875rem, 0.5rem + 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.02em;
  transition: color 0.25s ease, filter 0.25s ease;
}
.header .logo:hover {
  color: var(--color-accent-hover);
  filter: brightness(1.05);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 1001;
}
.nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--color-accent); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 991px) {
  .burger { display: flex; }
  .burger { z-index: 1002; position: relative; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(45vh - var(--header-h));
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    padding: 32px 24px;
    gap: clamp(16px, 4vh, 32px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
    z-index: 1001;
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.1rem; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 24px 64px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--color-text) url('../images/hero-bg.jpg') center/cover no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.5) 100%);
}

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

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  max-width: 560px;
  margin: 0 auto 32px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--color-accent);
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.8);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.section-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 560px;
}

/* Cards grid (home previews, reviews) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-image {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.card-body { padding: 24px; }
.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}
.card-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Attractions list (no images) */
.attractions-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.attraction-item {
  min-width: 250px;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.attraction-item .card-title {
  margin-bottom: 8px;
}
.attraction-item .card-text {
  margin: 0;
}

/* Reviews specific */
.review-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.review-card .stars {
  color: #e6b422;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.review-card .name {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}
.review-card .text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Attraction blocks (country page) */
.attraction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.attraction:nth-child(even) {
  direction: rtl;
}
.attraction:nth-child(even) > * { direction: ltr; }
.attraction-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.attraction-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.attraction-content h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}
.attraction-content p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .attraction,
  .attraction:nth-child(even) {
    direction: ltr;
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Page header (inner pages) */
.page-hero {
  padding: calc(var(--header-h) + 64px) 24px 48px;
  background: linear-gradient(135deg, #d4e8e6 0%, #e2eeec 100%);
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}
.page-hero p {
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Form */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-surface);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.form-actions { margin-top: 24px; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-md);
  transform: scale(0.95);
  transition: transform 0.3s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--color-text);
}
.modal p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.modal .btn { width: 100%; }

/* Footer */
.footer {
  background: linear-gradient(180deg, #1a1a1a 0%, #2c2c2c 100%);
  color: rgba(255,255,255,0.88);
  padding: 64px 0 0;
  margin-top: 64px;
  border-top: 3px solid var(--color-accent);
}

.footer .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 56px 40px;
  padding-bottom: 48px;
}

.footer-brand .logo {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #b8d4d4 50%, #8fc9c9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.footer-brand .logo:hover {
  filter: brightness(1.15);
  opacity: 1;
}
.footer-brand p {
  font-size: 0.9375rem;
  max-width: 300px;
  line-height: 1.65;
  opacity: 0.88;
  margin: 0;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.95);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li:last-child {
  margin-bottom: 0;
}
.footer a {
  color: rgba(255,255,255,0.82);
  font-size: 0.9375rem;
  transition: color 0.2s;
}
.footer a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 24px 24px 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.75;
  letter-spacing: 0.02em;
}
.footer-bottom.container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-bottom p {
  margin: 0;
  max-width: none;
}

@media (max-width: 768px) {
  .footer {
    padding: 48px 0 0;
    margin-top: 48px;
  }
  .footer .container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
    text-align: center;
  }
  .footer-brand p {
    max-width: none;
    margin: 0 auto;
  }
}

/* Policy pages */
.policy-content {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) 24px 80px;
}
.policy-content h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--color-text);
}
.policy-content h2 {
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--color-text);
}
.policy-content p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}
.policy-content ul {
  margin: 16px 0 16px 24px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Utilities */
.mt-1 { margin-top: 24px; }
.mb-2 { margin-bottom: 40px; }
.text-center { text-align: center; }
