/* FireOps Solutions — site styles
   Ember #D63B1A · Deep ember #A82C10 · Glow #F7A531 · Ink #17171A
   Graphite #45454D · Paper #FBFAF7 · Stone #E8E5DD · Ember tint #FFE9DF */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #FBFAF7;
  color: #17171A;
  font-family: 'Readex Pro', 'Segoe UI', Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.85;
}

main { overflow: hidden; }

a { color: #17171A; }
a:hover { color: #A82C10; }
a:focus-visible { outline: 2px solid #D63B1A; outline-offset: 3px; border-radius: 6px; }

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

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

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 32px; }
.ltr { direction: ltr; }

/* Header */
.bar {
  padding-block: 22px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 600; direction: ltr; min-height: 44px;
}
.logo svg { flex: 0 0 auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.logo-name { font-size: 22px; letter-spacing: -0.01em; }
.logo-sub { font-size: 8px; font-weight: 400; letter-spacing: 0.3em; }
.logo:hover { color: #17171A; }

nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 30px; font-size: 16px; }
nav a { text-decoration: none; padding: 10px 0; }

/* Buttons and pills */
.btn {
  display: inline-block; text-decoration: none;
  font-size: 17px; font-weight: 500;
  padding: 14px 30px; border-radius: 999px;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ember { background: #D63B1A; color: #FFFFFF; }
.btn-ember:hover { background: #A82C10; color: #FFFFFF; }
.btn-ink { background: #17171A; color: #FFFFFF; }
.btn-ink:hover { background: #2B2B31; color: #FFFFFF; }
.btn-light { background: #FFFFFF; border: 1px solid #E8E5DD; font-weight: 400; padding: 13px 28px; }
nav .btn-sm { font-size: 16px; font-weight: 400; padding: 10px 22px; }

.pill {
  font-size: 15px; background: #FFFFFF; border: 1px solid #E8E5DD;
  padding: 6px 18px; border-radius: 999px; text-decoration: none;
}

/* Hero */
.glow-host { position: relative; }
.glow {
  position: absolute; left: 50%; transform: translateX(-50%);
  filter: blur(70px); pointer-events: none;
}
.glow-contact {
  bottom: -160px; width: 1300px; max-width: 150%; height: 460px;
  background:
    radial-gradient(closest-side at 30% 55%, rgba(214,208,196,0.85), transparent),
    radial-gradient(closest-side at 55% 50%, rgba(196,190,178,0.7), transparent),
    radial-gradient(closest-side at 78% 58%, rgba(222,216,205,0.8), transparent);
}

.hero {
  position: relative; padding-top: 88px; padding-bottom: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center;
}
h1 { font-size: clamp(42px, 6.4vw, 88px); font-weight: 500; line-height: 1.25; text-wrap: balance; }
.lead { max-width: 640px; font-size: 20px; font-weight: 300; line-height: 1.9; color: #45454D; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; padding-top: 6px; }

/* Screenshot windows */
.window {
  width: 100%; background: #FFFFFF; border-radius: 16px 16px 0 0;
  box-shadow: 0 24px 60px -20px rgba(23,23,26,0.35); overflow: hidden;
}
.window img { width: 100%; }
.window-hero {
  align-self: stretch; margin-top: 44px; border-radius: 22px 22px 0 0;
  box-shadow: 0 30px 80px -20px rgba(23,23,26,0.35);
}
.dots { display: flex; gap: 7px; padding: 12px 16px; border-bottom: 1px solid #EFEDE7; direction: ltr; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #E3E0D8; }
.window-hero .dots { gap: 8px; padding: 14px 18px; }
.window-hero .dots span { width: 11px; height: 11px; }

/* Sections */
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 500; line-height: 1.3; }
.section-head p { font-size: 19px; font-weight: 300; color: #45454D; text-wrap: pretty; }

.section-systems { position: relative; padding-top: 110px; padding-bottom: 40px; }
.section-systems .section-head { padding-bottom: 16px; }

.work { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 72px; padding: 56px 0; }
.work-flip { flex-direction: row-reverse; }
.work-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.work-name { font-size: 40px; font-weight: 600; line-height: 1.2; direction: ltr; text-align: right; }
.work-for { font-size: 21px; font-weight: 500; }
.work-desc { max-width: 470px; font-weight: 300; color: #45454D; text-wrap: pretty; }
.tags { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; max-width: 470px; }
.tags li { font-size: 14px; line-height: 1.6; background: #FFFFFF; border: 1px solid #E8E5DD; padding: 4px 12px; border-radius: 999px; }
.work-shot {
  flex: 1.4 1 520px; min-width: 0; border-radius: 32px; padding: 48px 48px 0;
  display: flex; justify-content: center; overflow: hidden;
  aspect-ratio: 3 / 2;
}
.work-shot .window { height: 100%; display: flex; flex-direction: column; }
.work-shot .window img { flex: 1 1 0; min-height: 0; height: 100%; object-fit: cover; object-position: right top; }
/* Screenshot slider: slides move to the left */
.work-shot { position: relative; }
.slides {
  flex: 1 1 0; min-height: 0; display: flex; direction: ltr;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
}
.work-shot .window .slides img { flex: 0 0 100%; width: 100%; }
.work-shot .window .slides img.pos-top { object-position: center top; }
.work-shot .window .slides img.fit { object-fit: contain; object-position: center; background: #0B1F3F; }
.slide-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; direction: ltr;
  background: rgba(23,23,26,0.72); padding: 4px 8px; border-radius: 999px;
}
.slide-dots button {
  width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.slide-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.45); }
.slide-dots button[aria-current="true"]::before { background: #FFFFFF; }
.phone {
  width: 100%; max-width: 340px; height: 100%; object-fit: cover; object-position: top;
  border-radius: 22px 22px 0 0; box-shadow: 0 24px 60px -20px rgba(14,30,70,0.5);
}

.section-trust { padding-top: 90px; padding-bottom: 40px; }
.section-trust .section-head { padding-bottom: 44px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.card { background: #F3F1EB; border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { margin-top: 6px; font-size: 20px; font-weight: 600; }
.card p { font-size: 16px; font-weight: 300; color: #45454D; }

.section-services { padding-top: 90px; padding-bottom: 110px; }
.section-services h2 { margin-bottom: 44px; }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 28px; }
.offer { border-radius: 28px; padding: 44px; display: flex; flex-direction: column; gap: 16px; }
.offer h3 { font-size: 28px; font-weight: 600; }
.offer p { font-weight: 300; text-wrap: pretty; }
.offer ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.offer li { display: flex; gap: 12px; align-items: baseline; }
.offer li::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; }
.glow-dots li::before { background: #F7A531; }
.ember-dots li::before { background: #D63B1A; }
.offer-dark { background: #17171A; color: #FFFFFF; }
.offer-dark p { color: #D6D4CE; }
.offer-light { background: #FFFFFF; border: 1px solid #ECE9E1; }
.offer-light p { color: #45454D; }

/* Contact */
.contact {
  position: relative; padding-top: 40px; padding-bottom: 130px;
  display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center;
}
.contact h2 { font-size: clamp(34px, 4.8vw, 64px); text-wrap: balance; }
.lead-sm { max-width: 560px; font-size: 19px; font-weight: 300; color: #45454D; text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 10px; }
.chips .pill { padding: 8px 18px; }

/* Footer */
footer { position: relative; background: #17171A; color: #D6D4CE; }
.foot { padding-block: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: 14px; }

.foot { align-items: center; }
.cr { display: inline-flex; align-items: center; gap: 10px; color: #FFFFFF; }
.cr-text { display: flex; flex-direction: column; line-height: 1.5; }
.cr-label { font-size: 13px; color: #D6D4CE; }
.cr-num, .cr-num a { font-size: 16px; font-weight: 600; direction: ltr; letter-spacing: 0.02em; color: #FFFFFF; text-decoration: none; }
footer a { color: inherit; }

/* Tap to view full screenshot */
.slides img { cursor: zoom-in; }
.zoom-hint {
  display: none; position: absolute; top: 58px; left: 20px; z-index: 2;
  align-items: center; gap: 6px; direction: rtl;
  background: rgba(23,23,26,0.72); color: #FFFFFF; font-size: 12px; line-height: 1;
  padding: 7px 10px; border-radius: 999px; pointer-events: none;
}
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: #0F0F12;
  display: none; flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: #D6D4CE; font-size: 14px; }
.lightbox-close {
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.14);
  color: #FFFFFF; font-size: 26px; line-height: 1; cursor: pointer;
}
.lightbox-scroll { flex: 1 1 auto; overflow: auto; -webkit-overflow-scrolling: touch; display: flex; align-items: center; direction: rtl; }
.lightbox-scroll img { max-width: none; height: auto; width: max(100%, 1100px); margin: auto; }
@media (min-width: 900px) { .lightbox-scroll img { width: min(1400px, 94vw); } }

/* Small screens */
@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.8; }
  .wrap { padding-inline: 20px; }

  /* Header */
  .bar { justify-content: center; padding-block: 16px; gap: 10px; }
  nav { justify-content: center; gap: 2px 18px; font-size: 15px; }
  nav a { padding: 8px 0; }

  /* Hero */
  .hero { padding-top: 36px; gap: 16px; }
  h1 { font-size: 40px; }
  .lead { font-size: 17px; }
  .actions { flex-direction: column; align-self: stretch; gap: 10px; }
  .actions .btn { width: 100%; text-align: center; }

  /* Section headings */
  h2 { font-size: 30px; }
  .section-head p { font-size: 16px; }

  /* Systems: name, screenshot, then description and features */
  .section-systems { padding-top: 64px; padding-bottom: 8px; }
  .work, .work-flip {
    display: grid; grid-template-columns: minmax(0, 1fr);
    gap: 0; padding: 32px 0; border-top: 1px solid #ECE9E1;
  }
  .section-systems .section-head + .work { border-top: 0; }
  .work-text { display: contents; }
  .work-name { order: 1; font-size: 30px; }
  .work-for { order: 2; font-size: 17px; margin-top: 2px; }
  .work-shot { order: 3; margin-top: 16px; }
  .work-desc { order: 4; margin-top: 16px; max-width: none; font-size: 15.5px; }
  .tags { order: 5; margin-top: 12px; gap: 6px; max-width: none; }
  .tags li { font-size: 13px; padding: 3px 10px; }

  .work-shot { padding: 10px 10px 0; border-radius: 20px; flex-basis: auto; aspect-ratio: 4 / 5; margin-inline: -6px; }
  .work-shot .window { border-radius: 12px 12px 0 0; }
  .work-shot .window .slides img { object-position: right top; }
  .work-shot .window .slides img.fit { object-fit: cover; object-position: right center; }
  .dots { padding: 9px 12px; gap: 5px; }
  .dots span { width: 8px; height: 8px; }
  .zoom-hint { display: flex; top: 52px; left: 18px; }

  /* Trust: compact cards, icon beside title */
  .section-trust { padding-top: 56px; padding-bottom: 8px; }
  .section-trust .section-head { padding-bottom: 24px; }
  .cards { gap: 12px; }
  .card {
    display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 4px;
    padding: 20px; border-radius: 18px;
  }
  .card svg { grid-row: 1 / span 2; width: 30px; height: 30px; margin-top: 2px; }
  .card h3 { margin-top: 0; font-size: 17px; }
  .card p { font-size: 14.5px; }

  /* Services */
  .section-services { padding-top: 56px; padding-bottom: 56px; }
  .section-services h2 { margin-bottom: 24px; }
  .offers { gap: 14px; }
  .offer { padding: 26px 22px; border-radius: 22px; gap: 12px; }
  .offer h3 { font-size: 23px; }
  .offer ul { font-size: 15px; gap: 10px; }

  /* Contact */
  .contact { padding-top: 16px; padding-bottom: 64px; gap: 16px; }
  .contact h2 { font-size: 32px; }
  .lead-sm { font-size: 16px; }
  .contact .btn { align-self: stretch; text-align: center; }
  .glow-contact { height: 300px; bottom: -120px; }

  /* Footer */
  .foot { flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-block: 28px; }
  .cr { flex-direction: column; }
  .cr-text { align-items: center; }
}

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