/* ================================================================
   Owen Style v2 — Global Stylesheet
   設計方向：極簡編輯感 · 大圖留白 · 奶油白底 · 深棕文字
================================================================ */

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

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #FAF8F5;   /* 奶油白底 */
  --bg-alt:      #F0EDE8;   /* 淺灰米色 */
  --text:        #2A2520;   /* 深棕文字 */
  --text-light:  #7A7269;   /* 次要文字 */
  --accent:      #C8A96A;   /* 啞金色點綴 */
  --accent-dark: #A8893F;   /* 深金色 */
  --border:      #E5E0D8;   /* 線條 */
  --white:       #FFFFFF;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Noto Sans TC', 'PingFang TC', sans-serif;

  --radius:      4px;
  --transition:  0.3s ease;

  --max-w:       1200px;
  --section-py:  100px;
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
p  { font-size: 0.95rem; color: var(--text-light); }
.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 8px;
}

/* ── Layout Utilities ─────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
}
.section-py { padding: var(--section-py) 0; }

/* ── Navigation ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 72px;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(250,248,245,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-light);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  font-size: 0.78rem !important;
  letter-spacing: 0.12em !important;
  padding: 8px 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent) !important;
  transition: background var(--transition), color var(--transition) !important;
}
.nav-cta:hover { background: var(--accent) !important; color: var(--white) !important; }
.nav-cta::after { display: none !important; }

/* Mobile menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: var(--transition);
}
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px 20px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(42,37,32,0.55) 0%,
    rgba(42,37,32,0.2) 60%,
    rgba(42,37,32,0.05) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  color: #fff;
  max-width: 640px;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.75);
}
.hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  font-weight: 300;
  max-width: 420px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  padding: 14px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-outline-dark {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline-dark:hover { border-color: var(--accent); color: var(--accent); }
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Section Headers ───────────────────────────────────────────── */
.section-header {
  margin-bottom: 60px;
}
.section-header.center { text-align: center; }
.section-header.center p { max-width: 480px; margin: 12px auto 0; }

/* ── Service Cards ────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  aspect-ratio: 3/4;
}
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover img { transform: scale(1.04); }
.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,37,32,0.75) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  transition: background var(--transition);
}
.service-card:hover .service-card-overlay {
  background: linear-gradient(to top, rgba(42,37,32,0.85) 0%, rgba(42,37,32,0.15) 60%);
}
.service-card-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.service-card h3 { color: #fff; margin-bottom: 6px; }
.service-card p { color: rgba(255,255,255,0.65); font-size: 0.85rem; }

/* ── About Section (Home) ─────────────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; gap: 40px; }
}
.about-image-wrap {
  position: relative;
  overflow: hidden;
}
.about-image-wrap img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-image-accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  border: 1px solid var(--accent);
  z-index: -1;
}
.about-text h2 { margin-bottom: 24px; }
.about-text p { margin-bottom: 16px; }
.about-tagline {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--accent);
  margin: 32px 0 24px;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
}

/* ── Featured Works ───────────────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 12px;
}
.featured-item {
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.featured-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.featured-item:hover img { transform: scale(1.03); }
.featured-item:nth-child(1) { grid-column: 1 / 8;  grid-row: 1 / 3; aspect-ratio: unset; }
.featured-item:nth-child(2) { grid-column: 8 / 13; grid-row: 1 / 2; aspect-ratio: 4/3; }
.featured-item:nth-child(3) { grid-column: 8 / 13; grid-row: 2 / 3; aspect-ratio: 4/3; }
.featured-item:nth-child(4) { grid-column: 1 / 6;  grid-row: 3 / 4; aspect-ratio: 16/9; }
.featured-item:nth-child(5) { grid-column: 6 / 13; grid-row: 3 / 4; aspect-ratio: 16/9; }
@media (max-width: 768px) {
  .featured-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .featured-item:nth-child(n) { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; }
}

/* ── CTA Section ──────────────────────────────────────────────── */
.cta-section {
  background: var(--text);
  text-align: center;
  padding: 100px 40px;
}
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.6); margin-bottom: 40px; font-size: 1rem; }

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  background: #1a1816;
  padding: 60px 40px 40px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}
.footer-brand .nav-logo { color: #fff; margin-bottom: 16px; display: inline-block; }
.footer-brand p { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.footer h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.footer-links a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  margin-bottom: 12px;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.25);
  font-size: 0.78rem;
}
@media (max-width: 600px) { .footer-bottom { flex-direction: column; gap: 8px; text-align: center; } }

/* ── Page Header (inner pages) ───────────────────────────────── */
.page-header {
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,37,32,0.7) 0%, rgba(42,37,32,0.2) 100%);
  z-index: 1;
}
.page-header-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px 60px;
  width: 100%;
}
.page-header h1 { color: #fff; }
.page-header p { color: rgba(255,255,255,0.65); margin-top: 8px; }

/* ── Portfolio Albums ─────────────────────────────────────────── */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .albums-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .albums-grid { grid-template-columns: 1fr; } }

.album-card {
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.album-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.album-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.album-card:hover .album-card-image img { transform: scale(1.04); }
.album-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42,37,32,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.album-card:hover .album-card-overlay { opacity: 1; }
.album-card-overlay span {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 10px 20px;
}
.album-card-body { padding: 20px 4px 0; }
.album-card-body h3 { margin-bottom: 4px; }
.album-card-body p { color: var(--text-light); font-size: 0.85rem; }
.album-card-body .album-count {
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 8px;
  font-family: var(--font-sans);
  font-weight: 400;
}

/* ── Masonry Grid (album pages) ──────────────────────────────── */
.masonry-wrap { padding: 60px 0 100px; }
.masonry {
  columns: 3;
  column-gap: 12px;
}
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 500px) { .masonry { columns: 1; } }

.masonry-item {
  break-inside: avoid;
  margin-bottom: 12px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}
.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.masonry-item:hover img { transform: scale(1.02); }

/* ── Process ──────────────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  counter-reset: step;
}
@media (max-width: 900px) { .process-steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .process-steps { grid-template-columns: 1fr; } }

.process-step {
  position: relative;
  padding-top: 60px;
}
.process-step::before {
  counter-increment: step;
  content: counter(step, zero-width-numeric);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  opacity: 0.7;
}
.process-step h3 { margin-bottom: 12px; }
.process-step p { font-size: 0.88rem; }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
.contact-info-item {
  margin-bottom: 32px;
}
.contact-info-item h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.contact-info-item p { color: var(--text); font-size: 0.95rem; }

.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ── Lightbox ─────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10,8,6,0.95);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
  background: none; border: none;
}
.lightbox-close:hover { color: #fff; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(255,255,255,0.7);
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.18); color: #fff; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}

/* ── Scroll Reveal ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 24px;
}
.breadcrumb a { transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb span { color: var(--text); }

/* ── About Page ──────────────────────────────────────────────── */
.about-full {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .about-full { grid-template-columns: 1fr; gap: 40px; }
}
.about-full-image {
  position: sticky;
  top: 100px;
}
.about-full-image img { width: 100%; }
.about-full-content h2 { margin-bottom: 28px; }
.about-full-content p { margin-bottom: 20px; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

/* ── Utility ─────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-60 { margin-top: 60px; }
.mb-40 { margin-bottom: 40px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
