/* ISTSUN GIDA ENERJI — site styles
   Palette logic: cold blue = supply / cold chain, brass = finance & credit. */

:root {
  --ink: #14305e;          /* darkened brand blue — dark sections */
  --steel: #2d5da3;        /* brand blue, from the logo subline */
  --sky: #7eb2e0;          /* brand light blue, from SUN */
  --frost: #eef2f8;
  --paper: #ffffff;
  --cold: #2d5da3;
  --cold-deep: #1c3f74;
  --cold-soft: #dce9f6;
  --brass: #ddb139;        /* brand gold, from IST */
  --brass-soft: #f8efd6;
  --line: #cbd8e8;
  --line-dark: #3a5a93;
  --muted: #5b7196;
  --muted-dark: #a9c0dc;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --wordmark: "Montserrat", var(--display);

  --wrap: 1180px;
  --gap: clamp(28px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--frost);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- type ---------- */

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

h1 { font-size: clamp(38px, 5.6vw, 68px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cold);
  margin: 0 0 18px;
}
.eyebrow.brass { color: var(--brass); }

.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--steel); max-width: 62ch; }

.muted { color: var(--muted); }

/* ---------- top bar + header ---------- */

.topbar {
  background: var(--ink);
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.topbar .wrap {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  flex-wrap: wrap;
}
.topbar span { white-space: nowrap; }
.topbar .dot { color: var(--cold); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(238, 242, 248, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.wordmark {
  font-family: var(--wordmark);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.wordmark:hover { text-decoration: none; }
.wordmark small {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: 0.01em;
}
.nav a:hover { color: var(--cold-deep); text-decoration: none; }
.nav a.active {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--brass);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 9px 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--cold); color: #fff; }
.btn-primary:hover { background: var(--cold-deep); }
.btn-ghost { border-color: var(--line-dark); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--steel); }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: #9c7022; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

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

section { padding: var(--gap) 0; }
.section-dark { background: var(--ink); color: var(--frost); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: var(--muted-dark); }
.section-steel { background: var(--steel); color: var(--frost); }
.section-paper { background: var(--paper); }

.section-head { max-width: 70ch; margin-bottom: 40px; }

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

/* ---------- hero ---------- */

.hero {
  background: var(--ink);
  color: var(--frost);
  padding: clamp(48px, 7vw, 88px) 0 clamp(52px, 7vw, 92px);
  border-bottom: 3px solid var(--brass);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 { color: #fff; text-wrap: balance; }
.hero h1 em {
  font-style: normal;
  color: var(--brass);
}
.hero p { color: var(--muted-dark); max-width: 46ch; font-size: 18px; }

/* consignment board — the signature element */

.board {
  border: 1px solid var(--line-dark);
  background: linear-gradient(180deg, rgba(47, 135, 173, 0.09), rgba(0, 0, 0, 0));
  font-family: var(--mono);
  font-size: 13px;
}
.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--muted-dark);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.board-head .live { color: var(--cold); }
.board table { width: 100%; border-collapse: collapse; }
.board th {
  text-align: left;
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 16px 8px;
}
.board td {
  padding: 11px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--frost);
  white-space: nowrap;
}
.board td:first-child { color: var(--cold); }
.board td:last-child { color: var(--brass); text-align: right; }
.board tbody tr { animation: rowIn 0.5s ease both; }
.board tbody tr:nth-child(1) { animation-delay: 0.15s; }
.board tbody tr:nth-child(2) { animation-delay: 0.27s; }
.board tbody tr:nth-child(3) { animation-delay: 0.39s; }
.board tbody tr:nth-child(4) { animation-delay: 0.51s; }
.board tbody tr:nth-child(5) { animation-delay: 0.63s; }
.board-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--line-dark);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

@keyframes rowIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- generic grids ---------- */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- step sequence ---------- */

.steps { counter-reset: step; }
.step {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}
.step::before {
  counter-increment: step;
  content: "Step " counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 15.5px; color: var(--muted); margin: 0; }
.section-dark .step { border-top-color: var(--cold); }
.section-dark .step p { color: var(--muted-dark); }

/* ---------- origin cards ---------- */

.origin {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cold);
  padding: 24px;
}
.origin .code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cold-deep);
}
.origin h3 { margin: 8px 0 10px; }
.origin p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- carton label cards (products) ---------- */

.label-card {
  background: var(--paper);
  border: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
}
.label-card header {
  background: var(--ink);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.label-card header h3 { margin: 0; color: #fff; font-size: 20px; }
.label-card header .origin-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--brass);
  white-space: nowrap;
}
.label-card .body { padding: 18px 20px 4px; }
.label-card .body p { font-size: 15px; color: var(--muted); }
.spec {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12.5px;
  margin-top: auto;
}
.spec th, .spec td {
  border-top: 1px dashed var(--line);
  padding: 9px 20px;
  text-align: left;
  vertical-align: top;
}
.spec th {
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  width: 42%;
  font-size: 11px;
}
.spec td { color: var(--ink); }

/* ---------- finance block ---------- */

.finance {
  background: var(--steel);
  color: var(--frost);
  border-left: 4px solid var(--brass);
  padding: clamp(28px, 4vw, 44px);
}
.finance h2 { color: #fff; }
.finance .terms {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
}
.finance .terms li {
  font-family: var(--mono);
  font-size: 13.5px;
  padding-left: 26px;
  position: relative;
  color: var(--frost);
}
.finance .terms li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brass);
}

/* ---------- callout / cta band ---------- */

.cta-band {
  background: var(--brass-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 36px;
  padding-bottom: 36px;
}
.cta-band h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); }
.cta-band p { margin: 8px 0 0; color: var(--steel); max-width: 52ch; }

/* ---------- page header (inner pages) ---------- */

.page-head {
  background: var(--ink);
  color: #fff;
  padding: clamp(44px, 6vw, 72px) 0;
  border-bottom: 3px solid var(--brass);
}
.page-head h1 { color: #fff; margin-bottom: 14px; }
.page-head p { color: var(--muted-dark); max-width: 60ch; margin: 0; font-size: 18px; }

/* ---------- prose blocks ---------- */

.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

.fact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.fact-list li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.fact-list b {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  padding-top: 3px;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.channel {
  border-top: 2px solid var(--ink);
  padding: 16px 0 20px;
}
.channel .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.channel .v { font-size: 18px; font-weight: 600; margin-top: 6px; }

form.inquiry {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 32px);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 13px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cold);
  background: #fff;
}
.form-note { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--muted-dark);
  padding: clamp(40px, 5vw, 64px) 0 28px;
  font-size: 15px;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.site-footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cold);
  font-weight: 400;
  margin: 0 0 14px;
}
.site-footer a { color: var(--frost); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer .wordmark { color: #fff; margin-bottom: 14px; }
.site-footer .wordmark small { color: var(--muted); }
.site-footer p { max-width: 40ch; }
.legal {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .site-header .wrap { position: relative; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .fact-list li { grid-template-columns: 1fr; gap: 4px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .board td, .board th { padding-left: 12px; padding-right: 12px; }
  .board { font-size: 12px; }
}

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

/* ---------- fixes / overrides ---------- */

.cta-band { padding: 0; }

.section-dark .fact-list b { color: var(--cold); }
.section-dark .fact-list li { color: var(--frost); }

/* ---------- four divisions ---------- */

.board tbody tr:nth-child(6) { animation-delay: 0.75s; }

.division-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.division-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 15px;
  border: 1px solid var(--line-dark);
  color: var(--frost);
  border-radius: 2px;
}
.division-nav a:hover {
  text-decoration: none;
  border-color: var(--brass);
  color: var(--brass);
}

.division-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.division-head h2 { margin: 0; }
.division-head .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
section[id] { scroll-margin-top: 90px; }

.board tbody tr:nth-child(7) { animation-delay: 0.87s; }

/* ---------- brand identity ---------- */

.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; }
.site-footer .brand img { height: 52px; margin-bottom: 18px; }

@media (max-width: 720px) {
  .brand img { height: 34px; }
}

/* light-blue accents where the dark navy needs contrast */
.hero .eyebrow,
.page-head .eyebrow,
.section-dark .eyebrow,
.board-head .live,
.board td:first-child,
.site-footer h4,
.section-dark .fact-list b { color: var(--sky); }

.section-dark .step { border-top-color: var(--sky); }
.division-nav a:hover { border-color: var(--sky); color: var(--sky); }
.origin { border-top-color: var(--steel); }
.board { background: linear-gradient(180deg, rgba(126, 178, 224, 0.12), rgba(0, 0, 0, 0)); }
.btn-brass { color: #14305e; }
.btn-brass:hover { background: #c79c26; color: #14305e; }
.hero h1 em { color: var(--brass); }

/* ---------- direct call line on offer CTAs ---------- */

.call-line {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 14px 0 0;
  color: var(--steel);
}
.call-line .k {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}
.call-line a { color: var(--cold-deep); font-weight: 500; white-space: nowrap; }
.call-line .sep { color: var(--line); margin: 0 8px; }

.hero .call-line { color: var(--muted-dark); margin-top: 22px; }
.hero .call-line .k { color: var(--muted-dark); }
.hero .call-line a { color: var(--brass); }
.hero .call-line .sep { color: var(--line-dark); }

.section-dark .call-line { color: var(--muted-dark); }
.section-dark .call-line .k { color: var(--muted-dark); }
.section-dark .call-line a { color: var(--brass); }
.section-dark .call-line .sep { color: var(--line-dark); }

.channel .v a { overflow-wrap: anywhere; }
.site-footer ul a { overflow-wrap: anywhere; }

/* ---------- language switcher ---------- */

.lang { display: inline-flex; align-items: center; gap: 2px; }
.lang a {
  color: var(--muted-dark);
  padding: 2px 7px;
  letter-spacing: 0.14em;
  border: 1px solid transparent;
  border-radius: 2px;
}
.lang a:hover { color: #fff; text-decoration: none; }
.lang a.on { color: var(--brass); border-color: var(--line-dark); }

/* ---------- mobile: the supply board ---------- */

@media (max-width: 940px) {
  /* grid children must be allowed to shrink below their content width */
  .hero .wrap > *,
  .contact-grid > *,
  .grid > * { min-width: 0; }

  .board { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .board table { min-width: 460px; }
}

@media (max-width: 720px) {
  /* let the board wrap instead of scrolling sideways */
  .board { overflow-x: visible; font-size: 11.5px; }
  .board table { min-width: 0; }
  .board td { white-space: normal; }
  .board th,
  .board td { padding: 9px 10px; }
  .board th { font-size: 9.5px; letter-spacing: 0.1em; }
  .board td:last-child { text-align: right; }
  .board-head { padding: 10px 12px; font-size: 10px; }
  .board-foot { padding: 10px 12px; }

  .hero { padding-top: 34px; }
  .hero p { font-size: 16.5px; }
  .btn { padding: 13px 18px; font-size: 12px; }
  .btn-row { gap: 10px; }
  .call-line a { white-space: normal; }

  .spec th, .spec td { padding: 8px 14px; }
  .spec th { width: 46%; }
  .label-card header { padding: 14px 14px; flex-direction: column; gap: 4px; }
  .label-card .body { padding: 14px 14px 4px; }

  .topbar .wrap { justify-content: center; gap: 8px; padding-top: 6px; padding-bottom: 6px; }
  .topbar span { white-space: normal; text-align: center; }

  .cta-band .wrap { padding-top: 28px; padding-bottom: 28px; }
  .legal { flex-direction: column; gap: 6px; }
}

@media (max-width: 420px) {
  .board th, .board td { padding: 8px 7px; }
  .board { font-size: 10.5px; }
}

/* ---------- mobile refinements ---------- */

@media (max-width: 560px) {
  /* phone numbers stack cleanly instead of breaking mid-number */
  .call-line a { display: block; white-space: nowrap; }
  .call-line .sep { display: none; }

  /* buttons fill the width so the stack reads as one block */
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { text-align: center; }
}
