/* ==========================================================================
   iVend Qatar — Modern Site Stylesheet
   Palette: espresso charcoal + warm amber + fresh teal
   ========================================================================== */

:root {
  --bg:        #0d1117;
  --bg-soft:   #131a24;
  --surface:   #ffffff;
  --surface-2: #f6f8fb;
  --ink:       #10161f;
  --ink-soft:  #45505f;
  --line:      #e6eaf0;
  --amber:     #e0a73e;
  --amber-dk:  #c98f22;
  --teal:      #14b8a6;
  --teal-dk:   #0e8b7e;
  --white:     #ffffff;
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 18px 50px -20px rgba(13, 17, 23, .35);
  --shadow-sm: 0 8px 24px -12px rgba(13, 17, 23, .25);
  --maxw:      1180px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --font:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --head:      'Sora', 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--bg); color: #d7deea; }
.section--soft { background: var(--surface-2); }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--head); font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-dk); margin-bottom: 16px;
}
.section--dark .eyebrow { color: var(--amber); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }

.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; }
.section--dark .section-head p { color: #9aa6b8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head); font-weight: 600; font-size: .96rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: linear-gradient(135deg, var(--amber), var(--amber-dk)); color: #21160a; box-shadow: 0 12px 26px -12px rgba(224,167,62,.75); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(224,167,62,.9); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-3px); }
.btn--outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--teal); color: var(--teal-dk); transform: translateY(-3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.site-header.scrolled { background: rgba(255,255,255,.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding: 12px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; color: #fff; }
.site-header.scrolled .brand { color: var(--ink); }
.brand .mark {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--amber), var(--teal)); color: #10161f; font-weight: 800;
  box-shadow: 0 8px 20px -8px rgba(224,167,62,.6);
}
.brand b { color: var(--amber); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-family: var(--head); font-weight: 500; font-size: .95rem; color: rgba(255,255,255,.85);
  padding: 9px 15px; border-radius: 999px; transition: color .2s, background .2s;
}
.site-header.scrolled .nav-links a { color: var(--ink-soft); }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.12); }
.site-header.scrolled .nav-links a:hover, .site-header.scrolled .nav-links a.active { color: var(--teal-dk); background: rgba(20,184,166,.1); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto; border-radius: 2px; transition: .3s; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(224,167,62,.22), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(20,184,166,.20), transparent 55%),
    linear-gradient(160deg, #0b1220 0%, #0d1117 55%, #10171f 100%);
  color: #fff; overflow: hidden; padding: 140px 0 80px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 50% 40%, #000, transparent 78%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: .84rem; margin-bottom: 24px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(20,184,166,.25); }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin-bottom: 22px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--amber), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.16rem; color: #b6c1d1; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--head); font-size: 2rem; display: block; color: #fff; }
.hero-stats .stat span { font-size: .86rem; color: #8f9cb0; }

/* Hero visual — stylized vending machine */
.hero-visual { position: relative; display: grid; place-items: center; }
.machine {
  width: 300px; height: 420px; border-radius: 26px; position: relative;
  background: linear-gradient(160deg, #1b2432, #10161f); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08);
  animation: float 6s ease-in-out infinite;
}
.machine .screen {
  position: absolute; inset: 22px 22px auto 22px; height: 150px; border-radius: 16px;
  background: linear-gradient(150deg, rgba(224,167,62,.28), rgba(20,184,166,.28)); border: 1px solid rgba(255,255,255,.12);
  display: grid; place-items: center; overflow: hidden;
}
.machine .screen::before { content: "☕"; font-size: 3.4rem; filter: drop-shadow(0 6px 14px rgba(0,0,0,.4)); }
.machine .rows { position: absolute; left: 22px; right: 22px; top: 192px; bottom: 74px; display: grid; grid-template-columns: repeat(3,1fr); grid-auto-rows: 1fr; gap: 10px; }
.machine .rows i { border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
.machine .tray { position: absolute; left: 22px; right: 22px; bottom: 22px; height: 40px; border-radius: 11px; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.08); }
.machine .pad { position: absolute; right: -14px; top: 60px; width: 56px; height: 120px; border-radius: 14px; background: linear-gradient(160deg,#232f40,#141b26); border: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow-sm); }
.floaty { position: absolute; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.95); color: var(--ink); font-family: var(--head); font-weight: 600; font-size: .84rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 9px; }
.floaty small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .74rem; }
.floaty.one { top: 40px; left: -30px; animation: float 5s ease-in-out infinite; }
.floaty.two { bottom: 60px; right: -34px; animation: float 5s ease-in-out .8s infinite; }
.floaty .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg,var(--teal),var(--teal-dk)); color: #fff; }
.floaty.one .ic { background: linear-gradient(135deg,var(--amber),var(--amber-dk)); color:#21160a; }

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

/* ---------- Marquee / trust strip ---------- */
.trust { border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); padding: 26px 0; background: var(--bg); color: #7f8ca0; }
.trust .container { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; }
.trust span { font-family: var(--head); font-weight: 600; letter-spacing: .04em; opacity: .8; font-size: .98rem; }

/* ---------- Feature cards grid ---------- */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2,1fr); }
.grid.cols-3 { grid-template-columns: repeat(3,1fr); }
.grid.cols-4 { grid-template-columns: repeat(4,1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(20,184,166,.15), rgba(224,167,62,.15)); color: var(--teal-dk);
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* solution / product card with visual header */
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pcard .thumb { height: 190px; display: grid; place-items: center; font-size: 3.2rem; position: relative; overflow: hidden; background: #0d1117; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pcard:hover .thumb img { transform: scale(1.06); }
.pcard .thumb.g1 { background: linear-gradient(140deg,#1b2432,#0d1117); }
.pcard .thumb.g2 { background: linear-gradient(140deg,#e0a73e,#c98f22); }
.pcard .thumb.g3 { background: linear-gradient(140deg,#14b8a6,#0e8b7e); }
.pcard .thumb.g4 { background: linear-gradient(140deg,#334155,#1e293b); }
.pcard .thumb.g5 { background: linear-gradient(140deg,#8b5cf6,#6d28d9); }
.pcard .thumb.g6 { background: linear-gradient(140deg,#f97316,#c2410c); }
.pcard .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.pcard .tag { align-self: flex-start; font-family: var(--head); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dk); background: rgba(20,184,166,.1); padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.pcard h3 { font-size: 1.18rem; margin-bottom: 9px; }
.pcard p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 16px; flex: 1; }
.pcard .more { font-family: var(--head); font-weight: 600; font-size: .9rem; color: var(--teal-dk); display: inline-flex; align-items: center; gap: 7px; }
.pcard .more svg { width: 16px; height: 16px; transition: transform .25s; }
.pcard:hover .more svg { transform: translateX(4px); }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .visual { border-radius: var(--radius); padding: 40px; background: linear-gradient(150deg,#131a24,#0d1117); color:#fff; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.split .visual::before { content:""; position:absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(224,167,62,.4), transparent 70%); top: -80px; right: -60px; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; position: relative; z-index: 2; }
.mini-stats .m { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 22px; }
.mini-stats .m b { font-family: var(--head); font-size: 1.9rem; color: var(--amber); display: block; }
.mini-stats .m span { font-size: .84rem; color:#a9b4c4; }

.checklist { display: grid; gap: 14px; margin-top: 8px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.checklist li .ck { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(20,184,166,.14); color: var(--teal-dk); }
.checklist li .ck svg { width: 15px; height: 15px; }
.checklist li b { color: var(--ink); font-family: var(--head); }

/* ---------- Steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 12px; }
.step .num { font-family: var(--head); font-weight: 800; font-size: 1.1rem; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--ink); color: #fff; margin-bottom: 18px; }
.section--dark .step .num { background: linear-gradient(135deg,var(--amber),var(--amber-dk)); color:#21160a; }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .95rem; }
.section--dark .step p { color:#9aa6b8; }

/* ---------- Sectors ---------- */
.sectors { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.sector { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-family: var(--head); font-weight: 600; transition: .25s; }
.sector:hover { border-color: var(--teal); background: var(--surface-2); transform: translateY(-3px); }
.sector .si { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(224,167,62,.16), rgba(20,184,166,.16)); color: var(--teal-dk); flex: none; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg,#0d1117,#141b26); color:#fff; border-radius: 26px; padding: 62px 56px; box-shadow: var(--shadow); }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(600px 300px at 85% 20%, rgba(224,167,62,.28), transparent 60%), radial-gradient(500px 300px at 10% 90%, rgba(20,184,166,.24), transparent 55%); }
.cta-band .inner { position: relative; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:34px; flex-wrap:wrap; }
.cta-band h2 { font-size: clamp(1.7rem,3.2vw,2.4rem); margin-bottom: 10px; }
.cta-band p { color:#b6c1d1; max-width: 460px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(224,167,62,.16), rgba(20,184,166,.16)); color: var(--teal-dk); }
.info-row .ic svg { width: 22px; height: 22px; }
.info-row h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 4px; font-family: var(--head); }
.info-row a, .info-row p { color: var(--ink); font-weight: 500; }
.info-row a:hover { color: var(--teal-dk); }

form.lead-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--head); font-weight: 600; font-size: .86rem; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: var(--surface-2); transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: 6px; }

.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; overflow: hidden; background: var(--surface); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 24px; font-family: var(--head); font-weight: 600; font-size: 1.04rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); }
.faq-q .plus { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; transition: .3s; font-size: 1.2rem; }
.faq-item.open .plus { transform: rotate(45deg); background: var(--teal); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 24px 22px; color: var(--ink-soft); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 160px 0 70px; background:
    radial-gradient(700px 400px at 85% -20%, rgba(224,167,62,.18), transparent 60%),
    radial-gradient(600px 400px at 5% 120%, rgba(20,184,166,.16), transparent 55%),
    linear-gradient(160deg,#0b1220,#0d1117); color:#fff; text-align:center; }
.page-hero h1 { font-size: clamp(2.1rem,4.6vw,3.2rem); margin-bottom: 14px; }
.page-hero p { color:#b6c1d1; max-width: 620px; margin-inline:auto; font-size: 1.08rem; }
.crumbs { display:flex; gap:8px; justify-content:center; margin-bottom:22px; font-size:.86rem; color:#8f9cb0; }
.crumbs a:hover { color: var(--amber); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); color: #93a0b4; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.site-footer .brand { color:#fff; margin-bottom: 18px; }
.site-footer p { font-size: .95rem; max-width: 320px; }
.footer-col h4 { color:#fff; font-size: .95rem; margin-bottom: 18px; font-family: var(--head); }
.footer-col a { display: block; padding: 6px 0; font-size: .94rem; transition: color .2s; }
.footer-col a:hover { color: var(--amber); }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color:#c7d0dd; transition: .25s; }
.socials a:hover { background: linear-gradient(135deg,var(--amber),var(--teal)); color:#10161f; transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display:flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid.cols-3, .grid.cols-4, .steps, .sectors { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 68px 0; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: 16px; right: 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); gap: 4px;
  }
  .nav-links.open a { color: var(--ink); width: 100%; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .steps, .sectors, .form-row, .footer-grid, .mini-stats { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 26px; }
  .hero-stats { gap: 22px; }
}
