/* =========================================================
   DAC - Design & Analysis Consultants
   Rebuilt static site (colours/layout matched from dac-uk.com)
   ========================================================= */

:root{
  --navy:        #1e2d3b;   /* headings, nav background */
  --blue-grey:   #3d5975;   /* card/subsection titles */
  --lime:        #a4c639;   /* brand accent */
  --text-dark:   #3b3a3a;   /* body copy */
  --grey-light:  #f7f7f7;   /* alternate section background */
  --grey-mid:    #757575;
  --white:       #ffffff;
  --border-grey: #e3e3e3;

  --font-head: 'Poppins', Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;

  --container-w: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3{ font-family: var(--font-head); margin: 0 0 .5em; color: var(--navy); }

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

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 999;
}
.skip-link:focus{ left: 8px; top: 8px; }

/* ===== HEADER ===== */
.site-header{
  display: flex;
  align-items: stretch;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,.15);
}
.brand{
  background: var(--lime);
  display: flex;
  align-items: center;
  padding: 10px 24px;
  flex-shrink: 0;
}
.brand-logo{ height: 50px; width: auto; }

.main-nav{
  background: var(--navy);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.main-nav ul{
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0 32px;
}
.main-nav a{
  color: var(--white);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.main-nav a:hover,
.main-nav a:focus{
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 2px;
  background: var(--white);
  width: 100%;
}

/* ===== HERO ===== */
.hero{
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
}
.hero-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero-bg--active{
  opacity: 1;
}
@media (prefers-reduced-motion: reduce){
  .hero-bg{ transition: none; }
}
.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,16,22,.55), rgba(10,16,22,.65));
}
.hero-content{
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}
.hero h1{
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .5em;
  text-transform: uppercase;
}
.hero .tagline{
  font-size: 1.15rem;
  margin-bottom: 2em;
}
.scroll-cue{
  display: inline-flex;
  animation: bounce 2s infinite;
}
@keyframes bounce{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(8px); }
}
@media (prefers-reduced-motion: reduce){
  .scroll-cue{ animation: none; }
}

/* ===== SECTION SHARED ===== */
.section{ padding: 90px 0; }
.section-title{
  font-size: 2.75rem;
  font-weight: 800;
  text-transform: uppercase;
}
.underline{
  width: 90px;
  height: 5px;
  background: var(--lime);
  margin-bottom: 2.5em;
}
.about .underline, .clients .underline, .contact .underline{ margin-bottom: 2em; }

/* ===== SERVICES ===== */
.cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.card{
  background: var(--grey-light);
  display: flex;
  flex-direction: column;
}
.card img{ width: 100%; height: 220px; object-fit: cover; }
.card-body{ padding: 28px; }
.card-body h3{ color: var(--blue-grey); font-size: 1.4rem; }
.card-body p{ margin: 0 0 1em; font-size: .97rem; }

/* ===== ABOUT ===== */
.about{ background: var(--grey-light); }
.about-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.about-text h3{ color: var(--blue-grey); font-size: 1.15rem; margin-top: 1.4em; }
.about-image img{ width: 100%; height: auto; object-fit: cover; }

@media (max-width: 860px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-image{ order: -1; }
}

/* ===== STATS ===== */
.stats{ background: var(--lime); padding: 60px 0; }
.stats-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.stat{
  display: flex;
  flex-direction: column;
  gap: .3em;
  border-right: 1px solid rgba(30,45,59,.35);
}
.stat:last-child{ border-right: none; }
.stat-number{
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy);
}
.stat-label{
  color: var(--blue-grey);
  font-weight: 600;
  font-size: 1.05rem;
}
@media (max-width: 640px){
  .stats-grid{ grid-template-columns: 1fr; gap: 28px; }
  .stat{ border-right: none; border-bottom: 1px solid rgba(30,45,59,.35); padding-bottom: 20px; }
  .stat:last-child{ border-bottom: none; padding-bottom: 0; }
}

/* ===== CLIENTS ===== */
.client-logos{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 56px;
}
.client-logos img{
  height: 70px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .85;
  transition: filter .2s, opacity .2s;
}
.client-logos img:hover{ filter: grayscale(0%); opacity: 1; }

/* ===== CONTACT ===== */
.contact-grid{
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
}
.contact-info h3{ color: var(--blue-grey); font-size: 1.3rem; }
.contact-info p{ margin: 0 0 1.5em; }
.contact-info a{ color: var(--blue-grey); text-decoration: underline; }

.contact-form-wrap h3{ color: var(--navy); font-size: 1.5rem; margin-bottom: .8em; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group{ margin-bottom: 18px; }
.form-group label{ display: block; font-size: .9rem; margin-bottom: 6px; color: var(--text-dark); }
.form-group input,
.form-group textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grey-mid);
  background: var(--grey-light);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text-dark);
}
.form-group input:focus,
.form-group textarea:focus{
  outline: 2px solid var(--blue-grey);
  outline-offset: 1px;
}
.hp-field{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit{
  background: var(--text-dark);
  color: var(--lime);
  border: 1px solid var(--grey-mid);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 40px;
  cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover{ background: #000; }
.btn-submit:disabled{ opacity: .6; cursor: default; }

.form-status{ margin-top: 14px; font-size: .95rem; }
.form-status.ok{ color: #2f7a3d; }
.form-status.err{ color: #b3261e; }

@media (max-width: 780px){
  .contact-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.site-footer{
  background: var(--navy);
  color: #cfd6dc;
  padding: 28px 0;
  font-size: .85rem;
}
.site-footer p{ margin: 0 0 .4em; }
.site-footer a{ color: var(--lime); }

/* ===== RESPONSIVE NAV (mobile) ===== */
@media (max-width: 760px){
  .nav-toggle{ display: flex; }
  .main-nav{ position: relative; }
  .main-nav ul{
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--navy);
    padding: 8px 0;
  }
  .main-nav ul.open{ display: flex; }
  .main-nav a{
    padding: 14px 24px;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .brand-logo{ height: 40px; }
  .section{ padding: 60px 0; }
  .section-title{ font-size: 2.1rem; }
}
