/* =========================================================
   ALFI SECURITY SYSTEM — Stylesheet
   Light, clean, photography-led enterprise design
   ========================================================= */

:root {
  /* Light palette */
  --bg:        #ffffff;
  --bg-soft:   #f5f7fa;
  --bg-soft-2: #eef1f6;
  --ink:       #121620;   /* headings */
  --body:      #4b5566;   /* paragraph text */
  --muted:     #8b95a6;
  --line:      #e4e8ef;
  --line-2:    #d7dce5;

  /* Brand */
  --brand:     #1763d6;   /* primary blue */
  --brand-dk:  #0f4aa8;
  --navy:      #0e1622;   /* dark sections / buttons / footer */
  --navy-2:    #16202f;
  --accent:    #00a3a8;   /* subtle teal highlight */

  /* Type */
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1200px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 10px rgba(18, 22, 32, 0.06);
  --shadow: 0 14px 40px rgba(18, 22, 32, 0.10);
  --shadow-lg: 0 28px 70px rgba(18, 22, 32, 0.16);
  --trans: 200ms cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
h1,h2,h3,h4 { color: var(--ink); line-height: 1.14; font-weight: 700; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.accent { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 1.5px solid transparent;
  transition: background var(--trans), color var(--trans), border-color var(--trans), transform var(--trans);
  white-space: nowrap;
}
.btn svg { transition: transform var(--trans); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dk); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef1f6; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.04; }
.brand .brand-name { font-size: 1.0rem; font-weight: 800; color: var(--ink); letter-spacing: 0.01em; }
.brand .brand-sub { font-size: 0.6rem; letter-spacing: 0.26em; color: var(--muted); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 7px;
  font-size: 0.93rem; font-weight: 500; color: var(--body);
  transition: color var(--trans), background var(--trans);
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a.active { color: var(--brand); }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-2);
  border-radius: 8px; width: 44px; height: 42px; cursor: pointer;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); transition: var(--trans); }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (full-bleed photo) ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex; align-items: center;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,12,20,0.92) 0%, rgba(8,12,20,0.72) 42%, rgba(8,12,20,0.30) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 80px; }
.hero-inner { max-width: 660px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #8fd4ff; margin-bottom: 20px;
}
.eyebrow .bar { width: 26px; height: 2px; background: var(--brand); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 3.9rem); margin-bottom: 20px; letter-spacing: -0.03em; }
.hero p.lead { font-size: 1.18rem; color: rgba(255,255,255,0.85); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 46px; flex-wrap: wrap;
  margin-top: 46px; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.hero-stats .num { font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.hero-stats .lbl { font-size: 0.82rem; color: rgba(255,255,255,0.65); }

/* ---------- Section primitives ---------- */
.section { padding: 92px 0; }
.section.soft { background: var(--bg-soft); }
.section.navy { background: var(--navy); color: rgba(255,255,255,0.8); }
.section.navy h2, .section.navy h3, .section.navy h4 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin-bottom: 16px; }
.section-head p { font-size: 1.08rem; color: var(--body); }

/* ---------- Feature rows (image + text) ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.feature + .feature { margin-top: 96px; }
.feature.reverse .feature-media { order: 2; }
.feature-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--bg-soft-2);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media .badge {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(255,255,255,0.95); color: var(--navy);
  padding: 10px 16px; border-radius: 8px; font-weight: 700; font-size: 0.85rem;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 9px;
}
.feature-media .badge svg { color: var(--brand); }
.feature-text h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 16px; }
.feature-text > p { font-size: 1.05rem; margin-bottom: 22px; }
.check-list { display: grid; gap: 13px; margin-bottom: 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; color: var(--body); }
.check-list li .ck {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background: rgba(23,99,214,0.12); color: var(--brand);
  display: grid; place-items: center; font-size: 0.7rem; font-weight: 800;
}
.section.navy .check-list li { color: rgba(255,255,255,0.82); }
.section.navy .check-list li .ck { background: rgba(143,212,255,0.18); color: #8fd4ff; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2,1fr); }
.cols-3 { grid-template-columns: repeat(3,1fr); }
.cols-4 { grid-template-columns: repeat(4,1fr); }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card .ico {
  width: 50px; height: 50px; border-radius: 11px;
  background: var(--bg-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card h3 { font-size: 1.16rem; margin-bottom: 9px; }
.card p { font-size: 0.95rem; color: var(--body); }
.card ul.mini { margin-top: 14px; display: grid; gap: 7px; }
.card ul.mini li { font-size: 0.86rem; color: var(--body); display: flex; gap: 9px; align-items: flex-start; }
.card ul.mini li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-top: 8px; flex-shrink: 0; }

/* Photo cards (image-topped) */
.pcard {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
  display: flex; flex-direction: column;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard .pcard-img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft-2); }
.pcard .pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.pcard:hover .pcard-img img { transform: scale(1.05); }
.pcard .pcard-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.pcard h3 { font-size: 1.14rem; margin-bottom: 8px; }
.pcard p { font-size: 0.93rem; color: var(--body); }
.pcard .more {
  margin-top: 14px; font-size: 0.86rem; font-weight: 700; color: var(--brand);
  display: inline-flex; align-items: center; gap: 6px;
}

/* Detection list (navy section) */
.detect-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.detect {
  background: var(--navy-2); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 24px;
  transition: border-color var(--trans), transform var(--trans);
  position: relative;
}
.detect:hover { transform: translateY(-3px); border-color: rgba(143,212,255,0.4); }
.detect::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: var(--radius) var(--radius) 0 0; background: var(--dc, var(--brand)); }
.detect .ico { width: 46px; height: 46px; border-radius: 11px; background: rgba(255,255,255,0.06); color: var(--dc, #8fd4ff); display: grid; place-items: center; margin-bottom: 16px; }
.detect h3 { font-size: 1.08rem; margin-bottom: 8px; }
.detect p { font-size: 0.9rem; color: rgba(255,255,255,0.66); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; }
.step { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.section.navy .step { border-top-color: rgba(255,255,255,0.16); }
.step .num { font-size: 0.85rem; font-weight: 800; color: var(--brand); letter-spacing: 0.1em; margin-bottom: 10px; }
.step h4 { font-size: 1.12rem; margin-bottom: 7px; }
.step p { font-size: 0.93rem; color: var(--body); }
.section.navy .step p { color: rgba(255,255,255,0.66); }

/* ---------- Stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; text-align: center; }
.stat-band .num { font-size: clamp(2.2rem,4vw,3rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.stat-band .lbl { color: rgba(255,255,255,0.66); font-size: 0.92rem; }

/* ---------- Industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.ind {
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  padding: 16px 18px; font-weight: 600; font-size: 0.92rem; color: var(--ink);
  display: flex; align-items: center; gap: 11px; transition: var(--trans);
}
.ind:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.ind svg { color: var(--brand); flex-shrink: 0; }

/* ---------- CTA strip ---------- */
.cta {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  padding: 70px 56px; color: #fff; text-align: center;
}
.cta .cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta .cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(14,22,34,0.94), rgba(15,74,168,0.78)); }
.cta-inner { position: relative; z-index: 2; }
.cta h2 { color: #fff; font-size: clamp(1.9rem,3.4vw,2.6rem); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 28px; font-size: 1.06rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.62); padding: 64px 0 28px; }
.site-footer .brand-name { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 46px; }
.footer-brand p { margin: 18px 0; font-size: 0.92rem; max-width: 300px; color: rgba(255,255,255,0.55); }
.footer-col h5 { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.92rem; transition: color var(--trans); }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.92rem; margin-bottom: 12px; color: rgba(255,255,255,0.7); }
.footer-contact svg { color: #8fd4ff; flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 0.85rem; color: rgba(255,255,255,0.45);
}

/* ---------- Page hero (inner) ---------- */
.page-hero {
  position: relative; color: #fff; background: var(--navy);
  padding: 96px 0 84px; overflow: hidden;
}
.page-hero .page-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero .page-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(10,14,22,0.93), rgba(10,14,22,0.62)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem,4.4vw,3.2rem); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.82); font-size: 1.12rem; max-width: 640px; }
.breadcrumb { font-size: 0.84rem; color: rgba(255,255,255,0.6); margin-bottom: 20px; letter-spacing: 0.02em; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 52px; align-items: start; }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; gap: 15px; align-items: flex-start; margin-bottom: 16px;
  transition: var(--trans);
}
.info-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.info-card .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.info-card h4 { font-size: 0.98rem; margin-bottom: 3px; }
.info-card p, .info-card a { font-size: 0.93rem; color: var(--body); }
.info-card a:hover { color: var(--brand); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
form .field { margin-bottom: 18px; }
form label { display: block; font-size: 0.87rem; margin-bottom: 7px; color: var(--ink); font-weight: 600; }
form input, form select, form textarea {
  width: 100%; background: #fff; border: 1.5px solid var(--line-2);
  border-radius: 8px; padding: 12px 14px; color: var(--ink);
  font-family: inherit; font-size: 0.95rem; transition: border-color var(--trans), box-shadow var(--trans);
}
form input::placeholder, form textarea::placeholder { color: var(--muted); }
form input:focus, form select:focus, form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23,99,214,0.14);
}
form textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }
.form-success {
  display: none; background: rgba(0,163,168,0.1); border: 1px solid rgba(0,163,168,0.4);
  color: #0a7378; padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-size: 0.92rem;
}
.form-success.show { display: block; }
.field-error { border-color: #e0463e !important; }
.err-msg { color: #d23b34; font-size: 0.78rem; margin-top: 5px; display: none; }
.err-msg.show { display: block; }

.map-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 18px; height: 280px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--ink);
  padding: 19px 22px; font-size: 1rem; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: inherit;
}
.faq-q .pm { color: var(--brand); font-size: 1.4rem; transition: transform var(--trans); flex-shrink: 0; line-height: 1; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--trans); color: var(--body); padding: 0 22px; font-size: 0.95rem; }
.faq-item.open .faq-a { padding-bottom: 20px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .feature { grid-template-columns: 1fr; gap: 34px; }
  .feature.reverse .feature-media { order: 0; }
  .feature + .feature { margin-top: 64px; }
  .cols-4 { grid-template-columns: repeat(2,1fr); }
  .cols-3 { grid-template-columns: repeat(2,1fr); }
  .detect-grid { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .stat-band { grid-template-columns: repeat(2,1fr); gap: 36px; }
  .ind-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav-links {
    position: fixed; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 24px 22px; gap: 2px;
    transform: translateY(-135%); transition: transform var(--trans); box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 12px; }
  .nav-cta { margin: 8px 0 0; width: 100%; justify-content: center; }
  .nav-toggle { display: flex; }
  .cols-4, .cols-3, .cols-2, .detect-grid, .steps, .ind-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .cta { padding: 48px 26px; }
  .hero { min-height: 540px; }
  .hero-stats { gap: 28px; }
}
