/* ============ ByteLedgers - shared styles ============ */
:root {
  --blue: #2554e8;
  --blue-dark: #1c3fc0;
  --blue-light: #6489f2;
  --charcoal: #1e2530;
  --charcoal-dark: #14181f;
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --teal-light: #5eead4;
  --navy: #15183D;
  --brand-teal: #16AD9C;
  --ink: #1e2530;
  --grey: #5a6472;
  --grey-light: #f0f3f8;
  --white: #ffffff;
  --radius: 10px;
  --max-width: 1600px;
  --shadow: 0 10px 30px rgba(30, 37, 48, 0.08);
  --shadow-lg: 0 20px 50px rgba(30, 37, 48, 0.16);
  --wave-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpath fill='white' fill-opacity='0.10' d='M0,32L60,42.7C120,53,240,75,360,80C480,85,600,75,720,64C840,53,960,43,1080,48C1200,53,1320,75,1380,85.3L1440,96L1440,220L0,220Z'/%3E%3C/svg%3E");
  --wave-teal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpath fill='%2314b8a6' fill-opacity='0.14' d='M0,32L60,42.7C120,53,240,75,360,80C480,85,600,75,720,64C840,53,960,43,1080,48C1200,53,1320,75,1380,85.3L1440,96L1440,220L0,220Z'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 100px; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  line-height: 1.25;
  margin: 0 0 .6em;
}

p { margin: 0 0 1em; color: var(--grey); }

a { color: inherit; text-decoration: none; }

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

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

@media (min-width: 1024px) {
  .container, .nav { padding-left: 48px; padding-right: 48px; }
}

@media (min-width: 1440px) {
  .container, .nav { padding-left: 64px; padding-right: 64px; }
}

.section {
  padding: 80px 0;
}

.section--tight { padding: 56px 0; }

.section--alt { background: var(--grey-light); }

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--teal-dark);
  margin-bottom: 14px;
}

/* ---------- Header / Nav (overlays hero) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease;
}

.site-header.scrolled {
  background: rgba(20, 24, 31, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 22px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .01em;
}

.brand-tag {
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-top: 1px;
  align-self: flex-end;
  text-align: right;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-cta {
  white-space: nowrap;
}

.nav-links a:not(.btn) {
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: .95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.nav-links a:not(.btn):hover,
.nav-links a.active:not(.btn) {
  color: var(--white);
  border-color: var(--teal-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  display: block;
}

.nav-item--dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  margin: 10px 0 0;
  padding: 10px;
  list-style: none;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 200;
}

.nav-item--dropdown:hover .dropdown-menu,
.nav-item--dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 14px !important;
  border-radius: 6px;
  color: var(--charcoal) !important;
  font-weight: 600;
  font-size: .9rem !important;
  border-bottom: none !important;
}

.dropdown-menu li a:hover {
  background: var(--grey-light);
  color: var(--blue) !important;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dropdown-submenu > a::after {
  content: "\276F";
  font-size: .7rem;
  opacity: .55;
  transition: transform .2s ease;
}

.dropdown-submenu:hover > a::after,
.dropdown-submenu:focus-within > a::after {
  transform: rotate(90deg);
}

.dropdown-submenu-menu {
  position: static;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--grey-light);
  border-radius: 8px;
  transition: max-height .3s ease, padding .3s ease, margin .3s ease;
}

.dropdown-submenu:hover .dropdown-submenu-menu,
.dropdown-submenu:focus-within .dropdown-submenu-menu {
  max-height: 480px;
  margin-top: 6px;
  padding: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn--sm { padding: 10px 22px; font-size: .85rem; }

.btn--primary {
  background: var(--blue);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--white {
  background: var(--white);
  color: var(--blue);
}

.btn--white:hover {
  background: var(--grey-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: var(--white);
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
}

/* ---------- Hero / Page header / CTA wave accents ---------- */
.hero,
.page-header,
.cta-banner {
  position: relative;
  overflow: hidden;
}

.hero,
.page-header {
  background: var(--blue);
  color: var(--white);
}

.hero::before,
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--wave-white);
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100% 60%;
  pointer-events: none;
}

.hero::after,
.page-header::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  top: -160px;
  right: -140px;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
  pointer-events: none;
}

.hero .container,
.page-header .container {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 168px 0 96px;
}

.hero-inner {
  max-width: none;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.hero .eyebrow {
  color: var(--teal-light);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: .35em;
}

.hero .sub {
  font-size: 1.25rem;
  color: var(--teal-light);
  font-weight: 700;
  margin-bottom: .6em;
}

.hero p:not(.sub) {
  color: #dbe4fb;
  font-size: 1.08rem;
  max-width: 620px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin: 30px 0 34px;
  flex-wrap: wrap;
}

.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  color: #eef2fd;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding: 150px 0 76px;
  text-align: center;
}

.page-header h1 { color: var(--white); margin-bottom: .3em; }
.page-header p { color: #dbe4fb; max-width: 640px; margin: 0 auto; }
.page-header .eyebrow { color: var(--teal-light); }

/* ---------- Alternating service blocks (Home + Services) ---------- */
.service-block {
  border: 1px solid #e6eaf0;
  border-radius: var(--radius);
  margin-bottom: 32px;
  box-shadow: var(--shadow);
  background: var(--white);
  overflow: hidden;
}

.service-block:last-child { margin-bottom: 0; }

.service-media-row {
  display: flex;
  flex-wrap: wrap;
}

.service-media {
  flex: 1 1 320px;
  min-height: 260px;
  background: var(--grey-light);
}

.service-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.service-copy {
  flex: 1 1 380px;
  padding: 36px;
  align-self: center;
}

.service-copy p {
  max-width: 620px;
}

.service-block--reverse .service-media-row {
  flex-direction: row-reverse;
}

.service-block h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.5rem;
}

.service-block h2 .num {
  color: var(--white);
  font-size: 1.05rem;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  background: var(--blue);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.subservice {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed #dde3ea;
}

.subservice:first-of-type {
  margin-top: 22px;
}

.subservice h4 {
  font-size: 1.02rem;
  margin-bottom: 6px;
  color: var(--charcoal);
}

.subservice p { margin-bottom: 0; }

.service-copy .btn { margin-top: 22px; }

/* ---------- Expanded services catalogue ---------- */
.service-category-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.service-category-head h3 {
  font-size: 1.25rem;
  margin: 0;
}

.service-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.service-tile {
  background: var(--white);
  border: 1px solid #e6eaf0;
  border-radius: 8px;
  padding: 20px 18px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}

.service-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.service-tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--grey-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.service-tile h4 {
  font-size: .98rem;
  margin-bottom: 6px;
  color: var(--charcoal);
}

.service-tile p {
  font-size: .84rem;
  margin: 0;
}

/* ---------- Why choose us ---------- */
.pillars {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  text-align: center;
}

.pillar {
  padding: 30px 20px;
}

.pillar-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.pillar h3 { font-size: 1.15rem; }

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.section-heading p { margin-top: 10px; }

/* ---------- Company overview ---------- */
.overview-row {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 52px;
  align-items: center;
}

.overview-copy p {
  text-align: left;
  line-height: 1.7;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-item {
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--blue);
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---------- Industries grid (reuses expertise-list look) ---------- */
.industries-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.industries-grid li {
  background: var(--white);
  border-left: 3px solid var(--teal);
  padding: 16px 18px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--charcoal);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

/* ---------- Process timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: #e2e7ee;
  z-index: 0;
}

.timeline-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.timeline-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin: 0 auto 16px;
  box-shadow: var(--shadow);
}

.timeline-step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.timeline-step p { font-size: .88rem; }

/* ---------- Mini contact strip (homepage) ---------- */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.contact-strip-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid #e6eaf0;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.contact-strip-item h4 { margin: 0 0 4px; font-size: 1rem; color: var(--charcoal); }
.contact-strip-item p { margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--charcoal);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--wave-teal);
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100% 70%;
  pointer-events: none;
}

.cta-banner::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  bottom: -200px;
  left: -140px;
  background: radial-gradient(circle, rgba(37,84,232,.22), transparent 70%);
  pointer-events: none;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner .eyebrow { color: var(--teal-light); }

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: .4em;
}

.cta-banner p {
  color: #c7cedb;
  margin-bottom: 26px;
}

/* ---------- Content blocks ---------- */
.prose h2 { margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }

.story-row {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 52px;
  align-items: center;
}

.story-copy h3 { font-size: 1.2rem; color: var(--blue); margin-bottom: .5em; }

.story-copy p { text-align: left; line-height: 1.65; }

.story-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.mission-row {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 52px;
  align-items: start;
}

.mission-row h2 { margin: 0; }

.value-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}

.value-list li {
  padding-left: 30px;
  position: relative;
  color: var(--ink);
}

.value-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--teal);
}

/* ---------- Team ---------- */
.team-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  background: var(--white);
  border: 1px solid #e6eaf0;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.team-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  border: 4px solid var(--teal-light);
}

.team-role {
  color: var(--teal-dark);
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 12px;
  display: block;
}

.expertise-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.expertise-list li {
  background: var(--grey-light);
  border-left: 3px solid var(--teal);
  padding: 12px 16px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--charcoal);
  border-radius: 4px;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 52px;
  align-items: start;
}

.contact-details h2 { margin-bottom: .4em; }

.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 26px 0;
}

.contact-row:first-of-type { margin-top: 30px; }

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grey-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-row h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--charcoal);
}

.contact-row p { margin: 0; }

.social-row {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}

.social-icon:hover {
  background: var(--teal);
  color: var(--charcoal-dark);
  transform: translateY(-3px);
}

.follow-us { margin-top: 34px; padding-top: 26px; border-top: 1px dashed #dde3ea; }
.follow-us h4 { font-size: 1rem; color: var(--charcoal); margin-bottom: 4px; }

/* Quote form */
.quote-form-card {
  background: var(--white);
  border: 1px solid #e6eaf0;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.quote-form-card .eyebrow { color: var(--teal-dark); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.form-grid .field--full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--grey-light);
  border: 1px solid #e2e7ee;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .2s, background .2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}

.field textarea { resize: vertical; min-height: 110px; }

.quote-form-card .btn { margin-top: 8px; width: 100%; text-align: center; }

/* ---------- Service category card grid (Home "Our Services" + Services page) ---------- */
.service-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-teal);
}

.service-card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--grey-light);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.service-card:hover .service-card-media img {
  transform: scale(1.07);
}

/* Full card variant (Home page) - image + white label banner with title, description and CTA */
.service-card-label {
  padding: 20px 22px 22px;
  border-top: 3px solid var(--navy);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-label h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.service-card-label p {
  font-size: .85rem;
  margin-bottom: 16px;
  flex: 1;
}

.service-card-label .btn { align-self: flex-start; }

/* Compact nav-card variant (Services page quick-nav overview) - image + bottom label banner only */
.service-card--nav .service-card-media { height: 220px; }

.service-card-banner {
  background: var(--white);
  border-top: 3px solid var(--navy);
  padding: 18px 16px;
  text-align: center;
  transition: background .2s ease, color .2s ease;
}

.service-card-banner span {
  font-weight: 700;
  font-size: .98rem;
  color: var(--charcoal);
  letter-spacing: .01em;
}

.service-card--nav:hover .service-card-banner {
  background: var(--navy);
}

.service-card--nav:hover .service-card-banner span {
  color: var(--white);
}

@media (max-width: 1180px) {
  .service-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .service-card-grid { grid-template-columns: 1fr; }
}

/* ---------- Map ---------- */
.map-frame {
  margin-top: 34px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #e6eaf0;
}

.map-frame iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 22px 46px rgba(0,0,0,.32);
}

@media (max-width: 860px) {
  .whatsapp-float { bottom: 18px; right: 18px; width: 50px; height: 50px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal-dark);
  color: #9aa5b8;
  padding: 68px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col .brand { margin-bottom: 16px; }
.footer-col .brand-name { color: var(--white); }
.footer-col .brand-tag { color: var(--teal-light); }

.footer-col p { color: #9aa5b8; font-size: .92rem; }

.footer-contact-list,
.footer-services-list,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.footer-contact-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .92rem;
  color: #9aa5b8;
}

.footer-contact-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--teal); }
.footer-contact-list li a { color: #9aa5b8; }
.footer-contact-list li a:hover { color: var(--teal-light); }

.footer-services-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  color: #9aa5b8;
  transition: color .2s;
}

.footer-services-list li a::before {
  content: "\2192";
  color: var(--teal);
  font-weight: 700;
}

.footer-services-list li a:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer-social .social-icon {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.06);
  color: var(--teal-light);
}

.footer-social .social-icon:hover {
  background: var(--teal);
  color: var(--charcoal-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 46px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .82rem;
  color: #6b7688;
}

.footer-bottom a { color: #9aa5b8; }
.footer-bottom a:hover { color: var(--teal-light); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .site-header { position: fixed; background: var(--blue); }
  .hero { padding-top: 60px; }
  .page-header { padding-top: 60px; }

  .nav { display: flex; justify-content: flex-start; }
  .nav-cta { margin-left: auto; }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    margin: 0;
    padding: 0 0 0 18px;
  }

  .dropdown-menu li a {
    color: rgba(255,255,255,.8) !important;
    padding: 12px 24px !important;
    font-size: .88rem !important;
  }

  .dropdown-submenu-menu li a {
    padding: 10px 24px !important;
    font-size: .84rem !important;
  }

  .hero-inner { grid-template-columns: 1fr; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 900px; overflow-y: auto; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-links li:last-child { padding: 16px 24px; }
  .nav-toggle { display: flex; }

  .story-row,
  .mission-row,
  .contact-grid,
  .overview-row { grid-template-columns: 1fr; }
  .story-media { order: -1; }
  .overview-stats { grid-template-columns: repeat(2, 1fr); margin-top: 8px; }

  .timeline { grid-template-columns: 1fr; gap: 32px; }
  .timeline::before { display: none; }

  .service-card-grid { gap: 18px; }
  .service-card-media { height: 180px; }
  .service-card--nav .service-card-media { height: 190px; }

  .team-card { grid-template-columns: 1fr; text-align: center; }
  .team-photo { margin: 0 auto; }
  .expertise-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
