/* ============================================================
   MADENEXT Fluoro Materials — responsive stylesheet
   Merges the desktop (>=900px) and mobile (<900px) designs into
   one set of pages. All design tokens live here.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* surfaces */
  --bg:        #F2F0E9;
  --bg-cream:  #FBFAF5;
  --bg-sand:   #ECEBE6;
  --bg-edge:   #DEDBD0;
  --bg-panel:  #F4F2EA;

  /* ink */
  --ink:       #2B2A24;
  --ink-2:     #44433B;
  --ink-3:     #55534A;
  --ink-4:     #6E6C61;
  --ink-mute:  #8C897D;

  /* olive / moss accents */
  --moss:      #575C40;
  --moss-deep: #464A33;
  --olive:     #3E4230;
  --olive-line:#5C6147;

  /* hairlines */
  --line:      #E4E1D5;
  --line-2:    #D8D4C7;
  --line-3:    #DCD8CC;
  --line-input:#CFCBBD;
  --line-pill: #C8C4B5;

  /* light text on dark */
  --on-dark:   #F4F2EA;
  --on-dark-2: #EFEDE3;
  --on-dark-3: #C5C2AC;
  --on-dark-4: #B5B29B;
  --on-dark-5: #9B987F;
  --on-dark-6: #8E9277;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 40px);
  --sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --serif: 'EB Garamond', Georgia, serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
button { font-family: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* serif display helper */
.serif { font-family: var(--serif); font-weight: 500; }

/* eyebrow label with leading tick */
.eyebrow { display: flex; align-items: center; gap: 18px; }
.eyebrow::before { content: ""; width: 34px; height: 1.5px; background: currentColor; flex: none; }
.eyebrow span {
  font-size: 11px; letter-spacing: 0.18em; font-weight: 600; color: var(--ink-2);
}
.eyebrow.on-dark span { color: var(--on-dark-3); }
.eyebrow.on-dark::before { background: var(--on-dark-3); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 34px; height: 1.5px; background: currentColor; flex: none; }

/* ---------- Buttons / pills ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-size: 10.5px; letter-spacing: 0.14em; font-weight: 700;
  padding: 13px 28px; border-radius: 999px; border: 1px solid transparent;
  text-align: center; transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn--solid { background: var(--moss); color: var(--on-dark); }
.btn--solid:hover { background: var(--moss-deep); }
.btn--light { background: var(--on-dark); color: var(--olive); }
.btn--light:hover { background: #E2DFD2; }
.btn--ghost { border-color: var(--line-pill); color: var(--ink-2); }
.btn--ghost:hover { border-color: var(--moss); color: var(--moss); }
.btn--ghost-dark { border-color: #8E8B72; color: var(--on-dark-2); }
.btn--ghost-dark:hover { border-color: var(--on-dark-3); }
.btn--block { display: block; width: 100%; }

.chip {
  display: inline-block; border: 1px solid var(--line-pill); border-radius: 999px;
  padding: 9px 20px; font-size: 10.5px; letter-spacing: 0.13em; font-weight: 600; color: var(--ink-3);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   NAVIGATION
   Desktop header (>=900px)  +  mobile app-bar & drawer (<900px)
   ============================================================ */

/* Desktop header */
.site-nav {
  max-width: var(--maxw); margin: 0 auto;
  padding: 24px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  border-bottom: 1px solid var(--line);
}
.site-nav__logo img { height: 30px; width: auto; }
.site-nav__links { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-size: 11px; letter-spacing: 0.14em; font-weight: 500; color: var(--ink-4);
  text-decoration: none; transition: color .2s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active {
  font-weight: 700; color: var(--ink);
  border-bottom: 1.5px solid var(--moss); padding-bottom: 3px;
}

/* Mobile app bar */
.appbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(242,240,233,0.94); backdrop-filter: blur(12px);
  padding: 16px var(--pad); border-bottom: 1px solid var(--line);
  display: none; align-items: center; justify-content: space-between;
}
.appbar__logo img { height: 22px; width: auto; }
.burger { background: none; border: none; padding: 8px; cursor: pointer; display: flex; flex-direction: column; align-items: stretch; gap: 5px; line-height: 0; }
.burger span { display: block; flex: 0 0 2px; width: 24px; height: 2px; min-height: 2px; background: var(--ink); border-radius: 0; transform: none; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.is-open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.3); }
.drawer__panel {
  position: absolute; top: 0; right: 0; width: min(440px, 100%); height: 100%;
  background: var(--olive); color: var(--on-dark-2);
  display: flex; flex-direction: column; padding: 16px var(--pad) 0;
  animation: drawerIn .25s ease;
}
@keyframes drawerIn { from { transform: translateX(20px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer__top { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 8px; }
.drawer__top img { height: 22px; width: auto; }
.drawer__close { position: relative; width: 30px; height: 30px; background: none; border: none; cursor: pointer; }
.drawer__close::before, .drawer__close::after {
  content: ""; position: absolute; top: 14px; left: 4px; width: 22px; height: 1.8px; background: var(--on-dark-2);
}
.drawer__close::before { transform: rotate(45deg); }
.drawer__close::after { transform: rotate(-45deg); }
.drawer__links { overflow-y: auto; padding-top: 16px; }
.drawer__link {
  display: flex; align-items: baseline; justify-content: space-between;
  border-top: 1px solid var(--olive-line); padding: 22px 0; text-decoration: none;
}
.drawer__link:last-of-type { border-bottom: 1px solid var(--olive-line); }
.drawer__link .label { font-family: var(--serif); font-size: 28px; color: var(--on-dark); }
.drawer__link.is-active .label { color: #C9CBB4; }
.drawer__link .num { font-size: 11px; color: var(--on-dark-6); }
.drawer__cta { margin-top: 32px; }
.drawer__meta { margin-top: 36px; padding-bottom: 36px; }
.drawer__meta .h { font-size: 9.5px; letter-spacing: 0.16em; font-weight: 700; color: var(--on-dark-5); }
.drawer__meta .b { margin-top: 14px; font-size: 13px; line-height: 1.9; color: #D6D3C2; }

/* Switch chrome at 900px */
@media (max-width: 899px) {
  .site-nav { display: none; }
  .appbar { display: flex; }
}

/* ============================================================
   DESKTOP-ORIGINAL vs MOBILE-ORIGINAL  (two designs, one URL)
   Desktop block shows >=900px; mobile block shows <900px.
   ============================================================ */
.d-only { display: block; }
.m-only { display: none; }
@media (max-width: 899px) {
  .d-only { display: none; }
  .m-only { display: block; }
}
/* mobile-original section wrapper (full-width, phone padding) */
.m-sec { padding: 40px 26px 36px; }
.m-sec--tight { padding: 36px 26px 30px; }
.m-card { border: 1px solid var(--line); background: var(--bg); padding: 24px 22px; }
.m-eyebrow { display: flex; align-items: center; gap: 12px; }
.m-eyebrow .tick { width: 24px; height: 1.5px; background: var(--ink); }
.m-eyebrow .lbl { font-size: 10px; letter-spacing: 0.18em; font-weight: 600; color: var(--ink-2); }
.m-h1 { margin: 22px 0 0; font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.24; color: var(--ink); }
.m-h2 { margin: 18px 0 0; font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.34; color: var(--ink); }
.m-num { display: flex; align-items: center; gap: 14px; }
.m-num .n { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-mute); }
.m-num .k { font-size: 10px; letter-spacing: 0.16em; font-weight: 600; color: var(--ink-2); }
.m-spec { display: flex; justify-content: space-between; font-size: 11.5px; }
.m-spec .k { color: var(--ink-mute); }
.m-spec .v { font-weight: 600; color: var(--ink); }

/* ============================================================
   SECTIONS / LAYOUT PRIMITIVES
   ============================================================ */
.section { border-top: 1px solid var(--line); }
.section--cream { background: var(--bg-cream); }
.section--sand  { background: var(--bg); }
.section--sand2 { background: var(--bg-sand); }
.section--olive { background: var(--olive); color: var(--on-dark-2); }
.section--moss  { background: var(--moss); color: var(--on-dark); }
.section--plain { border-top: none; }
.pad-y { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 100px); }

/* generic responsive 2-col that stacks */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); }
.split--even { grid-template-columns: 1fr 1fr; }
.split--end { align-items: end; }
.split--start { align-items: start; }
@media (max-width: 899px) { .split, .split--even { grid-template-columns: 1fr; } }

/* photo placeholder treatment (until real /assets photos are dropped in) */
.photo {
  position: relative; width: 100%; display: block; object-fit: cover;
  background:
    linear-gradient(135deg, rgba(0,0,0,.08), rgba(0,0,0,0)),
    var(--olive) repeating-linear-gradient(120deg, rgba(255,255,255,.05) 0 1px, transparent 1px 7px);
}
.photo.is-placeholder { display: flex; align-items: flex-end; padding: 18px; min-height: 220px; }
.photo.is-placeholder span {
  font-size: 9.5px; letter-spacing: 0.14em; font-weight: 600; color: var(--on-dark-3);
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-3); background: var(--bg); }
.footer__row {
  max-width: var(--maxw); margin: 0 auto; padding: 36px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer__row img { height: 28px; width: auto; }
.footer__copy { font-size: 11.5px; color: var(--ink-mute); }
.footer__legal { max-width: 760px; font-size: 12px; line-height: 1.8; color: var(--ink-mute); }

/* ---------- Forms ---------- */
.field { width: 100%; }
.field label { display: block; font-size: 10px; letter-spacing: 0.13em; font-weight: 700; color: var(--ink-mute); margin-bottom: 8px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line-input); background: var(--bg);
  border-radius: 6px; padding: 13px 16px; font-size: 13px; font-family: var(--sans);
  color: var(--ink); outline: none;
}
.textarea { resize: vertical; }
.select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236E6C61' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.input::placeholder, .textarea::placeholder { color: #A6A399; }
input[type="checkbox"] { accent-color: var(--moss); width: 15px; height: 15px; flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-col-2 { grid-column: 1 / -1; }
