:root {
  --primary: #ffd447;
  --primary-dark: #f5b700;
  --secondary: #ff9e7a;
  --accent: #73d2de;
  --text: #2b2b2b;
  --bg: #fffbea;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans", "Noto Sans Thai", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #1c1508;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(255, 190, 87, 0.3);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
}

nav img {
  height: 52px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-weight: 600;
}

.nav-links a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}

.nav-links a:hover,
.nav-links a:focus {
  background: rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-top: 2rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 42rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1.4rem;
  border-radius: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--primary-dark);
  color: #2b1b10;
  box-shadow: 0 8px 20px rgba(245, 183, 0, 0.35);
}

.btn-secondary {
  background: var(--accent);
  color: #08363f;
  box-shadow: 0 8px 20px rgba(115, 210, 222, 0.35);
}

.btn:hover {
  transform: translateY(-3px);
}

.slider {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 320px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.slide {
  position: absolute;
  inset: 0;
  padding: 2rem;
  display: flex;
  align-items: flex-end;
  color: white;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slide.active {
  opacity: 1;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.7));
}

.slide-content {
  position: relative;
  z-index: 1;
}

.section {
  margin-top: 4rem;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: var(--card);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(255, 212, 71, 0.3);
}

.card h3 {
  margin-top: 0;
}

.badge {
  display: inline-block;
  background: var(--secondary);
  color: #4c1b18;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  background: var(--card);
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border-left: 6px solid var(--primary-dark);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-tile {
  border-radius: 18px;
  padding: 1.2rem;
  background-size: cover;
  background-position: center;
  color: white;
  height: 180px;
  position: relative;
  overflow: hidden;
}

.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.gallery-tile span {
  position: relative;
  z-index: 1;
  font-weight: 700;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.cat-card {
  background: var(--card);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-top: 6px solid var(--accent);
}

.cat-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--primary);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.menu-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-left: 6px solid var(--secondary);
}

.menu-card h3 {
  margin-top: 0;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.map-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.map-placeholder {
  height: 220px;
  border-radius: 14px;
  background: url('https://maps.gstatic.com/tactile/pane/default_geographic.png');
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.map-placeholder::after {
  content: "แผนที่มายังแมวบิน";
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 0.7rem;
  background: rgba(0, 0, 0, 0.6);
  color: white;
}

form {
  display: grid;
  gap: 0.8rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.85rem;
  border-radius: 12px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  font-family: inherit;
  font-size: 1rem;
}

footer {
  background: #1b1b1b;
  color: #f4f0e7;
  padding: 2rem 1.5rem;
  text-align: center;
}

footer p {
  margin: 0.4rem 0;
}

.notification {
  background: #e8fff0;
  border-left: 5px solid #1bbc9b;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  margin-top: 1rem;
  display: none;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: repeat(2, 1fr);
  }
}
