/* ==========================================================================
   A-Secure Electronic Security Ltd — Site styles
   Plain CSS, no build step. Mobile-first.
   ========================================================================== */

:root {
  --navy: #16235a;
  --navy-900: #0f1a44;
  --blue: #2563eb;
  --blue-600: #1d4ed8;
  --white: #ffffff;
  --grey: #f4f6f9;
  --grey-200: #e6eaf1;
  --text: #1f2937;
  --muted: #5b6472;
  --line: #e2e6ee;

  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 26, 68, 0.06), 0 1px 3px rgba(15, 26, 68, 0.08);
  --shadow-md: 0 6px 22px rgba(15, 26, 68, 0.10);
  --shadow-lg: 0 18px 50px rgba(15, 26, 68, 0.18);

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--grey { background: var(--grey); }
.section--navy { background: var(--navy); color: #dfe5f3; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.08rem; }
.section--navy .section__head p { color: #c4cde6; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.78rem; font-weight: 700; color: var(--blue); margin-bottom: 0.6rem;
}
.section--navy .eyebrow { color: #7da2ff; }
.lead { font-size: 1.18rem; color: var(--muted); }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--blue);
  color: #fff; padding: 10px 16px; border-radius: 8px; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  font: inherit; font-weight: 600; line-height: 1; text-decoration: none;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32); }
.btn--primary:hover { background: var(--blue-600); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--grey-200); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-600); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #eef3ff; }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }

/* Wordmark (inline SVG) */
.wordmark { display: block; height: 42px; width: auto; }

.nav__links { display: none; }
.nav__cta { display: none; }
.nav__toggle {
  display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 10px; border-radius: 8px;
}
.nav__toggle span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: 0.25s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav__panel {
  display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 12px 20px 22px;
}
.nav__panel.is-open { display: block; }
.nav__panel a {
  display: block; padding: 12px 8px; color: var(--navy); font-weight: 600;
  border-bottom: 1px solid var(--grey);
}
.nav__panel a:hover { text-decoration: none; color: var(--blue-600); }
.nav__panel .btn { margin-top: 16px; }
.nav__panel .nav__sub a { padding-left: 22px; font-weight: 500; color: var(--muted); }

@media (min-width: 920px) {
  .nav__toggle { display: none; }
  .nav__panel { display: none !important; }
  .nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
  .nav__links > li { position: relative; }
  .nav__links > li > a {
    display: inline-block; padding: 10px 14px; color: var(--navy); font-weight: 600; border-radius: 8px;
  }
  .nav__links > li > a:hover { background: var(--grey); text-decoration: none; color: var(--blue-600); }
  .nav__links a[aria-current="page"] { color: var(--blue-600); }

  /* Dropdown */
  .has-dropdown > .dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
    padding: 8px; list-style: none; margin: 0; opacity: 0; visibility: hidden;
    transform: translateY(6px); transition: 0.18s var(--ease);
  }
  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
  .dropdown a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--navy); font-weight: 500; }
  .dropdown a:hover { background: var(--grey); text-decoration: none; color: var(--blue-600); }
  .nav__cta { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero::before {
  /* fallback gradient approximating the illuminated blue bell box at night */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 500px at 78% 18%, rgba(37, 99, 235, 0.55), transparent 60%),
    radial-gradient(700px 600px at 12% 90%, rgba(37, 99, 235, 0.22), transparent 55%),
    linear-gradient(160deg, #0f1a44 0%, #16235a 55%, #0c1538 100%);
}
/* HERO PHOTO: drop the night bell-box image at assets/img/bell-box-night.jpg.
   It is dark + portrait, so it's positioned right and dimmed for legible overlay text. */
.hero__photo {
  position: absolute; inset: 0; z-index: 0; background-size: cover;
  background-position: 75% center; opacity: 0.45; mix-blend-mode: screen;
}
.hero__inner {
  position: relative; z-index: 1; display: grid; gap: 28px; align-items: center;
  padding: 72px 0 80px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18); padding: 7px 14px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; color: #dbe6ff;
}
.hero h1 { color: #fff; }
.hero p { color: #cdd7f0; font-size: 1.18rem; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero__rating { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: #cdd7f0; font-size: 0.95rem; }
.stars { color: #ffc94d; letter-spacing: 2px; font-size: 1.05rem; }

@media (min-width: 920px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; padding: 96px 0 104px; }
}

/* ---------- Trust strip ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.trust__item { background: #fff; padding: 22px 18px; text-align: center; }
.trust__item strong { display: block; color: var(--navy); font-size: 1.05rem; }
.trust__item span { color: var(--muted); font-size: 0.9rem; }
@media (min-width: 760px) { .trust__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cards / service grid ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform 0.18s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--grey-200); }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); margin-bottom: 1.2rem; }
.card .card__link { margin-top: auto; font-weight: 600; color: var(--blue-600); display: inline-flex; align-items: center; gap: 6px; }
.card .card__link::after { content: "\2192"; transition: transform 0.15s var(--ease); }
.card:hover .card__link::after { transform: translateX(3px); }

.icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 13px; background: linear-gradient(160deg, #eaf0ff, #dbe6ff); color: var(--blue-600);
  margin-bottom: 18px;
}
.icon svg { width: 26px; height: 26px; }
.tag {
  display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.tag--maint { background: #fff3e0; color: #b45309; }
.tag--both { background: #e7f0ff; color: var(--blue-600); }

/* ---------- Feature / split ---------- */
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } .split--media-first .split__media { order: -1; } }
.split__media {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  background: var(--grey); min-height: 280px; position: relative;
}
.feature-list { list-style: none; padding: 0; margin: 18px 0 0; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--text); }
.feature-list svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--blue); margin-top: 3px; }

/* ---------- Reviews ---------- */
.reviews__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-bottom: 32px; }
.rating-pill {
  display: inline-flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 20px; box-shadow: var(--shadow-sm);
}
.rating-pill .num { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.rating-pill .meta { font-size: 0.88rem; color: var(--muted); }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.review__stars { color: #ffb400; letter-spacing: 2px; margin-bottom: 12px; }
.review p { color: var(--text); font-size: 1.02rem; }
.review__author { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.review__name { font-weight: 700; color: var(--navy); }
.review__src { font-size: 0.82rem; color: var(--muted); }

/* ---------- Areas ---------- */
.area-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm);
}
.area-card h3 { display: flex; align-items: center; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding: 0; list-style: none; }
.chips li { background: var(--grey); border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; color: var(--text); margin: 0; }

/* ---------- Accreditations placeholder ---------- */
.accred { text-align: center; }
.accred__row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: center; margin-top: 8px; }
.accred__badge {
  border: 1px dashed var(--grey-200); border-radius: var(--radius-sm); padding: 18px 26px;
  color: var(--muted); font-size: 0.92rem; background: #fff; min-width: 150px;
}
.accred__note { color: var(--muted); font-size: 0.92rem; max-width: 640px; margin: 16px auto 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--blue-600) 130%); color: #fff; }
.cta-band .container { display: grid; gap: 22px; align-items: center; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d4ddf5; max-width: 620px; margin: 0 auto; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Forms ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-md); }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.field .req { color: var(--blue); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--grey); transition: border-color 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.field textarea { resize: vertical; min-height: 130px; }
/* Honeypot — visually removed but present for bots */
.hp { position: absolute !important; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.form__status { margin-top: 6px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 500; display: none; }
.form__status.is-success { display: block; background: #e8f8ee; color: #166534; border: 1px solid #b6e6c6; }
.form__status.is-error { display: block; background: #fdecec; color: #991b1b; border: 1px solid #f3c0c0; }
.form__hint { font-size: 0.85rem; color: var(--muted); }

/* ---------- Contact layout ---------- */
.contact-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; } }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info .info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .icon { margin-bottom: 0; flex: 0 0 auto; width: 46px; height: 46px; }
.contact-info .info-item strong { display: block; color: var(--navy); }
.contact-info .info-item a { color: var(--text); }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 360px at 85% 0%, rgba(37, 99, 235, 0.45), transparent 60%), linear-gradient(160deg, #0f1a44, #16235a);
}
.page-hero__inner { position: relative; padding: 64px 0; max-width: 760px; }
.page-hero h1 { color: #fff; margin-bottom: 0.4rem; }
.page-hero p { color: #cdd7f0; font-size: 1.12rem; margin-bottom: 0; }
.breadcrumbs { font-size: 0.88rem; color: #9fb0dd; margin-bottom: 18px; }
.breadcrumbs a { color: #cdd7f0; }
.breadcrumbs span { margin: 0 8px; opacity: 0.6; }

/* ---------- Prose (legal / about) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose ul { padding-left: 1.3rem; }

/* ---------- Image placeholder ---------- */
.img-placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(45deg, #eef1f7, #eef1f7 12px, #e7ebf4 12px, #e7ebf4 24px);
  color: var(--muted); font-size: 0.9rem; padding: 40px 24px; min-height: 280px; height: 100%;
  border-radius: var(--radius);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c4e2; padding: 56px 0 28px; font-size: 0.95rem; }
.site-footer a { color: #cdd7f0; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand .wordmark { height: 40px; }
.footer__brand p { margin-top: 14px; color: #93a1c7; max-width: 320px; }
.footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 9px; }
.footer__contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: #8090b8; font-size: 0.84rem;
}
.footer__legal { max-width: 760px; line-height: 1.5; }
.footer__links-inline a { color: #cdd7f0; }
.footer__links-inline span { opacity: 0.5; margin: 0 8px; }

/* ---------- Cookie notice ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 18px 20px; display: none; gap: 16px; align-items: center; flex-wrap: wrap;
}
.cookie.is-visible { display: flex; }
.cookie p { margin: 0; flex: 1 1 280px; font-size: 0.92rem; color: var(--muted); }
.cookie .btn { padding: 10px 18px; }
@media (min-width: 620px) { .cookie { left: auto; max-width: 460px; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

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