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

:root {
  --blue: #243049;
  --blue-deep: #1a2338;
  --gold: #C4A468;
  --gold-soft: #ddc99a;
  --ink: #2b2b2b;
  --paper: #faf8f4;
  --line: rgba(196, 164, 104, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Noto Sans TC', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wordmark {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.eyebrow {
  font-family: 'Cormorant', serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  font-size: 1.15rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 6vw;
  background: var(--blue);
  color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand img { width: 34px; height: 34px; }

.brand span {
  font-size: 1.25rem;
  color: var(--paper);
}

.site-nav {
  display: flex;
  gap: 2.2rem;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.site-nav a {
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 1.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  color: var(--paper);
  text-align: center;
  overflow: hidden;
  background: var(--blue-deep); /* fallback while video loads */
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 6vw 6rem;
  background: linear-gradient(160deg, rgba(36, 48, 73, 0.72) 0%, rgba(26, 35, 56, 0.8) 100%);
}

.hero .eyebrow { display: block; margin-bottom: 1rem; }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin: 0 0 1.3rem;
  letter-spacing: 0.02em;
}

.hero p {
  max-width: 40em;
  margin: 0 auto;
  color: rgba(250, 248, 244, 0.85);
  font-size: 1.05rem;
}

.hero .cta {
  display: inline-block;
  margin-top: 2.2rem;
  padding: 0.85rem 2.3rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Cormorant', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.15rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.hero .cta:hover {
  background: var(--gold);
  color: var(--blue-deep);
}

/* Sections */
section.block {
  padding: 5.5rem 6vw;
  max-width: 920px;
  margin: 0 auto;
}

section.block h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--blue);
  margin-bottom: 0.5rem;
}

section.block .eyebrow { display: block; margin-bottom: 0.6rem; }

section.block p {
  color: #444;
  font-size: 1.02rem;
}

.divider {
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin: 1.6rem 0 2.2rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.pillar {
  padding: 1.8rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.pillar h3 {
  font-family: 'Playfair Display', serif;
  color: var(--blue);
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
}

.pillar p { font-size: 0.94rem; margin: 0; color: #555; }

.feature-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin: 3.5rem 0;
}

.feature-row img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.feature-row .feature-media,
.feature-row .feature-text {
  flex: 1 1 0;
  min-width: 0;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-text h3 {
  font-family: 'Playfair Display', serif;
  color: var(--blue);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 0 0 1rem;
}

.feature-text p { color: #444; }

@media (max-width: 720px) {
  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    gap: 1.5rem;
  }
}

.band {
  background: var(--blue);
  color: var(--paper);
}

.band .block p { color: rgba(250, 248, 244, 0.85); }
.band .block h2 { color: var(--paper); }

/* Forms */
form.contact-form {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.3rem;
  max-width: 560px;
}

.field { display: grid; gap: 0.5rem; }

.field label {
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--blue);
  font-weight: 500;
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d7cfc0;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.field textarea { resize: vertical; min-height: 140px; }

.field-consent { gap: 0; }

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #555;
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--blue);
}

.submit-btn {
  justify-self: start;
  padding: 0.85rem 2.4rem;
  background: var(--blue);
  color: var(--paper);
  border: none;
  border-radius: 3px;
  font-family: 'Cormorant', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover { background: var(--blue-deep); }
.submit-btn:disabled { opacity: 0.6; cursor: default; }

.form-status {
  font-size: 0.92rem;
  min-height: 1.4em;
}

.form-status.ok { color: #3c7a4e; }
.form-status.err { color: #a3413a; }

/* Footer */
.site-footer {
  padding: 2.4rem 6vw;
  background: var(--blue-deep);
  color: rgba(250, 248, 244, 0.6);
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--blue);
    padding: 1.2rem 6vw;
    gap: 1.1rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
}

/* ===== Sister-brand system (Pawtellite 波特星) ===== */
:root {
  --sage: #9DA595;
  --sage-deep: #5E6359;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.icon-btn {
  position: relative;
  background: none;
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 0.45rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.icon-btn:hover { border-color: var(--gold); color: var(--gold); }

.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--gold);
  color: var(--blue-deep);
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Hero slider */
.hero-slider { position: relative; min-height: 88vh; overflow: hidden; background: var(--blue-deep); }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  min-height: 88vh;
  transition: opacity 1.1s ease;
}

.hero-slide.active { opacity: 1; z-index: 1; }

.hero-slide .hero-overlay {
  position: relative;
  z-index: 1;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 6vw 6rem;
  text-align: center;
  color: var(--paper);
}

.hero-slide.hlebe-slide .hero-overlay {
  background: linear-gradient(160deg, rgba(36, 48, 73, 0.72) 0%, rgba(26, 35, 56, 0.8) 100%);
}

.hero-slide.pawtellite-slide {
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.06), transparent 60%), linear-gradient(160deg, var(--sage-deep) 0%, #303a2c 100%);
}

.hero-slide .eyebrow { display: block; margin-bottom: 1rem; }

.hero-slide.pawtellite-slide .eyebrow { color: #d9e2d4; }

.hero-slide h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin: 0 0 1.3rem;
  letter-spacing: 0.02em;
}

.hero-slide p {
  max-width: 40em;
  margin: 0 auto;
  color: rgba(250, 248, 244, 0.85);
  font-size: 1.05rem;
}

.hero-slide .cta {
  display: inline-block;
  margin-top: 2.2rem;
  padding: 0.85rem 2.3rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Cormorant', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.15rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.hero-slide.hlebe-slide .cta:hover { background: var(--gold); color: var(--blue-deep); }

.hero-slide.pawtellite-slide .cta { border-color: var(--sage); color: #d9e2d4; }
.hero-slide.pawtellite-slide .cta:hover { background: var(--sage); color: #1f2519; }

.hero-dots {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.6rem;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(250, 248, 244, 0.7);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.hero-dots button.active { background: var(--gold); border-color: var(--gold); }

/* Philosophy quote */
.philosophy {
  text-align: center;
  padding: 5.5rem 6vw;
  background: var(--paper);
}

.philosophy blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  color: var(--blue);
  max-width: 42em;
  margin: 0 auto;
  line-height: 1.6;
}

/* Dual brand entrance cards */
.entrances {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.entrance-card {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  padding: 2.6rem;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.entrance-card.hlebe {
  background: linear-gradient(180deg, rgba(36,48,73,0.1), rgba(26,35,56,0.9)), url('lab.jpg') center/cover;
}

.entrance-card.pawtellite-card {
  background: linear-gradient(180deg, rgba(56,66,49,0.15), rgba(31,37,25,0.92));
}

.entrance-card .eyebrow { display: block; margin-bottom: 0.6rem; }

.entrance-card.hlebe .eyebrow { color: var(--gold); }
.entrance-card.pawtellite-card .eyebrow { color: #cfdac9; }

.entrance-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  margin: 0 0 0.5rem;
}

.entrance-card p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
  max-width: 26em;
  margin: 0 0 1rem;
}

.entrance-card .cta-line {
  font-family: 'Cormorant', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
}

.entrance-card.hlebe .cta-line { color: var(--gold); }
.entrance-card.pawtellite-card .cta-line { color: #cfdac9; }

/* Brand filter */
.brand-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.filter-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.filter-btn:hover { border-color: var(--gold); }

.filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* Shop grid / product cards */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.product-media {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
}

.product-card.pawtellite .product-media {
  background: linear-gradient(135deg, var(--sage), var(--sage-deep));
  color: #fff;
}

.product-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.badge-soon {
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--blue-deep);
}

.product-card.pawtellite .badge-soon {
  background: #dbe4d6;
  color: var(--sage-deep);
}

.product-body h3 {
  font-family: 'Playfair Display', serif;
  color: var(--blue);
  font-size: 1.05rem;
  margin: 0;
}

.product-body p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  flex: 1;
}

.add-cart-btn {
  align-self: flex-start;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--blue);
  background: none;
  color: var(--blue);
  border-radius: 3px;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.add-cart-btn:hover { background: var(--blue); color: #fff; }

.product-card.pawtellite .add-cart-btn { border-color: var(--sage-deep); color: var(--sage-deep); }
.product-card.pawtellite .add-cart-btn:hover { background: var(--sage-deep); color: #fff; }

/* Cart drawer */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 18, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}

.cart-backdrop.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 92vw);
  background: var(--paper);
  box-shadow: -10px 0 30px rgba(0,0,0,0.18);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 91;
}

.cart-drawer.open { transform: translateX(0); }

.cart-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.8rem;
}

.cart-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.cart-drawer-head h3 {
  font-family: 'Playfair Display', serif;
  color: var(--blue);
  margin: 0;
}

.cart-drawer-head button {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--blue);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-empty { color: #888; font-size: 0.92rem; }

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.9rem;
}

.cart-item-name { margin: 0; font-weight: 500; color: var(--blue); }
.cart-item-brand { margin: 0.25rem 0 0; font-size: 0.82rem; color: #888; }

.cart-item-remove {
  background: none;
  border: none;
  color: #a3413a;
  cursor: pointer;
  font-size: 0.9rem;
}

.cart-drawer-foot { padding-top: 1.2rem; }
.cart-drawer-foot .submit-btn { width: 100%; }

/* Footer expansion */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.85rem;
}

.footer-links a:hover { color: var(--gold); }

@media (max-width: 720px) {
  .header-actions { gap: 0.5rem; }
  .icon-btn { padding: 0.4rem 0.6rem; font-size: 0.78rem; }
}

