/* Emblem Square Market — one-page site
   Brand: MSM blue #0105CC, gold #EEB856, white ground */

@font-face {
  font-family: "Libre Baskerville";
  src: url("fonts/libre-baskerville.woff2") format("woff2"),
       url("fonts/libre-baskerville.woff") format("woff");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans.woff2") format("woff2"),
       url("fonts/ibm-plex-sans.woff") format("woff");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

:root {
  --blue: #0105CC;
  --blue-deep: #01038F;
  --gold: #EEB856;
  --gold-deep: #C9922E;
  --ink: #161616;
  --muted: #54565C;
  --paper: #FFFFFF;
  --fog: #F4F5F9;
  --line: #E3E5EE;
  --shadow: 0 10px 28px rgba(1, 5, 80, 0.12);
  --header-h: 4.25rem;
  --measure: 72rem;
  --font-serif: "Libre Baskerville", "Georgia", "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { color: var(--blue-deep); }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--gold);
  color: var(--blue);
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* ---------- Layout ---------- */
.wrap {
  width: min(calc(100% - 2.5rem), var(--measure));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 4px solid var(--gold);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--blue);
  min-width: 0;
}
.brand:hover { color: var(--blue); }

.mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--blue);
}
.brand-name small {
  display: block;
  margin-top: 0.12rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--blue);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.nav-burger svg { width: 22px; height: 22px; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.2rem;
  background: var(--blue);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid var(--blue);
  border-radius: 2px;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #14120A !important;
}
.btn-gold:hover {
  background: #F3C56E;
  border-color: #F3C56E;
  color: #14120A !important;
}

.btn-lg { padding: 0.9rem 1.45rem; font-size: 1.05rem; }

.header-cta { margin-left: 0.4rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(238, 184, 86, 0.16), transparent 55%),
    linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  padding: 3.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.4vw, 3.15rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: #fff;
  max-width: 18ch;
}

.hero .lede {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 38rem;
}

.hero-art {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2.6rem;
}
.hero-caption {
  margin: -0.35rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  text-align: center;
}

.hero-card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 40, 0.28);
  padding: 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-card--flag {
  width: min(100%, 28rem);
  z-index: 1;
}
.hero-card--flag img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-card--coin {
  width: 10.5rem;
  padding: 0.85rem;
  position: absolute;
  right: 0;
  bottom: 0.35rem;
  z-index: 2;
}
.hero-card--coin img,
.hero-card--coin picture {
  width: 100%;
  height: auto;
}

/* captions live under .hero-caption, not inside the cards */

/* ---------- Shared sections ---------- */
.section { padding: 4.25rem 0; }
.section-fog { background: var(--fog); }
.section-blue { background: var(--blue); color: #fff; }

.section-head {
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

.kicker {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.section h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.section-head p,
.intro {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.section-head .intro { margin-top: 0.9rem; }

.title-rule {
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--gold);
  margin: 0.85rem 0 0;
  border: 0;
}

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.product {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-media {
  background: #EEF0F6;
  min-height: 11.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.product-media img {
  max-height: 9.5rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(20, 20, 40, 0.12));
}

.product-media .icon {
  width: 118px;
  height: 118px;
  color: var(--blue);
}

.product-body { padding: 1.1rem 1.15rem 1.25rem; }
.product h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.product p { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.5; }

/* ---------- Audiences ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.audience {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.2rem 1.15rem 1.25rem;
}
.audience .icon {
  width: 36px;
  height: 36px;
  color: var(--blue);
  margin-bottom: 0.7rem;
}
.audience h3 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}
.audience p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }

/* ---------- Process ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.3rem 1.2rem 1.3rem 1.3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem 1rem;
  align-items: start;
}

.step-num {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: var(--blue);
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.step h3 {
  margin: 0.15rem 0 0.3rem;
  font-size: 1.08rem;
  font-weight: 600;
}
.step p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.step-copy { min-width: 0; }

.note {
  margin: 1.5rem 0 0;
  padding: 0.95rem 1.15rem;
  background: #FBF6EA;
  border-left: 4px solid var(--gold);
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
}

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.why {
  padding: 0.2rem 0 0.4rem;
}
.why .icon {
  width: 36px;
  height: 36px;
  color: var(--blue);
  margin-bottom: 0.7rem;
}
.why h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.why p { margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-panel {
  display: grid;
  gap: 2rem;
}

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

.contact-list a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.contact-list a:hover { text-decoration: underline; }

.contact-list .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.contact-aside p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  max-width: 34rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.25rem 0 2.4rem;
  border-top: 4px solid var(--gold);
  font-size: 0.95rem;
  line-height: 1.55;
}
.site-footer p { margin: 0 0 0.45rem; max-width: 46rem; }
.site-footer .legal { color: rgba(255, 255, 255, 0.7); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 799px) {
  .wrap { width: min(calc(100% - 2rem), var(--measure)); }

  .nav-burger { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: calc(4px + var(--header-h));
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1.25rem 1.1rem;
    gap: 0;
    box-shadow: 0 12px 24px rgba(0, 0, 20, 0.06);
  }
  .nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav .btn {
    margin-top: 0.85rem;
    width: 100%;
  }
  .header-cta { margin-left: 0; }

  .nav-toggle:checked ~ .nav { display: flex; }
  .nav-toggle:checked + .nav-burger .icon-menu { display: none; }
  .nav-toggle:not(:checked) + .nav-burger .icon-close { display: none; }

  .hero { padding: 2.4rem 0 3.25rem; }
  .hero-stage { padding-bottom: 2.15rem; }
  .hero-card--coin {
    width: 7.6rem;
    right: 0.15rem;
    bottom: 0.15rem;
  }
  .product-media { min-height: 10rem; }
  .section { padding: 3.25rem 0; }
}

@media (min-width: 800px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    min-height: 24rem;
  }
  .hero { padding: 4.25rem 0 5rem; }
  .hero-card--coin { width: 11.25rem; right: -0.2rem; bottom: 0.15rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 2.25rem; }
  .contact-panel { grid-template-columns: 1fr 1fr; align-items: start; gap: 3rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .audience-grid { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.15rem; }
  .step { grid-template-columns: 1fr; padding: 1.4rem 1.2rem 1.5rem; }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 800px) and (max-width: 1099px) {
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
}
