/* =========================================================
   Plume marketing site — single-page CSS
   Palette + typography mirror the Plume app's editorial theme.
   English-only (the product itself remains bilingual).
   ========================================================= */

:root {
  --bg:        #f5f1e8;
  --bg-paper:  #fbf8f1;
  --ink:       #1f2a1a;
  --ink-soft:  #5a6353;
  --ink-muted: #8a9183;
  --line:      #e3ddc9;
  --forest:    #2d3f2a;
  --forest-light: #4a6443;
  --terracotta:#c75e3e;
  --good-bg:   #e2ecdb;

  --container-max: 1080px;
  --side-pad:      24px;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--forest);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

/* Hidden by clipping, not by a negative offset. `left: -9999px` works in LTR
   because browsers do not make negative-left overflow scrollable — but in RTL
   the start edge is on the right, so the same rule pushed the document out to
   11,439px wide and gave the Arabic page a horizontal scrollbar. Clipping has
   no side, so it behaves identically in both directions. */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  z-index: 100;
}
.skip-link:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  inset-inline-start: 8px;
  top: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}
.btn-primary {
  background: var(--forest);
  color: #fff;
}
.btn-primary:hover {
  background: var(--ink);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--forest);
  text-decoration: none;
}

/* ---------- Nav ---------- */
.site-nav {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  /* Now an inline SVG — the comb + wattle mark.
     Sized via width/height; SVG keeps its aspect ratio (64:80 ≈ 4:5). */
  width: 26px;
  height: 32px;
  flex-shrink: 0;
}
.brand-name {
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 72px;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 22px;
}
.hero-title em {
  font-style: italic;
  color: var(--forest-light);
}
.hero-sub {
  max-width: 640px;
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 32px;
  line-height: 1.55;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Sections (shared) ---------- */
section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 18px;
}
.section-title em {
  font-style: italic;
  color: var(--forest-light);
}
.section-lede {
  max-width: 720px;
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 32px;
}

/* ---------- About ---------- */
.about { background: var(--bg-paper); }

/* ---------- Products grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--forest);
  border-radius: 4px;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
}
.product-card--soon {
  border-top-color: var(--line);
  opacity: 0.85;
}
.product-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}
.product-card--soon .product-status {
  color: var(--ink-muted);
}
.product-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.product-desc {
  flex: 1;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 18px;
}

/* ---------- Features spotlight ---------- */
.features { background: var(--bg-paper); }
.features-header { margin-bottom: 36px; }
.features-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 12px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature {
  padding: 18px 20px;
  /* Logical, not physical: this accent bar must sit on the right in the
     Arabic page. It is the only rule in the original sheet that actually
     had a side — the rest were off-screen offsets or symmetric centring. */
  border-inline-start: 3px solid var(--forest);
  background: var(--bg);
}
.feature h4 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.feature p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Why Plume ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.why-item h4 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.why-item p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Contact ---------- */
.contact { background: var(--bg-paper); text-align: center; }
.contact .section-title,
.contact .section-lede { margin-left: auto; margin-right: auto; }
.contact-email {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 500;
  margin: 0;
}
.contact-email a {
  color: var(--forest);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.contact-email a:hover {
  border-color: var(--forest);
  text-decoration: none;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 28px 0 32px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.footer-brand .brand-mark {
  width: 22px; height: 28px;
}
.footer-copy {
  font-size: 13px;
  color: var(--ink-soft);
}
.footer-links {
  display: flex;
  gap: 18px;
  font-size: 13px;
}
.footer-links a {
  color: var(--ink-soft);
}
.footer-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding: 56px 0 48px; }
  section { padding: 48px 0; }
  .nav-actions { gap: 6px; }
  .btn { padding: 8px 14px; font-size: 13px; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Added 2026-09-01 with the Arabic page and the request form.
   Kept in the same palette and rhythm as the original sheet — no new colours,
   no new radii, no second type scale.
   ───────────────────────────────────────────────────────────────────────── */

/* Language toggle — a quiet link, not a third button competing with the CTA. */
.lang-toggle {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.lang-toggle:hover { color: var(--ink); border-color: var(--ink-muted); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ── Request form ─────────────────────────────────────────────────────────── */
.contact-email-label {
  display: block;
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.request-form {
  margin-top: 40px;
  padding: 28px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: start;
}
.form-title { font-family: var(--serif); font-size: 28px; margin: 0 0 6px; color: var(--ink); }
.form-note  { font-size: 14px; color: var(--ink-muted); margin: 0 0 22px; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--half { grid-column: span 1; }
.field > label { font-size: 14px; font-weight: 500; color: var(--ink-soft); }

.request-form input[type=text],
.request-form input[type=email],
.request-form input[type=tel],
.request-form select,
.request-form textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  width: 100%;
}
.request-form textarea { resize: vertical; min-height: 110px; }
.request-form input:focus-visible,
.request-form select:focus-visible,
.request-form textarea:focus-visible {
  outline: 2px solid var(--forest-light);
  outline-offset: 1px;
  border-color: var(--forest-light);
}

.checks { border: 0; padding: 0; margin: 22px 0 6px; }
.checks legend {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0;
  margin-bottom: 10px;
}
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.4;
}
.check input { margin-top: 3px; accent-color: var(--forest); flex: none; }

.request-form .field:not(.field--half) { margin-top: 16px; }

.form-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form-status { font-size: 14px; margin: 0; color: var(--ink-soft); }
.form-status--ok  { color: var(--forest); font-weight: 500; }
.form-status--err { color: var(--terracotta); font-weight: 500; }

/* The honeypot must be unreachable for people but present for bots — so it is
   moved out of view rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .field-grid, .check-grid { grid-template-columns: 1fr; }
  .request-form { padding: 20px; }
}

/* ── RTL ──────────────────────────────────────────────────────────────────────
   The original sheet is almost direction-agnostic; only these five physical
   rules needed mirroring. Everything added above uses logical properties or is
   symmetric, so it needs nothing here. */
[dir="rtl"] body,
[dir="rtl"] .brand-name { font-family: 'Tajawal', var(--sans); }
[dir="rtl"] .hero-title,
[dir="rtl"] .section-title,
[dir="rtl"] .form-title { font-family: 'Tajawal', var(--serif); font-weight: 800; }
/* Arabic is a connected script: letter-spacing breaks the joins. */
[dir="rtl"] .hero-eyebrow,
[dir="rtl"] .features-eyebrow,
[dir="rtl"] .product-status { letter-spacing: normal; }

/* Anchor targets must clear the sticky header. Without this every nav link —
   Products, Features, Why Plume, Contact, and the hero's "See our products" —
   scrolled the section heading to y=65 under a 66px sticky bar, so the thing
   you clicked toward was the one thing you could not see. Pre-existing; found
   by measuring the click rather than by looking at the page. */
html { scroll-behavior: smooth; }
#top, #products, #features, #why, #contact { scroll-margin-top: 84px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Result notes for the no-JavaScript path. The endpoint answers a native submit
   with a 303 to …#sent or …#form-error, and :target reveals the matching one —
   so the form reports its outcome with scripting switched off and without a
   second page. The JS path never navigates and writes .form-status instead. */
.sent-note {
  display: none;
  margin: 24px 0 0;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid var(--forest-light);
  background: var(--good-bg);
  color: var(--forest);
  font-weight: 500;
}
.sent-note--err {
  border-color: var(--terracotta);
  background: #f7e9e4;
  color: var(--terracotta);
}
.sent-note:target { display: block; }

/* "Built by Webnova" — a credit, not a banner. Sits under the copyright at the
   same weight as the rest of the footer so it reads as attribution rather than
   as a second brand competing with Plume's own. */
.built-by {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-muted);
}
.built-by a {
  color: var(--forest-light);
  text-decoration: none;
  font-weight: 500;
}
.built-by a:hover { text-decoration: underline; }
