/* Rise and Shine Letterpress — flat site styles */
/* Fonts loaded async via <link> in HTML — no @import needed */

/* ── Reset & base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:   #D1BC92;
  --dark:   #292929;
  --mid:    #5a5a5a;
  --light:  #f5f3ef;
  --white:  #ffffff;
  --max-w:  1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  color: var(--dark);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--dark); }
a:hover { color: var(--gold); }

/* ── Typography ───────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
h1 { font-size: clamp(1.85rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.05rem; font-weight: 600; }

/* Headings after content get top spacing; first-in-section headings do not */
p + h2, ul + h2, ol + h2, img + h2, blockquote + h2,
.highlight-box + h2, .swatch-section + h2, figure + h2 { margin-top: 2.5rem; }
p + h3, ul + h3, ol + h3, img + h3, blockquote + h3,
.highlight-box + h3, figure + h3 { margin-top: 2rem; }
p + h4, ul + h4, ol + h4 { margin-top: 1.5rem; }

p  { margin-bottom: 1.1rem; }
ul, ol { margin: 0 0 1.1rem 1.5rem; }
li { margin-bottom: 0.4rem; }

strong { font-weight: 600; }

/* Question-answer pattern: bold answer after each heading */
h2 + p > strong:first-child,
h3 + p > strong:first-child { display: block; margin-bottom: 0.5rem; }

/* ── Layout utilities ─────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 0; }
.section--light { background: var(--light); }

/* ── Header / Nav ─────────────────────────────────── */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo img { height: 40px; width: auto; }

/* Nav */
.site-nav { display: flex; align-items: center; gap: 0; list-style: none; }

.site-nav > li { position: relative; }

.site-nav > li > a,
.site-nav > li > button {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--dark);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s;
}
.site-nav > li > a:hover,
.site-nav > li > button:hover { color: var(--gold); }

/* Dropdown */
.dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 200px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  padding: 0.5rem 0;
  list-style: none;
  z-index: 200;
  padding-top: calc(0.5rem + 8px);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 0.55rem 1.5rem;
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--dark);
  text-decoration: none;
  transition: color .2s;
}
.dropdown-menu a:hover { color: var(--gold); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: transform .3s, opacity .3s;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.hero p { font-size: 1.1rem; color: var(--mid); max-width: 600px; margin: 0 auto 2rem; }

/* Homepage hero with background image */
.hero--home {
  position: relative;
  padding: 8rem 0 7rem;
  background: url('/assets/images/hero.webp') center/cover no-repeat;
  color: var(--white);
}
.hero--home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.hero--home .container { position: relative; z-index: 1; }
.hero--home h1 { color: var(--white); }
.hero--home p { color: rgba(255,255,255,.85); }
.hero--home .btn { border-color: var(--white); color: var(--white); }
.hero--home .btn:hover { background: var(--white); color: var(--dark); }

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  border: 1.5px solid var(--dark);
  color: var(--dark);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--dark); color: var(--white); }
.btn--gold { border-color: var(--gold); color: var(--gold); }
.btn--gold:hover { background: var(--gold); color: var(--white); }

/* ── Section headings ────────────────────────────── */
.section-heading { text-align: center; }

/* ── Card grid ────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.card {
  border: 1px solid #e8e4dc;
  overflow: hidden;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }

.card img { width: 100%; height: 240px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-body h2,
.card-body h3 { margin-top: 0; font-size: 1.05rem; letter-spacing: 0.03em; text-transform: uppercase; }
.card-body p { font-size: 0.9rem; color: var(--mid); margin-bottom: 1rem; }

/* ── Process list ─────────────────────────────────── */
.process-list { list-style: none; margin: 0; padding: 0; }
.process-list li {
  padding: 1rem 0;
  border-bottom: 1px solid #e8e4dc;
  display: flex;
  gap: 1rem;
}
.process-list li:last-child { border-bottom: none; }
.process-list .icon { font-size: 1.25rem; flex-shrink: 0; }

/* ── Color swatch grid ────────────────────────────── */
.swatch-section { margin-bottom: 3rem; }
.swatch-section h3 { margin-top: 0; border-bottom: 1px solid #e8e4dc; padding-bottom: 0.5rem; margin-bottom: 0.5rem; }
.palette-intro { color: var(--mid); margin-bottom: 1.5rem; font-size: 0.95rem; }

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.swatch {
  border: 1px solid #e8e4dc;
  border-radius: 3px;
  overflow: hidden;
  background: var(--white);
}
.swatch-fill {
  aspect-ratio: 1 / 1;
  background: var(--swatch);
}
.swatch-fill--foil {
  background: linear-gradient(135deg, var(--foil-from) 0%, var(--foil-to) 45%, var(--foil-from) 55%, var(--foil-to) 100%);
}
.swatch-fill--holo {
  background: linear-gradient(135deg, #c0c0c0 0%, #e8d0e8 15%, #d0e8e8 30%, #e8e8d0 45%, #c0c0c0 55%, #d0d0e8 70%, #e8d8d0 85%, #c0c0c0 100%);
}
.swatch-info { padding: 10px 12px 12px; }
.swatch-name { display: block; font-size: 0.82rem; font-weight: 500; line-height: 1.3; margin-bottom: 2px; }
.swatch-code { color: var(--mid); font-size: 0.75rem; }

/* ── FAQ ──────────────────────────────────────────── */
.faq-list { list-style: none; margin: 0; padding: 0; }

.faq-item {
  border-bottom: 1px solid #e8e4dc;
  padding: 1.5rem 0;
}
.faq-item:first-child { border-top: 1px solid #e8e4dc; }

.faq-q {
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  list-style: none;
}
.faq-q::after { content: '+'; font-size: 1.25rem; flex-shrink: 0; color: var(--gold); }
details[open] > .faq-q::after { content: '−'; }

.faq-a { padding-top: 0.75rem; color: var(--mid); }

/* ── Page banner ──────────────────────────────────── */
.page-banner {
  position: relative;
  background: url('/assets/images/banners/type_cabinet.webp') center/cover no-repeat;
  padding: 2rem 0;
  margin-bottom: 3rem;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
}
.page-banner--print    { background-image: url('/assets/images/banners/packaging.webp'); }
.page-banner--process  { background-image: url('/assets/images/banners/printing.webp'); }
.page-banner--learn    { background-image: url('/assets/images/banners/typetray.webp'); }
.page-banner--gallery  { background-image: url('/assets/images/banners/heidelberg.webp'); }
.page-banner--blog     { background-image: url('/assets/images/banners/type.webp'); }
.page-banner--about    { background-image: url('/assets/images/banners/wheel.webp'); }
.page-banner--contact  { background-image: url('/assets/images/banners/gear.webp'); }
.page-banner--quote    { background-image: url('/assets/images/banners/cart.webp'); }
.page-banner--wholesale { background-image: url('/assets/images/banners/kluge.webp'); }

.page-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.page-banner__title {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin: 0;
  color: var(--dark);
}

/* ── Breadcrumb (inside page-banner) ─────────────── */
.breadcrumb {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--mid);
  margin: 0;
  white-space: nowrap;
}
.breadcrumb a { color: var(--mid); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 0.4rem; }

/* ── Article / blog content ───────────────────────── */
.article-header { text-align: center; padding: 3rem 0 2rem; border-bottom: 1px solid #e8e4dc; margin-bottom: 3rem; }
.article-header h1 { margin-bottom: 0.5rem; }
.article-meta { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--mid); }

.article-body { max-width: 720px; margin: 0 auto; }
.article-body h2 { margin-top: 2.5rem; }
.article-body h3 { margin-top: 2rem; }
.article-body img { margin: 2rem 0; border: 1px solid #e8e4dc; }
.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.75rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--mid);
}

/* ── Two-column layout ────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 680px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }

/* ── Highlight box ────────────────────────────────── */
.highlight-box {
  background: var(--light);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.highlight-box p:last-child { margin-bottom: 0; }

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 3.5rem 0 2rem;
  margin-top: 5rem;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-family: 'Jost', sans-serif;
  color: var(--white);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 1rem;
  margin-top: 0;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,.4);
}
.footer-logo img { height: 28px; filter: brightness(0) invert(1); opacity: 0.6; }

/* ── Gallery detail page ─────────────────────────── */
.gallery-detail { max-width: 720px; margin: 0 auto; }
.gallery-detail .hero { padding-bottom: 2rem; }
.gallery-detail .hero p { margin-bottom: 1rem; }

.gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.gallery-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.3rem 0.75rem;
  border: 1px solid #e8e4dc;
  color: var(--mid);
}

.gallery-images {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.gallery-images img {
  width: 100%;
  border: 1px solid #e8e4dc;
}

.gallery-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid #e8e4dc;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.gallery-nav a { text-decoration: none; color: var(--mid); }
.gallery-nav a:hover { color: var(--gold); }

/* ── Page-specific: paper textures ───────────────── */
.texture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}
.texture-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
.texture-item h3 {
  font-size: 1.05rem;
  margin: 0.6rem 0 0.2rem;
}
.texture-item p {
  font-size: 0.85rem;
  color: var(--mid);
  margin: 0;
}

/* ── Page-specific: quote form ───────────────────── */
.quote-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.quote-form label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.quote-form .field-note {
  font-size: 0.8rem;
  color: var(--mid);
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}
.quote-form input[type="text"],
.quote-form input[type="email"],
.quote-form input[type="tel"],
.quote-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d5cfc4;
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--dark);
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.quote-form textarea { min-height: 120px; resize: vertical; }
.quote-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.quote-form .form-group { margin-bottom: 1.5rem; }
.quote-form .radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.quote-form .radio-group input[type="radio"] { width: auto; }
.quote-sidebar .sidebar-card {
  background: var(--light);
  border: 1px solid #e8e4dc;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.quote-sidebar .sidebar-card h3 {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--mid);
  margin: 0 0 0.75rem;
}
.quote-sidebar .sidebar-card p,
.quote-sidebar .sidebar-card li {
  font-size: 0.9rem;
  color: var(--mid);
}
.quote-sidebar .sidebar-card ul { padding-left: 1.2rem; }
.quote-sidebar .sidebar-card a { color: var(--dark); }

/* ── Page-specific: foil colors ───────────────────── */
.color-note {
  max-width: 720px;
  padding: 1.25rem 1.5rem;
  background: var(--light);
  border-left: 3px solid var(--gold);
  border-radius: 0 3px 3px 0;
  margin-bottom: 3rem;
}
.color-note p { margin: 0; font-size: 0.95rem; line-height: 1.8; color: var(--mid); }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .quote-layout { grid-template-columns: 1fr; }
  .quote-sidebar { order: -1; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    padding: 0.5rem 0;
  }
  .site-nav.is-open { display: flex; }

  .site-nav > li > a,
  .site-nav > li > button { padding: 0.75rem 1.5rem; width: 100%; text-align: left; }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: 1px solid #e8e4dc;
    display: none;
    padding: 0;
  }
  .dropdown.is-open .dropdown-menu { display: block; }
  .dropdown-menu a { padding-left: 2.5rem; }
}

@media (max-width: 560px) {
  .quote-form .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .card-grid { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero--home { padding: 5rem 0 4rem; }
  .page-banner__inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
