/* =========================================================
   ASK Facilities Management — stylesheet
   Palette drawn from the ASK FM brand (navy/teal card, amber accent)
   Type: Archivo (display) + Work Sans (body)
   ========================================================= */

:root{
  --navy:        #0E3446;
  --navy-deep:   #082330;
  --teal:        #1C7293;
  --teal-light:  #4FA3C4;
  --steel:       #8A969A;
  --steel-light: #C7CDCE;
  --amber:       #E2A63B;
  --amber-deep:  #C88A22;
  --paper:       #F6F4EE;
  --paper-dim:   #ECE8DE;
  --ink:         #142027;
  --ink-soft:    #46565D;
  --white:       #FFFFFF;

  --font-head: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --maxw: 1180px;
  --radius: 4px;
  --shadow: 0 12px 30px -14px rgba(8, 35, 48, 0.35);
}

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

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,h2,h3,h4{
  font-family: var(--font-head);
  color: var(--navy-deep);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 800;
}

h1{ font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2{ font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3{ font-size: 1.25rem; }

p{ margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

a{ color: var(--teal); text-decoration: none; }
a:hover{ color: var(--navy); }

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section{ padding: 76px 0; }

.eyebrow{
  color: var(--teal);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.lede{ font-size: 1.1rem; max-width: 60ch; }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.96rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-amber{ background: var(--amber); color: var(--navy-deep); }
.btn-amber:hover{ background: var(--amber-deep); color: var(--navy-deep); }
.btn-outline{ border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline:hover{ border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.08); }
.btn-navy{ background: var(--navy); color: var(--white); }
.btn-navy:hover{ background: var(--navy-deep); color: var(--white); }

/* ---------- diagonal chevron motif (from the ASK FM card) ---------- */
.chevrons{
  display:flex;
  height: 14px;
  width: 100%;
}
.chevrons span{ flex: 1; }
.chevrons span:nth-child(1){ background: var(--teal-light); }
.chevrons span:nth-child(2){ background: var(--navy); }
.chevrons span:nth-child(3){ background: var(--steel); }
.chevrons span:nth-child(4){ background: var(--teal); }
.chevrons span:nth-child(5){ background: var(--navy-deep); }

/* ---------- top utility bar ---------- */
.topbar{
  background: var(--navy-deep);
  color: #CFE3EA;
  font-size: 0.82rem;
}
.topbar .wrap{
  display:flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a{ color: #CFE3EA; }
.topbar a:hover{ color: var(--amber); }
.topbar .divider{ opacity: .4; margin: 0 10px; }
.topbar .cities{ font-weight: 600; letter-spacing: .02em; color: var(--amber); }

/* ---------- header / nav ---------- */
header.site{
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 14px rgba(8,35,48,0.08);
}
.navrow{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.brand img{ height: 52px; width: auto; }
.brand-text .name{
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy-deep);
  line-height: 1.1;
}
.brand-text .tag{
  font-size: 0.72rem;
  color: var(--teal);
  font-style: italic;
  font-weight: 600;
}
nav.mainnav ul{
  list-style:none;
  display:flex;
  gap: 30px;
  margin:0; padding:0;
  align-items:center;
}
nav.mainnav a{
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
nav.mainnav a:hover,
nav.mainnav a.active{
  color: var(--navy-deep);
  border-bottom-color: var(--amber);
}
.navcta{ display:flex; align-items:center; gap: 18px; }
.navtoggle{
  display:none;
  background:none;
  border: none;
  cursor:pointer;
  padding: 6px;
}
.navtoggle span{
  display:block;
  width: 26px; height: 3px;
  background: var(--navy-deep);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- hero slider ---------- */
.hero{
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display:flex;
  align-items:center;
  color: var(--white);
}
.hero .slide{
  position:absolute; inset:0;
  opacity: 0;
  transition: opacity 1.1s ease;
  z-index: 1;
}
.hero .slide.active{ opacity: 1; z-index: 2; }
.hero .slide img{
  width:100%; height:100%; object-fit: cover;
  filter: saturate(1.02);
}
.hero .slide::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(100deg, rgba(8,35,48,0.92) 0%, rgba(8,35,48,0.72) 38%, rgba(14,52,70,0.35) 70%, rgba(14,52,70,0.15) 100%);
}
.hero-content{
  position: relative;
  z-index: 5;
  padding: 60px 0 96px;
}
.hero-content .eyebrow{ color: var(--amber); }
.hero-content h1{ color: var(--white); max-width: 15ch; }
.hero-content p{ color: #DCE7EA; }
.hero-actions{ display:flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

.hero-dots{
  position:absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display:flex;
  gap: 10px;
  z-index: 6;
}
.hero-dots button{
  width: 30px; height: 4px;
  border-radius: 2px;
  border:none;
  background: rgba(255,255,255,0.35);
  cursor:pointer;
  padding:0;
}
.hero-dots button.active{ background: var(--amber); }

.hero-edge{
  position:absolute; left:0; right:0; bottom:0; z-index: 6;
}

/* ---------- page header (inner pages) ---------- */
.pagehead{
  background: var(--navy-deep);
  color: var(--white);
  padding: 64px 0 46px;
  position: relative;
}
.pagehead .eyebrow{ color: var(--amber); }
.pagehead h1{ color: var(--white); margin-bottom: 10px; }
.pagehead p{ color: #C7DBE2; max-width: 60ch; }
.crumb{ font-size: 0.85rem; color: #9FC1CC; }
.crumb a{ color: #9FC1CC; }
.crumb span{ color: var(--amber); }

/* ---------- stats band ---------- */
.stats{
  background: var(--navy);
  color: var(--white);
  padding: 46px 0;
}
.stats .wrap{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align:center;
}
.stat .num{
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  color: var(--amber);
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap: 3px;
}
.stat .label{
  font-size: 0.88rem;
  color: #CFE3EA;
  margin-top: 4px;
}

/* ---------- section headers ---------- */
.sec-head{
  max-width: 700px;
  margin-bottom: 44px;
}
.sec-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- service cards ---------- */
.grid-services{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.svc-card{
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  border-top: 4px solid var(--teal);
  transition: transform .2s ease, box-shadow .2s ease;
}
.svc-card:hover{ transform: translateY(-4px); }
.svc-card .thumb{ height: 160px; overflow:hidden; }
.svc-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.svc-card .body{ padding: 20px 22px 24px; flex:1; display:flex; flex-direction:column; }
.svc-card h3{ margin-bottom: 8px; }
.svc-card .taglist{
  display:flex; flex-wrap:wrap; gap: 6px;
  margin-top: auto;
  padding-top: 14px;
}
.svc-card .taglist span{
  font-size: 0.74rem;
  background: var(--paper-dim);
  color: var(--ink-soft);
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 600;
}
.svc-card p{ font-size: 0.93rem; margin-bottom: 10px; }

/* full services listing (services.html) */
.svc-full{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items:center;
  padding: 40px 0;
  border-bottom: 1px solid var(--paper-dim);
}
.svc-full:last-child{ border-bottom:none; }
.svc-full.rev .media{ order: 2; }
.svc-full .media img{
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.svc-full ul.items{
  list-style:none;
  margin: 16px 0 0;
  padding:0;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}
.svc-full ul.items li{
  font-size: 0.92rem;
  color: var(--ink);
  padding-left: 18px;
  position: relative;
  font-weight: 500;
}
.svc-full ul.items li::before{
  content:"";
  position:absolute;
  left:0; top: 0.55em;
  width: 8px; height: 8px;
  background: var(--amber);
}
.svc-full .index{
  font-family: var(--font-head);
  color: var(--steel-light);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: .08em;
}

/* ---------- band / quote ---------- */
.band-quote{
  background: var(--navy-deep);
  color: var(--white);
  text-align:center;
  padding: 70px 0;
}
.band-quote blockquote{
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 700;
  max-width: 800px;
  margin: 0 auto;
  color: var(--white);
  line-height: 1.35;
}
.band-quote cite{
  display:block;
  margin-top: 20px;
  color: var(--amber);
  font-style:normal;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- about teaser (home) ---------- */
.about-teaser{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items:center;
}
.about-teaser .drivers{
  display:grid;
  gap: 16px;
  margin-top: 20px;
}
.driver{
  display:flex;
  gap: 14px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.driver .ico{
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper-dim);
  display:flex; align-items:center; justify-content:center;
  color: var(--teal);
  font-weight: 800;
}
.driver h4{ margin: 0 0 4px; font-size: 1rem; font-family: var(--font-body); font-weight: 700; color: var(--navy-deep); }
.driver p{ margin:0; font-size: 0.88rem; }

.mission-card{
  background: var(--navy);
  color: var(--white);
  padding: 34px 30px;
  border-radius: var(--radius);
  position: relative;
}
.mission-card .eyebrow{ color: var(--amber); }
.mission-card p{ color: #DCE7EA; font-size: 1.05rem; font-style: italic; }

/* ---------- clients ---------- */
.clients-wrap{
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.clients-wrap img{ border-radius: 2px; }
.clients-note{
  text-align:center;
  max-width: 640px;
  margin: 0 auto 30px;
}

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--amber);
  color: var(--navy-deep);
}
.cta-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 20px;
  flex-wrap:wrap;
  padding: 46px 0;
}
.cta-inner h2{ color: var(--navy-deep); margin:0; }
.cta-inner p{ color: var(--navy-deep); opacity:.85; margin: 6px 0 0;}

/* ---------- footer ---------- */
footer.site{
  background: var(--navy-deep);
  color: #B9CDD4;
  padding-top: 56px;
}
.foot-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.foot-brand{ display:flex; gap: 12px; margin-bottom: 14px; }
.foot-brand img{ height: 46px; }
.foot-brand .name{ font-family: var(--font-head); color: var(--white); font-weight:800; }
.foot-brand .tag{ font-size: 0.75rem; color: var(--teal-light); font-style: italic; }
footer.site h4{
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
footer.site ul{ list-style:none; margin:0; padding:0; display:grid; gap: 9px; }
footer.site a{ color: #B9CDD4; font-size: 0.9rem; }
footer.site a:hover{ color: var(--amber); }
footer.site p.small{ color: #9AB1B9; font-size: 0.86rem; }
.foot-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 20px 0;
  font-size: 0.82rem;
  color: #85A0A8;
  flex-wrap:wrap;
  gap: 8px;
}
.foot-bottom a{ color: #85A0A8; }

/* ---------- about page specifics ---------- */
.twocol{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.card{
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  border-left: 4px solid var(--teal);
}
.card h3{ margin-bottom: 10px; }

.steps{
  counter-reset: step;
  list-style:none;
  margin: 0; padding: 0;
  display:grid;
  gap: 16px;
}
.steps li{
  counter-increment: step;
  position: relative;
  padding: 16px 20px 16px 64px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  color: var(--ink);
}
.steps li::before{
  content: counter(step);
  position:absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--amber);
  font-family: var(--font-head);
  font-weight: 800;
  display:flex; align-items:center; justify-content:center;
  font-size: 0.95rem;
}

/* organogram */
.org{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 0;
}
.org-node{
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 20px;
  border-radius: var(--radius);
  text-align:center;
  box-shadow: var(--shadow);
}
.org-node.top{ background: var(--navy-deep); }
.org-node.leaf{ background: var(--teal); font-weight:600; font-size: 0.82rem; }
.org-connector{ width: 2px; height: 26px; background: var(--steel-light); }
.org-branches{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  width: 100%;
  margin-top: 0;
}
.org-branch{ display:flex; flex-direction:column; align-items:center; gap: 0; }
.org-branch .chain{ display:flex; flex-direction:column; align-items:center; gap: 0; margin-top: 10px; }
.org-h{ width: 100%; height: 2px; background: var(--steel-light); margin-bottom: 0; }

/* csr */
.csr{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items:center;
}
.csr .stat-big{
  font-family: var(--font-head);
  font-size: 2.6rem;
  color: var(--teal);
  font-weight:800;
}

/* ---------- contact page ---------- */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.info-card{
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 20px;
}
.info-card h3{ display:flex; align-items:center; gap: 10px; }
.info-card .badge{
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--paper-dim);
  color: var(--teal);
  display:flex; align-items:center; justify-content:center;
  flex: none;
}
.info-list{ list-style:none; margin: 12px 0 0; padding:0; display:grid; gap: 8px; }
.info-list li{ font-size: 0.95rem; color: var(--ink); }
.info-list li strong{ color: var(--ink-soft); font-weight:600; display:inline-block; min-width: 80px; }

.person-card{
  display:flex;
  gap: 16px;
  align-items:flex-start;
}
.person-card .avatar{
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--amber);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-head);
  font-weight: 800;
  flex: none;
}

form.contact-form{
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  display:grid;
  gap: 16px;
}
form.contact-form .row2{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.contact-form label{
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-deep);
  display:block;
  margin-bottom: 6px;
}
form.contact-form input,
form.contact-form select,
form.contact-form textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--paper-dim);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
}
form.contact-form input:focus,
form.contact-form select:focus,
form.contact-form textarea:focus{
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}
form.contact-form textarea{ resize: vertical; min-height: 110px; }
.form-msg{
  font-size: 0.9rem;
  padding: 12px 14px;
  border-radius: var(--radius);
  display:none;
}
.form-msg.show{ display:block; }
.form-msg.ok{ background: #E4F3E8; color: #1E5E33; }

.map-note{
  background: var(--navy-deep);
  color: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  display:flex;
  gap: 16px;
  align-items:flex-start;
}
.map-note svg{ flex: none; }
.map-note p{ color: #C7DBE2; margin:0; font-size: 0.9rem; }

/* focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- responsive ---------- */
@media (max-width: 980px){
  .grid-services{ grid-template-columns: repeat(2,1fr); }
  .about-teaser{ grid-template-columns: 1fr; }
  .twocol{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .foot-grid{ grid-template-columns: 1fr 1fr; }
  .svc-full, .svc-full.rev{ grid-template-columns: 1fr; }
  .svc-full.rev .media{ order: 0; }
  .org-branches{ grid-template-columns: repeat(2,1fr); }
  .csr{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .stats .wrap{ grid-template-columns: repeat(2,1fr); gap: 26px; }
  nav.mainnav{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--navy-deep);
    transform: translateX(100%);
    transition: transform .3s ease;
    padding: 90px 30px;
    z-index: 40;
  }
  nav.mainnav.open{ transform: translateX(0); }
  nav.mainnav ul{ flex-direction:column; align-items:flex-start; gap: 22px; }
  nav.mainnav a{ color: var(--white); font-size: 1.05rem; }
  .navtoggle{ display:block; }
  .navcta .btn-amber{ padding: 10px 16px; font-size: 0.86rem; }
  .grid-services{ grid-template-columns: 1fr; }
  .foot-grid{ grid-template-columns: 1fr; }
  form.contact-form .row2{ grid-template-columns: 1fr; }
  .hero{ min-height: 480px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .hero .slide{ transition: none; }
  .svc-card, .btn{ transition: none; }
}
