/* ============================================
   MEDIYA - Cinematic Dark Immersion Style
   Colors: Deep black #0A0A0F + Amber Gold #D4A853
   Fonts: Playfair Display (display) + DM Sans (body)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', 'Noto Sans TC', sans-serif;
  background: #0A0A0F;
  color: #E8E4DD;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Utility --- */
.container {
  width: 100%; max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.text-gold {
  background: linear-gradient(135deg, #D4A853, #F0D48A, #C49A3C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Loading Screen --- */
.loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: #0A0A0F;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-inner { text-align: center; }
.loading-ring { width: 80px; height: 80px; margin: 0 auto 1.5rem; }
.loading-track { fill: none; stroke: rgba(212,168,83,0.1); stroke-width: 4; }
.loading-progress {
  fill: none; stroke: #D4A853; stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 264; stroke-dashoffset: 264;
  transform: rotate(-90deg); transform-origin: center;
  transition: stroke-dashoffset 0.1s linear;
}
.loading-brand {
  display: block;
  font-family: 'Playfair Display', 'Noto Serif TC', serif;
  font-size: 1.5rem; font-weight: 700;
  color: #D4A853; letter-spacing: 0.15em;
}
.loading-company {
  display: block; font-size: 0.65rem;
  color: rgba(232,228,221,0.4);
  letter-spacing: 0.1em; margin-top: 0.25rem;
}

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.navbar.scrolled {
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,168,83,0.1);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
}
.logo-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(212,168,83,0.1);
  border: 1px solid rgba(212,168,83,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  color: #D4A853; font-weight: 700; font-size: 1.1rem;
}
.logo-text {
  font-family: 'Playfair Display', 'Noto Serif TC', serif;
  color: #D4A853; font-size: 1.15rem; font-weight: 600;
  letter-spacing: 0.05em;
}
.nav-links {
  display: none; gap: 2rem;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(232,228,221,0.6);
  transition: color 0.3s;
}
.nav-links a:hover { color: #D4A853; }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.lang-btn {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.75rem; border-radius: 999px;
  border: 1px solid rgba(232,228,221,0.2);
  background: transparent; color: rgba(232,228,221,0.7);
  font-size: 0.75rem; cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.lang-btn:hover { border-color: rgba(212,168,83,0.5); color: #D4A853; }
.mobile-menu-btn {
  display: flex; background: none; border: none;
  color: rgba(232,228,221,0.7); cursor: pointer;
}
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }
.mobile-menu {
  display: none; flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,168,83,0.1);
}
.mobile-menu.open { display: flex; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }
.mobile-menu a {
  padding: 0.75rem 0; font-size: 0.85rem;
  color: rgba(232,228,221,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.3s;
}
.mobile-menu a:hover { color: #D4A853; }

/* --- Hero --- */
.hero {
  position: relative; width: 100%; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay-v {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,15,0.7), rgba(10,10,15,0.5), #0A0A0F);
}
.hero-overlay-h {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,10,15,0.6), transparent, rgba(10,10,15,0.6));
}
.hero-content {
  position: relative; z-index: 10;
  text-align: center; padding: 6rem 0 4rem;
}
.hero-subtitle {
  display: inline-block; padding: 0.4rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(212,168,83,0.3);
  color: rgba(212,168,83,0.8);
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: 'Playfair Display', 'Noto Serif TC', serif;
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem;
}
.hero-tagline {
  color: rgba(212,168,83,0.6);
  font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase;
  margin-bottom: 2rem;
}
.hero-desc {
  color: rgba(232,228,221,0.6);
  font-size: 1rem; max-width: 640px; margin: 0 auto 3rem;
  line-height: 1.7;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 2rem;
  background: rgba(212,168,83,0.1);
  border: 1px solid rgba(212,168,83,0.3);
  color: #D4A853;
  font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 500;
  transition: background 0.3s, border-color 0.3s;
}
.hero-cta:hover {
  background: rgba(212,168,83,0.2);
  border-color: rgba(212,168,83,0.5);
}
.scroll-indicator {
  position: absolute; bottom: 2rem;
  left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(212,168,83,0.4);
  animation: bounce 2s infinite;
}
.scroll-indicator span { font-size: 0.6rem; letter-spacing: 0.3em; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* --- Sections --- */
.section { position: relative; padding: 7rem 0; overflow: hidden; }
.services, .highlights { background: linear-gradient(180deg, #0C0C14, #0A0A0F); }
.about { background: #0C0C14; }
.section-divider-top, .section-divider-bottom {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(212,168,83,0.15), transparent);
}
.section-divider-top { top: 0; }
.section-divider-bottom { bottom: 0; }

.section-header { margin-bottom: 4rem; }
.section-label {
  display: inline-block;
  color: rgba(212,168,83,0.6);
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Playfair Display', 'Noto Serif TC', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700; color: #E8E4DD; margin-bottom: 1rem;
}
.section-subtitle {
  color: rgba(232,228,221,0.5);
  font-size: 1.05rem; max-width: 560px;
}

/* --- Services --- */
.services-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: 1fr 1fr; } }
.service-card {
  position: relative; padding: 2rem 2.5rem;
  background: rgba(20,20,30,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.5s, background 0.5s;
}
.service-card:hover {
  border-color: rgba(212,168,83,0.3);
  background: rgba(20,20,30,0.8);
}
.service-number {
  position: absolute; top: 1.5rem; right: 2rem;
  font-family: 'Playfair Display', serif;
  font-size: 4rem; font-weight: 700;
  color: rgba(212,168,83,0.05);
  transition: color 0.5s;
}
.service-card:hover .service-number { color: rgba(212,168,83,0.1); }
.service-icon {
  width: 48px; height: 48px;
  background: rgba(212,168,83,0.1);
  border: 1px solid rgba(212,168,83,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; color: #D4A853;
  transition: background 0.3s;
}
.service-card:hover .service-icon { background: rgba(212,168,83,0.15); }
.service-card h3 {
  font-family: 'Playfair Display', 'Noto Serif TC', serif;
  font-size: 1.25rem; font-weight: 600; color: #E8E4DD;
  margin-bottom: 1rem;
  transition: color 0.3s;
}
.service-card:hover h3 { color: #D4A853; }
.service-card p {
  color: rgba(232,228,221,0.5); font-size: 0.875rem; line-height: 1.7;
}
.service-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 2rem; right: 2rem; height: 1px;
  background: linear-gradient(to right, transparent, rgba(212,168,83,0), transparent);
  transition: background 0.5s;
}
.service-card:hover::after {
  background: linear-gradient(to right, transparent, rgba(212,168,83,0.3), transparent);
}

/* --- About --- */
.about-overview {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 1024px) { .about-overview { grid-template-columns: 1fr 1fr; align-items: center; } }
.about-block-title {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: 'Playfair Display', 'Noto Serif TC', serif;
  font-size: 1.5rem; font-weight: 600; color: #E8E4DD;
  margin-bottom: 2rem;
}
.about-block-title svg { color: #D4A853; }
.info-table { display: flex; flex-direction: column; }
.info-row {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
@media (min-width: 640px) { .info-row { flex-direction: row; gap: 1rem; } }
.info-label {
  color: #D4A853; font-size: 0.85rem; font-weight: 500;
  min-width: 120px; flex-shrink: 0;
}
.info-value { color: rgba(232,228,221,0.8); font-size: 0.85rem; line-height: 1.6; }
.about-image {
  position: relative; overflow: hidden;
  border: 1px solid rgba(212,168,83,0.15);
}
.about-image img { width: 100%; height: 300px; object-fit: cover; }
@media (min-width: 1024px) { .about-image img { height: 400px; } }
.about-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, #0C0C14, transparent);
}

/* Stats */
.stats-bar {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  padding: 3rem 2rem;
  background: rgba(20,20,30,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 4rem;
}
@media (min-width: 1024px) { .stats-bar { grid-template-columns: repeat(4, 1fr); } }
.stat-item { text-align: center; }
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700; color: #D4A853; margin-bottom: 0.5rem;
}
.stat-label { color: rgba(232,228,221,0.5); font-size: 0.8rem; }

/* About Cards */
.about-cards {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 1024px) { .about-cards { grid-template-columns: repeat(3, 1fr); } }
.about-card {
  padding: 2rem;
  background: rgba(20,20,30,0.5);
  border: 1px solid rgba(255,255,255,0.06);
}
.about-card-header {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.about-card-header svg { color: #D4A853; }
.about-card-header h3 {
  font-family: 'Playfair Display', 'Noto Serif TC', serif;
  font-size: 1.15rem; font-weight: 600; color: #E8E4DD;
}
.philosophy-list li {
  display: flex; gap: 0.75rem;
  font-size: 0.85rem; color: rgba(232,228,221,0.7);
  line-height: 1.6; margin-bottom: 0.75rem;
}
.philosophy-list .num {
  color: rgba(212,168,83,0.6);
  font-family: 'Playfair Display', serif;
  font-size: 0.7rem; margin-top: 0.15rem; flex-shrink: 0;
}
.culture-item { margin-bottom: 1.25rem; }
.culture-item h4 {
  color: #D4A853; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.25rem;
}
.culture-item p {
  color: rgba(232,228,221,0.6); font-size: 0.85rem; line-height: 1.6;
}
.business-desc {
  color: rgba(232,228,221,0.7); font-size: 0.85rem;
  line-height: 1.7; margin-bottom: 1.5rem;
}
.business-image {
  position: relative; overflow: hidden;
}
.business-image img { width: 100%; height: 160px; object-fit: cover; opacity: 0.6; }
.business-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,20,30,1), transparent);
}

/* --- Highlights --- */
.highlights-featured {
  position: relative; overflow: hidden;
  border: 1px solid rgba(212,168,83,0.15);
  margin-bottom: 3rem;
}
.highlights-featured img { width: 100%; height: 300px; object-fit: cover; }
@media (min-width: 1024px) { .highlights-featured img { height: 450px; } }
.featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, #0A0A0F, rgba(10,10,15,0.2), transparent);
}
.featured-text {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem;
}
@media (min-width: 1024px) { .featured-text { padding: 3rem; } }
.featured-text h3 {
  font-family: 'Playfair Display', 'Noto Serif TC', serif;
  font-size: 1.5rem; font-weight: 700; color: #E8E4DD;
  margin-bottom: 0.5rem;
}
@media (min-width: 1024px) { .featured-text h3 { font-size: 1.8rem; } }
.featured-text p { color: rgba(232,228,221,0.6); font-size: 0.9rem; max-width: 480px; }

.highlights-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 640px) { .highlights-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .highlights-grid { grid-template-columns: repeat(3, 1fr); } }
.highlight-card {
  padding: 1.5rem;
  background: rgba(20,20,30,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.5s;
}
.highlight-card:hover { border-color: rgba(212,168,83,0.2); }
.highlight-card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.highlight-tag {
  padding: 0.2rem 0.75rem;
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(212,168,83,0.7);
  border: 1px solid rgba(212,168,83,0.2);
  border-radius: 999px;
}
.highlight-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem; font-weight: 700;
  color: rgba(212,168,83,0.05);
  transition: color 0.5s;
}
.highlight-card:hover .highlight-num { color: rgba(212,168,83,0.1); }
.highlight-card h3 {
  font-family: 'Playfair Display', 'Noto Serif TC', serif;
  font-size: 1.05rem; font-weight: 600; color: #E8E4DD;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}
.highlight-card:hover h3 { color: #D4A853; }
.highlight-card p {
  color: rgba(232,228,221,0.5); font-size: 0.85rem; line-height: 1.6;
}

/* --- Contact --- */
.contact { position: relative; }
.contact-bg {
  position: absolute; inset: 0;
}
.contact-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.contact-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, #0A0A0F, rgba(10,10,15,0.9), #0A0A0F);
}
.contact-content { position: relative; z-index: 10; }
.contact-cards {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  max-width: 768px; margin: 0 auto 2rem;
}
@media (min-width: 768px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.contact-card {
  padding: 2rem;
  background: rgba(20,20,30,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.5s;
}
.contact-card:hover { border-color: rgba(212,168,83,0.3); }
.contact-icon {
  width: 48px; height: 48px;
  background: rgba(212,168,83,0.1);
  border: 1px solid rgba(212,168,83,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; color: #D4A853;
}
.contact-card h3 {
  font-family: 'Playfair Display', 'Noto Serif TC', serif;
  font-size: 1.1rem; font-weight: 600; color: #E8E4DD;
  margin-bottom: 0.75rem;
}
.contact-card p {
  color: rgba(232,228,221,0.7); font-size: 0.85rem; line-height: 1.6;
}
.contact-card a {
  color: #D4A853; font-size: 0.85rem;
  transition: color 0.3s;
}
.contact-card a:hover { color: #F0D48A; }
.contact-map {
  max-width: 768px; margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(212,168,83,0.15);
}

/* --- Footer --- */
.footer {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: #08080C;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  padding: 4rem 0;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
.footer-tagline {
  color: rgba(232,228,221,0.5); font-size: 0.85rem;
  margin-top: 0.75rem;
}
.footer-links, .footer-contact { display: flex; flex-direction: column; }
.footer-links h4, .footer-contact h4 {
  color: #D4A853; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 1.25rem; font-weight: 500;
}
.footer-links a {
  color: rgba(232,228,221,0.5); font-size: 0.85rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: #D4A853; }
.footer-contact p {
  color: rgba(232,228,221,0.5); font-size: 0.85rem;
  line-height: 1.6; margin-bottom: 0.5rem;
}
.footer-contact a {
  color: rgba(232,228,221,0.5); font-size: 0.85rem;
  transition: color 0.3s;
}
.footer-contact a:hover { color: #D4A853; }
.footer-bottom {
  display: flex; flex-direction: column; gap: 1rem;
  align-items: center; justify-content: space-between;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.03);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom p { color: rgba(232,228,221,0.3); font-size: 0.75rem; }
.back-to-top {
  display: flex; align-items: center; gap: 0.5rem;
  background: none; border: none;
  color: rgba(232,228,221,0.3); font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s;
}
.back-to-top:hover { color: #D4A853; }

/* --- Scroll Reveal Animation --- */
.scroll-reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-reveal.visible {
  opacity: 1; transform: translateY(0);
}
.fade-up {
  opacity: 0; transform: translateY(30px);
  animation: fadeUp 0.8s 0.3s forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
