/* ===========================================================================
   Haya Software Solutions — brand stylesheet
   Palette: Haya Teal #139384 · Heritage Gold #C2A06B · Deep Teal #0E5249
   Type:    Space Grotesk (display) · Manrope (body/UI)
   ======================================================================== */

:root {
  --teal:        #139384;
  --teal-light:  #1CB39E;
  --teal-deep:   #0C6A5E;
  --deep:        #0E5249;
  --ink:         #1B463D;
  --gold:        #C2A06B;
  --gold-light:  #E6CF96;
  --gold-deep:   #B08A4E;
  --sand:        #F4F1E8;
  --sand-soft:   #FBFAF5;
  --paper:       #FFFFFF;
  --muted:       #6E7B73;
  --muted-soft:  #9A9A8C;
  --line:        #ECE7D9;

  --grad-teal:  linear-gradient(150deg, var(--teal-light), var(--teal-deep));
  --grad-gold:  linear-gradient(150deg, var(--gold-light), var(--gold));

  --shadow-sm:  0 1px 3px rgba(27,70,61,.08);
  --shadow-md:  0 14px 30px rgba(27,70,61,.10);
  --shadow-lg:  0 26px 50px rgba(12,70,61,.18);

  --radius:     18px;
  --radius-sm:  12px;
  --container:  1160px;

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'Manrope', system-ui, sans-serif;
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--sand-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--primary { background: var(--grad-teal); color: #fff; box-shadow: 0 10px 22px rgba(16,120,108,.28); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px rgba(16,120,108,.34); }
.btn--ghost { background: transparent; border-color: rgba(27,70,61,.22); color: var(--ink); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--gold { background: var(--grad-gold); color: #4a3a1c; box-shadow: 0 10px 22px rgba(194,160,107,.30); }
.btn--gold:hover { color: #4a3a1c; transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--teal); }
.btn--light:hover { color: var(--teal-deep); transform: translateY(-2px); }

/* ---- Logo lockup -------------------------------------------------------- */
.haya-logo { display: inline-flex; align-items: center; gap: 13px; }
.haya-logo__type { display: flex; flex-direction: column; gap: 4px; }
.haya-logo__word {
  font-family: var(--display); font-weight: 700; font-size: 26px;
  letter-spacing: -.035em; line-height: .85; color: var(--wm);
}
.haya-logo__sub {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 9px;
  letter-spacing: .3em; text-transform: uppercase; color: var(--sub);
}
.haya-logo__rule { width: 20px; height: 2px; background: var(--rule); border-radius: 2px; }

/* ---- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,245,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.site-header__brand { display: inline-flex; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav ul { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--ink);
  position: relative; padding: 6px 0;
}
.site-nav a:hover { color: var(--teal); }
.site-nav a.is-active { color: var(--teal); }
.site-nav a.is-active::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--gold); border-radius: 2px;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center; background: none; border: 0; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.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); }

/* ---- Sections ----------------------------------------------------------- */
.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); }

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body); font-weight: 700; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-head--center .eyebrow::before { display: none; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); }
.section-head p { font-size: 18px; color: var(--muted); margin-bottom: 0; }

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px;
  background: linear-gradient(165deg, var(--sand-soft) 0%, var(--sand) 100%); }
.hero__glow {
  position: absolute; right: -180px; top: -160px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(28,179,158,.18), transparent 62%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); letter-spacing: -.04em; }
.hero h1 .accent { color: var(--teal); }
.hero__lede { font-size: 20px; color: var(--muted); max-width: 30ch; margin: 22px 0 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__trust { display: flex; align-items: center; gap: 18px; color: var(--muted-soft); font-size: 14px; font-weight: 600; }
.hero__trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* Hero art: stacked floating mark on a teal panel */
.hero__art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 360px; }
.hero__panel {
  position: relative; width: 100%; max-width: 420px; aspect-ratio: 5/4;
  border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 120% at 78% 4%, var(--teal-light) 0%, var(--teal-deep) 66%);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
}
.hero__panel::after {
  content: ''; position: absolute; inset: 6px; border-radius: 22px;
  border: 1.5px solid rgba(230,207,150,.45); pointer-events: none;
}
.hero__panel .haya-mark { width: 46%; height: auto; filter: drop-shadow(0 18px 36px rgba(0,0,0,.3)); animation: float 6s ease-in-out infinite; }
.hero__badge {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-md);
  padding: 12px 16px; font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--ink);
  display: flex; align-items: center; gap: 9px;
}
.hero__badge small { display: block; font-family: var(--body); font-weight: 600; font-size: 11px; color: var(--muted-soft); }
.hero__badge--a { left: -18px; top: 22%; animation: float 5s ease-in-out infinite; }
.hero__badge--b { right: -14px; bottom: 16%; animation: float 7s ease-in-out infinite .5s; }
.hero__badge .pip { width: 30px; height: 30px; border-radius: 9px; background: var(--grad-teal); display: grid; place-items: center; color: #fff; }
.hero__badge .pip--gold { background: var(--grad-gold); color: #4a3a1c; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---- Logo strip --------------------------------------------------------- */
.logos { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--sand-soft); }
.logos__row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.logos__label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-soft); }
.logos__item { font-family: var(--display); font-weight: 700; font-size: 19px; color: #B8B3A4; letter-spacing: -.01em; }

/* ---- Cards / grids ------------------------------------------------------ */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #E0D9C6; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(28,179,158,.14), rgba(12,106,94,.12));
  color: var(--teal); margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 21px; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* ---- Stats -------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 22px; }
.stat__num { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4vw, 46px); color: var(--teal); letter-spacing: -.03em; }
.stat__label { color: var(--muted); font-size: 14.5px; font-weight: 600; }

/* ---- Work cards --------------------------------------------------------- */
.work-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 270px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
  color: #fff; box-shadow: var(--shadow-md);
  background: radial-gradient(120% 120% at 80% 0%, var(--teal-light), var(--teal-deep));
}
.work-card:nth-child(2) { background: radial-gradient(120% 120% at 80% 0%, #2A8C9E, #0E5249); }
.work-card:nth-child(3) { background: radial-gradient(120% 120% at 80% 0%, var(--gold), var(--gold-deep)); color: #3a2c10; }
.work-card:nth-child(4) { background: radial-gradient(120% 120% at 80% 0%, #1B6E62, #0C4A42); }
.work-card__tag {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255,255,255,.22); padding: 5px 11px; border-radius: 999px; margin-bottom: auto;
}
.work-card:nth-child(3) .work-card__tag { background: rgba(58,44,16,.18); }
.work-card h3 { color: inherit; font-size: 24px; margin-top: 18px; }
.work-card p { opacity: .9; font-size: 15px; margin-bottom: 14px; }
.work-card__metric { font-family: var(--display); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.work-card__metric::before { content: ''; width: 16px; height: 2px; background: currentColor; opacity: .7; }

/* ---- Process steps ------------------------------------------------------ */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding-top: 18px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--gold-deep);
  display: inline-block; margin-bottom: 12px; letter-spacing: .08em;
}
.step h3 { font-size: 19px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
.step + .step::after {
  content: ''; position: absolute; left: -11px; top: 30px; width: 1px; height: calc(100% - 30px); background: var(--line);
}

/* ---- Split / about ------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__media {
  border-radius: var(--radius); overflow: hidden; min-height: 380px; box-shadow: var(--shadow-md);
  background: radial-gradient(120% 120% at 20% 0%, var(--teal-light), var(--teal-deep));
  display: grid; place-items: center;
}
.split__media .haya-mark { width: 38%; filter: drop-shadow(0 18px 36px rgba(0,0,0,.28)); }
.value-list { display: grid; gap: 16px; margin-top: 8px; }
.value-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 16px; color: var(--ink); }
.value-list .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--grad-teal);
  display: grid; place-items: center; margin-top: 2px;
}
.value-list .tick svg { width: 13px; height: 13px; color: #fff; }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: 26px; padding: 56px; color: #fff;
  background: radial-gradient(120% 140% at 85% 0%, var(--teal-light) 0%, var(--teal-deep) 70%);
  box-shadow: var(--shadow-lg); }
.cta-band::after { content: ''; position: absolute; inset: 8px; border-radius: 20px; border: 1.5px solid rgba(230,207,150,.4); pointer-events: none; }
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin: 0; }
.cta-band p { color: rgba(255,255,255,.85); margin: 8px 0 0; font-size: 17px; }

/* ---- Contact ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: start; }
.contact-info .info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info .info-item .pip { flex: none; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(150deg, rgba(28,179,158,.14), rgba(12,106,94,.12)); color: var(--teal); display: grid; place-items: center; }
.contact-info .info-item h4 { margin: 0 0 2px; font-size: 16px; }
.contact-info .info-item p { margin: 0; color: var(--muted); font-size: 15px; }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--display); font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: 15px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--sand-soft);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(19,147,132,.12); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.field--error input, .field--error select, .field--error textarea { border-color: #c0492f; }
.field__err { color: #c0492f; font-size: 13px; margin-top: 6px; font-weight: 600; }
.honeypot { position: absolute; left: -9999px; }
.form__note { font-size: 13px; color: var(--muted-soft); margin-top: 14px; }

.alert { border-radius: 12px; padding: 16px 18px; margin-bottom: 22px; font-weight: 600; font-size: 15px; }
.alert--ok { background: rgba(28,179,158,.12); color: var(--teal-deep); border: 1px solid rgba(28,179,158,.3); }
.alert--err { background: rgba(192,73,47,.08); color: #a13a23; border: 1px solid rgba(192,73,47,.25); }

/* ---- Page hero (interior pages) ----------------------------------------- */
.page-hero { padding: 70px 0 56px; background: linear-gradient(165deg, var(--sand-soft), var(--sand)); }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); }
.page-hero p { font-size: 19px; color: var(--muted); max-width: 56ch; margin: 14px 0 0; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--deep); color: rgba(255,255,255,.78); padding-top: 64px; margin-top: 8px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.site-footer__pitch { max-width: 40ch; margin-top: 18px; font-size: 15px; color: rgba(255,255,255,.66); }
.site-footer__col h4 { color: #fff; font-size: 15px; letter-spacing: .04em; margin-bottom: 16px; }
.site-footer__col li { margin-bottom: 10px; font-size: 15px; }
.site-footer__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13.5px; color: rgba(255,255,255,.6);
}

/* ---- Reveal-on-scroll --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { order: -1; min-height: 300px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .grid--3, .grid--4, .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .step + .step::after { display: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--sand-soft); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: 12px 24px 22px; transform: translateY(-130%); transition: transform .3s ease; pointer-events: none;
  }
  .site-nav.is-open { transform: translateY(0); pointer-events: auto; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: 14px 0; }
  .site-nav a.is-active::after { display: none; }
  .site-nav__cta { margin-top: 14px; text-align: center; justify-content: center; }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .grid--3, .grid--4, .stats, .steps, .grid--2, .site-footer__grid { grid-template-columns: 1fr; }
  .cta-band { padding: 38px 26px; }
  .form, .card { padding: 24px; }
  .hero__badge { display: none; }
}

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