/* ==========================================================================
   Equitas IT — shared stylesheet
   Palette: teal (brand, from logo), deep purple (accent), warm greys
   Type: Source Serif 4 (headlines) + IBM Plex Sans (body/UI)
   ========================================================================== */

:root {
  --teal-900: #163e46;
  --teal-800: #1b4e58;
  --teal-700: #236775;  /* primary brand teal, matched to reference */
  --teal-600: #2c7a89;
  --teal-500: #4f97a4;
  --teal-100: #e2edee;
  --teal-50:  #f1f7f7;

  --lime-600: #6fa832;   /* accent for text-on-white / hover */
  --lime-500: #95d354;   /* primary accent, matched to reference */
  --lime-400: #b0e07c;
  --lime-100: #eef8e3;

  --grey-900: #1d2726;
  --grey-700: #45514f;
  --grey-500: #6d7876;
  --grey-300: #c7d0ce;
  --grey-150: #e4e9e8;
  --grey-100: #eef1f0;
  --grey-50:  #f7f9f8;
  --white: #ffffff;

  --serif: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif; /* headings */
  --sans: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;   /* body / UI */

  --max: 1180px;
  --radius: 3px;
  --border: 1px solid var(--grey-150);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--teal-900);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: 1.15rem; color: var(--grey-700); max-width: 54ch; }

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

:focus-visible {
  outline: 2px solid var(--lime-600);
  outline-offset: 2px;
}

ul { padding-left: 1.2em; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal-900);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------------------------- Header --------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 58px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0; padding: 0;
  gap: 4px;
}
.main-nav a.nav-link {
  color: var(--grey-900);
  font-size: 0.96rem;
  padding: 10px 14px;
  border-radius: var(--radius);
  display: inline-block;
}
.main-nav a.nav-link:hover,
.main-nav a.nav-link[aria-current="page"] {
  color: var(--teal-700);
  background: var(--teal-50);
}

.has-dropdown { position: relative; }
.dropdown {
  list-style: none;
  margin: 0; padding: 8px;
  position: absolute;
  top: 100%; left: 0;
  min-width: 280px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(28,58,59,0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 12px;
  color: var(--grey-900);
  font-size: 0.93rem;
  border-radius: var(--radius);
}
.dropdown a:hover { background: var(--teal-50); color: var(--teal-700); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--teal-900);
  white-space: nowrap;
}
.header-phone span { color: var(--grey-500); font-family: var(--sans); font-size: 0.78rem; display: block; }

.nav-toggle {
  display: none;
  background: none; border: var(--border); border-radius: var(--radius);
  padding: 8px 10px; cursor: pointer;
}
.nav-toggle svg { display: block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--teal-700); color: #fff; }
.btn-primary:hover { background: var(--teal-800); color: #fff; }
.btn-outline { border-color: var(--teal-700); color: var(--teal-700); background: transparent; }
.btn-outline:hover { background: var(--teal-50); color: var(--teal-700); }
.btn-ghost-light { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-lime { background: var(--lime-500); color: var(--teal-900); }
.btn-lime:hover { background: var(--lime-400); color: var(--teal-900); }

.eyebrow-badge {
  display: inline-block;
  border: 1px solid rgba(149,211,84,0.45);
  background: rgba(149,211,84,0.1);
  color: var(--lime-500);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.accent { color: var(--lime-500); }

/* ---------------------------------- Hero --------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 130px 0 130px;
  background: var(--teal-900);
  color: #fff;
}
.hero h1 { color: #fff; }
.hero .lede { color: var(--teal-100); }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg img {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  object-fit: cover;
  animation: heroPan 24s ease-in-out infinite alternate;
}
.hero-bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
@keyframes heroPan {
  0%   { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.09) translate(-1.5%, -1%); }
}
.hero-bg .drift-a, .hero-bg .drift-b { animation: drift 16s ease-in-out infinite alternate; }
.hero-bg .drift-b { animation-duration: 21s; animation-direction: alternate-reverse; }
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(26px, -18px); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(13,42,49,0.96) 0%, rgba(13,42,49,0.90) 32%, rgba(13,42,49,0.62) 58%, rgba(13,42,49,0.28) 82%, rgba(13,42,49,0.12) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 640px; }
.hero-actions { display: flex; gap: 14px; margin: 28px 0 30px; flex-wrap: wrap; }

.credential-row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.credential-row .cred {
  font-size: 0.85rem;
  color: var(--teal-100);
  display: flex;
  align-items: center;
  gap: 8px;
}
.credential-row svg { flex-shrink: 0; color: var(--lime-500); }

/* Simple page hero (service/about/contact pages) */
.page-hero {
  padding: 56px 0 60px;
  background: var(--teal-900);
  color: #fff;
}
.page-hero h1 { color: #fff; }
.page-hero .lede { color: var(--teal-100); }
.breadcrumb {
  font-size: 0.82rem;
  color: var(--teal-500);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--teal-100); }
.breadcrumb a:hover { color: #fff; }

/* ---------------------------------- Photography --------------------------------- */
.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--grey-100);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame.tint::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(13,42,49,0.40) 0%, rgba(35,103,117,0.14) 55%, rgba(149,211,84,0.10) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.media-banner { line-height: 0; }
.media-banner .photo-frame { height: 340px; border-radius: 0; }
.media-side .photo-frame { height: 100%; min-height: 300px; }
.callout-media { margin-bottom: 16px; }
.callout-media .photo-frame { height: 150px; }

.bg-photo {
  position: relative;
  background-size: cover;
  background-position: center;
}
.bg-photo::before { content: ""; position: absolute; inset: 0; }
.bg-photo.bg-dark::before { background: rgba(19,50,57,0.90); }
.bg-photo.bg-tint::before { background: rgba(242,247,247,0.90); }
.bg-photo > .container { position: relative; z-index: 1; }

/* ---------------------------------- Sections --------------------------------- */
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.bg-tint { background: var(--teal-50); }
.bg-dark {
  background: var(--teal-900);
  color: var(--teal-50);
}
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark p { color: var(--teal-100); }

/* Services list (index) */
.service-list { border-top: var(--border); }
.service-row {
  display: grid;
  grid-template-columns: 56px 1.1fr 1.4fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-bottom: var(--border);
}
.service-row .icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-100);
  border-radius: var(--radius);
  color: var(--teal-700);
}
.service-row h3 { margin: 0 0 4px; font-size: 1.15rem; }
.service-row p { margin: 0; color: var(--grey-700); font-size: 0.96rem; }
.service-row .row-link {
  font-weight: 600; font-size: 0.9rem;
  white-space: nowrap;
}

/* Industry tags */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  border: 1px solid var(--grey-300);
  color: var(--grey-700);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
}

/* Stat / credential band */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-grid.stat-grid-wrap {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  row-gap: 28px;
}
.stat-grid .stat { border-left: 2px solid var(--lime-500); padding-left: 18px; }
.stat .num {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: #fff;
  display: block;
}
.stat .label { color: var(--teal-100); font-size: 0.9rem; }

/* Two column content */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: var(--border);
}
.checklist li:last-child { border-bottom: none; }
.checklist svg { flex-shrink: 0; color: var(--teal-700); margin-top: 3px; }

/* Quote / testimonial-style callout */
.callout {
  background: var(--teal-50);
  border-left: 3px solid var(--teal-700);
  padding: 28px 32px;
  border-radius: var(--radius);
}
.callout p:last-child { margin-bottom: 0; }

/* Industry-fit grid on service pages */
.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.fit-card {
  border: var(--border);
  padding: 22px;
  border-radius: var(--radius);
}
.fit-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.fit-card p { font-size: 0.92rem; color: var(--grey-700); margin: 0; }

/* CTA banner */
.cta-banner {
  background: var(--teal-900);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: var(--teal-100); margin: 0 auto 26px; }
.cta-banner .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* About page bits */
.timeline-note { border-left: 2px solid var(--teal-700); padding-left: 20px; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.info-card {
  border: var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.info-card h3 { font-size: 1rem; margin-bottom: 10px; }
.info-card p { margin: 0; font-size: 0.95rem; color: var(--grey-700); }
.info-card a { color: var(--teal-700); font-weight: 600; }

form.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--grey-900); }
.field input, .field select, .field textarea {
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--grey-900);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--purple-600);
  outline-offset: 1px;
  border-color: var(--purple-600);
}
.form-note { font-size: 0.82rem; color: var(--grey-500); }

.scale-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.scale-label { font-size: 0.78rem; color: var(--grey-500); }
.scale-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey-700);
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.scale-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.scale-option:has(input:checked) {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: #fff;
}
.scale-option:has(input:focus-visible) { outline: 2px solid var(--lime-600); outline-offset: 2px; }
.scale-row-11 .scale-option { width: 32px; height: 32px; font-size: 0.82rem; }
.form-status {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.form-status-error { background: rgba(220,60,60,0.12); color: #ffb3b3; border: 1px solid rgba(220,60,60,0.35); }
.form-status-success { background: rgba(149,211,84,0.14); color: var(--lime-400); border: 1px solid rgba(149,211,84,0.35); }

.map-placeholder {
  height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  background: var(--grey-50);
}
.map-placeholder p { font-size: 0.86rem; color: var(--grey-500); margin: 0; max-width: 32ch; }

.map-frame {
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 20px;
}
.map-frame iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ---------------------------------- Footer --------------------------------- */
.site-footer {
  background: var(--grey-900);
  color: var(--grey-300);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid .brand img { height: 46px; }
.site-footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--grey-300); font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.footer-tagline { color: var(--teal-500); font-family: var(--serif); font-style: italic; margin: 14px 0 0; font-size: 0.98rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--grey-500);
}

/* ---------------------------------- Cookie banner --------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  background: var(--teal-900);
  border-top: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.18);
}
.cookie-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner p {
  color: var(--teal-100);
  font-size: 0.9rem;
  margin: 0;
  max-width: 62ch;
}
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-banner .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.cookie-banner .btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ---------------------------------- Responsive --------------------------------- */
@media (max-width: 900px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 90px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fit-grid { grid-template-columns: 1fr; }
  .media-banner .photo-frame { height: 220px; }
  .media-side .photo-frame { height: 220px; min-height: 0; }
  .service-row {
    grid-template-columns: 44px 1fr;
    row-gap: 4px;
  }
  .service-row .icon { grid-row: 1 / span 3; }
  .service-row h3 { grid-column: 2; grid-row: 1; }
  .service-row p { grid-column: 2; grid-row: 2; }
  .service-row .row-link { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 6px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .scale-row-11 .scale-label { display: none; }
  .scale-row-11 .scale-option { width: 28px; height: 28px; font-size: 0.76rem; }
  .scale-row .scale-option { width: 32px; height: 32px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1; }
  .main-nav {
    position: fixed;
    inset: 84px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px;
    transform: translateX(100%);
    transition: transform .2s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; display: none; padding-left: 12px;
  }
  .has-dropdown.open .dropdown { display: block; }
  .header-phone { display: none; }
  .header-actions .btn-primary { padding: 10px 16px; font-size: 0.88rem; }
}
