/* 紅鼻子製作有限公司 — 官網五頁樣式
   Colour revision of the 2026-11-30 wireframes: dark stage surfaces,
   not the v1 cream paper wash. Palette sampled from the official
   circular logo — gold ring / wings ~#D0C100, wordmark red ~#B81800,
   nose red ~#F82000 (lifted to #FF2C14 for nav contrast on near-black).
   Layout and typefaces are unchanged; locked Chinese body copy is
   unchanged. 2026-12-01: unique content photos; 中英對照 English
   under Chinese in muted ivory. */

:root {
  --stage: #100e0c;
  --stage-elevated: #1c1a16;
  --ink: #f4f0e4;
  --ink-muted: #c9c2b0;
  --gold: #d0c100;
  --gold-dim: rgba(208, 193, 0, 0.42);
  --red: #b81800;
  --red-deep: #8a1200;
  --red-bright: #ff2c14;
  --white: #ffffff;
  --accent-muted: #c9b86a;
  --font-sans: "Noto Sans CJK HK", "Noto Sans CJK TC", "Noto Sans CJK SC",
    "Source Han Sans HC", "Source Han Sans TC", "PingFang HK", "PingFang TC",
    "Microsoft JhengHei", sans-serif;
  --font-serif: "Noto Serif CJK HK", "Noto Serif CJK TC", "Noto Serif CJK SC",
    "Source Han Serif HC", "Source Han Serif TC", "Songti TC", "PMingLiU",
    serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--stage);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--red-bright);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 20;
  padding: 0.4rem 0.7rem;
  background: var(--stage-elevated);
  color: var(--ink);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* ---------- Header ---------- */

.site-header {
  flex: 0 0 auto;
  width: 100%;
  background: var(--stage);
  border-bottom: 1px solid var(--gold-dim);
}

.header-bar {
  height: 3px;
  background: var(--red);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.15rem 0.7rem;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "brand"
    "nav";
  gap: 0.4rem 1rem;
  align-items: center;
}

.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--gold);
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
}


.site-nav {
  grid-area: nav;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.1rem;
  border-top: 1px solid var(--gold-dim);
}

.site-nav a {
  display: inline-block;
  padding: 0.4rem 0.55rem 0.35rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
  line-height: 1.35;
}

.site-nav a:hover {
  color: var(--gold);
}

.site-nav a[aria-current="page"] {
  color: var(--red-bright);
  border-bottom-color: var(--gold);
  font-weight: 500;
}

/* ---------- Main layout ---------- */

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.6rem 1.25rem 2.6rem;
}

.page-hero {
  margin: 0 0 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gold-dim);
}

.page-title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.company-lockup {
  margin: 0 0 1.25rem;
}

.company-lockup .company-zh {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1.35;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.company-lockup .company-en {
  margin: 0.35rem 0 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.lead,
.prose p,
.section-block p,
.closing p {
  margin: 0 0 1.1rem;
  max-width: 42em;
  font-size: 1rem;
}

.lead:last-child,
.prose p:last-child,
.section-block p:last-child,
.closing p:last-child {
  margin-bottom: 0;
}

/* 中英對照: Chinese first (locked wording), English directly underneath
   in muted ivory, slightly smaller, remaining readable. */
.en {
  display: block;
  color: var(--ink-muted);
  font-weight: 400;
  font-size: 0.88em;
  line-height: 1.55;
  letter-spacing: 0.03em;
  margin-top: 0.12em;
}

p.en,
.lead + p.en,
.prose p.en,
.section-block p.en,
.closing p.en {
  margin: -0.55rem 0 1.1rem;
  max-width: 42em;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

.prose p.en:last-child,
.section-block p.en:last-child,
.closing p.en:last-child,
p.en:last-child {
  margin-bottom: 0;
}

.page-title .en,
.section-block h2 .en,
.prose h2 .en,
.brand-name .en,
.footer-name .en {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 0.68em;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-top: 0.2em;
}

.site-nav a .en {
  font-size: 0.72em;
  letter-spacing: 0.03em;
  margin-top: 0.12em;
  color: var(--ink-muted);
}

.site-nav a[aria-current="page"] .en {
  color: var(--ink-muted);
}


.skip-link .en {
  font-size: 0.88em;
  color: var(--ink-muted);
}

.cta-button .en {
  color: #f4f0e4;
  font-size: 0.78em;
  letter-spacing: 0.06em;
  margin-top: 0.2em;
}

/* ---------- Placeholders ---------- */

.placeholder-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 8rem;
  background: var(--stage-elevated);
  border: 1px solid var(--gold);
  color: var(--accent-muted);
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  text-align: center;
  user-select: none;
}

.placeholder-visual span {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--gold-dim);
  background: rgba(16, 14, 12, 0.65);
}

.hero-media {
  margin: 1.25rem 0 0;
}

.hero-media .placeholder-visual {
  min-height: 8.5rem;
}

/* Confirmed photos: keep native aspect ratio, no tight crop or stretch.
   Frames sit on the existing near-black stage so the clown studio ground
   blends cleanly; object-fit: contain is a safeguard against distortion. */
.photo-frame {
  background: var(--stage);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  background: var(--stage);
}

.hero-media .photo-frame {
  max-width: 32rem;
}


/* Galleries: row or wrap of confirmed stills. Native aspect ratio,
   object-fit: contain on the near-black stage, 1px gold frame.
   No crop, stretch, squash, or flip. Reel stills may letterbox. */
.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-start;
  min-width: 0;
}

.photo-gallery .photo-frame {
  flex: 1 1 100%;
  min-width: 0;
}

.section-galleries {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.work-gallery {
  margin: 0 0 2.25rem;
  padding: 0 0 2.1rem;
  border-bottom: 1px solid var(--gold-dim);
}


/* ---------- Section blocks ---------- */

.section-block {
  display: grid;
  gap: 1.15rem;
  margin: 0 0 2.25rem;
  padding: 0 0 2.1rem;
  border-bottom: 1px solid var(--gold-dim);
}

.section-block:last-of-type {
  border-bottom: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}

.section-block h2,
.prose h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.45;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.section-block h2::after,
.prose h2::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2px;
  margin-top: 0.55rem;
  background: var(--gold);
}

.section-copy {
  min-width: 0;
}

.closing {
  margin-top: 0.5rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--gold-dim);
}

/* ---------- Quote enquiry chrome (structural only) ---------- */

.cta-row {
  margin: 1.4rem 0 0;
}

.cta-button {
  display: inline-block;
  padding: 0.55rem 1.15rem;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.1em;
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: center;
  border: 1px solid var(--red-deep);
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--red-deep);
  color: var(--white);
}

/* ---------- Contact page: no form ---------- */

.contact-page .prose {
  max-width: 38em;
}

.contact-note {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gold-dim);
}

/* ---------- Footer ---------- */

.site-footer {
  flex: 0 0 auto;
  width: 100%;
  background: var(--stage);
  color: var(--ink);
  margin-top: auto;
  border-top: 3px solid var(--gold);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.6rem 1.25rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.4rem;
}

.footer-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  letter-spacing: 0.1em;
}

.footer-domain {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}


/* ---------- Desktop ---------- */

@media (min-width: 800px) {
  html {
    font-size: 18px;
  }

  .header-inner {
    padding: 1rem 1.75rem 1.05rem;
    grid-template-columns: auto 1fr;
    grid-template-areas: "brand nav";
    align-items: center;
  }

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

  .brand-name {
    font-size: 1.12rem;
  }

  .site-nav ul {
    border-top: 0;
    justify-content: flex-end;
    padding: 0;
  }

  .site-nav a {
    padding: 0.45rem 0.65rem 0.4rem;
  }


  main {
    padding: 2.6rem 1.75rem 4rem;
  }

  .company-lockup .company-zh {
    font-size: 2.15rem;
  }

  .page-title {
    font-size: 1.9rem;
  }

  .hero-media {
    margin-top: 1.6rem;
  }

  .hero-media .placeholder-visual {
    min-height: 14rem;
  }

  .placeholder-visual {
    min-height: 11rem;
  }

  .section-block.has-media {
    grid-template-columns: minmax(220px, 34%) 1fr;
    gap: 2rem;
    align-items: start;
  }

  .section-block.has-media .placeholder-visual {
    min-height: 16rem;
    height: 100%;
  }

  .hero-media .photo-frame {
    max-width: 32rem;
  }

  .section-block.has-media .photo-frame {
    width: 100%;
  }

  .section-block.has-media .photo-frame img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Wide group stills (festival ~960x521): give more column width on desktop
     so the banner and group stay readable, without forcing a tall square or crop. */
  .section-block.has-media.has-wide-photo {
    grid-template-columns: minmax(280px, 58%) 1fr;
  }


  /* Standard galleries: three-across row on desktop; stack on small screens.
     Two-still galleries use two columns so a gap is not left in a third cell. */
  .photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: start;
  }

  .photo-gallery.gallery-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-block.has-media.has-gallery {
    grid-template-columns: 1fr;
  }

  .section-block.has-media.has-gallery .photo-gallery,
  .section-block.has-media.has-gallery .section-galleries {
    width: 100%;
  }

  /* Wide festival group: keep the 58% media column and stack stills
     so the harbourfront banner and heads stay fully visible. */
  .section-block.has-media.has-wide-photo .photo-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .section-block.has-media.has-wide-photo .photo-gallery .photo-frame {
    flex: 1 1 auto;
    width: 100%;
  }

  /* Portrait stays in the side column; event stills span the full row. */
  .section-block.has-media.has-event-gallery {
    grid-template-columns: minmax(220px, 34%) 1fr;
  }

  .section-block.has-media.has-event-gallery .photo-gallery {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }


  .footer-inner {
    padding: 1.8rem 1.75rem 2rem;
    flex-direction: row;
    align-items: baseline;
    gap: 0.35rem 1.5rem;
  }

}

@media (min-width: 1100px) {
  .header-inner,
  main,
  .footer-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
