/* Bottega Nord AS — shared stylesheet
   Palette: ink / paper / honey amber / moss
   Type: Fraunces (display) + Inter (body); IBM Plex Sans Arabic on ar.html
   RTL handled with logical properties + html[dir="rtl"] overrides */

:root {
  --ink: #171310;
  --ink-soft: #3d342c;
  --ink-mute: #6b5f53;
  --paper: #faf7f1;
  --paper-warm: #f3ece0;
  --paper-deep: #ebe1d1;
  --amber: #b5811f;
  --amber-light: #e0a63a;
  --moss: #4a5b3a;
  --line: rgba(23, 19, 16, 0.14);
  --line-soft: rgba(23, 19, 16, 0.08);

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

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 68ch;
  --radius: 3px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.0625rem; font-family: var(--body); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

strong { font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

img, svg { max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow { max-width: 820px; }

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.1rem;
}

.lede {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip:focus { inset-inline-start: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.93);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  margin-inline-end: auto;
}

.brand svg { width: 30px; height: 34px; flex: none; }

.brand-name {
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  font-family: var(--body);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.75rem);
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a:hover { color: var(--amber); }

@media (max-width: 860px) {
  .nav .nav-hide { display: none; }
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-inline-start: 1px solid var(--line);
  padding-inline-start: clamp(0.9rem, 2vw, 1.5rem);
}

.lang a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
}

.lang a[aria-current="true"] { color: var(--ink); }
.lang a:hover { color: var(--amber); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--amber); color: #fff; }

.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-warm); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(224, 166, 58, 0.18), transparent 62%),
    linear-gradient(180deg, var(--paper-warm), var(--paper));
  border-bottom: 1px solid var(--line-soft);
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 240px; }
}

.hero h1 em {
  font-style: italic;
  color: var(--amber);
}

.hero-art { justify-self: center; width: 100%; max-width: 320px; }

/* ---------- Trust strip ---------- */

.strip {
  background: var(--ink);
  color: var(--paper);
  padding-block: 1.6rem;
}

.strip .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem 2rem;
}

.strip-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.strip-k {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--amber-light);
}

.strip-v {
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(250, 247, 241, 0.72);
}

/* ---------- Generic grids & cards ---------- */

.grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: 2.75rem;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2rem);
}

.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.96rem; color: var(--ink-soft); }

.card-num {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--amber);
  display: block;
  margin-bottom: 0.75rem;
}

.tag-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-list li {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--paper-warm);
  border-radius: 2px;
  padding: 0.25rem 0.55rem;
}

/* ---------- Origins ---------- */

.origins { background: var(--paper-warm); }

.origin {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
}

.origin.eu { border-top-color: var(--moss); }

.origin-flagline {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 0.85rem;
}

.origin dl {
  margin: 1.25rem 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.1rem;
  font-size: 0.9rem;
}

.origin dt { color: var(--ink-mute); }
.origin dd { margin: 0; color: var(--ink); font-weight: 500; }

.pledge {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(1.4rem, 2.5vw, 2rem);
}

.pledge h3 { color: var(--moss); }
.pledge p { max-width: 78ch; font-size: 0.99rem; }

/* ---------- Table ---------- */

.table-scroll {
  overflow-x: auto;
  margin-top: 2.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 620px;
}

caption {
  caption-side: bottom;
  text-align: start;
  font-size: 0.82rem;
  color: var(--ink-mute);
  padding: 0.9rem 1.1rem;
  border-top: 1px solid var(--line-soft);
}

th, td {
  text-align: start;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

thead th {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--paper-warm);
  white-space: nowrap;
}

tbody tr:last-child td { border-bottom: 0; }

td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Markets ---------- */

.markets { background: var(--ink); color: var(--paper); }
.markets h2 { color: var(--paper); }
.markets .lede { color: rgba(250, 247, 241, 0.74); }
.markets .eyebrow { color: var(--amber-light); }

.market {
  border: 1px solid rgba(250, 247, 241, 0.16);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  background: rgba(250, 247, 241, 0.03);
}

.market h3 { color: var(--amber-light); margin-bottom: 0.7rem; }

.market ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(250, 247, 241, 0.8);
}

.market li {
  padding-inline-start: 1.1rem;
  position: relative;
}

.market li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  background: var(--amber);
  border-radius: 50%;
}

/* ---------- Olive oil ---------- */

.oil { background: linear-gradient(180deg, var(--paper), #f2f3ec); }
.oil .eyebrow { color: var(--moss); }

.oil-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: 2.5rem;
}

@media (max-width: 820px) {
  .oil-grid { grid-template-columns: 1fr; }
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.spec-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 0.85rem;
}

.spec-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.spec-list b {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- Company ---------- */

.company { background: var(--paper-warm); }

.entity-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.entity {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}

.entity h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }

.entity p { font-size: 0.9rem; color: var(--ink-mute); margin: 0; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 2.5rem;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.field { display: grid; gap: 0.35rem; margin-bottom: 1.1rem; }

.field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  width: 100%;
}

.field textarea { min-height: 120px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: transparent;
}

.contact-details {
  display: grid;
  gap: 1.4rem;
  font-size: 0.95rem;
}

.contact-details h3 { font-size: 1rem; font-family: var(--body); margin-bottom: 0.3rem; }
.contact-details p { color: var(--ink-soft); margin: 0; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(250, 247, 241, 0.62);
  padding-block: 3rem 2.5rem;
  font-size: 0.86rem;
}

.site-footer .wrap {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.site-footer h4 {
  color: var(--paper);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.site-footer a { color: rgba(250, 247, 241, 0.78); text-decoration: none; }
.site-footer a:hover { color: var(--amber-light); }

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }

.legal {
  border-top: 1px solid rgba(250, 247, 241, 0.14);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(250, 247, 241, 0.5);
}

.legal p { max-width: 90ch; }

/* ---------- RTL ---------- */

html[dir="rtl"] body {
  font-family: "IBM Plex Sans Arabic", var(--body);
  font-size: 1.05rem;
  line-height: 1.85;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .brand-name,
html[dir="rtl"] .strip-k {
  font-family: "IBM Plex Sans Arabic", var(--display);
  letter-spacing: 0;
  font-weight: 600;
}

html[dir="rtl"] .eyebrow,
html[dir="rtl"] .brand-sub,
html[dir="rtl"] thead th,
html[dir="rtl"] .field label,
html[dir="rtl"] .site-footer h4,
html[dir="rtl"] .origin-flagline {
  letter-spacing: 0;
}

html[dir="rtl"] .hero h1 em { font-style: normal; }

html[dir="rtl"] td.num,
html[dir="rtl"] .ltr {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}
