/* ==========================================================================
   Cover Supply Co. — shared stylesheet
   ========================================================================== */

:root {
  --paper:      #FBF9F5;
  --paper-warm: #F3EEE5;
  --ink:        #17170F;
  --ink-soft:   #4A4A3F;
  --muted:      #78766B;
  --green:      #1F3A2E;
  --green-deep: #14261E;
  --brass:      #A87F42;
  --brass-soft: #C9A66B;
  --line:       rgba(23, 23, 15, 0.12);
  --line-light: rgba(23, 23, 15, 0.07);
  --white:      #FFFFFF;

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---------- utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 28px;
}

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass);
  margin: 0 0 20px;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 58ch;
}

.center { text-align: center; }
.center .lede { margin-inline: auto; }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn--primary { background: var(--green); color: #FFFFFF; }
.btn--primary:hover { background: var(--green-deep); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(23,23,15,0.03); }

.btn--light { background: var(--brass); color: #17170F; }
.btn--light:hover { background: var(--brass-soft); transform: translateY(-1px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--brass-soft);
  padding-bottom: 2px;
  transition: gap 0.25s var(--ease);
}
.textlink:hover { gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-light);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--green);
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.16rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand__name span { color: var(--muted); font-size: 0.86em; }

.nav { display: flex; align-items: center; gap: 34px; }

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); font-weight: 600; }

.nav .btn { padding: 11px 20px; font-size: 0.86rem; }
/* .nav a sets a dark link colour and outranks .btn--primary on specificity,
   so button text must be re-stated here or it renders dark. */
.nav a.btn--primary { color: #FFFFFF; }
.nav a.btn--primary:hover { color: #FFFFFF; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(70px, 11vw, 140px) 0 clamp(60px, 8vw, 100px);
  background:
    radial-gradient(1100px 520px at 78% -12%, rgba(168, 127, 66, 0.13), transparent 62%),
    linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 72%);
  border-bottom: 1px solid var(--line-light);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--green); }

.hero__note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 18px 8px 12px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.hero__note::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brass);
  flex: none;
}

/* napkin illustration */
.napkin {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 22px 50px -28px rgba(23,23,15,0.4);
  display: grid;
  place-items: center;
  transform: rotate(-3deg);
}
.napkin::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid var(--line-light);
  border-radius: 2px;
}
.napkin::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 49.6%, rgba(23,23,15,0.055) 50%, transparent 50.4%);
  pointer-events: none;
}
.napkin__logo {
  text-align: center;
  font-family: var(--serif);
  color: var(--green);
  line-height: 1.2;
}
.napkin__logo strong { display: block; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 400; }
.napkin__logo small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

.napkin__tag {
  position: absolute;
  bottom: -18px;
  right: -14px;
  background: var(--green);
  color: #F7F5EF;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 100px;
  transform: rotate(3deg);
}

/* ---------- trust strip ---------- */
.strip {
  background: var(--green);
  color: rgba(247, 245, 239, 0.86);
  padding: 20px 0;
}
.strip ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 44px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.strip li { display: flex; align-items: center; gap: 9px; }
.strip li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass-soft);
  flex: none;
}

/* ---------- section heads ---------- */
.head { max-width: 66ch; margin-bottom: clamp(40px, 5vw, 60px); }
.head.center { margin-inline: auto; }

/* ---------- product grid ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.product {
  background: var(--paper);
  padding: 38px 32px 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.3s var(--ease);
  text-decoration: none;
  color: inherit;
}
.product:hover { background: var(--white); }

.product__icon {
  width: 46px; height: 46px;
  color: var(--green);
  margin-bottom: 6px;
}
.product__icon svg { width: 100%; height: 100%; }

.product h3 { font-size: 1.3rem; }

.product p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

.product__meta {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  border-top: 1px solid var(--line-light);
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 52px);
  counter-reset: step;
}
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--green); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--brass);
  display: block;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* ---------- feature band ---------- */
.band {
  background: var(--green);
  color: #EFEDE4;
  position: relative;
  overflow: hidden;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 400px at 88% 8%, rgba(201, 166, 107, 0.18), transparent 65%);
  pointer-events: none;
}
.band .wrap { position: relative; z-index: 1; }
.band h2 { color: #FBF9F5; }
.band .lede { color: rgba(239, 237, 228, 0.78); }
.band .eyebrow { color: var(--brass-soft); }

.band__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.97rem;
  color: rgba(239, 237, 228, 0.85);
  line-height: 1.55;
}
.checklist li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  border: 1px solid var(--brass-soft);
  background:
    linear-gradient(45deg, transparent 46%, var(--brass-soft) 46%, var(--brass-soft) 54%, transparent 54%) center/9px 9px no-repeat;
}

/* ---------- detailed product rows ---------- */
.rows { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }

.row {
  background: var(--paper);
  display: grid;
  grid-template-columns: 88px 1fr 260px;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(32px, 4vw, 48px) 0;
  align-items: start;
}
.row__icon { color: var(--green); width: 60px; height: 60px; }
.row__icon svg { width: 100%; height: 100%; }
.row h3 { margin-bottom: 12px; }
.row p { font-size: 0.97rem; color: var(--ink-soft); }

.spec { display: grid; gap: 12px; font-size: 0.85rem; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line-light); }
.spec dt, .spec span:first-child { color: var(--muted); letter-spacing: 0.04em; }
.spec span:last-child { font-weight: 600; text-align: right; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
}
.card h3 { font-size: 1.22rem; margin-bottom: 12px; }
.card p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.detail-list { display: grid; gap: 30px; }
.detail-list h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 600;
}
.detail-list a { color: var(--green); text-decoration: none; border-bottom: 1px solid var(--brass-soft); }
.detail-list p { font-size: 1.02rem; margin: 0; }

form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  width: 100%;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 58, 46, 0.08);
}
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ---------- callout ---------- */
.callout {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(34px, 5vw, 56px);
  text-align: center;
}
.callout h2 { margin-bottom: 16px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: rgba(239, 237, 228, 0.7);
  padding: clamp(56px, 7vw, 84px) 0 32px;
  font-size: 0.92rem;
}
.site-footer a { color: rgba(239, 237, 228, 0.7); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: #FBF9F5; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
}
.footer__grid h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin: 0 0 16px;
  font-weight: 600;
}
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }

.site-footer .brand { color: #FBF9F5; margin-bottom: 16px; }
.site-footer .brand__mark { border-color: var(--brass-soft); color: var(--brass-soft); }
.site-footer .brand__name span { color: rgba(239,237,228,0.5); }

.footer__bottom {
  border-top: 1px solid rgba(239, 237, 228, 0.14);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  justify-content: space-between;
  font-size: 0.83rem;
  color: rgba(239, 237, 228, 0.5);
}

/* ---------- page header ---------- */
.page-head {
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px);
  background: linear-gradient(180deg, var(--paper-warm), var(--paper));
  border-bottom: 1px solid var(--line-light);
}
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 20px; }

/* ---------- placeholder marker ---------- */
/* .ph marks values that still need confirming — invisible to visitors */
.ph { }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .napkin { max-width: 340px; margin-top: 20px; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .band__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 60px 1fr; }
  .row .spec { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 20px; }
  .nav {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-light); }
  .nav .btn { justify-content: center; margin-top: 14px; border-bottom: 0; }
  .nav-toggle { display: block; }
  .products { grid-template-columns: 1fr; }
  .field-pair { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; }
}
