/* 
   Yoga Koh Samui - Premium Theme (Power & Stillness)
   Design System & Styling Tokens
*/

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

:root {
  /* Color Palette - Premium Obsidian Gold (Dark Luxury) */
  --bg-dark: #0a0908;        /* Deep rich black */
  --bg-card: #141210;        /* Obsidian coal card */
  --bg-card-hover: #1c1916;  /* Lighter card hover */
  
  --text-main: #f5f4f0;      /* Warm off-white / ivory */
  --text-muted: #a39b90;     /* Muted champagne grey */
  
  --accent-gold: #d4af37;    /* Classic gold */
  --accent-gold-hover: #e8ca9f; /* Lighter champagne gold */
  --accent-sand: #c5a880;    /* Warm sand gold */
  
  --border-color: rgba(197, 168, 128, 0.12);  /* Transparent gold border */
  --border-color-hover: rgba(197, 168, 128, 0.25);
  
  /* Fonts */
  --font-headers: 'Cormorant Garamond', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout */
  --container-width: 1100px;
  --border-radius: 16px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headers);
  color: var(--text-main);
  font-weight: 500;
  letter-spacing: -0.01em;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-gold-hover);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

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

/* Header & Navigation */
header {
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background-color: rgba(10, 9, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-headers);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.logo img {
  height: 44px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.logo-title {
  color: var(--accent-gold);
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.logo-subtitle {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.3px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
}

nav a:hover, nav a.active {
  color: var(--text-main);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  margin: 5px 0;
  transition: var(--transition);
}

@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }
  
  nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
  }
  
  nav.open {
    display: block;
  }
  
  nav ul {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
}

/* Hero Section (Universal) */
.hero, .hero-section {
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px 0;
  text-align: center;
}

.hero h1, .hero-section h1, .hero-title {
  font-family: var(--font-headers);
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text-main);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero p, .hero-section p, .hero-intro, .hero-section .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-weight: 400;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .hero, .hero-section {
    padding: 80px 0 60px 0;
  }
  .hero h1, .hero-section h1, .hero-title {
    font-size: 2.25rem;
  }
  .hero p, .hero-section p, .hero-intro, .hero-section .lead {
    font-size: 1.1rem;
  }
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-headers);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-sand)) !important;
  color: #0a0908 !important;
  text-decoration: none !important;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-gold-hover), var(--accent-gold)) !important;
  color: #0a0908 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  background-color: rgba(212, 175, 55, 0.05);
  transform: translateY(-2px);
}

/* Cards & Grid Systems */
.grid {
  display: grid;
  gap: 32px;
}

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

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

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

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

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-color-hover);
  background-color: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(44, 40, 36, 0.05);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.card p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Content Page Layout */
.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.content-body h2 {
  font-size: 2rem;
  margin: 48px 0 24px 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.content-body h3 {
  font-size: 1.4rem;
  margin: 32px 0 16px 0;
}

.content-body p {
  margin-bottom: 24px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.content-body ul, .content-body ol {
  margin-bottom: 32px;
  padding-left: 24px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.content-body li {
  margin-bottom: 8px;
}

/* Author Section */
.author-box {
  display: flex;
  align-items: center;
  gap: 32px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
  margin: 60px 0;
}

.author-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  overflow: hidden;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.author-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 576px) {
  .author-box {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
}

/* FAQ Section */
.faq-container {
  margin-top: 60px;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
}

.faq-question {
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-gold);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  margin-top: 16px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px 0;
  background-color: #0b090b;
}

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--text-main);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(212, 175, 55, 0.05);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Breadcrumbs */
.breadcrumbs-section {
  background-color: var(--bg-main);
  padding: 16px 0 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--accent-gold);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  padding-right: 8px;
  color: var(--text-muted);
}

.breadcrumb-item.active {
  color: var(--accent-gold);
  font-weight: 500;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 24px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--text-main);
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
}

.breadcrumbs li:last-child {
  color: var(--accent-sand);
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 40px 0;
}

table.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 1rem;
  color: var(--text-muted);
}

table.comparison-table th, table.comparison-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

table.comparison-table th {
  background-color: var(--bg-card);
  color: var(--text-main);
  font-family: var(--font-headers);
  font-weight: 500;
}

table.comparison-table tr:hover td {
  background-color: rgba(212, 175, 55, 0.02);
}

/* Dropdown Menu Styles */
nav ul li.dropdown {
  position: relative;
  padding-bottom: 8px; /* Чтобы ховер не пропадал при переходе мышки */
  margin-bottom: -8px;
}

/* Индикатор-стрелочка */
.dropdown-toggle::after {
  content: ' ▾';
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition);
  display: inline-block;
  vertical-align: middle;
}
.dropdown-toggle:hover::after,
li.dropdown:hover .dropdown-toggle::after {
  color: var(--accent-gold);
}

nav ul li.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  display: block;
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 12px 0;
  min-width: 270px;
  list-style: none;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
}

.dropdown-menu li {
  width: 100%;
  padding: 0;
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 12px 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  transition: var(--transition);
  text-align: left;
}

.dropdown-menu a:hover {
  background-color: rgba(212, 175, 55, 0.08);
  color: var(--accent-gold);
  padding-left: 28px;
}

/* На мобильных устройствах делаем меню раскрывающимся списком */
@media (max-width: 992px) {
  nav ul li.dropdown {
    padding-bottom: 0;
    margin-bottom: 0;
    width: 100%;
    text-align: center;
  }
  
  nav ul li.dropdown:hover .dropdown-menu {
    transform: none;
  }
  
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 0;
    margin-top: 8px;
    display: none;
    min-width: auto;
  }
  
  .dropdown-menu a {
    text-align: center;
    padding: 10px 16px;
  }
  
  nav ul li.dropdown.active-mobile .dropdown-menu {
    display: block;
  }
}

/* Language Switcher */
nav ul li.lang-switch {
  margin-left: 12px;
  border-left: 1px solid var(--border-color);
  padding-left: 20px;
}

.lang-link {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--accent-gold) !important;
  opacity: 0.7;
}

.lang-link:hover {
  opacity: 1;
}

@media (max-width: 992px) {
  nav ul li.lang-switch {
    margin-left: 0;
    border-left: none;
    padding-left: 0;
    margin-top: 10px;
  }
}

/* Content Pages Layout & Typography */
.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-headers);
  font-size: 2.2rem;
  color: var(--accent-gold);
  margin-bottom: 32px;
  text-align: center;
}

.section p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section ul, .section ol {
  max-width: 800px;
  margin: 24px auto;
  padding-left: 24px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section li {
  margin-bottom: 12px;
}

.practitioner-details {
  display: flex;
  gap: 40px;
  align-items: center;
  max-width: 800px;
  margin: 40px auto 0 auto;
  flex-wrap: wrap;
}

.practitioner-image {
  flex: 0 0 250px;
  text-align: center;
}

.practitioner-bio {
  flex: 1;
  min-width: 280px;
}

.practitioner-bio p {
  margin-left: 0;
  margin-right: 0;
}

.accordion {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

/* Grids and Columns for Service Pages */
.grid-3-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.grid-2-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

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

@media (max-width: 768px) {
  .grid-3-cols, .grid-2-cols {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
}

/* Custom Cards for Goals and Locations */
.goal-item, .location-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(44, 40, 36, 0.02);
  text-align: left;
}

.goal-item:hover, .location-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
  box-shadow: 0 12px 30px rgba(44, 40, 36, 0.06);
}

.goal-item h3, .location-item h3 {
  font-family: var(--font-headers);
  font-size: 1.4rem;
  color: var(--accent-gold);
  margin-bottom: 12px;
  font-weight: 500;
}

.goal-item p, .location-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* Steps Progress styling */
.step-by-step {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 40px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 992px) {
  .step-by-step {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .step-by-step {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
}

.step-item {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 28px 20px;
  transition: var(--transition);
  text-align: center;
  box-shadow: 0 4px 15px rgba(44, 40, 36, 0.02);
}

.step-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
  box-shadow: 0 12px 30px rgba(44, 40, 36, 0.06);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: rgba(178, 147, 108, 0.08);
  color: var(--accent-gold);
  font-family: var(--font-headers);
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: 50%;
  margin-bottom: 20px;
}

.step-item h3 {
  font-family: var(--font-headers);
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.step-item p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* Checked Lists with Gold Checkmarks */
.list-checked {
  list-style: none;
  padding-left: 0;
  max-width: 800px;
  margin: 32px auto !important;
  text-align: left;
}

.list-checked li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.list-checked li strong {
  color: var(--text-main);
}

.list-checked li::before {
  content: '✓';
  position: absolute;
  left: 8px;
  top: 0;
  color: var(--accent-gold);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Mobile Responsive Helper Classes */
@media (max-width: 768px) {
  .grid-reverse-mobile {
    display: flex !important;
    flex-direction: column-reverse !important;
  }
  .hero-mobile-compact {
    padding-top: 20px !important;
    padding-bottom: 40px !important;
  }
  
  /* Center align text in layouts for mobile */
  .hero, .hero *, 
  #services, #services *, 
  #online, #online *,
  #about, #about *,
  #reviews, #reviews *,
  #book, #book *,
  footer, footer * {
    text-align: center !important;
  }
  
  .hero div[style*="display: flex"],
  #services div[style*="display: flex"],
  #book div[style*="display: flex"] {
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .btn {
    margin: 8px auto !important;
  }
}

/* Premium Review Screenshot Integration */
.review-card-screenshot {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.review-card-screenshot:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.08);
}

.review-screenshot {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  transition: filter 0.4s ease;
  /* Mathematically elegant dark-mode inversion filter: */
  filter: invert(0.92) contrast(1.15) brightness(0.9) hue-rotate(180deg);
}

.review-card-screenshot:hover .review-screenshot {
  filter: none; /* Revert to original Google Maps styling on hover */
}
