/* Sigma Communications Ltd. — site styles */

:root {
  --ink: #15181d;
  --ink-soft: #3a3f47;
  --paper: #ffffff;
  --paper-dim: #f4f5f7;
  --line: #e3e5e9;
  --red-900: #4a0508;
  --red-700: #6e0a0e;
  --red-600: #8c1014;
  --red-500: #a8161b;
  --stat-red: var(--red-600);
  --gold: #c8952c;
  --header-h: 76px;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(15, 15, 20, 0.12);
  --shadow-lg: 0 20px 50px rgba(15, 15, 20, 0.22);
  --max: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].in-view { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1);
}
[data-reveal-group].in-view > * { opacity: 1; transform: none; }
[data-reveal-group].in-view > *:nth-child(1) { transition-delay: .04s; }
[data-reveal-group].in-view > *:nth-child(2) { transition-delay: .1s; }
[data-reveal-group].in-view > *:nth-child(3) { transition-delay: .16s; }
[data-reveal-group].in-view > *:nth-child(4) { transition-delay: .22s; }
[data-reveal-group].in-view > *:nth-child(5) { transition-delay: .28s; }
[data-reveal-group].in-view > *:nth-child(6) { transition-delay: .34s; }
[data-reveal-group].in-view > *:nth-child(7) { transition-delay: .4s; }
[data-reveal-group].in-view > *:nth-child(8) { transition-delay: .46s; }
[data-reveal-group].in-view > *:nth-child(9) { transition-delay: .52s; }
[data-reveal-group].in-view > *:nth-child(10) { transition-delay: .58s; }
[data-reveal-group].in-view > *:nth-child(11) { transition-delay: .64s; }
[data-reveal-group].in-view > *:nth-child(12) { transition-delay: .7s; }
[data-reveal-group].in-view > *:nth-child(n+13) { transition-delay: .76s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-group] > * { opacity: 1; transform: none; transition: none; }
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--red-600);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 200;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red-600), var(--red-900));
  color: #fff;
  box-shadow: 0 10px 24px rgba(140, 16, 20, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(140, 16, 20, .42); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: rgba(21, 24, 29, .98);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.brand-mark { height: 38px; width: auto; }
.brand-name { font-weight: 800; letter-spacing: .02em; font-size: 1.05rem; }
.brand-name small { display: block; font-weight: 400; font-size: .68rem; color: #c9ccd2; letter-spacing: .12em; text-transform: uppercase; }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  color: #d8dade;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .93rem;
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn { padding: 10px 20px; font-size: .88rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  width: 42px; height: 38px;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 480px) {
  .brand-name small { display: none; }
}

@media (max-width: 880px) {
  .header-actions .btn.call-btn-text { display: none; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(15, 17, 21, .98);
    transform: translateX(100%);
    transition: transform .25s ease;
    padding: 24px;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 16px 18px; font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  min-height: 43vh;
  overflow: hidden;
  background: #0d0e10;
}
.hero-slides { position: absolute; inset: 0; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity 1.8s ease;
  animation: kenburns 22s ease-in-out infinite alternate;
}
/* Multi-slide slideshow (home hero): slides start hidden, JS reveals the active one */
.hero-slides .hero-bg { opacity: 0; }
.hero-slides .hero-bg.active { opacity: 1; }
@keyframes kenburns {
  0% { transform: scale(1.04) translate3d(0,0,0); }
  100% { transform: scale(1.14) translate3d(-1.2%,-1.2%,0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; transform: scale(1.04); }
}
.hero-scrim {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,10,12,.55) 0%, rgba(10,10,12,.35) 40%, rgba(10,10,12,.88) 100%),
    linear-gradient(100deg, rgba(74,5,8,.55), rgba(10,10,12,.15) 55%);
}
.hero-content { position: relative; z-index: 2; padding: 26px 0 18px; }
.hero-dots {
  position: absolute;
  z-index: 3;
  right: 32px;
  bottom: 32px;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 30px; height: 4px;
  border-radius: 3px;
  border: none;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  padding: 0;
  transition: background .25s ease;
}
.hero-dots button.active { background: var(--gold); }
@media (max-width: 620px) { .hero-dots { right: 20px; bottom: 20px; } }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); max-width: 18ch; margin-bottom: .35em; }
.hero .lede { font-size: 1.15rem; color: #e9e9ec; max-width: 56ch; margin-bottom: 2em; }

/* Home hero only (not the shorter page-hero banners) — sized ~30% shorter overall */
.hero:not(.page-hero) .eyebrow { margin-bottom: 8px; }
.hero:not(.page-hero) h1 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); margin-bottom: .28em; }
.hero:not(.page-hero) .lede { font-size: .98rem; margin-bottom: .6em; }
.hero:not(.page-hero) .hero-actions .btn { padding: 11px 22px; font-size: .88rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero { min-height: 24vh; }
.page-hero .hero-content { padding: 28px 0 22px; }
.page-hero .eyebrow { margin-bottom: 8px; }
.page-hero h1 { font-size: clamp(1.5rem, 2.7vw, 2.2rem); margin-bottom: .2em; }
.page-hero .lede { font-size: .96rem; margin-bottom: 0; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-dim { background: var(--paper-dim); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark p { color: #c7cad0; }
.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head .eyebrow { color: var(--red-600); }
.section-dark .section-head .eyebrow { color: var(--gold); }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-head p { font-size: 1.06rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-5, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--red-600), var(--red-900));
  color: #fff;
  margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.12rem; }
.card p { margin-bottom: .6em; font-size: .96rem; }
.card a.card-link { font-weight: 700; color: var(--red-600); font-size: .9rem; }

.stat-row { display: flex; gap: 48px; flex-wrap: wrap; }
.stat b { display: block; font-size: 2.3rem; color: var(--stat-red); font-weight: 800; }
.stat span { font-size: .85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Photo strip / gallery ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-grid a {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #ddd;
}
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-grid a:hover img { transform: scale(1.07); }
.photo-grid figcaption { display: none; }
@media (max-width: 980px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(8,8,10,.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: 999px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.2); }

/* ---------- Brand strip ---------- */
.brand-strip { text-align: center; }
.brand-strip .section-head { margin: 0 auto 36px; text-align: center; }
.brand-frame {
  position: relative;
  max-width: 780px;
  height: 260px;
  margin: 0 auto;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.brand-frame img {
  position: absolute;
  inset: 36px;
  width: calc(100% - 72px);
  height: calc(100% - 72px);
  object-fit: contain;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.brand-frame img.active { opacity: 1; }
.brand-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.brand-dots button {
  width: 30px; height: 4px;
  border-radius: 3px;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: background .25s ease;
}
.brand-dots button.active { background: var(--red-600); }
@media (max-width: 620px) {
  .brand-frame { height: 180px; padding: 22px; }
  .brand-frame img { inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--red-900), var(--red-700) 60%, var(--red-600));
  color: #fff;
  border-radius: 20px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: .3em; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band p { color: #f1d9da; margin: 0; }

/* ---------- About / content blocks ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-fade {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.split-fade img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
  border-radius: 0;
  box-shadow: none;
}
.split-fade img.active { opacity: 1; }
.split-fade img.pos-top { object-position: top center; }
.value-list li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--ink-soft); }
.value-list svg { flex: none; width: 20px; height: 20px; color: var(--red-600); margin-top: 3px; }

.timeline { border-left: 2px solid var(--line); padding-left: 26px; display: grid; gap: 26px; }
.timeline b { color: var(--red-600); display: block; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 56px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card .icon { margin-bottom: 14px; }
.contact-card a, .contact-card p { font-size: .98rem; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfd2d8;
  padding: 64px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .84rem;
  color: #9296a0;
}

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-page .container { text-align: center; }
.error-page .code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; color: var(--red-600); line-height: 1; margin-bottom: .1em; }
