/* =========================================================
   Nanila Publication — visual system
   Palette: warm paper, ink navy, book-cloth maroon accent
   Type: Lora (display serif) + Inter (body sans)
   ========================================================= */

:root {
  --paper: #fbfaf7;
  --paper-alt: #f1f1f7;
  --ink: #1c1e3a;
  --ink-soft: #575a72;
  --accent: #2b2e90;      /* logo blue */
  --accent-dark: #1f2270;
  --gold: #f5a81c;        /* logo amber */
  --gold-dark: #d98f0a;
  --line: #e0e0ea;
  --white: #ffffff;
  --font-display: "Lora", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(31, 36, 48, 0.10);
  --container: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1rem;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; font-weight: 600; }

a { color: var(--accent); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ======= Buttons ======= */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--accent); }
.btn-block { width: 100%; }

/* ======= Header ======= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--accent); }
.brand-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand-name span { color: var(--accent); }

.nav-menu { display: flex; gap: 1.75rem; list-style: none; align-items: center; }
.nav-menu a { text-decoration: none; color: var(--ink); font-size: 0.92rem; font-weight: 500; }
.nav-menu a:hover { color: var(--accent); }
.nav-cta {
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent) !important;
}
.nav-cta:hover { background: var(--accent); color: var(--white) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); }

/* ======= Hero banner ======= */
.hero {
  background:
    url("Hero Image Darkened.png") center / cover no-repeat,
    var(--white);
  color: var(--white);
  /* leave room for header (68px) + statement bar (~10.5rem) in the viewport */
  min-height: calc(100vh - 68px - 10.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-inner { width: 100%; }
.br-mobile { display: none; }  /* one line on desktop */
.hero h1 {
  font-size: clamp(1.8rem, 4.2vw, 3.1rem);
  margin-bottom: 2.25rem;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ======= Statement bar ======= */
.statement-bar {
  background: var(--accent);
  padding: 3rem 0;
}
.statement-text {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  line-height: 1.55;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

/* ======= Sections ======= */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 620px; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.75rem; color: var(--gold-dark); }
.section-sub { color: var(--ink-soft); }

/* Keep section descriptions on a single line on desktop */
@media (min-width: 861px) {
  .section-head { max-width: none; }
  .section-sub { white-space: nowrap; }
}
.section-note { margin-top: 2rem; font-size: 0.9rem; color: var(--ink-soft); }

/* ======= Cover grid (Printing + Publishing) ======= */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}
.cover-card { text-align: left; }
.cover-thumb {
  aspect-ratio: 3 / 4;
  background: var(--white);
  border: 1.5px solid transparent;
  border-left: 5px solid var(--gold);
  border-radius: 3px 6px 6px 3px;
  box-shadow: 0 4px 12px rgba(31,36,48,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.cover-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cover-title { font-weight: 600; font-size: 0.95rem; }
.cover-meta { font-size: 0.82rem; color: var(--ink-soft); }

/* ======= Horizontal scrollable carousel (user-controlled) ======= */
.marquee {
  display: block;          /* override .cover-grid grid layout */
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.75rem;  /* room for the scrollbar */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.marquee .marquee-track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
}
.marquee .cover-card {
  flex: 0 0 180px;
  width: 180px;
  scroll-snap-align: start;
}
/* Slim, on-brand scrollbar */
.marquee { scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.marquee::-webkit-scrollbar { height: 8px; }
.marquee::-webkit-scrollbar-track { background: transparent; }
.marquee::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

/* Row headings inside the publishing section */
.row-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2.25rem 0 1rem;
}
.row-heading:first-of-type { margin-top: 0; }

/* ======= Authors ======= */
.author-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem 2rem;
}
.author-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.author-list li::before { content: "— "; color: var(--gold-dark); }

/* ======= Customer logos ======= */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}
.logo-cell {
  background: var(--white);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem;
  overflow: hidden;
}
.logo-cell img { max-height: 60px; object-fit: contain; }

/* ======= Contact ======= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.25rem; color: var(--gold-dark); }
address { font-style: normal; color: var(--ink-soft); }
address p { margin-bottom: 0.6rem; }
address strong { color: var(--ink); }
.social-links { display: flex; gap: 1.25rem; margin-top: 1.5rem; flex-wrap: wrap; }
.social-links a { font-weight: 600; font-size: 0.9rem; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-field { margin-bottom: 1.15rem; }
.form-field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.35rem; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: var(--paper);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-field.invalid input,
.form-field.invalid textarea { border-color: #c0392b; }
.field-error { display: block; color: #c0392b; font-size: 0.8rem; min-height: 1.1em; margin-top: 0.25rem; }
.form-status { margin-top: 1rem; font-size: 0.9rem; font-weight: 500; }
.form-status.ok { color: #1e7d3c; }

/* ======= Footer ======= */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
  background: var(--paper);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.footer-socials { display: flex; gap: 1.1rem; align-items: center; }
.footer-socials a { color: var(--accent); display: inline-flex; }
.footer-socials a:hover { color: var(--gold-dark); }

/* ======= Responsive ======= */
@media (max-width: 860px) {
  .hero { padding: 4rem 0; }
  /* Fill the hero on mobile (zoom/crop) instead of letterboxing */
  .hero { background-size: cover; background-position: center; }
  .br-mobile { display: inline; }  /* two lines on mobile */
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-form { display: none; }  /* hide form on mobile */
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 3px solid var(--gold);
    padding: 0.5rem 0 1rem;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; text-align: center; }
  .nav-menu a { display: block; padding: 0.8rem 1rem; }
  .nav-menu a:not(.nav-cta) { color: var(--gold-dark); }
  .nav-cta { border: 0; }

  .cover-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
}
