/* Tri Yoga Hua Hin — site styles */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --cream: #f8f4ec;
  --sand: #ece2d0;
  --forest: #3c4a3a;
  --forest-dark: #2a352a;
  --sage: #8a9a80;
  --terracotta: #c17a52;
  --terracotta-dark: #a86540;
  --charcoal: #2c2a26;
  --ink-soft: #5a564e;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(44, 42, 38, 0.08);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--forest-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.9rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2.3rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.65rem; }
h4 { font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.06em; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.8em;
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 0.9em 1.9em;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover { background: var(--terracotta-dark); }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 244, 236, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(60, 74, 58, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--forest-dark);
}
.brand img { height: 46px; width: auto; border-radius: 6px; }

.main-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--terracotta);
  border-color: var(--terracotta);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--forest-dark);
  cursor: pointer;
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(60,74,58,0.1);
    border-bottom: 1px solid rgba(60,74,58,0.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 24px; border-bottom: 1px solid rgba(60,74,58,0.06); }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42,53,42,0.35), rgba(42,53,42,0.6));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 760px;
  padding: 60px 24px;
}
.hero-content h1 { color: var(--white); }
.hero-content p { color: rgba(255,255,255,0.9); font-size: 1.1rem; }

.page-hero {
  padding: 90px 24px 50px;
  text-align: center;
  background: var(--sand);
}
.page-hero h1 { margin-bottom: 0.3em; }
.page-hero p { max-width: 640px; margin: 0 auto; }

/* ---------- Sections ---------- */

section { padding: 80px 0; }
section.tight { padding: 50px 0; }
.section-alt { background: var(--sand); }
.section-forest { background: var(--forest-dark); color: var(--white); }
.section-forest h2, .section-forest h3, .section-forest h4 { color: var(--white); }
.section-forest p { color: rgba(255,255,255,0.82); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 50px; }

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

@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Pricing ---------- */

.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  text-align: center;
}
.price-card .amount {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--terracotta);
  margin: 6px 0;
}
.price-card .thai { font-size: 0.85rem; color: var(--sage); margin-top: 4px; }

.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(60,74,58,0.2);
  color: var(--ink-soft);
}
.price-list li strong { color: var(--forest-dark); }

/* ---------- Timetable ---------- */

.timetable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.day-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.day-card h3 {
  background: var(--forest-dark);
  color: var(--white);
  margin: 0;
  padding: 16px 22px;
  font-size: 1.4rem;
}
.class-slot {
  padding: 16px 22px;
  border-bottom: 1px solid var(--sand);
}
.class-slot:last-child { border-bottom: none; }
.class-slot .time {
  font-weight: 600;
  color: var(--terracotta);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.class-slot .desc { margin-top: 2px; color: var(--charcoal); font-size: 0.98rem; }

/* ---------- Team ---------- */

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.team-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.team-card .body { padding: 24px 26px; }
.team-card h3 { margin-bottom: 0.15em; }
.team-card .role {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  margin-bottom: 14px;
  display: block;
}
.team-card ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.94rem; }
.team-card li { margin-bottom: 4px; }

/* ---------- Testimonials ---------- */

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
  margin-bottom: 30px;
}
.testimonial-card img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-card .body { padding: 30px 34px; }
.testimonial-card p.quote {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 14px;
}
.testimonial-card .author {
  color: var(--terracotta);
  font-weight: 500;
  font-size: 0.92rem;
}
@media (max-width: 700px) {
  .testimonial-card { grid-template-columns: 1fr; }
  .testimonial-card img { aspect-ratio: 16/9; }
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent);
}

/* ---------- FAQ ---------- */

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 26px;
  font-weight: 500;
  font-size: 1.12rem;
  color: var(--forest-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--terracotta);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 26px 22px; color: var(--ink-soft); }
.faq-item .answer ul { padding-left: 20px; }

.lang-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.lang-tab {
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid var(--forest);
  font-size: 0.88rem;
  cursor: pointer;
  background: transparent;
  color: var(--forest);
}
.lang-tab.active { background: var(--forest); color: var(--white); }
.lang-panel { display: none; }
.lang-panel.active { display: block; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: 24px 0; padding: 0; }
.contact-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--sand);
  font-size: 1rem;
}
.contact-list li span.label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  margin-bottom: 3px;
}

.social-row { display: flex; gap: 14px; margin-top: 20px; }
.social-row a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--forest);
  display: flex; align-items: center; justify-content: center;
  color: var(--forest);
  font-size: 1.1rem;
}
.social-row a:hover { background: var(--forest); color: var(--white); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--forest-dark);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.site-footer h4 { color: var(--white); font-size: 0.85rem; margin-bottom: 14px; }
.site-footer p, .site-footer a { color: rgba(255,255,255,0.75); font-size: 0.94rem; }
.site-footer a:hover { color: var(--terracotta); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Misc ---------- */

.center { text-align: center; }
.mt { margin-top: 24px; }
.thai-block {
  border-top: 1px solid var(--sand);
  margin-top: 26px;
  padding-top: 22px;
  color: var(--ink-soft);
}
