/* ============================================================
   Digify Engineering Pvt. Ltd. — Security Integration Services
   Mobile-first stylesheet
   Palette: navy #0B2239 · steel #123E63 · signal red #D42B2B
            paper #F4F7FB · line #C9D7E6 · ink #1A2733
   Type: Barlow Condensed (display) / Inter (body)
   ============================================================ */

:root {
  --navy: #0B2239;
  --steel: #123E63;
  --red: #D42B2B;
  --red-dark: #B02020;
  --paper: #F4F7FB;
  --line: #C9D7E6;
  --ink: #1A2733;
  --ink-soft: #45566B;
  --white: #FFFFFF;
  --max: 1120px;
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

h1, h2, h3, .display {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 4vw, 1.5rem); font-weight: 600; }

p { max-width: 68ch; }

a { color: var(--steel); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Ribbon label (from Digify's own brochure banners) ---------- */
.ribbon {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.35rem 1.6rem 0.35rem 1rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  margin-bottom: 1rem;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 3px solid var(--red);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-mark {
  display: flex;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}
.brand-mark span {
  color: #fff;
  padding: 0.25rem 0.3rem;
}
.brand-mark span:nth-child(1) { background: #2233CC; color: #F5C518; }
.brand-mark span:nth-child(2) { background: #7B2D8E; color: #7CFC00; }
.brand-mark span:nth-child(3) { background: #1A1AB5; color: #FF8C00; }
.brand-mark span:nth-child(4) { background: #8E1B1B; color: #E8E8E8; }
.brand-mark span:nth-child(5) { background: #1E7A1E; color: #111; }
.brand-mark span:nth-child(6) { background: #D42B2B; color: #F5C518; }

.brand-sub {
  font-size: 0.7rem;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.2;
}

.nav-toggle {
  background: none;
  border: 2px solid var(--navy);
  border-radius: 4px;
  width: 44px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.nav-toggle:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::before { transform: rotate(-90deg); top: 0; }
.nav-toggle[aria-expanded="true"] .bars::after { opacity: 0; }

.nav-menu {
  list-style: none;
  display: none;
  flex-direction: column;
  background: var(--navy);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.5rem 0;
}
.nav-menu.open { display: flex; }
.nav-menu a {
  display: block;
  padding: 0.85rem 1.5rem;
  color: var(--white);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  border-left: 4px solid transparent;
}
.nav-menu a:hover,
.nav-menu a:focus-visible { border-left-color: var(--red); background: var(--steel); outline: none; }
.nav-menu a.active { border-left-color: var(--red); }

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    gap: 0.25rem;
  }
  .nav-menu a {
    color: var(--navy);
    padding: 0.5rem 0.9rem;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  .nav-menu a:hover,
  .nav-menu a:focus-visible { background: none; border-bottom-color: var(--red); }
  .nav-menu a.active { border-bottom-color: var(--red); }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--steel) 100%);
  color: var(--white);
  padding: 3rem 0 4rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
}
.hero h1 { color: var(--white); }
.hero p { color: #D7E4F2; margin: 1rem 0 1.75rem; }
.hero .btn { margin: 0 0.6rem 0.7rem 0; }
.hero .wrap { display: grid; gap: 2rem; }
.hero-art { margin-top: 1rem; }

@media (min-width: 820px) {
  .hero { padding: 4.5rem 0 6rem; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}

.btn {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn:focus-visible { outline: 3px solid #F5C518; outline-offset: 2px; }

/* ---------- Sections ---------- */
section { padding: 3rem 0; }

.lead { font-size: 1.08rem; color: var(--ink-soft); }

/* Service grid */
.grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.svc {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--steel);
  padding: 1.4rem 1.3rem;
}
.svc:nth-child(3n) { border-top-color: var(--red); }
.svc h3 { margin-bottom: 0.4rem; }
.svc p { font-size: 0.95rem; color: var(--ink-soft); }
.svc .icon { width: 46px; height: 46px; margin-bottom: 0.8rem; }

/* Checklist */
.checklist { list-style: none; margin-top: 1rem; }
.checklist li {
  padding: 0.45rem 0 0.45rem 1.8rem;
  position: relative;
  border-bottom: 1px dashed var(--line);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 12px;
  height: 12px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0 70%);
}

/* Stats band */
.band {
  background: var(--navy);
  color: var(--white);
  clip-path: polygon(0 24px, 100% 0, 100% calc(100% - 24px), 0 100%);
  padding: 3.5rem 0;
}
.band h2 { color: var(--white); }
.band .grid { text-align: left; }
.stat b {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem;
  color: #F5C518;
  display: block;
  line-height: 1;
}
.stat span { color: #B9CBDE; font-size: 0.92rem; }

/* Image slot for AI-generated photos */
.img-slot {
  background: var(--steel);
  border: 1px dashed #6E93B8;
  min-height: 220px;
  display: grid;
  place-items: center;
  color: #B9CBDE;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}
.img-slot img { width: 100%; height: 100%; object-fit: cover; }

/* Clients */
.client-list { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.5rem; }
@media (min-width: 720px) { .client-list { grid-template-columns: 1fr 1fr; } }
.client-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--steel);
  padding: 0.7rem 1rem;
  font-weight: 500;
}
.client-list li:nth-child(even) { border-left-color: var(--red); }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: 2rem; margin-top: 1.5rem; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }

form.contact {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  padding: 1.6rem 1.4rem;
  display: grid;
  gap: 1rem;
}
form.contact label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  display: block;
  margin-bottom: 0.25rem;
}
form.contact input,
form.contact select,
form.contact textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}
form.contact input:focus-visible,
form.contact select:focus-visible,
form.contact textarea:focus-visible {
  outline: 3px solid var(--steel);
  outline-offset: 1px;
}
.honeypot { position: absolute; left: -9999px; }

.form-note { font-size: 0.85rem; color: var(--ink-soft); }
.alert { padding: 0.9rem 1rem; border-radius: 4px; font-weight: 500; }
.alert.ok { background: #E5F5E7; border: 1px solid #2E8B44; color: #1E5A2E; }
.alert.err { background: #FBE7E7; border: 1px solid var(--red); color: var(--red-dark); }

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.4rem;
  margin-bottom: 1rem;
}
.info-card h3 { margin-bottom: 0.4rem; }
.info-card p { font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #B9CBDE;
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
  font-size: 0.92rem;
}
.site-footer .wrap { display: grid; gap: 1.6rem; }
@media (min-width: 820px) { .site-footer .wrap { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 0.5rem; }
.site-footer a { color: #D7E4F2; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 0.2rem 0; }
.footer-legal {
  border-top: 1px solid #24466B;
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: #7E97B3;
}
