/* =========================================================
   SKAPA LINENS — B2B white-linen showcase / catalogue
   Palette: warm white + greige panels + one locked accent (teal #008391)
   WhatsApp green is used only on WhatsApp buttons (platform brand).
   Type: Cormorant Garamond (headings) + Manrope (body/UI/tables)
   Theme: light only. Radius: buttons pill, panels/inputs 8px.
   No em-dashes anywhere.
   ========================================================= */

:root {
  --paper:     #f6f3ec;
  --paper-2:   #efe9dd;
  --paper-3:   #e7dfce;
  --card:      #ffffff;
  --ink:       #211d17;
  --ink-soft:  #5a5348;
  --ink-faint: #8c8474;
  --teal:      #008391;
  --teal-deep: #05616b;
  --wa:        #1fab54;
  --wa-deep:   #148a42;
  --line:      rgba(33,29,23,0.13);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Manrope", system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(1.15rem, 4vw, 3.5rem);
  --radius: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--teal); color: #fff; }

.grain {
  position: fixed; inset: 0; z-index: 120; pointer-events: none;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.26em;
  text-transform: uppercase; font-weight: 600; color: var(--teal-deep); margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -0.01em;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
}
.opt { color: var(--ink-faint); font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.82rem; }
.btn--lg { padding: 1rem 2rem; font-size: 0.98rem; }
.btn--solid { background: var(--teal); color: #fff; }
.btn--solid:hover { background: var(--teal-deep); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--teal); color: var(--teal-deep); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-deep); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent; color: #fff;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(246,243,236,0.92); backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  color: var(--ink); border-bottom-color: var(--line); box-shadow: 0 1px 20px rgba(33,29,23,0.05);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; letter-spacing: 0.26em; text-indent: 0.26em; color: currentColor; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { font-size: 0.88rem; font-weight: 500; position: relative; color: currentColor; opacity: 0.82; transition: opacity 0.2s var(--ease); }
.nav__links a:hover { opacity: 1; }
.nav__actions { display: flex; align-items: center; gap: 0.6rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 30px; position: relative; }
.nav__toggle span { position: absolute; left: 5px; right: 5px; height: 1.6px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav__toggle span:nth-child(1) { top: 12px; } .nav__toggle span:nth-child(2) { bottom: 12px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(2px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { transform: translateY(-2px) rotate(-45deg); }
.nav__mobile { display: none; flex-direction: column; gap: 0.2rem; padding: 0.8rem var(--gutter) 1.6rem; border-top: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.nav__mobile a { padding: 0.7rem 0; font-family: var(--serif); font-size: 1.4rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.nav__mobile a.btn { font-family: var(--sans); font-size: 0.9rem; border-bottom: 0; margin-top: 0.8rem; justify-content: center; color: #fff; }
.nav.is-open .nav__mobile { display: flex; }

/* ---------- Hero (full-bleed image with overlaid copy) ---------- */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(28,24,19,0.42) 0%, rgba(28,24,19,0.08) 16%, rgba(28,24,19,0.06) 48%, rgba(28,24,19,0.55) 82%, rgba(28,24,19,0.74) 100%),
    linear-gradient(90deg, rgba(28,24,19,0.5) 0%, rgba(28,24,19,0.18) 40%, transparent 68%);
}
.hero__inner {
  position: relative; z-index: 2; width: 100%; max-width: var(--maxw);
  margin: 0 auto; padding: 6rem var(--gutter) clamp(3rem, 8vh, 6rem); color: #fff;
}
.eyebrow--light { color: rgba(255,255,255,0.9); }
.hero__title {
  font-family: var(--serif); font-weight: 500; color: #fff;
  font-size: clamp(2.7rem, 6.4vw, 5.6rem);
  line-height: 1.0; letter-spacing: -0.015em; margin-bottom: 1.2rem; max-width: 16ch;
  text-shadow: 0 2px 34px rgba(0,0,0,0.28);
}
.hero__title em { font-style: italic; }
.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem); color: rgba(255,255,255,0.94);
  max-width: 44ch; margin-bottom: 2rem; text-shadow: 0 1px 18px rgba(0,0,0,0.32);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn--ghost-light { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.16); border-color: #fff; }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--paper-2); }
.trust__list {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(1.5rem, 3vw, 2.2rem) var(--gutter);
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.trust__list li { display: flex; flex-direction: column; gap: 0.25rem; }
.trust__list strong { font-size: 0.98rem; font-weight: 600; }
.trust__list span { font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- Catalogue intro ---------- */
.cat-intro { max-width: 760px; margin: 0 auto; padding: clamp(4rem, 8vw, 6.5rem) var(--gutter) clamp(1.5rem, 3vw, 2.5rem); text-align: center; }
.cat-intro p { color: var(--ink-soft); margin-top: 1rem; }

/* ---------- Product groups ---------- */
.group { max-width: var(--maxw); margin: 0 auto; padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter) clamp(2rem, 4vw, 3.5rem); scroll-margin-top: 90px; }
.group__head { margin-bottom: 2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.group__head h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.group__head p { color: var(--ink-soft); max-width: 60ch; margin-top: 0.5rem; font-size: 0.95rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.8rem); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.card:hover { box-shadow: 0 20px 40px rgba(33,29,23,0.07); transform: translateY(-3px); }
.card__media { aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.card__top h4 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.1; }
.card__price { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.card__price em { font-style: normal; font-weight: 500; color: var(--ink-faint); font-size: 0.82rem; }
.card__glance { color: var(--ink-soft); font-size: 0.86rem; margin: 0.5rem 0 1rem; }

/* spec disclosure */
.specs { border-top: 1px solid var(--line); }
.specs > summary {
  list-style: none; cursor: pointer; padding: 0.85rem 0 0.2rem; font-size: 0.84rem; font-weight: 600;
  color: var(--teal-deep); display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.specs > summary::-webkit-details-marker { display: none; }
.specs > summary::after { content: "+"; font-size: 1.1rem; line-height: 1; color: var(--ink-faint); transition: transform 0.25s var(--ease); }
.specs[open] > summary::after { content: "\2212"; }
.specs table { width: 100%; border-collapse: collapse; margin: 0.6rem 0 0.2rem; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 0.5rem 0; font-size: 0.85rem; border-bottom: 1px solid var(--line); }
.specs th { font-weight: 600; color: var(--ink-soft); width: 38%; }
.specs td { color: var(--ink); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }

.card__enquire { margin-top: auto; padding-top: 1.1rem; font-size: 0.86rem; font-weight: 600; color: var(--teal-deep); align-self: flex-start; }
.card__enquire::after { content: " \2192"; }
.card__enquire:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- How ordering works ---------- */
.how { background: var(--paper-2); border-top: 1px solid var(--line); }
.how__head { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 7vw, 6rem) var(--gutter) 0; text-align: center; }
.how__steps {
  max-width: var(--maxw); margin: 0 auto; padding: 2.5rem var(--gutter) clamp(4rem, 7vw, 6rem);
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.5rem);
}
.how__steps li { text-align: center; }
.how__n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-family: var(--serif); font-size: 1.3rem; color: var(--teal-deep); margin-bottom: 1rem; }
.how__steps h4 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; margin-bottom: 0.4rem; }
.how__steps p { color: var(--ink-soft); font-size: 0.92rem; max-width: 34ch; margin: 0 auto; }

/* ---------- Inquiry ---------- */
.inquiry { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) var(--gutter); scroll-margin-top: 80px; }
.inquiry__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.inquiry__intro { position: sticky; top: 100px; }
.inquiry__intro p { color: var(--ink-soft); margin: 1rem 0 1.8rem; max-width: 40ch; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.4rem); }
.form__row { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  font-family: var(--sans); font-size: 0.92rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 6px; padding: 0.7rem 0.85rem; width: 100%;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form input::placeholder, .form textarea::placeholder { color: var(--ink-faint); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--teal); background: #fff; outline: none; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a5348' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.2rem; }
.form textarea { resize: vertical; min-height: 80px; }
.form input.invalid, .form select.invalid { border-color: #c0392b; }
.form__div { border: 0; border-top: 1px solid var(--line); margin: 0.6rem 0 1.4rem; }
.form__submit { width: 100%; margin-top: 0.4rem; }
.form__msg { min-height: 1.2rem; margin-top: 0.9rem; font-size: 0.88rem; font-weight: 600; }
.form__msg.ok { color: var(--teal-deep); }
.form__msg.err { color: #c0392b; }
.form__note { font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.8rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: clamp(3rem, 6vw, 5rem) 0 2.2rem; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer__mark { font-family: var(--serif); font-size: 1.8rem; letter-spacing: 0.28em; text-indent: 0.28em; display: block; margin-bottom: 1rem; }
.footer__brand p { color: rgba(246,243,236,0.6); max-width: 32ch; font-size: 0.9rem; }
.footer h4 { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(246,243,236,0.5); margin-bottom: 1rem; font-weight: 600; }
.footer__contact a, .footer__nav a { display: block; padding: 0.3rem 0; font-size: 0.92rem; color: rgba(246,243,236,0.85); transition: color 0.2s var(--ease); }
.footer__contact a:hover, .footer__nav a:hover { color: #fff; }
.footer__base { max-width: var(--maxw); margin: 3rem auto 0; padding: 1.6rem var(--gutter) 0; border-top: 1px solid rgba(246,243,236,0.15); display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8rem; color: rgba(246,243,236,0.5); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__actions .btn--wa span { display: none; }
  .nav__actions .btn--wa { padding: 0.6rem; }
  .hero__inner { padding-top: 5rem; }
  .hero__title { font-size: clamp(2.6rem, 9vw, 4rem); }
  .trust__list { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .grid { grid-template-columns: 1fr 1fr; }
  .how__steps { grid-template-columns: 1fr; max-width: 420px; }
  .inquiry__grid { grid-template-columns: 1fr; }
  .inquiry__intro { position: static; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav__actions .btn--solid { display: none; }
  .nav.is-open .nav__mobile .btn { display: inline-flex; }
  .trust__list { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .form__two { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; gap: 0.4rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  * { transition-duration: 0.001ms !important; }
}
