﻿/* ===== CSS Variables / Design Tokens ===== */
:root {
  --gold: #C9A96E;
  --gold-light: #D4A853;
  --gold-dark: #A8873F;
  --bg-dark: #2C2418;
  --bg-cream: #F5F0E8;
  --bg-warm: #EDE6DA;
  --text-dark: #3D3427;
  --text-muted: #8B7D6B;
  --text-light: #C4B8A5;
  --white: #FDFBF7;
  --overlay: rgba(44, 36, 24, 0.55);
  --shadow: 0 8px 32px rgba(44, 36, 24, 0.12);
  --shadow-lg: 0 16px 48px rgba(44, 36, 24, 0.18);
  --radius: 12px;
  --radius-lg: 24px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-serif: 'Noto Serif TC', 'Playfair Display', serif;
  --font-sans: 'Noto Sans TC', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--bg-cream);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.4; }

.section-label {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

.gold-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 20px auto 32px;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Header / Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(44, 36, 24, 0.08);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo img {
  height: 48px;
  width: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  transition: all var(--transition);
}
.header.scrolled .header-logo img {
  height: 40px;
  width: 40px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--white);
  letter-spacing: 1px;
  position: relative;
  transition: color var(--transition);
}
.header.scrolled .nav-links a {
  color: var(--text-dark);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 28px;
  background: var(--gold);
  color: var(--white) !important;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}
.header.scrolled .hamburger span {
  background: var(--text-dark);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('1.png') center/cover no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero.visible .hero-bg {
  transform: scale(1);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44,36,24,0.4) 0%, rgba(44,36,24,0.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  animation: heroFadeIn 1.5s ease forwards;
}
.hero-content .logo-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: heroFadeIn 1.5s ease forwards;
}
.hero-content h1 {
  font-size: 3rem;
  letter-spacing: 8px;
  margin-bottom: 12px;
  color: var(--white);
}
.hero-content .subtitle {
  font-size: 1.1rem;
  letter-spacing: 6px;
  color: var(--gold);
  margin-bottom: 40px;
}
.hero-cta {
  display: inline-block;
  padding: 14px 48px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 0.9rem;
  border-radius: 50px;
  transition: var(--transition);
}
.hero-cta:hover {
  background: var(--gold);
  color: var(--bg-dark);
}
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}
.scroll-hint span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  opacity: 0.6;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(12px); }
}

/* ===== About ===== */
.about {
  padding: 120px 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.about-image:hover img {
  transform: scale(1.05);
}
.about-text .section-label,
.about-text .section-title {
  text-align: left;
}
.about-text .gold-divider {
  margin: 20px 0 32px;
}
.about-text p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 16px;
}

/* ===== Services ===== */
.services {
  padding: 120px 0;
  background: var(--bg-cream);
  text-align: center;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.service-card-img {
  position: relative;
  height: 260px;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-card-img img {
  transform: scale(1.08);
}
.service-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gold);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  letter-spacing: 1px;
}
.service-card-body {
  padding: 32px;
  text-align: left;
}
.service-card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.service-card-tag {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}
.service-card-body .price {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold-dark);
  margin-bottom: 16px;
}
.service-card-body .price small {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}
.service-detail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-sans);
  transition: gap var(--transition);
}
.service-detail-toggle:hover {
  gap: 12px;
}
.service-detail-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  padding: 0;
}
.service-detail-list.open {
  max-height: 800px;
  padding-top: 20px;
}
.service-detail-list ol {
  list-style: decimal;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.service-detail-list ol li {
  margin-bottom: 6px;
}
.service-detail-list .note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--gold);
  font-style: italic;
}

/* ===== Pricing ===== */
.pricing {
  padding: 120px 0;
  background: var(--bg-dark);
  color: var(--white);
  text-align: center;
}
.pricing .section-title {
  color: var(--white);
}
.pricing .section-desc {
  color: var(--text-light);
}
.pricing-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.pricing-category {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: left;
  transition: border-color var(--transition), background var(--transition);
}
.pricing-category:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}
.pricing-category h3 {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}
.pricing-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.pricing-item:last-child {
  border-bottom: none;
}
.pricing-item .name {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}
.pricing-item .cost {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1rem;
  white-space: nowrap;
  margin-left: 16px;
}

/* ===== Environment ===== */
.environment {
  padding: 120px 0;
  background: var(--white);
  text-align: center;
}
.env-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.env-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.env-item:nth-child(1),
.env-item:nth-child(2),
.env-item:nth-child(3) {
  grid-column: span 2;
}
.env-item:nth-child(4),
.env-item:nth-child(5) {
  grid-column: span 3;
}
.env-item img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}
.env-item:hover img {
  transform: scale(1.05);
}
.enhanced-photo {
  /* 自動美化濾鏡：提升亮度、對比，加入微量暖色調與飽和度，完全不改變原圖內容 */
  filter: brightness(1.12) contrast(1.15) saturate(1.25) sepia(0.15) drop-shadow(0 8px 24px rgba(44, 36, 24, 0.15));
  border-radius: 12px;
  transition: all 0.4s ease;
}

.enhanced-photo:hover {
  filter: brightness(1.18) contrast(1.2) saturate(1.3) sepia(0.1) drop-shadow(0 12px 32px rgba(44, 36, 24, 0.25));
  transform: translateY(-4px);
}
.env-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(44,36,24,0.4) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}
.env-item:hover::after {
  opacity: 1;
}

/* ===== Local SEO / GEO ===== */
.local-seo {
  padding: 100px 0;
  background: var(--bg-cream);
  text-align: center;
}
.local-seo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
  text-align: left;
}
.local-seo-card {
  background: var(--white);
  border: 1px solid rgba(201, 169, 110, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.local-seo-card h3 {
  color: var(--gold-dark);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.local-seo-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Contact ===== */
.contact {
  padding: 120px 0;
  background: var(--bg-cream);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 400px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.contact-info {
  padding: 20px 0;
}
.contact-info .section-label,
.contact-info .section-title {
  text-align: left;
}
.contact-info .gold-divider {
  margin: 20px 0 32px;
}
.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.info-icon {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.info-text h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-family: var(--font-sans);
  font-weight: 600;
}
.info-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 48px 0 24px;
  text-align: center;
}
  .footer-logo img {
    height: 72px;
    width: 72px;
    object-fit: cover;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  }
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 4px;
  margin-bottom: 24px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}
.footer-links a {
  color: var(--text-light);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--gold);
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

/* ===== RWD ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; }
  .pricing-categories { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .section-title { font-size: 1.8rem; }
  .hero-content h1 { font-size: 2.2rem; letter-spacing: 4px; }
  .hero-content .subtitle { font-size: 0.95rem; letter-spacing: 3px; }

  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right var(--transition);
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
  }
  .nav-links.open { right: 0; }
  .nav-links a { color: var(--white) !important; font-size: 1rem; }
  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }
  .mobile-overlay.show { display: block; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image img { height: 320px; }
  .about-text .section-label,
  .about-text .section-title { text-align: center; }
  .about-text .gold-divider { margin: 20px auto 32px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { height: 300px; }

  .env-gallery { grid-template-columns: 1fr; }
  .env-item { grid-column: 1 / -1 !important; }
  .env-item img { height: 280px; }

  .local-seo-grid { grid-template-columns: 1fr; }
}

