/*
 * SJ Global / Sejong Global Trading Pty Ltd
 * Marketing site stylesheet.
 *
 * Section order matches the document source order in index.html:
 *   1.  Tokens
 *   2.  Reset + base
 *   3.  Typography utilities
 *   4.  Layout primitives
 *   5.  Top bar
 *   6.  Hero
 *   7.  Value props strip
 *   8.  Section heading
 *   9.  Partner brands grid
 *  10.  Trust badges
 *  11.  Contact + map
 *  12.  Footer
 *  13.  404 page utilities
 *  14.  Responsive breakpoints
 *  15.  Reduced motion
 */

/* 1. Tokens -------------------------------------------------------------- */

:root {
  --sj-ink:        #1A1B1E;
  --sj-ink-2:      #F0EDE6;
  --sj-ink-3:      #E4E0D6;
  --sj-crimson:    #C8161D;
  --sj-crimson-2:  #8E0F14;
  --sj-gold:       #B8872E;
  --sj-cream:      #F4F1EA;
  --sj-paper:      #FFFFFF;
  --sj-surface:    #FAF8F4;
  --sj-line-dark:  rgba(0, 0, 0, 0.1);
  --sj-line-light: rgba(0, 0, 0, 0.08);

  --sj-text-dark:    #1A1B1E;
  --sj-text-muted:   #6B6D74;
  --sj-text-on-dark: #1A1B1E;
  --sj-text-on-dark-muted: #5C5E66;

  --font-display: "Bebas Neue", "Oswald", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container:    1200px;
  --container-narrow: 960px;
  --gutter:       clamp(20px, 4vw, 48px);
  --section-y:    clamp(64px, 8vw, 112px);
  --radius:       14px;
  --radius-sm:    8px;
  --shadow-card:  0 8px 28px rgba(0, 0, 0, 0.08);
  --shadow-card-dark: 0 10px 36px rgba(0, 0, 0, 0.12);
  --shadow-topbar: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* 2. Reset + base -------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--sj-text-dark);
  background: var(--sj-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

a:hover { color: var(--sj-crimson); }

button { font: inherit; cursor: pointer; }

/* 3. Typography utilities ----------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 0.95;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sj-crimson);
}

.eyebrow--gold { color: var(--sj-gold); }

/* 4. Layout primitives -------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section--dark {
  background: var(--sj-surface);
  color: var(--sj-text-dark);
}

.section--ink2 {
  background: var(--sj-paper);
  color: var(--sj-text-dark);
  border-top: 1px solid var(--sj-line-light);
  border-bottom: 1px solid var(--sj-line-light);
}

.section--cream {
  background: var(--sj-cream);
}

.section-heading {
  text-align: center;
  margin: 0 auto clamp(36px, 5vw, 56px);
  max-width: 760px;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.0;
  margin: 12px 0 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-heading__lead {
  margin: 18px auto 0;
  max-width: 640px;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.65;
  color: var(--sj-text-muted);
}

.section-heading .divider {
  display: inline-block;
  width: 56px;
  height: 3px;
  background: var(--sj-crimson);
  margin-top: 18px;
  border-radius: 2px;
}

.section--dark .section-heading .divider { background: var(--sj-crimson); }

.section--ink2 .section-heading .divider { background: var(--sj-crimson); }

/* 5. Top bar ------------------------------------------------------------ */

.topbar {
  background: var(--sj-paper);
  color: var(--sj-text-dark);
  border-bottom: 1px solid var(--sj-line-light);
  box-shadow: var(--shadow-topbar);
}

.topbar__row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  width: 48px;
  height: 48px;
  background: var(--sj-crimson);
  color: #FFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 1px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(200, 22, 29, 0.25);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.05; }

.brand__name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.brand__tagline {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--sj-text-muted);
}

.topbar__spacer { flex: 1; }

.topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--sj-line-light);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.topbar__phone:hover {
  border-color: var(--sj-crimson);
  background: rgba(200, 22, 29, 0.06);
  color: var(--sj-crimson);
}

.topbar__contact-link { font-weight: 600; letter-spacing: 0.04em; }

/* 6. Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  background-color: var(--sj-surface);
  color: var(--sj-text-dark);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 241, 234, 0.78) 45%, rgba(244, 241, 234, 0.55) 100%),
    url("/assets/img/hero/hero.svg");
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero__inner {
  position: relative;
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(80px, 12vw, 160px);
  max-width: 880px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sj-crimson);
  margin-bottom: 24px;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--sj-crimson);
  display: inline-block;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: 1px;
  margin: 0 0 26px;
  text-transform: uppercase;
}

.hero__title-accent { color: var(--sj-crimson); }

.hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  max-width: 620px;
  color: var(--sj-text-muted);
  margin: 0 0 36px;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--sj-crimson); color: #FFF; }
.btn--primary:hover { background: var(--sj-crimson-2); color: #FFF; }

.btn--ghost {
  background: transparent;
  color: var(--sj-text-dark);
  border-color: var(--sj-line-dark);
}
.btn--ghost:hover {
  border-color: var(--sj-crimson);
  color: var(--sj-crimson);
  background: rgba(200, 22, 29, 0.05);
}

/* 7. Value props strip -------------------------------------------------- */

.valueprops {
  background: var(--sj-paper);
  color: var(--sj-text-dark);
  border-top: 1px solid var(--sj-line-light);
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.valueprops__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, 1fr);
}

.valueprop {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px;
}

.valueprop__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(200, 22, 29, 0.08);
  color: var(--sj-crimson);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.valueprop__icon svg { width: 28px; height: 28px; }

.valueprop__label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sj-text-dark);
  margin: 0;
  max-width: 18ch;
  line-height: 1.35;
}

/* 9. Partner brands grid ------------------------------------------------ */

.partners__grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  grid-template-columns: repeat(2, 1fr);
  max-width: 920px;
  margin: 0 auto;
}

.partner {
  background: var(--sj-paper);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  text-align: center;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  border: 1px solid var(--sj-line-light);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.partner:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.partner__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(120px, 18vw, 168px);
  padding: clamp(20px, 3vw, 32px) clamp(16px, 2vw, 24px);
  background: var(--sj-surface);
  border: 1px solid var(--sj-line-light);
  border-radius: var(--radius-sm);
}

.partner__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 320px);
  max-height: clamp(72px, 10vw, 112px);
  object-fit: contain;
}

.partner__img--photo {
  max-width: min(100%, 360px);
  max-height: clamp(88px, 12vw, 128px);
}

.partner__caption {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sj-text-dark);
}

/* 10. Trust badges ------------------------------------------------------ */

.trust {
  background: var(--sj-crimson);
  color: #FFF;
}

.trust .section-heading h2,
.trust .section-heading .eyebrow { color: #FFF; }
.trust .section-heading .divider { background: var(--sj-gold); }

.trust__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, 1fr);
}

.badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: background 200ms ease, border-color 200ms ease;
}

.badge:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

.badge__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #FFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge__icon svg { width: 26px; height: 26px; }

.badge__title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.badge__copy {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* 11. Contact + map ----------------------------------------------------- */

.contact {
  background: var(--sj-cream);
}

.contact__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
}

.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #DDD;
  min-height: 380px;
}

.contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

.contact__details {
  background: var(--sj-paper);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact__heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0;
}

.contact__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.98rem;
  line-height: 1.5;
}

.contact__row svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--sj-crimson);
}

.contact__row a { font-weight: 600; }
.contact__row strong { font-weight: 700; color: var(--sj-text-dark); }

/* 12. Footer ----------------------------------------------------------- */

.footer {
  background: var(--sj-cream);
  color: var(--sj-text-muted);
  padding: 36px 0;
  border-top: 1px solid var(--sj-line-light);
}

.footer__row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__brand { display: inline-flex; align-items: center; gap: 12px; }

.footer__mark {
  width: 36px;
  height: 36px;
  background: var(--sj-crimson);
  color: #FFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 1px;
  border-radius: 4px;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--sj-text-dark);
  text-transform: uppercase;
}

.footer__tagline {
  font-style: italic;
  color: var(--sj-crimson);
  font-size: 0.92rem;
}

.footer__copy {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  margin-left: auto;
}

/* 13. 404 page utilities ------------------------------------------------ */

.notfound {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sj-cream);
  padding: var(--section-y) var(--gutter);
}

.notfound__card {
  background: var(--sj-paper);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-card);
  max-width: 520px;
  width: 100%;
}

.notfound__code {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--sj-crimson);
  margin: 0;
}

.notfound__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 8px 0 14px;
}

.notfound__copy { color: var(--sj-text-muted); margin: 0 0 24px; }

/* 14. Responsive breakpoints ------------------------------------------- */

@media (max-width: 960px) {
  .valueprops__grid,
  .trust__grid { grid-template-columns: repeat(2, 1fr); }

  .contact__grid { grid-template-columns: 1fr; }

  .topbar__phone span.topbar__phone-label { display: none; }
}

@media (max-width: 640px) {
  .topbar__row { flex-wrap: wrap; gap: 12px; }
  .topbar__spacer { display: none; }
  .topbar__phone { width: 100%; justify-content: center; }

  .brand__name { font-size: 1.3rem; }
  .brand__tagline { font-size: 0.66rem; }

  .hero__inner { padding-top: 64px; padding-bottom: 64px; }

  .valueprops__grid,
  .trust__grid,
  .partners__grid { grid-template-columns: 1fr; }

  .footer__row { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer__copy { margin-left: 0; }
}

/* 15. Reduced motion --------------------------------------------------- */

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