/* ===========================
   Devmark Trading — Rebuild
   =========================== */

:root {
  --navy: #0E1F3D;
  --navy-2: #182C50;
  --navy-deep: #081530;
  --cream: #F5F1EA;
  --cream-2: #ECE5D7;
  --paper: #FBF8F2;
  --rust: #C2532E;
  --rust-2: #A0431F;
  --text: #1A2236;
  --muted: #6B7180;
  --line: rgba(14, 31, 61, 0.12);
  --line-strong: rgba(14, 31, 61, 0.22);

  --serif: "Source Serif 4", "Source Serif Pro", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(8, 21, 48, 0.06);
  --shadow-md: 0 16px 40px rgba(8, 21, 48, 0.10);
  --shadow-lg: 0 30px 80px rgba(8, 21, 48, 0.18);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--navy-deep);
  font-variation-settings: "opsz" 32;
}
h1 { font-size: clamp(2rem, 5.4vw, 4.6rem); font-variation-settings: "opsz" 60; overflow-wrap: break-word; word-break: normal; hyphens: auto; }
h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); font-variation-settings: "opsz" 48; }
h3 { font-size: 1.4rem; font-weight: 500; }
h4 { font-size: 0.85rem; font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--cream); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--rust);
  margin: 0 0 18px;
}
.lede {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--text);
  opacity: 0.85;
  max-width: 56ch;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--rust); color: #fff; }
.btn--primary:hover { background: var(--rust-2); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn--ghost.btn--dark { color: var(--navy-deep); border-color: var(--line-strong); }
.btn--ghost.btn--dark:hover { background: var(--navy-deep); color: #fff; border-color: var(--navy-deep); }
.btn--sm { padding: 10px 18px; font-size: 0.86rem; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 16px 0;
  transition: background .3s var(--ease), padding .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  transition: color .3s var(--ease);
}
.nav__logo-img {
  height: 38px;
  width: auto;
  display: block;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.nav.is-scrolled .nav__logo-img {
  filter: brightness(0) saturate(100%) invert(9%) sepia(43%) saturate(2640%) hue-rotate(207deg) brightness(95%) contrast(98%);
}
.nav__logo-img--footer { height: 34px; }

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  position: relative;
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .3s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { width: 100%; }
.nav.is-scrolled .nav__links a { color: var(--navy-deep); opacity: 0.78; }
.nav.is-scrolled .nav__links a:hover { opacity: 1; }

.nav__cta { color: #fff; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center; gap: 5px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s var(--ease);
  margin: 0 auto;
}
.nav.is-scrolled .nav__toggle span { background: var(--navy-deep); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: -1;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  animation: heroZoom 20s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 0% 100%, rgba(14, 31, 61, 0.92) 0%, rgba(14, 31, 61, 0.55) 40%, rgba(14,31,61,0.25) 70%, transparent 100%),
    linear-gradient(180deg, rgba(14, 31, 61, 0.45) 0%, rgba(14,31,61,0.1) 40%, rgba(14,31,61,0.6) 100%);
}
.hero__content {
  padding-top: 120px;
  padding-bottom: 120px;
  max-width: 880px;
  position: relative;
  z-index: 1;
}
.hero__content .eyebrow { color: #E9C7B7; }
.hero h1 {
  color: #fff;
  font-weight: 400;
  margin-bottom: 22px;
}
.hero .lede {
  color: rgba(255,255,255,0.85);
  margin: 0 0 36px;
}
.hero__cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero__meta {
  display: flex; gap: 48px;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 28px;
  flex-wrap: wrap;
}
.hero__meta li {
  display: flex; flex-direction: column; gap: 4px;
}
.hero__meta strong {
  font-family: var(--serif); font-weight: 500;
  font-size: 2rem; color: #fff;
}
.hero__meta span {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.7);
}
.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 38px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  display: flex; justify-content: center;
}
.hero__scroll span {
  width: 2px; height: 8px;
  background: #fff; margin-top: 6px;
  border-radius: 2px;
  animation: scrollPulse 1.6s var(--ease) infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ===== TICKER ===== */
.ticker {
  background: var(--navy-deep);
  color: var(--cream);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  padding: 18px 0;
}
.ticker__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  font-weight: 400;
  animation: tickerScroll 38s linear infinite;
  opacity: 0.92;
  width: max-content;
}
.ticker__track span {
  position: relative;
  padding-right: 88px;
  color: var(--cream);
}
.ticker__track span::after {
  content: "";
  position: absolute;
  right: 40px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--rust);
  opacity: 0.85;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== SECTION BASE ===== */
.section { padding: 120px 0; position: relative; }
.section__head { max-width: 720px; margin-bottom: 64px; }
.section__sub {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 18px 0 0;
}
.section--suppliers { background: var(--cream); }
.section--industries { background: var(--paper); }
.section--sustain { background: var(--navy-deep); color: var(--cream); }
.section--sustain .eyebrow { color: #E9C7B7; }
.section--sustain h2 { color: #fff; }
.section--about { background: var(--cream); }
.section--contact { background: var(--navy-deep); color: var(--cream); }
.section--contact h2 { color: #fff; }
.section--contact .eyebrow { color: #E9C7B7; }

/* ===== SUPPLIERS ===== */
.suppliers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.supplier-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex; flex-direction: column;
  gap: 18px;
  min-height: 320px;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden;
  cursor: pointer;
}
.supplier-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.supplier-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 3px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.supplier-card:hover::before { transform: scaleX(1); }
.supplier-card__logo {
  height: 42px;
  display: flex;
  align-items: center;
}
.supplier-card__logo img {
  max-height: 42px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.supplier-card__logo--dark {
  background: var(--navy-deep);
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 6px;
}
.supplier-card__logo--dark img {
  max-height: 30px;
}
.supplier-card h3 { color: var(--navy-deep); }
.supplier-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.96rem;
}
.tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
}
.tags li {
  font-size: 0.74rem;
  padding: 4px 10px;
  background: var(--cream);
  border-radius: 999px;
  color: var(--navy-deep);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.supplier-card__arrow {
  position: absolute;
  right: 24px; bottom: 24px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream);
  display: grid; place-items: center;
  color: var(--navy-deep);
  font-size: 1rem;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.supplier-card:hover .supplier-card__arrow {
  background: var(--rust); color: #fff; transform: translate(3px, -3px);
}

/* ===== INDUSTRIES ===== */
.industries__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.industry-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--navy);
  isolation: isolate;
}
.industry-card__media {
  position: absolute; inset: 0;
  z-index: -1;
}
.industry-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.industry-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,21,48,0.15) 0%, rgba(8,21,48,0.85) 100%);
  z-index: -1;
  transition: opacity .4s var(--ease);
}
.industry-card:hover .industry-card__media img { transform: scale(1.05); }
.industry-card__body { padding: 36px; max-width: 80%; }
.industry-card__tag {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: #E9C7B7;
  margin: 0 0 10px;
}
.industry-card h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 8px;
}
.industry-card p {
  margin: 0 0 16px;
  color: rgba(255,255,255,0.85);
  font-size: 0.96rem;
}
.industry-card__cta {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 4px;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.industry-card:hover .industry-card__cta { color: #E9C7B7; border-color: #E9C7B7; }

/* ===== SUSTAINABILITY ===== */
.sustain__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.sustain__copy p {
  color: rgba(245, 241, 234, 0.78);
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 0 0 32px;
}
.sustain__points {
  display: grid; gap: 18px;
  margin-bottom: 36px;
}
.sustain__points li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sustain__points strong {
  font-family: var(--serif);
  font-weight: 500;
  color: #fff;
  font-size: 1.1rem;
}
.sustain__points span {
  color: rgba(245,241,234,0.65);
  font-size: 0.95rem;
}
.sustain__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.sustain__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.sustain__chip {
  position: absolute;
  left: 24px; bottom: 24px;
  background: rgba(245, 241, 234, 0.96);
  color: var(--navy-deep);
  padding: 14px 18px;
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-md);
}
.sustain__chip span {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--rust); font-weight: 600;
}
.sustain__chip strong {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 500;
  margin-top: 2px;
}
.btn--ghost.btn--dark { color: #fff; border-color: rgba(255,255,255,0.4); }
.section--sustain .btn--ghost.btn--dark:hover { background: #fff; color: var(--navy-deep); border-color: #fff; }

/* ===== ABOUT ===== */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.about__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.about__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.about__copy p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 56ch;
  margin: 0 0 20px;
}
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.about__stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--navy-deep);
  font-weight: 500;
  margin-bottom: 4px;
}
.about__stats span {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
}

/* ===== CONTACT ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact__copy p {
  color: rgba(245, 241, 234, 0.78);
  font-size: 1.05rem;
  max-width: 50ch;
  margin: 0 0 36px;
}
.contact__details {
  display: grid; gap: 22px;
  margin-bottom: 32px;
}
.contact__details li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}
.contact__label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
}
.contact__details a:hover { color: #E9C7B7; }
.contact__note {
  font-size: 0.85rem;
  color: rgba(245,241,234,0.5);
}
.contact__form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(10px);
}
.field { display: flex; flex-direction: column; gap: 8px; grid-column: span 2; }
.field--half { grid-column: span 1; }
.field label {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.field input, .field textarea, .field select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #fff;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--rust);
  background: rgba(255,255,255,0.06);
}
.field textarea { resize: vertical; }
.contact__form .btn { grid-column: span 2; justify-self: start; margin-top: 6px; }
.contact__form button[disabled] { opacity: 0.7; cursor: progress; }
.contact__form .hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
.form__status {
  grid-column: span 2;
  margin: 4px 0 0;
  font-size: 0.88rem;
  min-height: 1.2em;
  color: rgba(255,255,255,0.7);
}
.form__status[data-kind="error"] { color: #F4A28C; }
.form__status[data-kind="success"] { color: #BFE3C0; }
@media (max-width: 600px) {
  .form__status { grid-column: span 1; }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: var(--cream);
  padding: 80px 0 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand p {
  max-width: 32ch;
  color: rgba(245,241,234,0.65);
  font-size: 0.92rem;
  margin: 20px 0 0;
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col li, .footer__col a {
  font-size: 0.92rem;
  color: rgba(245,241,234,0.7);
  transition: color .25s var(--ease);
}
.footer__col a:hover { color: #E9C7B7; }
.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(245,241,234,0.5);
  letter-spacing: 0.04em;
}
.footer__certs { letter-spacing: 0.12em; }

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .section { padding: 80px 0; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--cream);
    padding: 28px 24px;
    gap: 18px;
    box-shadow: var(--shadow-md);
  }
  .nav__links.is-open a { color: var(--navy-deep); font-size: 1.1rem; }

  .suppliers__grid { grid-template-columns: repeat(2, 1fr); }
  .industries__grid { grid-template-columns: 1fr; }
  .sustain__grid,
  .about__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__media, .sustain__media { aspect-ratio: 5/4; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .hero__meta { gap: 32px; }
  .hero__meta strong { font-size: 1.5rem; }

  .contact__form { padding: 24px; }
  .sustain__points li,
  .contact__details li { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .nav__logo-img { height: 30px; }
  .hero__content { padding-top: 100px; padding-bottom: 90px; }
  .hero h1 { font-size: 1.75rem; line-height: 1.1; }
  .hero .lede { font-size: 0.98rem; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .suppliers__grid { grid-template-columns: 1fr; }
  .supplier-card { min-height: auto; padding: 28px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; gap: 8px; text-align: center; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .contact__form { grid-template-columns: 1fr; }
  .field--half { grid-column: span 1; }
  .contact__form .btn { grid-column: span 1; }
}
