/* =========================================================
   Zetavek IT Solutions — stylesheet
   Mobile-first, responsive (mobile / tablet / desktop)
   ========================================================= */

:root {
  --navy: #0a2540;
  --navy-2: #0d2f54;
  /* Brand teal. --blue is the AA-compliant teal for text/links/icons (~4.9:1 on white). */
  --blue: #0a7d83;
  --blue-600: #0a6f8f;
  --teal: #1cc0ad;          /* brighter teal — decorative surfaces only, never text */
  --green: #22c55e;

  --ink: #0f172a;
  --muted: #51607a;
  --line: #e6eaf2;
  --bg: #ffffff;
  --bg-alt: #f5f8fd;
  --white: #ffffff;

  /* Both stops keep white button labels at >=4.5:1 (WCAG 1.4.3) */
  --grad: linear-gradient(120deg, #0a7d83 0%, #0a6f8f 100%);

  --shadow-sm: 0 1px 2px rgba(10, 37, 64, .06), 0 2px 6px rgba(10, 37, 64, .06);
  --shadow-md: 0 8px 30px rgba(10, 37, 64, .10);
  --shadow-lg: 0 18px 50px rgba(10, 37, 64, .16);

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1140px;

  --ff-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;

  --header-h: 70px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--navy); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 12px; }
/* Navy ring reads on white, on teal buttons (6.8:1) and any light surface */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.site-footer :focus-visible { outline-color: #fff; }

/* Screen-reader-only text */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* Inline form validation */
.field-error { display: block; color: #b91c1c; font-size: .82rem; margin-top: .35rem; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #dc2626; }

.eyebrow {
  display: inline-block; font-family: var(--ff-head); font-weight: 700;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .6rem;
}
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--ff-head); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(14, 154, 161, .28); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(14, 154, 161, .38); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: .55rem 1.1rem; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 46px; width: auto; display: block; }
.brand-logo-footer { height: 50px; }
/* Centered logo for standalone pages (e.g. 404) */
.section-head .brand-logo { display: inline-block; height: 56px; margin: 0 auto 1.5rem; }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: .35rem; }
.nav-menu a {
  font-family: var(--ff-head); font-weight: 600; color: var(--navy);
  padding: .5rem .8rem; border-radius: 8px; font-size: .98rem;
}
.nav-menu a:hover { background: var(--bg-alt); text-decoration: none; color: var(--blue); }
.nav-menu .nav-cta { color: #fff; }
.nav-menu .nav-cta:hover { background: var(--grad); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; padding: 10px; border-radius: 10px;
}
.nav-toggle span { display: block; height: 2.5px; width: 100%; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(18, 181, 166, .14), transparent 60%),
    radial-gradient(55% 60% at 10% 10%, rgba(14, 154, 161, .12), transparent 60%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 2rem; }

.hero-stats { display: flex; gap: clamp(1rem, 4vw, 2.5rem); flex-wrap: wrap; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--ff-head); font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.hero-stats span { font-size: .86rem; color: var(--muted); margin-top: .25rem; }

/* Hero visual — framed real photo with floating badge */
.hero-visual { display: flex; justify-content: center; }
.hero-photo { position: relative; width: min(440px, 100%); }
.hero-photo picture { display: block; }
.hero-photo img {
  display: block; width: 100%; height: auto; border-radius: 20px; object-fit: cover;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); aspect-ratio: 3 / 2;
}
.hero-photo::after {
  content: ""; position: absolute; inset: -18px -18px auto auto; width: 120px; height: 120px;
  background: var(--grad); filter: blur(8px); opacity: .25; border-radius: 30px; z-index: -1;
}
.hero-badge {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); border: 1px solid var(--line);
  box-shadow: var(--shadow-md); border-radius: 999px; padding: .55rem .95rem;
  font-family: var(--ff-head); font-weight: 700; font-size: .82rem; color: var(--navy);
  animation: float 4.5s ease-in-out infinite;
}
.hero-badge-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-badge { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-sub { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.1rem); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Service cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(14, 154, 161, .35); }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(14, 154, 161, .1); color: var(--blue); margin-bottom: 1.1rem;
}
.card-icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); margin-bottom: 0; }

.platforms { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2.4rem; }
.platforms-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.platforms-list { display: flex; flex-wrap: wrap; gap: .7rem 1rem; }
.platforms-list li {
  font-family: var(--ff-head); font-weight: 700; color: var(--navy);
  padding: .5rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
}

/* ---------- Domain cards ---------- */
.domain-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.domain-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.domain-art { height: 130px; display: grid; place-items: center; color: #fff; }
.domain-art svg { width: 56px; height: 56px; }
.domain-agri   { background: linear-gradient(135deg, #16a34a, #65d486); }
.domain-aqua   { background: linear-gradient(135deg, #0ea5b7, #4fd1e6); }
.domain-health { background: linear-gradient(135deg, #6366f1, #a78bfa); }
.domain-card h3 { padding: 1.2rem 1.4rem 0; }
.domain-card p  { padding: 0 1.4rem 1.5rem; color: var(--muted); margin: .4rem 0 0; }

/* ---------- Story ---------- */
.story-top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.story-photo img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.story-copy .section-sub { color: var(--muted); }

/* ---------- Mission / Vision ---------- */
.mv-grid { gap: 1.6rem; }
.mv-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-sm); position: relative;
}
.mv-card::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px; border-radius: 4px; background: var(--grad); }
.mv-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(18, 181, 166, .12); color: var(--blue); margin-bottom: 1rem; }
.mv-icon svg { width: 28px; height: 28px; }
.mv-card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Clients ---------- */
.client-logos { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; align-items: stretch; }
.client-logos li {
  display: grid; place-items: center; padding: 1.4rem 2rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); min-width: 180px; min-height: 120px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.client-logos li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.client-logos img { max-height: 72px; max-width: 200px; width: auto; height: auto; object-fit: contain; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-details { margin-top: 1.6rem; display: grid; gap: 1rem; }
.contact-details li { display: flex; align-items: center; gap: .8rem; font-size: 1.05rem; }
.contact-details .ci { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-alt); display: grid; place-items: center; color: var(--blue); font-size: 1.1rem; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--ff-head); font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: .4rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; background: #fcfdff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(14, 154, 161, .15); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { margin: .9rem 0 0; font-size: .92rem; min-height: 1.2em; }
.form-note.ok { color: #15803d; }
.form-note.err { color: #b91c1c; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c7d4e6; margin-top: 1rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: clamp(2.5rem, 5vw, 3.5rem) 20px; }
.footer-brand p { margin-top: .9rem; max-width: 34ch; color: #9fb1c9; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-nav li, .footer-contact li { margin-bottom: .35rem; }
.footer-nav a, .footer-contact a { color: #c7d4e6; display: inline-block; padding: .25rem 0; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; padding-top: 1.2rem; padding-bottom: 1.2rem; }
.footer-bottom p { margin: 0; font-size: .9rem; color: #9fb1c9; }
.to-top { color: #c7d4e6; font-family: var(--ff-head); font-weight: 600; font-size: .9rem; display: inline-block; padding: .4rem .2rem; }
.to-top:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =========================================================
   RESPONSIVE — Tablet
   ========================================================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-visual { order: 1; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-stats { display: inline-flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 .card:last-child, .grid-3 .domain-card:last-child { grid-column: 1 / -1; max-width: 520px; margin: 0 auto; width: 100%; }

  /* Collapse nav to overlay menu (kept in sync with JS navMq) */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: #fff; padding: 1rem 20px 1.5rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .3s ease; visibility: hidden;
  }
  .nav-menu.open { transform: translateY(0); visibility: visible; }
  .nav-menu a { padding: .85rem 1rem; font-size: 1.05rem; border-radius: 10px; }
  .nav-menu .nav-cta { margin-top: .5rem; text-align: center; background: var(--grad); }
}

/* =========================================================
   RESPONSIVE — Mobile
   ========================================================= */
@media (max-width: 720px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 .card:last-child, .grid-3 .domain-card:last-child { max-width: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .story-top { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-stats { gap: 1.4rem; }
  .btn { width: 100%; }
  .hero-actions .btn { width: auto; flex: 1 1 auto; }
}

@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .hero-stats strong { font-size: 1.7rem; }
  .client-logos li { min-width: 120px; padding: .85rem 1.5rem; }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  .site-header, .nav-toggle, .hero-bg, .hero-badge, .to-top, .contact-form { display: none !important; }
  * { box-shadow: none !important; backdrop-filter: none !important; }
  body { color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-footer { background: #fff; color: #000; border-top: 1px solid #ccc; }
  .site-footer h3, .footer-nav a, .footer-contact a, .footer-bottom p, .footer-brand p { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
  .section, .hero { padding: 1rem 0; }
}
