/* =============================================
   DigniTea — Global Stylesheet
   ============================================= */

/* --- Variables --- */
:root {
  --bg:       #F7F6F2;
  --sub-bg:   #E6DFCD;
  --accent:   #304C4E;
  --text:     #1A1C1D;
  --text-mid: #4a4a4a;
  --border:   rgba(48,76,78,0.15);
  --max-w:    1280px;
  --body-w:   640px;
  --r:        4px;
  --ease:     cubic-bezier(.25,.46,.45,.94);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }

/* --- Typography --- */
h1 { font-weight: 700; font-size: 32px; line-height: 1.25; }
h2 { font-weight: 700; font-size: 24px; line-height: 1.3; }
h3 { font-weight: 700; font-size: 18px; line-height: 1.4; }
h4 { font-weight: 600; font-size: 16px; line-height: 1.4; }
p  { max-width: var(--body-w); line-height: 1.6; }

/* --- Layout helpers --- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 160px);
}
.section { padding-block: 80px; }
.section--story { padding-block: 96px; }

/* --- Label / Section meta --- */
.sec-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.sec-title {
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 16px;
}
.sec-sub {
  font-weight: 400;
  font-size: 16px;
  color: var(--text-mid);
  max-width: var(--body-w);
  line-height: 1.7;
}

/* ==============================================
   HEADER
   ============================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--bg);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 64px);
  height: 64px;
}
.header-logo img { height: 28px; width: auto; }
.header-contact {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  transition: opacity 0.3s;
}
.header-contact:hover { opacity: 0.6; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Nav Drawer */
.nav-drawer {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 0;
  box-shadow: none;
  outline: 0;
  z-index: 99;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease), border-color 0.35s;
}
.nav-drawer.is-open {
  max-height: 400px;
  border-bottom: 1px solid var(--border);
}
.nav-drawer ul {
  padding: 24px clamp(24px,4vw,64px) 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-drawer ul li a {
  display: block;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-drawer ul li:last-child a { border-bottom: 0; }
.nav-drawer ul li a:hover { color: var(--accent); }
.nav-cta a { font-weight: 600 !important; color: var(--accent) !important; }
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 98;
  background: transparent;
}
.nav-overlay.is-active { display: block; }

/* ==============================================
   HERO
   ============================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--sub-bg);
  padding-top: 64px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px clamp(24px, 6vw, 120px);
  max-width: 900px;
}
.hero-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-brand {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(40px, 8vw, 88px);
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-bottom: 32px;
}
.hero h1 {
  font-weight: 300;
  font-size: clamp(20px, 3.5vw, 32px);
  letter-spacing: 0.03em;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}
.hero-sub {
  font-weight: 300;
  font-size: clamp(15px, 2vw, 18px);
  letter-spacing: 0.03em;
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto 48px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ==============================================
   BUTTONS
   ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 32px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  border-radius: var(--r);
  transition: opacity 0.3s, background 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { opacity: 0.82; }
.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ==============================================
   ABOUT US
   ============================================== */
.about-section { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 48px;
}
.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}
.about-pillar {
  background: var(--bg);
  padding: 32px 24px;
}
.pillar-year {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
}
.pillar-name { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.pillar-desc { font-size: 14px; color: var(--text-mid); line-height: 1.6; max-width: none; }
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: 32px;
  transition: gap 0.25s;
}
.about-link:hover { gap: 14px; }
.about-link .arrow { transition: transform 0.25s; }
.about-link:hover .arrow { transform: translateX(4px); }

/* ==============================================
   CUSTOMIZE CARDS
   ============================================== */
.customize-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  margin-top: 48px;
}
.cust-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--sub-bg);
  cursor: pointer;
  display: block;
}
.cust-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.cust-card:hover img { transform: scale(1.04); }
.cust-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 20px;
  background: linear-gradient(to top, rgba(26,28,29,0.6) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.cust-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cust-card-arrow {
  font-size: 16px;
  color: #fff;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s, transform 0.3s;
}
.cust-card:hover .cust-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ==============================================
   VIP GIFTING
   ============================================== */
.gifting-section { background: var(--sub-bg); }
.gifting-intro { margin-top: 40px; margin-bottom: 48px; }

.gifting-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}
.gift-card {
  background: var(--bg);
  overflow: hidden;
}
.gift-card-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
}
.gift-card-body { padding: 28px 24px 32px; }
.gift-card-num {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
}
.gift-card-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.gift-card-desc  { font-size: 14px; color: var(--text-mid); line-height: 1.65; max-width: none; }

/* mobile slider */
.slider-wrap {
  position: relative;
}
.slider-inner {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 2px;
}
.slider-inner::-webkit-scrollbar { display: none; }
.slider-inner .gift-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.dot-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--accent);
  transition: background 0.3s;
  cursor: pointer;
}
.dot.active { background: var(--accent); }

/* ==============================================
   PORTFOLIO
   ============================================== */
.portfolio-section { background: var(--bg); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  margin-top: 48px;
}
.port-card {
  position: relative;
  overflow: hidden;
  background: var(--sub-bg);
}
.port-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.port-card-info {
  padding: 20px 20px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.port-card-venue {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.port-card-name { font-size: 14px; font-weight: 600; line-height: 1.4; }

/* mobile portfolio slider */
.portfolio-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 2px;
}
.portfolio-slider::-webkit-scrollbar { display: none; }
.portfolio-slider .port-card {
  flex: 0 0 88%;
  scroll-snap-align: start;
}

/* ==============================================
   FAQ
   ============================================== */
.faq-section { background: var(--sub-bg); }
.faq-list { margin-top: 48px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}
.faq-icon::before { width: 12px; height: 1px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-icon::after  { width: 1px; height: 12px; top: 50%; left: 50%; transform: translate(-50%,-50%); transition: opacity 0.25s, transform 0.25s; }
.faq-item.is-open .faq-icon::after { opacity: 0; transform: translate(-50%,-50%) rotate(90deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), padding 0.3s;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: var(--body-w);
}
.faq-item.is-open .faq-a { max-height: 400px; padding-bottom: 24px; }

/* ==============================================
   CTA SECTION
   ============================================== */
.cta-section {
  background: var(--accent);
  text-align: center;
  padding-block: 96px;
}
.cta-section .sec-label { color: rgba(255,255,255,0.55); }
.cta-section .sec-title { color: #fff; font-size: 28px; }
.cta-section .sec-sub   { color: rgba(255,255,255,0.75); margin: 0 auto 40px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { opacity: 0.88; }
.btn-white-outline { border: 1px solid rgba(255,255,255,0.6); color: #fff; }
.btn-white-outline:hover { background: rgba(255,255,255,0.12); }

/* ==============================================
   BRAND LINKS
   ============================================== */
.brand-links-section { background: var(--bg); padding-block: 80px; }
.brand-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  margin-top: 0;
}
.brand-link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 40px 36px;
  background: var(--bg);
  transition: background 0.3s;
  min-height: 200px;
}
.brand-link-card:hover { background: var(--sub-bg); }
.blc-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.blc-sub {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  flex: 1;
  max-width: none;
}
.blc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  transition: gap 0.25s;
}
.blc-link .arrow-ne { transition: transform 0.25s; }
.blc-link:hover { gap: 10px; }
.blc-link:hover .arrow-ne { transform: translate(3px, -3px); }

/* ==============================================
   FOOTER
   ============================================== */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.55);
  padding-block: 48px;
}
.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 160px);
}
.footer-nav {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }
.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.footer-info span::before { content: none; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.35); }

/* ==============================================
   SCROLL ANIMATIONS
   ============================================== */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================================
   SUB-PAGE LAYOUT
   ============================================== */
.page-hero {
  background: var(--sub-bg);
  padding: 140px clamp(24px,5vw,160px) 80px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 5vw, 48px); margin-bottom: 16px; }
.page-hero p  { max-width: 560px; margin-inline: auto; color: var(--text-mid); }
.page-body { padding-block: 80px; }

/* Sub-page cards (values, details) */
.value-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  margin-top: 48px;
}
.value-card {
  background: var(--bg);
  padding: 32px 28px;
}
.value-card-num { font-size: 10px; font-weight: 500; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 12px; }
.value-card-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.value-card-desc { font-size: 14px; color: var(--text-mid); line-height: 1.65; max-width: none; }

/* Timeline */
.timeline { margin-top: 48px; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 1px;
  background: var(--border);
}
.tl-item { padding-left: 32px; margin-bottom: 40px; position: relative; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -4px; top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.tl-year { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 6px; }
.tl-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.tl-desc { font-size: 14px; color: var(--text-mid); line-height: 1.65; max-width: none; }

/* Detail info table */
.detail-table { width: 100%; border-collapse: collapse; margin-top: 32px; }
.detail-table th,
.detail-table td { padding: 14px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
.detail-table th { font-weight: 600; width: 30%; background: var(--sub-bg); }
.detail-table td { color: var(--text-mid); }

/* Info grid for case pages */
.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  margin-block: 48px;
}
.case-meta-item { background: var(--sub-bg); padding: 24px 28px; }
.cmi-label { font-size: 10px; font-weight: 500; letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase; margin-bottom: 8px; }
.cmi-value { font-size: 15px; font-weight: 600; }

/* Process steps */
.process-steps { margin-top: 48px; counter-reset: step; }
.proc-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.proc-step:last-child { border-bottom: 0; }
.proc-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.proc-body {}
.proc-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.proc-desc  { font-size: 14px; color: var(--text-mid); line-height: 1.65; max-width: none; }

/* Contact page */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  margin-block: 48px;
}
.ci-item { background: var(--bg); padding: 32px 28px; }
.ci-label { font-size: 10px; font-weight: 500; letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; }
.ci-value { font-size: 16px; font-weight: 600; line-height: 1.5; }
.ci-note  { font-size: 13px; color: var(--text-mid); margin-top: 6px; max-width: none; }

/* Sitemap page */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 80px;
  margin-top: 48px;
}
.sm-group h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 16px; }
.sm-group ul li { border-bottom: 1px solid var(--border); }
.sm-group ul li a { display: block; padding: 12px 0; font-size: 14px; color: var(--text); transition: color 0.2s, padding-left 0.2s; }
.sm-group ul li a:hover { color: var(--accent); padding-left: 6px; }

/* ==============================================
   PC OVERRIDES (min-width: 768px)
   ============================================== */
@media (min-width: 768px) {
  body { font-size: 18px; }
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  .section { padding-block: 120px; }
  .section--story { padding-block: 160px; }
  .sec-title { font-size: 32px; }

  .customize-grid { grid-template-columns: repeat(4, 1fr); }
  .cust-card { aspect-ratio: 3/4; }

  .gifting-cards { display: grid; }
  .slider-wrap .slider-inner { display: grid; grid-template-columns: repeat(3,1fr); overflow: visible; }
  .slider-inner .gift-card { flex: unset; }
  .dot-indicators { display: none; }

  .portfolio-grid { display: grid; }
  .portfolio-slider { display: grid; grid-template-columns: repeat(3,1fr); overflow: visible; }
  .portfolio-slider .port-card { flex: unset; }

  .hero h1 { font-size: clamp(28px, 3.5vw, 40px); }
  .about-pillars { grid-template-columns: repeat(3,1fr); }
  .value-cards { grid-template-columns: repeat(3,1fr); }

  .page-hero { text-align: left; }
  .page-hero p { margin-inline: 0; }
}

/* ==============================================
   MOBILE ONLY (max-width: 767px)
   ============================================== */
@media (max-width: 767px) {
  .container { padding-inline: 24px; }
  .section { padding-block: 80px; }
  .section--story { padding-block: 96px; }

  .gifting-cards { display: none; }
  .portfolio-grid { display: none; }

  .about-pillars { grid-template-columns: 1fr; }
  .value-cards { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .case-meta-grid { grid-template-columns: 1fr; }
  .brand-links-grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; gap: 32px; }

  .cta-section { padding-block: 80px; }

  .brand-link-card { padding: 28px 24px; min-height: auto; }
}
