/* =============================================================
   AFFINITY SECURITY LTD. — GLOBAL STYLESHEET
   Load order: style.css -> header.css -> footer.css -> [page].css
   All rules are scoped under the "asl-" prefix so this file can be
   dropped into WordPress / Elementor without leaking styles.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root{
  /* ---- brand palette ---- */
  --asl-navy:        #111B4D;
  --asl-navy-deep:   #0A1233;
  --asl-royal:       #35459A;
  --asl-royal-deep:  #263578;
  --asl-sky:         #8CC8ED;
  --asl-white:       #FFFFFF;
  --asl-bg:          #F5F7FA;
  --asl-bg-dim:      #ECF1F6;
  --asl-text:        #151A2E;
  --asl-text-mute:   #545C72;
  --asl-line:        #DDE3EE;

  /* ---- type ---- */
  --asl-font-head: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --asl-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* ---- layout ---- */
  --asl-maxw: 1240px;
  --asl-radius: 4px;
  --asl-gap: clamp(20px, 4vw, 40px);
}

/* ---- scoped, minimal reset (does NOT touch generic h1/p/a/img globally) ---- */
.asl-page{
  margin: 0;
  font-family: var(--asl-font-body);
  color: var(--asl-text);
  background: var(--asl-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.asl-page,
.asl-page *,
.asl-page *::before,
.asl-page *::after{
  box-sizing: border-box;
}
.asl-page img{
  max-width: 100%;
  display: block;
}
.asl-page svg{
  width: 18px;      /* safe default so an unsized icon can never blow up */
  height: 18px;
  flex: none;
}
.asl-page a{
  color: inherit;
  text-decoration: none;
}

/* ---- shared layout utilities ---- */
.asl-container{
  max-width: var(--asl-maxw);
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 56px);
  padding-right: clamp(20px, 5vw, 56px);
}

.asl-section{
  padding-top: clamp(56px, 7vw, 100px);
  padding-bottom: clamp(56px, 7vw, 100px);
}
.asl-section--tight{
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.asl-section--navy{
  background: var(--asl-navy);
  color: var(--asl-white);
}
.asl-section--bg{
  background: var(--asl-bg);
}

/* ---- shared typography ---- */
.asl-kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--asl-font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--asl-royal);
  margin: 0 0 14px;
}
.asl-section--navy .asl-kicker,
.asl-about-hero .asl-kicker,
.asl-services-hero .asl-kicker,
.asl-industries-hero .asl-kicker,
.asl-contact-hero .asl-kicker,
.asl-home-cta .asl-kicker{ color: var(--asl-sky); }
.asl-kicker::before{
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  display: block;
}

.asl-h1{
  font-family: var(--asl-font-head);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.01em;
  font-size: clamp(32px, 4.4vw, 54px);
  margin: 0 0 20px;
  color: var(--asl-navy);
}
.asl-section--navy .asl-h1,
.asl-about-hero .asl-h1,
.asl-services-hero .asl-h1,
.asl-industries-hero .asl-h1,
.asl-contact-hero .asl-h1,
.asl-home-cta .asl-h1{ color: var(--asl-white); }

.asl-h2{
  font-family: var(--asl-font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.008em;
  font-size: clamp(26px, 3vw, 38px);
  margin: 0 0 18px;
  color: var(--asl-navy);
}
.asl-section--navy .asl-h2,
.asl-about-hero .asl-h2,
.asl-services-hero .asl-h2,
.asl-industries-hero .asl-h2,
.asl-contact-hero .asl-h2,
.asl-home-cta .asl-h2{ color: var(--asl-white); }

.asl-h3{
  font-family: var(--asl-font-head);
  font-weight: 700;
  line-height: 1.25;
  font-size: clamp(19px, 1.6vw, 22px);
  margin: 0 0 10px;
  color: var(--asl-navy);
}

.asl-lede{
  font-size: clamp(16px, 1.2vw, 18.5px);
  line-height: 1.7;
  color: var(--asl-text-mute);
  max-width: 62ch;
  margin: 0 0 28px;
}
.asl-section--navy .asl-lede,
.asl-about-hero .asl-lede,
.asl-services-hero .asl-lede,
.asl-industries-hero .asl-lede,
.asl-contact-hero .asl-lede,
.asl-home-cta .asl-lede{ color: #C7D0E8; }

.asl-body{
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--asl-text-mute);
  max-width: 68ch;
}

/* ---- buttons ---- */
.asl-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--asl-font-body);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .01em;
  padding: 15px 30px;
  border-radius: var(--asl-radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
  white-space: nowrap;
}
.asl-btn:focus-visible{
  outline: 2px solid var(--asl-sky);
  outline-offset: 3px;
}
.asl-btn-primary{
  background: var(--asl-royal);
  color: var(--asl-white) !important;
  border-color: var(--asl-royal);
}
.asl-btn-primary:hover{
  background: var(--asl-royal-deep);
  border-color: var(--asl-royal-deep);
}
.asl-btn-ghost{
  background: transparent;
  color: var(--asl-navy) !important;
  border-color: var(--asl-navy);
}
.asl-btn-ghost:hover{
  background: var(--asl-navy);
  color: var(--asl-white) !important;
}
.asl-section--navy .asl-btn-ghost,
.asl-about-hero .asl-btn-ghost,
.asl-services-hero .asl-btn-ghost,
.asl-industries-hero .asl-btn-ghost,
.asl-contact-hero .asl-btn-ghost,
.asl-home-cta .asl-btn-ghost{
  color: var(--asl-white) !important;
  border-color: rgba(255,255,255,.45);
}
.asl-section--navy .asl-btn-ghost:hover,
.asl-about-hero .asl-btn-ghost:hover,
.asl-services-hero .asl-btn-ghost:hover,
.asl-industries-hero .asl-btn-ghost:hover,
.asl-contact-hero .asl-btn-ghost:hover,
.asl-home-cta .asl-btn-ghost:hover{
  background: var(--asl-white);
  color: var(--asl-navy) !important;
}
.asl-btn svg{ width: 15px; height: 15px; flex: none; }

/* ---- shared grid helpers ---- */
.asl-grid-2{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--asl-gap);
}
.asl-grid-4{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--asl-gap);
}
@media (min-width: 760px){
  .asl-grid-2{ grid-template-columns: 1fr 1fr; }
  .asl-grid-4{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1020px){
  .asl-grid-4{ grid-template-columns: repeat(4, 1fr); }
}

/* ---- visually-hidden utility (a11y) ---- */
.asl-vh{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce){
  .asl-page *{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
