/* Ziggy Tech Cloud Solutions */

:root {
  /* Identidade visual Ziggy */
  --porcelain: #F4F2ED;
  --midnight: #101827;
  --blue: #146CFF;
  --vermilion: #F04438;

  --accent: var(--vermilion);
  --navy: var(--midnight);
  --navy-hover: #26324A;
  --navy-line: #2A3448;
  --bg: var(--porcelain);
  --white: #FFFFFF;
  --text-soft: #3E4554;
  --text-muted: #5B6170;
  --on-navy-soft: #C7CCD6;
  --on-navy-muted: #9AA2B1;
  --line: #E4E0D7;
  --line-strong: #C9C3B6;
  --dash: #D8D3C8;
  --focus: var(--blue);
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

h1, h2, h3, p, ul, ol { margin: 0; }

a { color: var(--navy); }
a:hover { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--bg);
  border-radius: 6px;
  z-index: 10;
}
.skip-link:focus { top: 16px; color: var(--bg); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.stack { display: flex; flex-direction: column; }

/* Type */

.display {
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.03em;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.02em;
}

.lead { font-size: 20px; color: var(--text-soft); }
.soft { color: var(--text-soft); }

.section-head { display: flex; flex-direction: column; gap: 16px; }
.section-head p { max-width: 38em; }

/* Spaced uppercase label, as in the brand board */
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 48px;
  height: 1px;
  margin-left: 14px;
  background: currentColor;
}

/* Buttons */

.btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--navy); color: var(--bg); }
.btn-primary:hover { background: var(--navy-hover); color: var(--bg); }
.btn-outline { border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--bg); }
.btn-blue { background: var(--blue); color: var(--white); font-weight: 700; font-size: 18px; padding: 18px 28px; }
.btn-blue:hover { background: #3D86FF; color: var(--white); }
.btn-light-outline { border: 2px solid var(--bg); color: var(--bg); }
.btn-light-outline:hover { background: var(--bg); color: var(--navy); }

/* Header */

.site-header {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}
.brand:hover { color: var(--navy); }
.brand-mark { width: 52px; height: auto; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 34px; line-height: 0.9; font-weight: 800; letter-spacing: -0.035em; }
.brand-sub { margin-top: 6px; font-size: 9.5px; line-height: 1; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 16px;
}
.nav a { text-decoration: none; padding: 10px 0; }
.nav .btn { padding: 12px 20px; font-size: 16px; }
.nav a:not(.btn):hover { color: var(--blue); }
.nav .lang {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
}

@media (max-width: 640px) {
  .nav-secondary { display: none; }
}

/* Hero */

.hero {
  padding-top: 72px;
  padding-bottom: 120px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
}
.hero-copy { flex: 1 1 560px; min-width: 0; gap: 28px; }
.hero h1 { font-size: clamp(44px, 6.2vw, 84px); line-height: 0.98; }
.hero .lead { max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

.case-card {
  flex: 1 1 340px;
  min-width: 0;
  max-width: 440px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 1px 0 var(--dash), 0 24px 48px -24px rgba(15, 39, 66, 0.35);
  padding: 32px 32px 28px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.case-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 2px dashed var(--dash);
}
.case-title { font-weight: 800; font-stretch: 112%; font-size: 19px; }
.case-label { color: var(--text-muted); font-size: 14px; }
.case-rows { margin: 0; padding: 20px 0; display: flex; flex-direction: column; gap: 14px; }
.case-rows div { display: flex; justify-content: space-between; gap: 16px; }
.case-rows dt { color: var(--text-muted); }
.case-rows dd { margin: 0; text-align: right; }
.case-foot {
  border-top: 2px dashed var(--dash);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.case-foot .label { color: var(--text-muted); }
.highlight {
  align-self: flex-start;
  background: var(--vermilion);
  color: var(--white);
  padding: 2px 10px;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.02em;
}
.case-foot .note { font-size: 15px; color: var(--text-soft); }

/* Sections */

.band-white { background: var(--white); }
.band-navy { background: var(--navy); color: var(--bg); }

.section { padding-top: 112px; padding-bottom: 112px; }
.section-flush-bottom { padding-bottom: 0; }

/* Video */

.video-section { gap: 32px; padding-bottom: 120px; }
.video-frame {
  position: relative;
  background: var(--midnight);
  clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 48px, 100% 100%, 48px 100%, 0 calc(100% - 48px));
}
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.video-play {
  position: absolute;
  left: clamp(16px, 4vw, 48px);
  bottom: clamp(16px, 4vw, 48px);
  height: 64px;
  padding: 0 26px 0 20px;
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: var(--vermilion);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  transition: background-color .15s, transform .15s;
}
.video-play[hidden] { display: none; }
.video-play svg { width: 28px; height: 28px; }
.video-play:hover { background: var(--blue); transform: translateY(-2px); }
.video-play:focus-visible { outline: 3px solid var(--white); outline-offset: -8px; }

@media (max-width: 520px) {
  .video-section { padding-bottom: 80px; }
  .video-frame { clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px)); }
  .video-play { height: 52px; padding: 0 18px 0 14px; font-size: 15px; }
}

/* Services */

.services { gap: 56px; }

.featured {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
  padding: 44px;
  border-radius: 20px;
  background: var(--navy);
  color: var(--bg);
}
.featured-copy { flex: 1 1 340px; min-width: 0; gap: 16px; }
.featured-copy h3 { font-size: 32px; line-height: 1.1; font-weight: 800; font-stretch: 112%; }
.featured-copy p { color: var(--on-navy-soft); }

.pill {
  align-self: flex-start;
  background: var(--blue);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.pill-outline { background: none; color: var(--navy); border: 1.5px solid var(--navy); padding: 2px 12px; }

.steps {
  flex: 1 1 420px;
  min-width: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.steps li { display: flex; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--navy-line); }
.steps li:last-child { padding-bottom: 0; border-bottom: 0; }
.step-num { flex: 0 0 auto; font-size: 32px; line-height: 1; font-weight: 800; font-stretch: 112%; color: var(--accent); }
.step-body { display: flex; flex-direction: column; gap: 4px; }
.step-body strong { font-weight: 700; }
.step-body span { color: var(--on-navy-soft); }

.services-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 64px;
}
.services-head .section-head { flex: 1 1 420px; }
.author-note {
  flex: 0 1 440px;
  position: relative;
  padding: 24px 28px 22px;
  background: var(--porcelain);
  border-left: 4px solid var(--vermilion);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.author-note p { font-size: 18px; color: var(--text-soft); }
.author-sign {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}
.author-sign img { width: 28px; height: auto; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}
/* Cut corner echoes the angled ends of the Ziggy mark */
.service {
  --cut: 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 28px 24px;
  background: var(--porcelain);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: background-color .2s;
}
.service:hover { background: #ECE9E1; }
.svc-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; }
.svc-icon {
  width: 68px;
  height: 60px;
  display: grid;
  place-items: center;
  background: var(--midnight);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: transform .2s;
}
.svc-icon svg { width: 36px; height: 36px; }
.service:hover .svc-icon { transform: translateY(-3px); }
.svc-num {
  margin-right: 14px;
  font-size: 44px;
  line-height: 1;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-strong);
}
.service h3 { font-size: 22px; line-height: 1.2; font-weight: 800; }
.service p { color: var(--text-soft); }
.service ul { padding: 0; list-style: none; font-size: 16px; margin-top: auto; }
.service li { position: relative; padding: 7px 0 7px 22px; border-top: 1px solid var(--line); }
.service li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 11px;
  height: 5px;
  margin-top: -2px;
  background: var(--blue);
  transform: skewX(-40deg);
}
.service li:nth-child(even)::before { background: var(--vermilion); }

/* Formats */

.formats { gap: 48px; }
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}
.format-card { display: flex; flex-direction: column; gap: 12px; padding: 32px; background: var(--white); border-radius: 16px; }
.format-card h3 { font-size: 24px; line-height: 1.2; font-weight: 800; font-stretch: 112%; }
.format-card p { color: var(--text-soft); }

/* Experience */

.experience { gap: 48px; }
.exp-list { padding: 0; list-style: none; border-bottom: 1px solid var(--line-strong); }
.exp-item {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
  padding: 32px 0;
  border-top: 1px solid var(--line-strong);
}
.exp-item { padding: 40px 0; }
.exp-who { flex: 0 1 340px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.exp-name { font-size: 30px; line-height: 1.1; font-weight: 800; font-stretch: 112%; }
.exp-logos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.logo-tile {
  height: 64px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 1px 0 var(--dash);
  display: flex;
  align-items: center;
}
.logo-tile img { height: 100%; width: auto; max-width: 150px; object-fit: contain; }
.logo-tile--fill { width: 64px; padding: 0; overflow: hidden; }
.logo-tile--fill img { width: 100%; max-width: none; object-fit: cover; }
.exp-body { flex: 1 1 420px; min-width: 0; max-width: 40em; display: flex; flex-direction: column; gap: 14px; }
.exp-intro { font-size: 16px; color: var(--text-muted); }

.cloud-tags { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.cloud-tags li {
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}
.cloud-tags--lg { margin-top: 8px; }
.cloud-tags--lg li { padding: 8px 16px; font-size: 15px; background: var(--midnight); color: var(--white); border-color: var(--midnight); border-radius: 999px; }

/* About */

.about { display: flex; flex-wrap: wrap; gap: 56px 72px; align-items: flex-start; }
.photo-frame {
  flex: 0 1 380px;
  min-width: 0;
  margin: 0 22px 22px 0;
  position: relative;
  isolation: isolate;
}
/* Offset brand-colored block behind the photo */
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  z-index: -1;
  background: var(--blue);
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
}
.photo-frame::after {
  content: "";
  position: absolute;
  left: -14px;
  top: 28px;
  width: 28px;
  height: 90px;
  background: var(--vermilion);
  transform: skewY(-40deg);
}
.photo-frame figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  background: var(--midnight);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.photo {
  aspect-ratio: 4 / 5;
  border: 10px solid var(--white);
  box-shadow: 0 0 0 2px var(--midnight);
  background: var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  overflow: hidden;
  border-radius: 2px;
}
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about-copy { flex: 1 1 480px; min-width: 0; gap: 24px; }
.about-copy > p { max-width: 36em; }
.certs { gap: 12px; margin-top: 8px; }
.certs h3 { font-size: 18px; font-weight: 700; }
.cert-list {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 10px 32px;
  font-size: 16px;
}
.cert-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* Contact */

.band-navy { position: relative; overflow: hidden; }
.contact-art {
  position: absolute;
  right: -140px;
  top: -60px;
  width: 560px;
  opacity: 0.18;
  pointer-events: none;
}
.contact, .site-footer a { color: inherit; }
.site-footer a:hover { color: var(--white); }
.site-footer { position: relative; }
.contact {
  padding-top: 112px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-end;
  justify-content: space-between;
}
.contact-copy { flex: 1 1 560px; min-width: 0; gap: 20px; }
.contact-copy h2 { font-size: clamp(36px, 5vw, 68px); line-height: 1; }
.contact-copy p { max-width: 32em; font-size: 20px; color: var(--on-navy-soft); }
.contact-actions { flex: 0 1 360px; min-width: 0; gap: 12px; }
.contact-actions .link { text-align: center; padding: 12px 0; color: var(--on-navy-soft); font-size: 16px; }
.contact-actions .link:hover { color: var(--bg); }

.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--white); }
.site-footer {
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--navy-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 15px;
  color: var(--on-navy-muted);
}

@media (max-width: 820px) {
  .contact-art { width: 360px; right: -120px; top: -40px; }
}

@media (max-width: 520px) {
  .brand-mark { width: 42px; }
  .brand-name { font-size: 28px; }
  .featured { padding: 28px 22px; }
  .case-card { padding: 24px 22px 22px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .section-flush-bottom { padding-bottom: 0; }
  .hero { padding-top: 32px; padding-bottom: 80px; gap: 48px; }
  .exp-name { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
