/* =========================================================
   Zenterrix Technologies — styles (light, card-based)
   ========================================================= */

:root {
  /* Brand colours (from the logo) */
  --navy-900: #0B1D45;
  --navy-700: #1E3A7B;
  --blue-600: #1670B3;   /* buttons with white text (AA) */
  --blue-500: #2A9BD6;   /* logo sky blue: icons, accents */
  --blue-50:  #EAF5FC;
  --green-600: #23803A;
  --green-50: #E8F5EB;

  /* Neutrals */
  --ink: #0F1B33;
  --ink-soft: #4A5568;
  --grey-50: #F5F7FA;
  --grey-100: #EDF1F6;
  --line: #E2E8F0;
  --white: #FFFFFF;

  --error: #B42318;
  --focus: #2A9BD6;

  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(15,27,51,.04), 0 8px 24px rgba(15,27,51,.07);
  --shadow-lg: 0 2px 4px rgba(15,27,51,.05), 0 18px 48px rgba(15,27,51,.12);
  --header-h: 76px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0; letter-spacing: -0.01em; text-wrap: balance; color: var(--ink); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.1875rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--blue-600); }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--s7) 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--blue-50); color: var(--blue-600);
}

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--navy-900); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- Buttons (pills) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 999px;
  cursor: pointer; touch-action: manipulation;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn-sm { min-height: 44px; padding: 9px 18px; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 1.0625rem; }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(15,27,51,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { height: 46px; width: auto; }
.brand-word { height: 28px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 24px; }
.site-nav ul a {
  text-decoration: none; font-weight: 500; font-size: .975rem; color: var(--ink);
  padding: 8px 0; border-bottom: 2px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.site-nav ul a:hover { color: var(--blue-600); }
.site-nav ul a.is-active { color: var(--blue-600); border-color: var(--blue-500); }
.nav-actions { display: flex; gap: 10px; }

.nav-toggle {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; color: var(--navy-900); cursor: pointer;
}

/* ---------- Hero carousel ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% 40%, rgba(42,155,214,.12), transparent 70%),
    radial-gradient(600px 300px at 10% 100%, rgba(35,128,58,.06), transparent 70%),
    var(--white);
  padding: var(--s6) 0 var(--s5);
}
.hero-slide { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--s6); align-items: center; min-height: 440px; }
.hero-slide[hidden] { display: none; }
.hero-copy h2 {
  font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.375rem);
  font-weight: 600; line-height: 1.1; letter-spacing: -0.025em;
}
.hero-copy p { margin-top: var(--s3); font-size: 1.1875rem; color: var(--ink-soft); max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s4); }
.hero-media img {
  width: 100%; aspect-ratio: 16 / 11; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.hero-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: var(--s5); }
.hero-dots { display: flex; gap: 4px; }
.hero-dot {
  width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.hero-dot::before {
  content: ""; width: 10px; height: 10px; border-radius: 999px; background: #C3CCD8;
  transition: width .25s var(--ease), background-color .25s var(--ease);
}
.hero-dot[aria-current="true"]::before { width: 26px; background: var(--blue-600); }
.hero-pause {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.hero-pause .icon { width: 16px; height: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-active .hero-copy, .hero-slide.is-active .hero-media { animation: fade-in .6s var(--ease); }
}
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Intro statement + tabs ---------- */
.intro { padding-top: var(--s7); }
.intro-title {
  text-align: center; max-width: 24ch; margin: 0 auto;
  font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem); line-height: 1.18;
}
.tabs {
  position: relative; z-index: 2;
  display: flex; justify-content: center; gap: 4px; width: fit-content; max-width: 100%;
  margin: var(--s5) auto 0; padding: 6px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
  transform: translateY(50%);
}
.tab {
  min-height: 44px; padding: 10px 22px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 600 .975rem/1.2 var(--font-body); color: var(--ink-soft);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--blue-600); color: #fff; }
.tab-band { background: var(--grey-50); padding: calc(var(--s6) + 24px) 0 var(--s7); }
.tab-panel[hidden] { display: none; }
.tab-panel:focus-visible { outline-offset: 8px; border-radius: var(--radius); }

.about-card { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.about-copy { padding: var(--s5); display: flex; flex-direction: column; justify-content: center; }
.about-copy h3 { font-size: 1.75rem; }
.about-copy p { margin-top: var(--s2); color: var(--ink-soft); }
.about-copy .about-strong { color: var(--ink); font-weight: 600; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s4); }
.about-img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.step { display: flex; gap: var(--s4); align-items: center; padding: var(--s4) var(--s5) var(--s4) var(--s4); }
.step-num {
  flex-shrink: 0; width: 88px;
  font-family: var(--font-head); font-weight: 700; font-size: 3.25rem; line-height: 1; color: var(--navy-900); text-align: center;
}
.step p { margin-top: 6px; color: var(--ink-soft); font-size: 1rem; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.why-item { padding: var(--s4); }
.why-item h3 { margin-top: var(--s3); }
.why-item p { margin-top: 8px; color: var(--ink-soft); font-size: 1rem; }
.card-dark { background: var(--navy-900); border-color: var(--navy-900); }
.card-dark h3 { color: #fff; }
.card-dark p { color: #C9D3E6; }
.card-dark .icon-badge { background: rgba(255,255,255,.1); color: #7DD38A; }

/* ---------- Section heads ---------- */
.section-head { max-width: 640px; margin-bottom: var(--s5); }
.section-head p { margin-top: 12px; color: var(--ink-soft); font-size: 1.125rem; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.service { display: flex; flex-direction: column; overflow: hidden; padding: 10px; }
.service img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.service-body { display: flex; flex-direction: column; flex: 1; padding: var(--s3) 12px 12px; }
.service-body > p { margin-top: 10px; color: var(--ink-soft); font-size: .975rem; }
.ticks { margin-top: var(--s2); display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 24px; font-size: .95rem; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px;
  border-left: 2px solid var(--green-600); border-bottom: 2px solid var(--green-600); transform: rotate(-45deg);
}
.more-link {
  margin-top: auto; padding-top: var(--s3);
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none;
}
.more-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; background: var(--blue-600); color: #fff;
  transition: background-color .2s var(--ease);
}
.more-icon .icon { width: 18px; height: 18px; }
.more-link:hover { color: var(--blue-600); }
.more-link:hover .more-icon { background: var(--navy-700); }

/* ---------- CTA banner ---------- */
.cta-wrap { padding-bottom: var(--s7); }
.cta-banner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap;
  padding: var(--s5) var(--s6);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(11,29,69,.97) 0%, rgba(11,29,69,.9) 50%, rgba(11,29,69,.55) 100%),
    url("../assets/img/cloud-security.jpg") center right / cover no-repeat,
    var(--navy-900);
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); }
.cta-banner p { margin-top: 10px; color: #C9D3E6; max-width: 52ch; }

/* ---------- Industries ---------- */
.industries { background: var(--grey-50); }
/* Industries carousel: slides, image frame and controls come from the hero slider styles */
.industry-carousel .hero-copy h3 {
  font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.375rem);
  font-weight: 600; line-height: 1.1; letter-spacing: -0.025em;
}
.industry-carousel .hero-copy p { margin-top: var(--s3); font-size: 1.1875rem; color: var(--ink-soft); max-width: 48ch; }
.industry-slides { touch-action: pan-y; }
.carousel-arrow .icon { width: 18px; height: 18px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s6); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { color: var(--blue-600); transition: transform .2s var(--ease); }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list summary:hover { color: var(--blue-600); }
.faq-list details p { padding: 0 4px 22px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Contact ---------- */
.contact { background: var(--grey-50); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s6); align-items: start; }
.contact-info > p { margin-top: 12px; color: var(--ink-soft); font-size: 1.125rem; max-width: 44ch; }
.contact-options { margin-top: var(--s4); display: grid; gap: 12px; }
.contact-option { display: flex; gap: 16px; align-items: center; padding: 16px 20px; }
.contact-option h3 { font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.contact-option a, .contact-option p { font-weight: 500; color: var(--ink); text-decoration: none; }
.contact-option a:hover { color: var(--blue-600); text-decoration: underline; }
.contact-option .contact-note { margin-top: 2px; font-weight: 400; font-size: .95rem; color: var(--ink-soft); }
/* let long text (e.g. the email address) wrap instead of widening the cards on small phones */
.contact-grid > * { min-width: 0; }
.contact-option > div { min-width: 0; overflow-wrap: anywhere; }
.contact-option .icon-badge { flex-shrink: 0; }

.contact-form { display: grid; gap: var(--s3); padding: var(--s5); }
.contact-form > h3 { font-size: 1.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.req { font-weight: 400; color: var(--ink-soft); font-size: .875rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid #B4C0D0; border-radius: var(--radius-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(42,155,214,.3); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .9rem; font-weight: 500; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 500; border-left: 4px solid; }
.form-status.is-success { background: var(--green-50); border-color: var(--green-600); color: #14532D; }
.form-status.is-error { background: #FDECEA; border-color: var(--error); color: #7A1A12; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding-top: var(--s6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1.3fr 1fr 1.3fr; gap: var(--s5); }
.footer-brand img { width: 110px; }
.footer-brand p { margin-top: var(--s2); color: var(--ink-soft); font-size: .975rem; max-width: 34ch; }
.footer-title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { display: grid; gap: 10px; font-size: .975rem; color: var(--ink-soft); }
.site-footer ul a { color: var(--ink-soft); text-decoration: none; }
.site-footer ul a:hover { color: var(--blue-600); text-decoration: underline; }
.footer-bottom { margin-top: var(--s5); font-size: .9rem; color: var(--ink-soft); }
.footer-bottom p { padding: var(--s3) 0; border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-nav { gap: 20px; }
  .site-nav ul { gap: 16px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: var(--s2);
    padding: var(--s2) 24px var(--s3);
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(15,27,51,.08);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a.is-active { border-bottom-color: var(--line); }
  .nav-actions { flex-direction: column; }
  .nav-actions .btn { width: 100%; min-height: 48px; }

  .hero-slide { grid-template-columns: 1fr; gap: var(--s4); min-height: 0; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 9; }

  .why-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .about-card { grid-template-columns: 1fr; }
  .about-img { min-height: 0; aspect-ratio: 16 / 9; order: -1; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .section { padding: var(--s6) 0; }
  .container { padding: 0 16px; }
  .brand-mark { height: 38px; }
  .brand-word { height: 22px; }
  .site-nav { padding: var(--s1) 16px var(--s3); }

  .hero { padding-top: var(--s4); }
  .hero-actions .btn { width: 100%; }

  .intro { padding-top: var(--s6); }
  .tabs { gap: 0; padding: 4px; }
  .tab { padding: 10px 12px; font-size: .875rem; }
  .tab-band { padding: calc(var(--s5) + 24px) 0 var(--s6); }
  .about-copy { padding: var(--s4) var(--s3); }
  .step { flex-direction: column; align-items: flex-start; gap: 12px; padding: var(--s3); }
  .step-num { width: auto; font-size: 2.5rem; text-align: left; }

  .service-grid, .why-grid { grid-template-columns: 1fr; }
  .cta-wrap { padding-bottom: var(--s6); }
  .cta-banner { padding: var(--s4) var(--s3); }
  .cta-banner .btn { width: 100%; }

  .contact-form { padding: var(--s3); }
  .field-row { grid-template-columns: 1fr; }
  .contact-form .btn { justify-self: stretch; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s4); }
}

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