/* =========================================================
   Mazelis Global — styles
   Palette taken from the logo: deep teal + gold on ivory
   ========================================================= */
:root {
  --teal-950: #042a31;
  --teal-900: #06343d;
  --teal-700: #0a4a55;
  --teal-500: #0f6b78;
  --gold: #d9962b;
  --gold-light: #f2c14e;
  --gold-dark: #8f5d12;          /* gold that passes contrast on light bg */
  --ivory: #faf8f3;
  --tint: #f1f5f5;
  --ink: #14232a;
  --muted: #55666b;
  --line: #e2e8e8;
  --white: #fff;

  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 52, 61, .08);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-500); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--teal-900); }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--teal-900); padding: .6rem 1rem; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.15rem; font-size: .92rem; }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--teal-900); box-shadow: 0 6px 18px rgba(217, 150, 43, .35); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-teal { background: var(--teal-700); color: var(--white); }
.btn-teal:hover { background: var(--teal-900); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .8rem;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 2px;
  background: var(--gold); vertical-align: middle; margin-right: .6rem;
}
.eyebrow-light { color: var(--gold-light); }
.gold { color: var(--gold-light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { height: 45px; width: auto; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--teal-900); letter-spacing: -.01em; }
.brand-name span { color: var(--gold-dark); }

.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a:not(.btn) {
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  color: var(--ink); text-decoration: none; position: relative;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--gold); transition: width .2s ease;
}
.site-nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--teal-900); transition: transform .2s, opacity .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(15, 107, 120, .55), transparent 60%),
    radial-gradient(600px 400px at 10% 100%, rgba(217, 150, 43, .14), transparent 60%),
    var(--teal-900);
  overflow: hidden;
}
/* subtle maze/grid texture — a nod to the logo */
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none' stroke='%23f2c14e' stroke-width='2'%3E%3Cpath d='M0 12h18v18M30 0v12h18M48 36H30v12M12 48V36H0M24 24h12v-6'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center;
  padding: 6rem 0 6.5rem;
}
.hero h1 { color: var(--white); }
.lead { font-size: 1.2rem; color: rgba(255, 255, 255, .82); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Data-flow card */
.flow-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  padding: 2rem 1.8rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
}
.flow-step { position: relative; display: flex; gap: 1rem; padding-bottom: 1.6rem; }
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before {                       /* connecting line */
  content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px;
  background: linear-gradient(var(--gold), rgba(217, 150, 43, .15));
}
.flow-step:last-child::before { display: none; }
.flow-dot {
  flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  border: 2px solid var(--gold-light); background: var(--teal-900);
  animation: pulse 3.2s infinite;
}
.flow-step:nth-child(2) .flow-dot { animation-delay: .8s; }
.flow-step:nth-child(3) .flow-dot { animation-delay: 1.6s; }
.flow-step:nth-child(4) .flow-dot { animation-delay: 2.4s; }
.flow-step-final .flow-dot { background: var(--gold); }
.flow-step strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.flow-step small { color: rgba(255, 255, 255, .65); font-size: .9rem; }
@keyframes pulse {
  0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(242, 193, 78, 0); }
  15% { box-shadow: 0 0 0 8px rgba(242, 193, 78, .25); }
}

/* ---------- Tech strip ---------- */
.tech-strip { background: var(--ivory); border-bottom: 1px solid var(--line); padding: 1.6rem 0; }
.tech-strip p {
  text-align: center; font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .8rem;
}
.tech-strip ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.35rem;
}
.tech-strip li { font-family: var(--font-head); font-weight: 700; color: var(--teal-700); opacity: .8; }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--teal-900); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.muted-light { color: rgba(255, 255, 255, .78); font-size: 1.1rem; }

.section-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.section-head .eyebrow::after {
  content: ""; display: inline-block; width: 28px; height: 2px;
  background: var(--gold); vertical-align: middle; margin-left: .6rem;
}
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; gap: 1.5rem; }
.cards { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(217, 150, 43, .5); }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 1.2rem;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Split layout */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.feature-list li {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.feature-list p { color: rgba(255, 255, 255, .72); margin: 0; font-size: .98rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: none; }
.steps li { position: relative; padding-top: 1.2rem; border-top: 2px solid var(--line); }
.steps li::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--gold);
}
.step-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: var(--gold); line-height: 1; margin-bottom: .8rem; }
.steps p { color: var(--muted); margin: 0; }

/* Why */
.why { grid-template-columns: repeat(3, 1fr); gap: 2.2rem 2.5rem; }
.why h3 { display: flex; align-items: center; gap: .6rem; }
.why h3::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); flex: none; }
.why p { color: var(--muted); margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--teal-700), var(--teal-950)); padding: 3.5rem 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* ---------- Contact ---------- */
.contact > div > p:not(.eyebrow) { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list span { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); }
.contact-list a { color: var(--teal-900); font-weight: 600; text-decoration: none; font-size: 1.1rem; }
.contact-list a:hover { color: var(--teal-500); }

.contact-form {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.2rem;
  display: grid; gap: 1.1rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; color: var(--teal-900); }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  padding: .8rem .95rem; border: 1px solid #cfd9da; border-radius: 10px; background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(15, 107, 120, .15);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; }
.hp { display: none; }
.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: #1c7c4a; }
.form-status.err { color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-950); color: rgba(255, 255, 255, .7); padding: 3.5rem 0 0; font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; padding-bottom: 2.5rem; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 1rem; }
.footer-nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer-nav a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.4rem 0; }
.footer-bottom p { margin: 0; font-size: .88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .split { grid-template-columns: 1fr; gap: 3rem; }
  .hero-inner { padding: 4.5rem 0 5rem; }
  .cards, .why { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 1rem; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 4.5rem 0; }
  .cards, .why, .feature-list, .field-row, .steps { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
}

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

/* contact address */
.contact-list address { font-style: normal; color: var(--teal-900); font-weight: 600; font-size: 1.1rem; line-height: 1.5; }

/* 404 page */
.page-404 { grid-template-columns: 1fr; text-align: center; min-height: 100vh; align-content: center; }
.page-404 .lead { margin-inline: auto; }
.page-404 .hero-cta { justify-content: center; }
