/* ========================================
   PETAL CHA — UPGRADED STYLES
   styles.css
   ======================================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lora:ital,wght@0,400;0,600;1,400&family=Noto+Serif+SC:wght@400;700&family=Cinzel:wght@400;600&display=swap');

/* ── CSS Variables ── */
:root {
  --ink:        #2b2b28;
  --moss:       #3d5a47;
  --gold:       #c9a84c;
  --gold-light: rgba(201,168,76,0.25);
  --rice-paper: #f0ece0;
  --bg:         #eceadb;
  --celadon:    #a8c5b5;
  --plum:       #7a3b5e;
  --white:      #ffffff;
  --shadow-sm:  0 2px 8px rgba(43,43,40,0.1);
  --shadow-md:  0 6px 24px rgba(43,43,40,0.14);
  --radius:     4px;
  --transition: all 0.3s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  color: var(--ink);
  background-color: var(--bg);
  overflow-x: hidden;
  line-height: 1.8;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--moss);
  line-height: 1.25;
}

h2 {
  font-size: 2.2rem;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.5rem;
  margin-top: 15px;
}

h4 {
  font-size: 1.2rem;
  margin-top: 15px;
}

/* Chinese text explicitly styled */
:lang(zh), .chinese-text, .hero-chinese, .chinese-content,
.chinese-title, .blog-tagline-zh {
  font-family: 'Noto Serif SC', serif;
  line-height: 2;
}

.date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.content {
  font-size: 1rem;
  text-align: justify;
}

/* ── Header ── */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  background-color: var(--bg);
  width: calc(100% - 80px);
  height: 80px;
  position: fixed;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(43,43,40,0.08);
}

header h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.6rem;
  font-weight: 700;
  margin: 0;
  color: var(--moss);
  letter-spacing: 0.04em;
}

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

/* ── Navigation ── */
nav {
  display: flex;
  gap: 20px;
}

nav a {
  font-family: 'Cinzel', serif;
  text-decoration: none;
  font-size: 1rem;
  color: var(--moss);
  font-weight: 600;
  padding: 5px 10px;
  position: relative;
  transition: color 0.3s ease;
  letter-spacing: 0.06em;
}

nav a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

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

nav a:hover::after {
  transform: scaleX(1);
}

nav a:focus {
  outline: 2px solid var(--moss);
  outline-offset: 2px;
}

nav a:active {
  color: var(--plum);
  transform: scale(0.95);
}

/* ── Container ── */
.container {
  max-width: 820px;
  margin: 100px auto 50px;
  padding: 20px;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  margin-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--bg);
}

/* Gradient overlay — replaces flat white */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(43, 43, 40, 0.12) 0%,
    rgba(43, 43, 40, 0.52) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Video Container */
.hero-video-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-video.active {
  opacity: 1;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 20px;
  animation: fadeIn 2s ease-in-out forwards;
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--white);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.45);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  border-bottom: none;
}

/* Chinese subtitle in hero */
.hero-chinese {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.6rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.88);
  margin: 0.2rem 0 0.8rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

.hero p {
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  margin: 0.5rem 0;
  color: rgba(255,255,255,0.92);
  animation: fadeInUp 1.5s ease-out 0.5s both;
}

/* Hero CTA Button */
.hero-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 14px 40px;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--white);
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: var(--transition);
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--ink);
}

/* Video Control Button */
.hero-video-control {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 3;
  background-color: rgba(61, 90, 71, 0.75);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.hero-video-control:hover {
  background-color: rgba(201,168,76,0.85);
  transform: scale(1.1);
}

.hero-video-control:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Hero fallback */
.hero-fallback {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* ── Brush Stroke Divider ── */
.brush-divider {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
  line-height: 0;
}

.brush-divider svg {
  width: 100%;
  height: 40px;
}

/* ── Pricing Cards ── */
.pricing-section {
  margin: 30px 0;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.pricing-card {
  background: var(--rice-paper);
  border: 1px solid var(--gold);
  border-top: 4px solid var(--moss);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--gold);
}

.pricing-card .card-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.pricing-card h4 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--moss);
  margin: 0 0 8px;
  text-transform: uppercase;
}

.pricing-card .price {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 700;
  margin: 8px 0;
}

.pricing-card .price-sub {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 14px;
}

.pricing-card .card-details {
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 16px;
}

.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--plum);
  color: var(--white);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.book-btn {
  display: inline-block;
  padding: 9px 22px;
  background: var(--moss);
  color: var(--white);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.book-btn:hover {
  background: var(--plum);
  color: var(--white);
}

/* ── Table Styles (kept for events/schedule tables) ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background-color: var(--rice-paper);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gold);
  border-radius: 0;
  overflow: hidden;
}

table th {
  background-color: var(--moss);
  color: var(--white);
  font-family: 'Cinzel', serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  border-bottom: 2px solid var(--gold);
}

table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  color: var(--ink);
  font-size: 1rem;
}

table tr:nth-child(even) {
  background-color: rgba(201,168,76,0.06);
}

table tr:nth-child(odd) {
  background-color: var(--rice-paper);
}

table tr:hover {
  background-color: rgba(168,197,181,0.2);
}

table td a {
  text-decoration: none;
  color: var(--moss);
}

table td a:hover {
  text-decoration: underline;
  color: var(--plum);
}

/* ── Images ── */
.blog-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 20px 0;
}

.top-image {
  width: 40%;
  margin: 20px auto;
  display: block;
}

.side-image {
  width: 25%;
  margin: 5px 15px;
}

.right-image { float: right; }
.left-image  { float: left; }

.bottom-image {
  width: 35%;
  margin: 20px auto;
  display: block;
}

/* ── Gallery (Masonry) ── */
.gallery {
  columns: 3;
  column-gap: 16px;
  padding: 20px;
  margin-top: 20px;
}

.gallery img {
  width: 100%;
  break-inside: avoid;
  margin-bottom: 16px;
  aspect-ratio: unset;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: block;
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

/* Gallery filter bar */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.gallery-filter-btn {
  padding: 7px 20px;
  background: transparent;
  border: 1.5px solid var(--moss);
  color: var(--moss);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--moss);
  color: var(--white);
}

/* ── Social Icons ── */
.social-icons {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 3;
}

.social-icons img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.2);
}

/* ── Audio Player ── */
.audio-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  background-color: rgba(240,236,224,0.95);
  padding: 6px 10px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gold-light);
  transform: scale(0.85);
}

.audio-player audio {
  width: 200px;
  height: 30px;
}

/* ── Contact Section ── */
#contact {
  padding: 40px 20px;
  background-color: var(--rice-paper);
  border-radius: var(--radius);
  margin: 40px auto;
  max-width: 820px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gold-light);
}

#contact h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.contact-info div {
  background-color: rgba(168,197,181,0.15);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 1px solid rgba(201,168,76,0.2);
}

.contact-info div strong {
  display: block;
  color: var(--moss);
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contact-info div img {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
}

/* WeChat QR card */
.wechat-card {
  text-align: center;
}

.wechat-qr {
  width: 100px;
  height: 100px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  margin: 8px auto;
  display: block;
}

#contact form {
  max-width: 520px;
  margin: 0 auto;
  background-color: rgba(201,168,76,0.07);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

#contact form label {
  display: block;
  color: var(--moss);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

#contact form input,
#contact form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  box-sizing: border-box;
  background-color: var(--rice-paper);
  color: var(--ink);
  transition: border-color 0.3s ease;
}

#contact form input:focus,
#contact form textarea:focus {
  outline: none;
  border-color: var(--moss);
}

#contact form textarea {
  height: 130px;
  resize: vertical;
}

#contact form button {
  background-color: var(--moss);
  color: var(--white);
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease;
}

#contact form button:hover {
  background-color: var(--plum);
}

/* ── Buttons (global) ── */
button {
  border-radius: var(--radius);
  background-color: var(--gold);
  color: var(--white);
  padding: 10px 18px;
  border: none;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

button:hover {
  background-color: var(--plum);
}

button:focus, a:focus {
  outline: 2px solid var(--moss);
  outline-offset: 2px;
}

/* ── Profile Photos ── */
.profile-photos-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px auto 40px;
  flex-wrap: wrap;
}

.profile-photo-card {
  text-align: center;
  flex: 0 1 320px;
  transition: transform 0.3s ease;
}

.profile-photo-card:hover {
  transform: translateY(-5px);
}

.profile-photo {
  width: 100%;
  max-width: 320px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(61,90,71,0.2);
  border: 3px solid var(--gold);
  transition: var(--transition);
}

.profile-photo:hover {
  box-shadow: 0 12px 32px rgba(61,90,71,0.3);
  border-color: var(--moss);
}

.photo-caption {
  margin-top: 12px;
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: var(--moss);
  font-weight: 600;
}

.bio-content {
  background-color: rgba(255,255,255,0.5);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ── Blog Styles ── */
.blog-header {
  text-align: center;
  padding: 35px 0;
  background-color: var(--bg);
  margin-bottom: 10px;
}

.blog-subtitle {
  color: #666;
  font-style: italic;
}

.blog-header-compact {
  text-align: center;
  padding: 15px 0;
  margin-top: 90px;
  border-bottom: 1px solid rgba(61,90,71,0.2);
  margin-bottom: 40px;
}

.blog-header-compact h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  margin: 0;
  border: none;
  color: var(--moss);
}

.blog-tagline {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
  margin-top: 5px;
  letter-spacing: 0.5px;
}

#blog-preview {
  padding: 20px;
  background-color: var(--rice-paper);
  margin-bottom: 20px;
  border-radius: var(--radius);
}

#blog-preview h2 {
  text-align: center;
  margin-bottom: 10px;
}

.blog-preview-post {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  background: var(--rice-paper);
}

.blog-preview-post h3 { margin-top: 0; }

.blog-preview-post a {
  display: inline-block;
  padding: 5px 12px;
  background-color: var(--moss);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
}

.blog-preview-post a:hover {
  background-color: var(--plum);
}

.category-tag {
  background: var(--moss);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: inline-block;
}

.featured-post {
  border-top: 3px solid var(--gold);
  padding-top: 40px;
}

.chinese-title {
  font-family: 'Noto Serif SC', serif;
  color: #666;
  font-size: 1.2rem;
  margin-top: -10px;
  font-weight: 400;
}

.featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 20px 0 40px 0;
}

.lead {
  font-size: 1.2rem;
  color: var(--moss);
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 25px;
}

.lang-divider {
  height: 1px;
  background: linear-gradient(to right,
    rgba(201,168,76,0),
    rgba(201,168,76,0.5),
    rgba(201,168,76,0)
  );
  margin: 40px 0;
}

.chinese-content {
  font-family: 'Noto Serif SC', serif;
  color: #555;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  line-height: 2.2;
}

.closing-thought {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.25rem;
  text-align: center;
  color: var(--moss);
  margin: 40px auto;
  max-width: 80%;
  padding: 20px;
  border-top: 1px solid rgba(201,168,76,0.4);
  border-bottom: 1px solid rgba(201,168,76,0.4);
}

.article-spacer {
  border: 0;
  height: 1px;
  background: rgba(201,168,76,0.3);
  margin: 60px 0;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
  color: #666;
}

.author-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 30px 0;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.3s ease;
  font-family: 'Lora', serif;
}

.share-button:hover { opacity: 0.85; }
.share-button.facebook { background-color: #1877f2; }
.share-button.twitter  { background-color: #000; }
.share-button.linkedin { background-color: #0a66c2; }
.share-button i { font-size: 16px; }

.categories a {
  color: var(--moss);
  text-decoration: none;
  padding: 4px 10px;
  background-color: var(--bg);
  border-radius: 20px;
  margin-right: 8px;
  font-size: 0.85rem;
}

.table-of-contents {
  background-color: var(--rice-paper);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 16px 0;
}

.table-of-contents ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.table-of-contents a {
  color: var(--moss);
  text-decoration: none;
  line-height: 2;
  font-size: 0.95rem;
}

.table-of-contents a:hover {
  color: var(--plum);
}

.related-posts { margin-top: 40px; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.related-post {
  text-decoration: none;
  color: inherit;
}

.related-post img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius);
}

.related-post h5 {
  margin: 10px 0;
  color: var(--moss);
  font-family: 'Lora', serif;
}

/* ── Video Preview ── */
.video-preview {
  padding: 60px 0;
  background-color: var(--rice-paper);
}

.video-container {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.video-link video {
  display: block;
  transition: transform 0.3s ease;
}

.video-link:hover video {
  transform: scale(1.02);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: rgba(255,255,255,0.82);
  border-radius: 50%;
  transition: var(--transition);
}

.play-button::after {
  content: "";
  position: absolute;
  left: 55%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 25px solid var(--moss);
}

.video-link:hover .play-button {
  background-color: rgba(255,255,255,0.95);
  transform: translate(-50%, -50%) scale(1.1);
}

/* ── Rotating Gallery ── */
.rotating-gallery {
  position: relative;
  width: 100%;
  max-width: 820px;
  height: 400px;
  margin: 0 auto 40px;
  overflow: hidden;
}

.rotating-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.rotating-gallery img.active { opacity: 1; }

/* ── Dual Content ── */
.dual-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 25px;
}

/* ── Footer ── */
footer {
  background-color: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 40px 20px 20px;
  border-top: 3px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  max-width: 820px;
  margin: 0 auto 30px;
}

.footer-col h4 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col p,
.footer-col a {
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: block;
  line-height: 2;
  transition: color 0.3s ease;
}

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

.footer-tagline-zh {
  font-family: 'Noto Serif SC', serif;
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  margin-bottom: 6px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
}

/* ── Scroll-reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Utility ── */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

a:hover {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.fade-in          { animation: fadeIn 2s ease-in forwards; }
.fade-in-delay-1  { animation: fadeIn 2s ease-in forwards 1s; }
.fade-in-delay-2  { animation: fadeIn 2s ease-in forwards 2s; }

.content-section {
  opacity: 1;
  padding: 2rem 1rem;
  visibility: visible;
  padding-top: 80px;
  scroll-margin-top: 80px;
}

.linked-section {
  scroll-padding-top: 80px;
  scroll-behavior: smooth;
}

.content-section:nth-child(2) { animation-delay: 0.2s; }
.content-section:nth-child(3) { animation-delay: 0.4s; }

/* ── Responsive ── */
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 8px 20px;
    width: calc(100% - 40px);
    height: auto;
    min-height: 60px;
  }

  header h1 { font-size: 2rem; }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
    gap: 4px;
    width: 100%;
  }

  nav a { font-size: 0.9rem; }

  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.2rem; }
  h4 { font-size: 1.1rem; }

  .hero h2        { font-size: 2.2rem; }
  .hero-chinese   { font-size: 1.2rem; }

  .gallery {
    columns: 2;
    column-gap: 10px;
  }

  .side-image  { width: 100%; margin: 15px 0; float: none; }
  .top-image,
  .bottom-image { width: 100%; }

  .hero {
    background-attachment: scroll;
    margin-top: 100px;
    min-height: calc(100vh - 60px);
  }

  .social-icons { bottom: 20px; gap: 15px; }

  .pricing-cards { grid-template-columns: 1fr; }

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

  .content-section {
    padding-top: 120px;
    scroll-margin-top: 120px;
  }

  .linked-section { scroll-padding-top: 120px; }
}

@media screen and (max-width: 480px) {
  .gallery { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  header h1 { font-size: 1.7rem; }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
  .hero { min-height: calc(100vh - 120px); }
  .container { margin-top: 100px; }
  header { min-height: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video  { display: none; }
  .hero {
    background-image: url('./images/cover.webp');
    background-size: cover;
    background-position: center;
  }
  .hero-video-control { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 768px) {
  .play-button { width: 60px; height: 60px; }
  .play-button::after {
    border-top-width: 12px;
    border-bottom-width: 12px;
    border-left-width: 20px;
  }
}

/* ── Contact Section — Upgraded ── */
#contact,
.contact-wrapper {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  max-width: 100%;
  margin: 0;
}

.contact-wrapper {
  background: var(--rice-paper);
  border: 1px solid rgba(201,168,76,0.3);
  border-top: 4px solid var(--moss);
  border-radius: var(--radius);
  padding: 36px 36px 32px;
  max-width: 820px;
  margin: 40px auto;
  box-shadow: var(--shadow-md);
}

/* Header */
.contact-header {
  text-align: center;
  margin-bottom: 28px;
}

.contact-header h2 {
  margin-bottom: 6px;
  border-bottom: none;
  font-size: 2rem;
}

.contact-subtitle {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin: 0;
}

/* Info Cards Row */
.contact-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.contact-card {
  background: rgba(168,197,181,0.12);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.contact-card:hover {
  background: rgba(168,197,181,0.25);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 4px;
}

.contact-card strong {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss);
}

.contact-card a,
.contact-card span {
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  word-break: break-all;
}

.contact-card a:hover {
  color: var(--plum);
}

.contact-hint {
  font-size: 0.72rem !important;
  color: #999 !important;
  font-style: italic;
}

/* Form area */
.contact-form-wrapper {
  margin-top: 8px;
}

.contact-form-intro {
  font-size: 0.92rem;
  color: #666;
  text-align: center;
  margin: 0 0 20px;
  font-style: italic;
}

/* Two-column name + email row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.form-group label {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--rice-paper);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: var(--radius);
  padding: 9px 12px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--moss);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Select arrow */
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233d5a47' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

/* Submit button */
#contact form button,
.contact-wrapper button[type="submit"] {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: var(--moss);
  color: var(--white);
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 4px;
}

#contact form button:hover,
.contact-wrapper button[type="submit"]:hover {
  background-color: var(--plum);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-wrapper {
    padding: 24px 20px;
  }

  .contact-info {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .contact-info {
    grid-template-columns: 1fr 1fr;
  }
}


/* ════════════════════════════════════════════════
   BLOG PAGE — append to end of styles.css
   ════════════════════════════════════════════════ */

/* ── Page wrapper ── */
.blog-page-wrap {
    max-width: 860px;
    margin: 100px auto 60px;
    padding: 0 24px;
}

/* ── Journal Masthead ── */
.blog-masthead {
    text-align: center;
    padding: 40px 0 20px;
    margin-bottom: 10px;
}

.blog-masthead-label {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 8px;
}

.blog-masthead-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    color: var(--moss);
    margin: 0 0 8px;
    border: none;
}

.blog-masthead-sub {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1rem;
    color: #888;
    margin: 0 0 16px;
}

.masthead-rule {
    width: 340px;
    margin: 0 auto;
    line-height: 0;
}
.masthead-rule svg { width: 100%; height: 20px; }

/* ── Article wrapper ── */
.blog-article {
    background: var(--rice-paper);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: var(--radius);
    padding: 40px 44px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.blog-article--featured {
    border-top: 4px solid var(--gold);
}

/* ── Article header ── */
.* ════════════════════════════════════════════════
   BLOG HEADER FIX — append to end of styles.css
   (replaces previous blog-additions.css header rules)
   ════════════════════════════════════════════════ */

/* Nuclear reset on the article header container */
.blog-article__header,
.blog-article__header * {
    box-sizing: border-box;
}

.blog-article__header {
    display: block !important;
    width: 100% !important;
    margin-bottom: 24px;
}

/* Every direct child must be full-width block */
.blog-article__header > * {
    display: block;
    width: 100%;
    float: none;
    clear: both;
}

/* Category tag — override back to inline-block pill after block context set */
.blog-article__header > .category-tag {
    display: inline-block;
    width: auto;
    margin-bottom: 10px;
}

/* Titles */
.blog-article__title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--moss);
    margin: 0 0 6px 0;
    padding: 0;
    border: none;
    line-height: 1.25;
    display: block;
    width: 100%;
}

.blog-article__title-zh {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.1rem;
    color: var(--gold);
    margin: 0 0 10px 0;
    padding: 0;
    font-weight: 400;
    letter-spacing: 0.1em;
    display: block;
    width: 100%;
}

/* Meta row */
.blog-article__meta {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-family: 'Lora', serif;
    font-size: 0.88rem;
    color: #888;
    width: 100%;
    margin-top: 6px;
}

.blog-article__meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-article__meta .meta-sep {
    color: #ccc;
}

/* Author image inside meta */
.blog-article__meta .author-image {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.meta-sep { color: #ccc; }

.author-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    vertical-align: middle;
    margin-right: 6px;
}

/* ── Hero / figure images ── */
.blog-article__figure {
    margin: 20px -44px 28px;
    overflow: hidden;
}

.blog-article__hero-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

/* ── TOC ── */
.table-of-contents {
    background: rgba(201,168,76,0.07);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 0 0 28px;
}

.toc-label {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--moss);
    margin: 0 0 10px;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    border-bottom: 1px solid rgba(201,168,76,0.18);
    padding: 5px 0;
}

.table-of-contents li:last-child { border-bottom: none; }

.table-of-contents a {
    font-family: 'Lora', serif;
    font-size: 0.92rem;
    color: var(--moss);
    text-decoration: none;
    transition: color 0.2s ease;
}

.table-of-contents a:hover { color: var(--plum); }

/* ── Article body ── */
.blog-article__body h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--moss);
    margin-top: 28px;
    margin-bottom: 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(201,168,76,0.3);
}

.blog-article__body p { line-height: 1.85; }

.blog-article__body ul {
    padding-left: 1.4em;
    line-height: 2;
}

.blog-article__body ul li::marker { color: var(--gold); }

/* Lead paragraph */
.lead {
    font-size: 1.12rem;
    color: var(--moss);
    line-height: 1.75;
    font-weight: 500;
    margin-bottom: 18px;
}

.lead-zh {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.05rem;
    color: var(--moss);
    line-height: 2;
    font-weight: 700;
    margin-bottom: 14px;
}

/* Inline blockquote */
.inline-quote {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--moss);
    border-left: 3px solid var(--gold);
    margin: 20px 0 0;
    padding: 10px 16px;
    background: rgba(201,168,76,0.07);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Chinese content block */
.chinese-content {
    font-family: 'Noto Serif SC', serif;
    color: #555;
    border-left: 3px solid var(--gold);
    padding-left: 20px;
    line-height: 2.2;
    margin-top: 20px;
}

.chinese-content h4 {
    font-family: 'Noto Serif SC', serif;
    color: var(--moss);
}

/* ── Dual column layout (Tea article) ── */
.dual-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.dual-col__zh {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.97rem;
    line-height: 2.1;
    color: #555;
    border-right: 1px solid rgba(201,168,76,0.25);
    padding-right: 28px;
}

.dual-col__en {
    font-size: 0.97rem;
    line-height: 1.85;
}

/* ── Six Teas grid ── */
.six-teas-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin: 8px 0 4px;
}

.tea-card {
    background: var(--bg);
    border: 1px solid rgba(201,168,76,0.22);
    border-radius: var(--radius);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    transition: var(--transition);
}

.tea-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--gold);
}

.tea-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}

.tea-card strong {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.78rem;
    color: var(--moss);
    line-height: 1.4;
    display: block;
}

.tea-card span {
    font-size: 0.72rem;
    color: #888;
    font-style: italic;
}

/* ── Article divider ── */
.article-rule {
    text-align: center;
    line-height: 0;
    margin: 10px 0;
}
.article-rule svg { width: 100%; max-width: 600px; height: 30px; }

/* ── Share Bar ── */
.share-bar {
    background: rgba(168,197,181,0.1);
    border: 1px solid rgba(201,168,76,0.22);
    border-top: 3px solid var(--moss);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin: 36px 0 20px;
}

.share-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--moss);
    margin-bottom: 12px;
}

.share-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 30px;
    font-family: 'Lora', serif;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: filter 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
    color: #fff;
    line-height: 1;
}

.share-pill:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
    color: #fff;
}

.share-pill i { font-size: 0.95rem; }

.share-email     { background: #555555; }
.share-facebook  { background: #1877f2; }
.share-x         { background: #000000; }
.share-whatsapp  { background: #25d366; }
.share-pinterest { background: #e60023; }
.share-copy      { background: var(--moss); }

/* ── Article CTA ── */
.article-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(201,168,76,0.2);
}

.cta-enroll {
    display: inline-block;
    padding: 11px 26px;
    background: var(--moss);
    color: var(--white);
    font-family: 'Cinzel', serif;
    font-size: 0.88rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
}

.cta-enroll:hover {
    background: var(--plum);
    color: var(--white);
}

.cta-back {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    color: var(--moss);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cta-back:hover { color: var(--plum); }

/* Active nav link */
nav a.nav-active {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 3px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .blog-page-wrap { margin-top: 120px; padding: 0 16px; }

    .blog-article { padding: 28px 20px; }

    .blog-article__figure { margin: 16px -20px 20px; }

    .blog-article__title { font-size: 1.6rem; }

    .dual-col {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dual-col__zh {
        border-right: none;
        border-bottom: 1px solid rgba(201,168,76,0.25);
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

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

    .share-pill span { display: none; }
    .share-pill { padding: 9px 12px; }

    .article-cta { flex-direction: column; align-items: flex-start; }

    .blog-masthead-title { font-size: 2rem; }
}

@media (max-width: 480px) {
    .six-teas-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Safety net — reveal elements never stay invisible forever */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* If JS is disabled entirely, show everything */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
