/* ===================== D'DELOITTE — site styles ===================== */

:root {
  --blue: #1958b8;
  --blue-dark: #11407f;
  --orange: #f3631e;
  --orange-dark: #d6491a;
  --navy: #1c2940;
  --gray-bg: #f4f6f9;
  --text: #4a5468;
  --text-dark: #1c2940;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(28, 41, 64, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Honeypot field - hidden from real visitors, traps bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Form submission feedback banner */
.form-alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  margin-bottom: 20px;
}
.form-alert--success { background: #e3f6e8; color: #1e7d3a; border: 1px solid #b6e6c4; }
.form-alert--error { background: #fdeaea; color: #b3261e; border: 1px solid #f5c2c0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: #fff;
}

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

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

ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  color: var(--text-dark);
  font-weight: 800;
  line-height: 1.25;
}

.section { padding: 80px 0; }
.section--gray { background: var(--gray-bg); }
.section--navy { background: var(--navy); color: #cfd6e4; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 50px;
  text-align: center;
}
.section-head h2 { font-size: 2rem; margin-bottom: 14px; }
.section-head p { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-dark); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #0f1828; }
.btn--outline { background: transparent; border-color: #fff; color: #fff; }
.btn--outline:hover { background: #fff; color: var(--navy); }
.btn--outline-dark { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline-dark:hover { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy);
  color: #cfd6e4;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: #cfd6e4; }
.topbar .topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar .topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .topbar-social a { margin-left: 14px; color: #cfd6e4; }
.topbar .topbar-social a:hover { color: var(--orange); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 16px rgba(28,41,64,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
}
.nav-links a.active,
.nav-links a:hover { color: var(--orange); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--orange);
}

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .phone { font-weight: 700; color: var(--navy); white-space: nowrap; }
.nav-cta .phone span { display: block; font-size: 0.75rem; font-weight: 500; color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero Slider ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: 640px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, rgba(20,32,56,0.5), rgba(25,88,184,0.35)), var(--hero-img) center/cover no-repeat;
  padding: 130px 0 100px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  z-index: 1;
}
.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hero .eyebrow { color: var(--orange); text-shadow: 0 2px 10px rgba(0,0,0,0.55); }
.hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  max-width: 720px;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  min-height: 1.3em;
}
.hero h1 .typed-cursor {
  display: inline-block;
  margin-left: 2px;
  animation: heroCursorBlink 0.8s step-end infinite;
}
@keyframes heroCursorBlink { 50% { opacity: 0; } }
.hero p { max-width: 600px; font-size: 1.05rem; color: #e3e8f2; margin-bottom: 30px; text-shadow: 0 2px 8px rgba(0,0,0,0.55); }
.hero .btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Animate the hero text in on the active slide */
.hero-slide .eyebrow,
.hero-slide p,
.hero-slide .btn-row {
  opacity: 0;
  transform: translateY(32px);
}
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.hero-slide.active .eyebrow   { animation: heroFadeUp 0.7s ease forwards 0.15s; }
.hero-slide.active p          { animation: heroFadeUp 0.7s ease forwards 0.55s; }
.hero-slide.active .btn-row   { animation: heroFadeUp 0.7s ease forwards 0.75s; }

/* Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.hero-arrow:hover { background: var(--orange); border-color: var(--orange); }
.hero-arrow--prev { left: 24px; }
.hero-arrow--next { right: 24px; }

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}
.hero-dots button.active {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.2);
}

/* Page header (inner pages) */
.page-header {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 90px 0 70px;
  background: linear-gradient(120deg, rgba(20,32,56,0.88), rgba(25,88,184,0.78)), var(--hero-img) center/cover no-repeat;
}
.page-header h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; }
.page-header .crumbs { color: #cfd6e4; font-size: 0.95rem; }
.page-header .crumbs a { color: var(--orange); font-weight: 600; }

/* Request-service bar overlapping hero */
.request-bar {
  background: var(--navy);
  border-radius: var(--radius);
  margin-top: -64px;
  position: relative;
  z-index: 5;
  padding: 30px;
  box-shadow: var(--shadow);
}
.request-bar h3 { color: #fff; font-size: 1.2rem; margin-bottom: 18px; }
.request-bar form {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 14px;
}
.request-bar input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 6px;
  border: none;
  font-size: 0.92rem;
  font-family: inherit;
}
.request-bar button { white-space: nowrap; }

/* ---------- About / split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split h2 { font-size: 1.9rem; margin-bottom: 16px; }

/* Secondary inset photo overlapping the main split image */
.split-media--double { position: relative; }
.split-media--double .sub-photo {
  position: absolute;
  bottom: -28px;
  right: -28px;
  width: 42%;
  border: 5px solid #fff;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* Placeholder for sections awaiting a real photo */
.image-placeholder {
  min-height: 320px;
  border-radius: var(--radius);
  border: 2px dashed #c7cedb;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text);
  font-weight: 600;
  padding: 30px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  font-weight: 600;
  color: var(--text-dark);
}
.checklist li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ---------- Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease;
}
.card:hover { transform: translateY(-6px); }
.card img { height: 220px; object-fit: cover; width: 100%; }
.card-body { padding: 26px; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card-body .more { color: var(--orange); font-weight: 700; font-size: 0.9rem; display: inline-block; margin-top: 10px; }

.icon-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 30px;
  text-align: left;
  border-top: 4px solid var(--orange);
}
.icon-card .icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--gray-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--orange);
  margin-bottom: 20px;
}
.icon-card h3 { font-size: 1.15rem; margin-bottom: 10px; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}
.stats .num { font-size: 2.6rem; font-weight: 800; color: var(--orange); }
.stats .label { color: #cfd6e4; font-weight: 600; }

/* ---------- Testimonial / quote ---------- */
.quote {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  border-left: 5px solid var(--orange);
}
.quote p { font-style: italic; font-size: 1.05rem; color: var(--text-dark); margin-bottom: 14px; }
.quote .who { font-weight: 700; color: var(--orange); }

/* ---------- Emergency callout ---------- */
.callout {
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
}
.callout h4 { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.callout .num { font-size: 1.4rem; font-weight: 800; margin-top: 8px; display: inline-block; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
}
.newsletter h3 { color: #fff; font-size: 1.2rem; }
.newsletter form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter input {
  padding: 13px 18px;
  border-radius: 6px;
  border: none;
  min-width: 280px;
  font-family: inherit;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #b9c2d4;
  padding-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid h4 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; }
.footer-grid img.brand-logo { height: 46px; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a:hover { color: var(--orange); }
.footer-grid address { font-style: normal; }
.footer-grid address p { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.socials a:hover { background: var(--orange); border-color: var(--orange); }

/* ---------- Misc ---------- */
.bg-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.home-gallery img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  background: #fff;
}
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-30 { margin-bottom: 30px; }

.banner-cta {
  background: linear-gradient(120deg, rgba(20,32,56,0.85), rgba(25,88,184,0.7)), var(--hero-img) center/cover no-repeat;
  color: #fff;
  border-radius: var(--radius);
  padding: 60px;
}
.banner-cta h2 { color: #fff; font-size: 1.8rem; max-width: 520px; margin-bottom: 16px; }
.banner-cta p { max-width: 520px; color: #e3e8f2; margin-bottom: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links, .nav-cta .phone { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn--orange { padding: 8px 12px; font-size: 0.7rem; white-space: nowrap; }
  .brand img { height: 40px; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    padding: 20px 24px;
    box-shadow: var(--shadow);
    gap: 16px;
  }
  .grid-3, .grid-2, .split, .stats, .footer-grid { grid-template-columns: 1fr; }
  .split { gap: 30px; }
  .split .split-media { order: -1; }
  .request-bar form { grid-template-columns: 1fr; }
  .topbar .topbar-info { display: none; }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .hero-slide { padding: 40px 0 60px; }
  .newsletter, .banner-cta { padding: 28px; }
}
