/* ==========================================================
   Fortaleza Tanzania Limited
   Shared stylesheet
   ========================================================== */

:root {
  --green:        #056738;
  --green_deep:   #033D21;
  --green_dark:   #022916;
  --orange:       #F79321;
  --orange_soft:  #FDEBD3;
  --ink:          #14221B;
  --ink_soft:     #4A5B52;
  --paper:        #FFFFFF;
  --mist:         #F3F5F3;
  --mist_deep:    #E7EBE7;
  --line:         #D9E0DA;

  --shell:        1240px;
  --gutter:       clamp(20px, 5vw, 64px);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;

  --step_0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step_1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step_2: clamp(1.5rem, 1.32rem + 0.9vw, 2.05rem);
  --step_3: clamp(2rem, 1.62rem + 1.9vw, 3.1rem);
  --step_4: clamp(2.6rem, 1.85rem + 3.7vw, 4.9rem);
  --step_5: clamp(3.1rem, 1.9rem + 6vw, 7rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 104px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step_0);
  line-height: 1.65;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}

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

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--green_deep);
}

p { margin: 0 0 1.05em; max-width: 68ch; }

.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: #fff;
  padding: 12px 18px; z-index: 999; font-weight: 700;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Masthead ---------------------------------- */

.masthead {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 84px;
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand:hover { text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.03em;
  color: var(--green_deep);
  line-height: 1;
}
.brand__sub {
  display: block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--ink_soft);
  margin-top: 5px;
}

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

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 9px 13px;
  border-radius: 2px;
  position: relative;
}
.nav a:hover { text-decoration: none; color: var(--green); background: var(--mist); }
.nav a[aria-current="page"] { color: var(--green_deep); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 3px; background: var(--orange);
}

.nav__cta {
  background: var(--green);
  color: #fff !important;
  padding: 11px 20px !important;
  font-weight: 700;
  margin-left: 8px;
}
.nav__cta:hover { background: var(--green_deep) !important; color: #fff !important; }

.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line); background: #fff;
  cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.burger span {
  display: block; width: 20px; height: 2px; background: var(--ink);
  position: relative;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }

@media (max-width: 940px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 84px 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 26px;
    gap: 0;
    transform: translateY(-120%);
    transition: transform .28s ease;
    max-height: calc(100dvh - 84px); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"]::after { left: 4px; right: auto; width: 26px; bottom: 8px; }
  .nav__cta { margin: 16px 0 0; text-align: center; border-bottom: 0 !important; }
}

/* ---------- Generic section furniture ------------------ */

.band { padding: clamp(60px, 8vw, 112px) 0; }
.band--mist { background: var(--mist); }
.band--tight { padding: clamp(44px, 5vw, 70px) 0; }

.tag {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display);
  font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--ink_soft);
  margin-bottom: 18px;
}
.tag::before {
  content: ""; width: 34px; height: 11px; background: var(--orange); flex: none;
}

.title { font-size: var(--step_3); max-width: 20ch; }
.title--wide { max-width: 26ch; }

.lede {
  font-size: var(--step_1);
  line-height: 1.5;
  color: var(--ink_soft);
  max-width: 62ch;
  margin-top: 22px;
}

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

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

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700; font-size: 0.97rem;
  letter-spacing: 0.01em;
  padding: 16px 30px;
  border: 2px solid var(--green);
  background: var(--green); color: #fff;
  transition: background .18s ease, color .18s ease;
}
.btn:hover { background: var(--green_deep); border-color: var(--green_deep); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--green_deep); }
.btn--ghost:hover { background: var(--green); border-color: var(--green); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--green_deep); }
.btn--light:hover { background: var(--orange); border-color: var(--orange); color: var(--green_dark); }
.btn--onDark { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn--onDark:hover { background: #fff; border-color: #fff; color: var(--green_deep); }

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

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  min-height: min(84vh, 760px);
  background: var(--green_deep);
}

.hero__copy {
  padding: clamp(48px, 6vw, 92px) clamp(24px, 5vw, 76px);
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
  position: relative;
}

.hero__plate {
  background: #fff;
  width: 118px; height: 118px;
  display: grid; place-items: center;
  margin-bottom: 34px;
  padding: 12px;
}
.hero__plate img { width: 100%; height: 100%; object-fit: contain; }

.hero h1 {
  color: #fff;
  font-size: var(--step_4);
  max-width: 14ch;
  letter-spacing: -0.035em;
}

.hero__kicker {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.26em;
  font-size: 0.78rem;
  color: var(--orange);
  margin-bottom: 20px;
}

.hero p {
  color: rgba(255,255,255,.82);
  font-size: var(--step_1);
  max-width: 44ch;
  margin-top: 26px;
  line-height: 1.5;
}

.hero__media { position: relative; overflow: hidden; background: #123; min-height: 340px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { order: -1; height: 46vh; min-height: 260px; }
}

/* ---------- Fact strip -------------------------------- */

.facts {
  background: var(--orange);
  color: var(--green_dark);
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(3,61,33,.18);
}
.facts__item {
  background: var(--orange);
  padding: 34px 28px;
}
.facts__n {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
}
.facts__l {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.4;
  color: rgba(2,41,22,.78);
}
@media (max-width: 820px) { .facts__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Split intro ------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.split__body p:last-child { margin-bottom: 0; }

/* ---------- Range grid -------------------------------- */

.range {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 46px;
}

.range__card {
  background: #fff;
  padding: 26px 24px 28px;
  display: flex; flex-direction: column;
  min-height: 236px;
  transition: background .18s ease;
}
.range__card:hover { background: var(--mist); text-decoration: none; }

.range__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--orange);
}

.range__thumb {
  height: 92px; margin: 14px 0 18px;
  display: grid; place-items: center;
}
.range__thumb img { max-height: 92px; width: auto; object-fit: contain; }

.range__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.14rem;
  color: var(--green_deep);
  letter-spacing: -0.01em;
  margin-top: auto;
}
.range__hint {
  font-size: 0.88rem;
  color: var(--ink_soft);
  margin-top: 6px;
  line-height: 1.45;
}

/* ---------- Product sections -------------------------- */

.product { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.product:first-of-type { border-top: 0; }

.product__head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 860px) { .product__head { grid-template-columns: 1fr; gap: 20px; } }

.product__numeral {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: 14px;
}

.product h2 { font-size: var(--step_2); }

.motto {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.12rem, 1.6vw, 1.42rem);
  color: var(--orange);
  letter-spacing: -0.01em;
  margin: 30px 0 0;
  max-width: none;
}

.subhead {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--green);
  margin: 40px 0 10px;
}

/* ---------- Product galleries ------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 30px;
}

.gallery figure {
  margin: 0; background: #fff;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  padding: 16px;
}
.gallery img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.gallery--tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gallery--tiles figure { padding: 0; }
.gallery--tiles img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }

/* ---------- Values / lists ---------------------------- */

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 46px;
}
.value {
  background: #fff;
  padding: 32px 28px 34px;
}
.value h3 {
  font-size: 1.16rem;
  margin-bottom: 12px;
  display: flex; align-items: baseline; gap: 12px;
}
.value h3::before {
  content: ""; width: 20px; height: 8px; background: var(--orange); flex: none;
}
.value p { margin: 0; color: var(--ink_soft); font-size: 0.97rem; }

.band--mist .value { background: #fff; }

/* ---------- Statement panels -------------------------- */

.panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 46px;
}
.panel {
  background: var(--green_deep);
  color: #fff;
  padding: clamp(30px, 4vw, 48px);
}
.panel--orange { background: var(--orange); color: var(--green_dark); }
.panel h3 {
  color: inherit;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.panel p { margin: 0; color: inherit; opacity: .9; font-size: 1.05rem; line-height: 1.55; }
.panel--orange p { opacity: .82; }

/* ---------- Minerals ---------------------------------- */

.minerals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  margin-top: 48px;
}
.mineral { background: #fff; border: 1px solid var(--line); }
.mineral__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.mineral__img img { width: 100%; height: 100%; object-fit: cover; }
.mineral__body { padding: 24px 26px 28px; }
.mineral h3 {
  font-size: 1.24rem;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.mineral p { margin: 0; font-size: 0.97rem; color: var(--ink_soft); }

/* ---------- Logo walls -------------------------------- */

.logowall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 40px;
}
.logowall figure {
  margin: 0; background: #fff;
  aspect-ratio: 5 / 3;
  display: grid; place-items: center;
  padding: 20px;
}
.logowall img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain;
  filter: saturate(.92);
}

.logostrip {
  display: flex; flex-wrap: wrap; gap: 26px 40px;
  align-items: center; justify-content: center;
  margin-top: 40px;
}
.logostrip img { max-height: 54px; width: auto; opacity: .85; }

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

.contact_grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}
@media (max-width: 880px) { .contact_grid { grid-template-columns: 1fr; } }

.detail { border-top: 1px solid var(--line); padding: 22px 0; }
.detail:last-of-type { border-bottom: 1px solid var(--line); }
.detail__k {
  font-family: var(--display);
  font-weight: 700; font-size: 0.76rem;
  letter-spacing: 0.18em;
  color: var(--ink_soft);
  margin-bottom: 9px;
}
.detail__v {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.24rem;
  color: var(--green_deep);
  line-height: 1.4;
}
.detail__v a { color: var(--green_deep); }
.detail__v span { display: block; }

.form { background: var(--mist); padding: clamp(26px, 4vw, 42px); }
.form label {
  display: block;
  font-family: var(--display);
  font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--ink_soft);
  margin-bottom: 8px;
}
.field { margin-bottom: 22px; }
.form input, .form select, .form textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 0;
}
.form textarea { min-height: 148px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}
.form_note { font-size: 0.88rem; color: var(--ink_soft); margin: 18px 0 0; }

/* ---------- Closing band ------------------------------ */

.closer {
  position: relative;
  background: var(--orange);
  overflow: hidden;
}
.closer__inner {
  position: relative; z-index: 2;
  padding: clamp(56px, 7vw, 104px) 0 clamp(200px, 26vw, 330px);
}
.closer h2 {
  color: var(--green_deep);
  font-size: var(--step_3);
  max-width: 16ch;
}
.closer p { color: rgba(2,41,22,.78); font-size: var(--step_1); margin-top: 20px; max-width: 46ch; }
.closer__img {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  height: clamp(190px, 25vw, 320px);
}
.closer__img img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }

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

.foot {
  background: var(--green_deep);
  color: rgba(255,255,255,.72);
  padding: clamp(50px, 6vw, 82px) 0 34px;
}
.foot a { color: rgba(255,255,255,.72); }
.foot a:hover { color: #fff; }

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 5vw, 64px);
}
@media (max-width: 800px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }

.foot__plate {
  background: #fff; width: 92px; height: 92px;
  display: grid; place-items: center; padding: 10px; margin-bottom: 22px;
}
.foot__plate img { width: 100%; height: 100%; object-fit: contain; }

.foot h4 {
  color: #fff; font-size: 0.8rem; letter-spacing: 0.18em;
  margin-bottom: 18px; font-weight: 700;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 11px; font-size: 0.97rem; }
.foot p { font-size: 0.97rem; max-width: 34ch; }

.foot__base {
  margin-top: clamp(38px, 5vw, 60px);
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex; flex-wrap: wrap; gap: 14px 30px;
  justify-content: space-between;
  font-size: 0.87rem;
}

/* ---------- Lightbox ---------------------------------- */

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4,26,15,.93);
  display: none; place-items: center;
  padding: 5vw;
}
.lightbox[data-open="true"] { display: grid; }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 20px; right: 22px;
  width: 48px; height: 48px;
  background: none; border: 1px solid rgba(255,255,255,.4);
  color: #fff; font-size: 1.5rem; cursor: pointer;
  line-height: 1;
}
.gallery figure, .logowall figure { cursor: zoom-in; }

/* ---------- Motion ------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
