/* Blessed Culture inspired theme */
:root {
  --background: hsl(30, 15%, 96%);
  --foreground: hsl(0, 0%, 25%);
  --card: hsl(30, 20%, 98%);
  --primary: hsl(25, 30%, 40%);
  --primary-light: hsl(25, 25%, 55%);
  --primary-foreground: hsl(30, 15%, 96%);
  --muted: hsl(30, 12%, 90%);
  --muted-foreground: hsl(0, 0%, 50%);
  --border: hsl(30, 10%, 85%);
  --shadow-zen: 0 2px 12px -2px hsl(0 0% 25% / 0.08);
  --shadow-card: 0 1px 4px 0 hsl(0 0% 25% / 0.08);
  --radius: 0.25rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.625;
  overflow-x: hidden;
}

.font-calligraphy {
  font-family: "Ma Shan Zheng", "Long Cang", "Noto Serif TC", serif;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top bar */
.top-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsl(30 20% 98% / 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--foreground);
}

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

.logo-text {
  font-family: "Ma Shan Zheng", serif;
  font-size: 1.5rem;
  color: var(--primary);
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  letter-spacing: 0.1em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  text-decoration: none;
  color: var(--foreground);
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: hsl(25 30% 40% / 0.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-zen);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: hsl(25 30% 40% / 0.05);
}

.btn-amber {
  background: hsl(217 119 6);
  color: white;
}

.btn-amber:hover {
  background: hsl(180 83 9);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--foreground);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, hsl(30 15% 96% / 0.85) 0%, hsl(25 12% 92% / 0.9) 100%),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1920&q=80") center/cover no-repeat;
  z-index: 0;
}

.hero-deco {
  position: absolute;
  font-family: "Ma Shan Zheng", serif;
  font-size: clamp(6rem, 20vw, 16rem);
  color: hsl(25 30% 40% / 0.06);
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.hero-deco-left {
  left: -2rem;
  top: 10%;
}

.hero-deco-right {
  right: -2rem;
  bottom: 5%;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: hsl(255 251 235);
  border: 1px solid hsl(252 211 77);
  border-radius: 999px;
  font-size: 0.8rem;
  color: hsl(146 64 14);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: "Ma Shan Zheng", serif;
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.hero-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-zen);
  border-color: hsl(25 30% 40% / 0.2);
}

.hero-feature h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.hero-feature p {
  font-size: 0.8rem;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--background) 0%, var(--muted) 50%, var(--background) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: "Ma Shan Zheng", serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* Pricing table */
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card-header {
  background: linear-gradient(135deg, hsl(255 251 235) 0%, hsl(255 247 237) 100%);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid hsl(252 211 77 / 0.5);
}

.pricing-card-header h3 {
  font-size: 1.1rem;
  color: hsl(120 53 15);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.pricing-table th {
  background: var(--muted);
  font-weight: 600;
  font-size: 0.875rem;
}

.pricing-table td:last-child {
  color: hsl(22 163 74);
  font-weight: 600;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

/* Announcement */
.announcement {
  background: linear-gradient(135deg, hsl(255 251 235 / 0.9) 0%, hsl(255 247 237 / 0.7) 100%);
  border: 1px solid hsl(252 211 77 / 0.7);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.announcement-label {
  display: inline-block;
  background: hsl(217 119 6);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.announcement h3 {
  font-size: 1.5rem;
  color: hsl(120 53 15);
  margin-bottom: 1.5rem;
}

.announcement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.announcement-item {
  text-align: center;
  padding: 1rem;
}

.announcement-item .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.announcement-item p {
  font-size: 0.9rem;
  color: var(--foreground);
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-zen);
}

.service-card-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.service-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(0 0% 0% / 0.5), transparent);
}

.service-card-body {
  padding: 1.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service-card > .service-card-body > p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.service-card ul {
  list-style: none;
}

.service-card li {
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: var(--foreground);
  padding-left: 1.25rem;
  position: relative;
}

.service-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.why-card:hover {
  border-color: hsl(25 30% 40% / 0.2);
  transform: translateY(-2px);
}

.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: hsl(25 30% 40% / 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.why-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(25 25% 35%) 100%);
  color: var(--primary-foreground);
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius);
  margin: 0 1.5rem;
}

.cta h2 {
  font-family: "Ma Shan Zheng", serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.cta p {
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn {
  background: white;
  color: var(--primary);
}

.cta .btn:hover {
  background: hsl(30 15% 96%);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: hsl(25 20% 18%);
  color: hsl(30 15% 85%);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer h4 {
  font-family: "Ma Shan Zheng", serif;
  font-size: 1.25rem;
  color: hsl(30 15% 96%);
  margin-bottom: 0.25rem;
}

.footer-sub {
  font-size: 0.8rem;
  color: hsl(30 10% 60%);
  margin-bottom: 1rem;
}

.footer p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: hsl(30 10% 70%);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: hsl(30 10% 70%);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: hsl(30 15% 96%);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: hsl(30 10% 70%);
}

.footer-contact a {
  color: hsl(30 10% 70%);
  text-decoration: none;
}

.footer-contact a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid hsl(25 15% 25%);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: hsl(30 10% 55%);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: hsl(25 15% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(30 15% 85%);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 20px hsl(0 0% 0% / 0.2);
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px hsl(0 0% 0% / 0.25);
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* About page */
.page-hero {
  background: linear-gradient(135deg, hsl(30 15% 96%) 0%, hsl(25 12% 92%) 100%);
  padding: 5rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: "Ma Shan Zheng", serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-block {
  margin-bottom: 3rem;
}

.about-block h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid hsl(25 30% 40% / 0.15);
}

.about-block p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  text-align: justify;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: hsl(30 20% 98% / 0.98);
  backdrop-filter: blur(12px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 1.25rem;
  color: var(--foreground);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.mobile-nav a:hover {
  color: var(--primary);
  background: hsl(25 30% 40% / 0.05);
}

.mobile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* Responsive */
@media (max-width: 992px) {
  .nav {
    display: none;
  }

  .header .btn-primary {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

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

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

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

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

@media (max-width: 640px) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 3rem 0;
  }

  .cta {
    margin: 0;
    border-radius: 0;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
}
