/* ================================================
   ZEMAG Global Trades & Services — Static Export
   ================================================ */

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #2948CC;
  --primary-light: rgba(41, 72, 204, 0.08);
  --primary-muted: rgba(41, 72, 204, 0.12);
  --bg:            hsl(40, 30%, 96%);
  --card:          hsl(40, 33%, 98%);
  --fg:            hsl(230, 40%, 12%);
  --dark:          hsl(230, 40%, 12%);
  --muted:         hsl(230, 15%, 45%);
  --border:        hsl(40, 20%, 85%);
  --accent:        hsl(35, 80%, 60%);
  --white:         #ffffff;

  --font-sans:  'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;

  --container: 1200px;
  --gap:       1.5rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button { cursor: pointer; font-family: inherit; background: none; border: none; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ----- Layout ----- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2.5rem; }
}

/* ----- Sections ----- */
.section--bg       { background: var(--bg); }
.section--card     { background: var(--card); }
.section--dark     { background: var(--dark); color: var(--white); }
.section--dark-alt { background: var(--dark); color: var(--white); }
.border-y          { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ----- Typography ----- */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2.5rem;
  color: var(--fg);
}
.section-title--light { color: var(--white); }

.section-subtitle {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.section-heading-center { text-align: center; }
.section-heading-center .section-title { margin-bottom: 0; }

.accent-rule {
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
  margin: 1rem auto 2.5rem;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.6rem 1.25rem;
  border-radius: 0;
  transition: opacity 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn--sm  { padding: 0.45rem 1.1rem; font-size: 0.85rem; }
.btn--lg  { padding: 0.85rem 2rem; font-size: 1rem; height: 3rem; }

.btn--primary {
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}
.btn--primary:hover { opacity: 0.9; }

.btn--outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(41, 72, 204, 0.25);
}
.btn--outline:hover { background: var(--primary-light); }

/* ----- Navigation ----- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 249, 244, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(40, 20, 85, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav__logo {
  text-align: left;
  line-height: 1;
}
.nav__logo-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav__logo-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}
.nav__logo:hover .nav__logo-sub { color: var(--fg); }

.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav__links button:not(.btn) {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav__links button:not(.btn):hover { color: var(--fg); }

.nav__mobile-cta { display: flex; }

@media (min-width: 768px) {
  .nav__links        { display: flex; }
  .nav__mobile-cta   { display: none; }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 6.5rem 0 4rem;
  overflow: hidden;
}

.hero__bg-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero__bg-blob--1 {
  top: -20%; right: -10%;
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(41,72,204,0.07) 0%, transparent 70%);
}
.hero__bg-blob--2 {
  bottom: 10%; left: -10%;
  width: 50%; height: 50%;
  background: radial-gradient(circle, rgba(218,160,60,0.07) 0%, transparent 70%);
}

.hero__inner { position: relative; z-index: 1; }

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.hero__eyebrow svg { color: var(--primary); }

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.hero__headline--accent {
  color: var(--primary);
  font-style: italic;
  font-weight: 400;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__trust {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
@media (min-width: 640px) {
  .hero__trust { flex-direction: row; gap: 2rem; }
}
.hero__trust span { display: flex; align-items: center; gap: 0.5rem; }

.trust-dot {
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ----- Audience ----- */
.audience { padding: 4rem 0; }

.audience__grid {
  display: grid;
  gap: 1.5rem;
  max-width: 62rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .audience__grid { grid-template-columns: 1fr 1fr; }
}

.audience__card {
  padding: 2rem 2.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  transition: background 0.2s;
}
.audience__card:hover { background: rgba(255,255,255,0.08); }

.audience__card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.audience__card-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.checklist { display: flex; flex-direction: column; gap: 0.75rem; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}
.checklist li::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232948CC' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* ----- Services ----- */
.services { padding: 4rem 0; }

.services__grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .services__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.2s;
}
.service-card:hover { border-color: rgba(41,72,204,0.3); }

.service-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
  transition: background 0.2s;
}
.service-card:hover .service-card__icon { background: var(--primary-muted); }

.service-card__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--fg);
}
.service-card__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ----- How We Work ----- */
.how { padding: 4rem 0; background: var(--bg); }

.how__grid {
  display: grid;
  gap: 0;
  max-width: 62rem;
  margin: 0 auto;
}
@media (min-width: 640px)  { .how__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .how__grid { grid-template-columns: repeat(5, 1fr); } }

.how__step {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.2s;
  position: relative;
}
.how__step:hover { border-color: rgba(41,72,204,0.3); }

.how__step-num {
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(41,72,204,0.5);
  display: block;
  margin-bottom: 0.75rem;
}
.how__step-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
  transition: background 0.2s;
}
.how__step:hover .how__step-icon { background: var(--primary-muted); }

.how__step-title {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: var(--fg);
}
.how__step-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ----- Products ----- */
.products { padding: 4rem 0; }

.products__grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) { .products__grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  overflow: hidden;
}

.product-card__bar {
  height: 6px;
  background: linear-gradient(to right, var(--primary), rgba(41,72,204,0.5));
}

.product-card__body {
  padding: 1.75rem;
  background: var(--card);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.product-card__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex: 1;
}

.product-card__meta {
  border-top: 1px solid rgba(40,20,85,0.1);
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card__row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.meta-label {
  font-weight: 600;
  color: var(--fg);
}
.meta-value {
  color: var(--muted);
}

.product-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.product-card:hover .product-card__cta {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.product-card__cta svg { flex-shrink: 0; opacity: 0.5; }
.product-card:hover .product-card__cta svg { opacity: 1; }

/* ----- Why ZEMAG ----- */
.why { padding: 4rem 0; }

.why__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .why__grid { grid-template-columns: 1fr 1fr; }
}

.pillars { display: flex; flex-direction: column; gap: 1.5rem; }

.pillar__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.35rem;
}
.pillar__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

.why__visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 22rem;
  margin: 0 auto;
  width: 100%;
  display: none;
}
@media (min-width: 1024px) { .why__visual { display: block; } }

.why__circle {
  position: absolute;
  border-radius: 50%;
}
.why__circle--outer {
  inset: 0;
  background: var(--primary-light);
}
.why__circle--inner-ring {
  inset: 1rem;
  border: 1px solid rgba(41,72,204,0.15);
  background: transparent;
}
.why__circle--bg {
  inset: 3rem;
  background: var(--bg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.why__diamond {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(45deg);
  width: 7rem; height: 7rem;
  background: var(--primary);
}

/* ----- About ----- */
.about {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.about__overlay {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background:
    linear-gradient(to left, rgba(41,72,204,0.3) 0%, transparent 50%),
    radial-gradient(circle at center, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: auto, 24px 24px;
  pointer-events: none;
}

.about__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.about__text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
}

/* ----- Contact ----- */
.contact { padding: 4rem 0; }

.contact__inner { max-width: 38rem; }

.contact__subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.contact__supporting {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.contact__links { display: flex; flex-direction: column; gap: 0.75rem; }

.contact__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.2s, background 0.2s;
}
.contact__link:hover {
  border-color: rgba(41,72,204,0.35);
  background: rgba(41,72,204,0.03);
}

.contact__link-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  transition: background 0.2s, color 0.2s;
}
.contact__link:hover .contact__link-icon {
  background: var(--primary);
  color: var(--white);
}

.contact__link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.contact__link-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.contact__link-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  transition: color 0.2s;
}
.contact__link:hover .contact__link-value { color: var(--primary); }

.contact__link-arrow {
  color: rgba(40,20,85,0.3);
  flex-shrink: 0;
  transition: color 0.2s;
}
.contact__link:hover .contact__link-arrow { color: var(--primary); }

/* ----- Legal ----- */
.legal {
  background: rgba(40,20,85,0.03);
  border-top: 1px solid var(--border);
}

.legal__grid {
  display: grid;
}
@media (min-width: 768px) {
  .legal__grid {
    grid-template-columns: 1fr 1fr;
    divide-x: 1px solid var(--border);
  }
}

.legal__section { padding: 2rem 0; }
.legal__section--right {
  padding-top: 0;
}
@media (min-width: 768px) {
  .legal__section { padding: 2rem 2.5rem 2rem 0; }
  .legal__section--right {
    padding: 2rem 0 2rem 2.5rem;
    border-top: none;
    border-left: 1px solid var(--border);
  }
}

.legal__title {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.legal__text {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ----- Footer ----- */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.footer__logo-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.footer__logo-sub {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
}
.footer__legal-name {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.2rem;
}
.footer__city {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.2rem;
}
.footer__email {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  display: block;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.footer__email:hover { color: rgba(255,255,255,0.7); }

.footer__socials {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.footer__social {
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer__social:hover { color: rgba(255,255,255,0.75); }

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .footer__links { align-items: flex-end; }
}
.footer__link {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
  cursor: pointer;
}
.footer__link:hover { color: rgba(255,255,255,0.75); }

/* ----- Scroll animations ----- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside animated parents */
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.15s; }
.fade-up:nth-child(4) { transition-delay: 0.2s; }
.fade-up:nth-child(5) { transition-delay: 0.25s; }
.fade-up:nth-child(6) { transition-delay: 0.3s; }

/* Immediately show hero items */
.hero .fade-up { transition-delay: 0s; }
.hero .hero__headline.fade-up { transition-delay: 0.1s; }
.hero .hero__sub.fade-up      { transition-delay: 0.2s; }
.hero .hero__actions.fade-up  { transition-delay: 0.3s; }
.hero .hero__trust.fade-up    { transition-delay: 0.4s; }
