/* ============================================================
   Hitech Detective Systems Ltd — Front-end Design System
   Modern single-page layout inspired by soscry.com
   Brand: Navy #101F42 / #1F3370 + Gold #C9A227
   ============================================================ */
:root {
  --primary: #1F3370;
  --primary-dark: #101F42;
  --primary-light: #2a458f;
  --accent: #C9A227;
  --accent-dark: #A8861D;
  --accent-soft: rgba(201, 162, 39, 0.12);
  --ink: #0f172a;
  --body: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 12px 40px -12px rgba(15, 23, 42, .2);
  --shadow-lg: 0 25px 60px -20px rgba(15, 23, 42, .3);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --header-h: 78px;
  --topbar-h: 42px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.22; font-weight: 700; letter-spacing: -0.02em; }
ul { list-style: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.icon { width: 1em; height: 1em; vertical-align: -.125em; fill: none; flex-shrink: 0; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
i.icon { font-style: normal; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 600;
  border: 2px solid var(--primary); cursor: pointer;
  transition: all .25s ease; font-size: 15px; line-height: 1.2;
  font-family: inherit; white-space: nowrap;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary-dark); border-color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------- Topbar ---------- */
.topbar, .site-topbar {
  background: var(--primary-dark);
  color: #f3e9c8;
  font-size: 13px;
  line-height: 1.4;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 8px 0;
  flex-wrap: wrap;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.topbar-note {
  font-weight: 600;
  white-space: nowrap;
}
.topbar-link {
  color: inherit;
  opacity: .9;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-link:hover { opacity: 1; color: #fff; }
.topbar-link .icon { width: 14px; height: 14px; flex-shrink: 0; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.topbar-social {
  color: inherit;
  opacity: .85;
  display: inline-flex;
}
.topbar-social:hover { opacity: 1; color: #fff; }
.topbar-cta {
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  font-size: 12.5px;
}
.topbar-cta:hover { background: var(--accent); color: var(--ink); }
@media (max-width: 768px) {
  .topbar-note, .topbar-link span { display: none; }
  .topbar-link .icon { display: inline-block; }
  .topbar-left { gap: 12px; }
}

/* ---------- Header (sticky) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: var(--header-h);
}
.header-right {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.brand-mark .icon { width: 22px; height: 22px; }
.brand-name { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.15; }
.brand-name em { font-style: normal; color: var(--primary); font-weight: 700; display: block; font-size: 12.5px; letter-spacing: 0; }
.brand-logo { max-height: 48px; width: auto; display: block; flex-shrink: 0; }
.brand-text {
  display: flex; flex-direction: column; justify-content: center;
  line-height: 1.2; min-width: 0;
}
.brand-name-line {
  font-size: 14.5px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.02em; white-space: nowrap;
}
.brand-tagline {
  font-size: 11px; font-weight: 600; color: var(--muted);
  letter-spacing: 0.01em; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 220px;
}
@media (max-width: 1100px) {
  .brand-tagline { display: none; }
}
@media (max-width: 900px) {
  .brand-name-line { font-size: 13px; max-width: 140px; white-space: normal; }
}
.brand-logo-footer { max-height: 64px; }

.main-nav .nav-menu { display: flex; gap: 2px; align-items: center; }
.main-nav .menu-item > a {
  display: block; padding: 10px 15px; font-weight: 600;
  color: var(--ink); font-size: 14.5px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.main-nav .menu-item > a:hover,
.main-nav .menu-item.active > a { color: var(--primary); background: var(--accent-soft); }
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: .2s; z-index: 60;
}
.main-nav .menu-item { position: relative; }
.main-nav .menu-item.has-children:hover .sub-menu,
.main-nav .menu-item.has-children:focus-within .sub-menu {
  opacity: 1; visibility: visible; transform: none;
}
.main-nav .sub-menu a {
  padding: 9px 12px; display: block; border-radius: 8px;
  font-weight: 500; color: var(--ink); font-size: 14px;
}
.main-nav .sub-menu a:hover { background: var(--bg); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: none; border: 0; font-size: 26px;
  cursor: pointer; color: var(--ink); line-height: 1; padding: 4px;
}

/* ---------- Hero Slider ---------- */
.hero-slider {
  position: relative; height: min(720px, 88vh);
  overflow: hidden; background: var(--primary-dark);
}
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0; transition: opacity .9s ease; display: flex;
}
.slide-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
  pointer-events: none; display: block;
}
.slide-overlay { z-index: 1; }
.slide-content { z-index: 2; }
.slide.current { opacity: 1; z-index: 1; }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(16,31,66,.92) 0%, rgba(16,31,66,.72) 45%, rgba(16,31,66,.4) 100%);
}
.slide-content {
  position: relative; z-index: 2; align-self: center;
  color: #fff; max-width: 680px; padding: 40px 0;
}
.slide-kicker {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
  padding: 6px 14px; background: rgba(201,162,39,.15);
  border-radius: 999px; border: 1px solid rgba(201,162,39,.35);
}
.slide-heading {
  font-size: clamp(2rem, 4.5vw, 3.4rem); color: #fff;
  margin-bottom: 20px; line-height: 1.15; font-weight: 800;
}
.slide-heading span { color: var(--accent); }
.slide-text {
  font-size: 1.1rem; color: rgba(255,255,255,.85);
  margin-bottom: 28px; max-width: 540px; line-height: 1.6;
}
.slide-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #fff; cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: .2s; backdrop-filter: blur(6px);
}
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }
.slider-dots {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; gap: 8px;
}
.slider-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.35); cursor: pointer; transition: .2s; padding: 0;
}
.slider-dots button.active { background: var(--accent); width: 28px; border-radius: 999px; }

/* ---------- Sections common ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg); }
.section-dark {
  background: var(--primary-dark); color: rgba(255,255,255,.85);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .kicker,
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Decorative underline (soscry style) */
.section-title::after {
  content: ""; display: block; width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 16px auto 0; border-radius: 2px;
}
.section-head-left { text-align: left; max-width: none; margin: 0 0 40px; }
.section-head-left .section-title::after { margin-left: 0; }

/* ---------- Welcome / About ---------- */
/* Image LEFT + content RIGHT, side by side on desktop/tablet */
.welcome-grid {
  display: grid !important;
  grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 1fr) !important;
  gap: 40px 48px;
  align-items: center;
}
.welcome-media {
  position: relative;
  min-width: 0;
}
.welcome-media img {
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.welcome-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.welcome-body .section-title {
  text-align: left;
  margin-bottom: 0;
}
.welcome-body .section-title::after {
  margin-left: 0;
}
.welcome-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: var(--primary-dark); color: #fff;
  padding: 12px 18px; border-radius: 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-md); font-weight: 700; font-size: 14px;
}
.welcome-badge-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.welcome-badge-icon .icon, .welcome-badge-icon i { width: 20px; height: 20px; font-size: 18px; color: var(--ink); }
.welcome-text { margin: 14px 0 8px; }
.welcome-text p { margin-bottom: 12px; line-height: 1.65; }
.welcome-features { display: grid; gap: 16px; margin-top: 20px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.feature-icon .icon, .feature-icon i { width: 20px; height: 20px; font-size: 18px; color: var(--primary); }
.feature h4 { font-size: 16px; margin-bottom: 2px; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Services / Features ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px 28px; border: 1px solid var(--line);
  transition: all .3s ease; position: relative; overflow: hidden;
}
.service-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: opacity .3s;
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon .icon, .service-icon i { width: 26px; height: 26px; font-size: 22px; color: #fff; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* Services with photos */
.services-photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-photo-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: all .3s ease;
}
.service-photo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-photo-card .photo {
  aspect-ratio: 16/11; overflow: hidden; background: var(--bg-alt);
}
.service-photo-card .photo img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .5s;
}
.service-photo-card:hover .photo img { transform: scale(1.05); }
.service-photo-card .body { padding: 24px; }
.service-photo-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-photo-card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- How We Work / Process ---------- */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; counter-reset: step;
}
.process-step {
  text-align: center; position: relative; padding: 28px 18px;
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 800; font-size: 1.15rem;
  margin: 0 auto 20px; box-shadow: 0 8px 24px rgba(31,51,112,.3);
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--muted); margin: 0; }
.process-step:not(:last-child)::after {
  content: ""; position: absolute; top: 56px; left: calc(50% + 40px);
  width: calc(100% - 80px); height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* ---------- Stats ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff; padding: 70px 0;
}
.stats-title { text-align: center; color: #fff; margin-bottom: 40px; font-size: 1.8rem; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(201,162,39,.2); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.stat-icon .icon, .stat-icon i { width: 22px; height: 22px; font-size: 20px; color: var(--accent); }
.stat-number {
  font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 800;
  color: #fff; line-height: 1.1; display: inline;
}
.stat-suffix { font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.stat-label {
  display: block; margin-top: 6px; font-size: 14.5px;
  color: rgba(255,255,255,.7); font-weight: 500;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.testimonial {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px;
  position: relative; transition: all .3s;
}
.testimonial:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.quote-icon {
  color: var(--accent); opacity: .5; font-size: 28px;
  display: block; margin-bottom: 14px;
}
.quote-icon .icon { width: 28px; height: 28px; }
.testimonial blockquote {
  font-size: 15.5px; color: var(--body); margin-bottom: 22px;
  line-height: 1.65; font-style: italic;
}
.testimonial figcaption {
  display: flex; align-items: center; gap: 12px;
}
.testimonial figcaption img {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; background: var(--bg-alt);
}
.testimonial figcaption strong { display: block; font-size: 15px; color: var(--ink); }
.testimonial figcaption span { font-size: 13px; color: var(--muted); }

/* ---------- CTA Band ---------- */
.cta-band {
  position: relative; padding: 90px 0;
  background-size: cover; background-position: center;
  background-color: var(--primary-dark);
}
.cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(16,31,66,.94) 0%, rgba(16,31,66,.8) 100%);
}
.cta-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap; color: #fff;
}
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.cta-inner p { color: rgba(255,255,255,.8); max-width: 480px; margin: 0; }

/* ---------- Contact section ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start;
}
.contact-info-list { display: grid; gap: 20px; margin-top: 24px; }
.contact-info-item {
  display: flex; gap: 14px; align-items: flex-start;
}
.contact-info-item .icon-wrap {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item .icon-wrap .icon { width: 20px; height: 20px; }
.contact-info-item h4 { font-size: 15px; margin-bottom: 2px; }
.contact-info-item p, .contact-info-item a { font-size: 14.5px; color: var(--muted); margin: 0; }
.contact-info-item a:hover { color: var(--primary); }

.contact-form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.contact-form-card h3 { margin-bottom: 6px; }
.contact-form-card > p { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 13.5px; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 15px;
  color: var(--ink); background: var(--bg); transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31,51,112,.12); background: #fff;
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark); color: rgba(255,255,255,.75);
  padding-top: 70px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px; padding-bottom: 50px;
}
.footer-col h4 {
  color: #fff; font-size: 15px; margin-bottom: 18px;
  letter-spacing: .02em;
}
.footer-about .brand { margin-bottom: 16px; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-mark { background: var(--accent); color: var(--ink); }
.footer-about p { font-size: 14.5px; line-height: 1.65; margin-bottom: 12px; }
.footer-meta { font-size: 13.5px; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.08); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: .2s;
}
.footer-social a:hover { background: var(--accent); color: var(--ink); }
.footer-social .icon { width: 16px; height: 16px; }
.footer-menu a, .footer-col ul a {
  display: block; padding: 5px 0; font-size: 14.5px;
  color: rgba(255,255,255,.7); transition: color .2s;
}
.footer-menu a:hover, .footer-col ul a:hover { color: var(--accent); }
.footer-contact li {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 12px; font-size: 14.5px;
}
.footer-contact .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,.8); }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; text-align: center; font-size: 13.5px;
  color: rgba(255,255,255,.5);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in, .reveal.visible { opacity: 1; transform: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  padding: 14px 22px; border-radius: 12px; color: #fff;
  font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-md);
  animation: toastIn .35s ease;
}
.toast-success { background: #059669; }
.toast-error { background: #dc2626; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Page / inner pages ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #1a3a6e 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 64px 0 56px;
  text-align: left;
  border-bottom: 3px solid var(--accent);
  overflow: hidden;
}
.page-hero-has-bg { background-color: var(--primary-dark); }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(16,31,66,.88) 0%, rgba(16,31,66,.72) 55%, rgba(16,31,66,.55) 100%);
  z-index: 0;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 720px; }
.page-hero-inner { max-width: 720px; }
.page-hero-title,
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 12px 0 10px;
}
.page-hero-text,
.page-hero p {
  color: rgba(255,255,255,.85);
  margin: 0;
  max-width: 560px;
  line-height: 1.55;
  font-size: 1.05rem;
}
.kicker-on-dark {
  color: var(--accent);
  background: rgba(201,162,39,.15);
  border: 1px solid rgba(201,162,39,.35);
}
.page-content { font-size: 1.05rem; line-height: 1.7; color: var(--body); }
.page-content h2, .page-content h3 { margin: 1.4em 0 0.5em; color: var(--ink); }
.page-content p { margin-bottom: 1em; }
.page-content ul, .page-content ol { margin: 0 0 1em 1.25em; }
.page-content li { margin-bottom: 0.4em; }
.page-content img { max-width: 100%; border-radius: 12px; height: auto; }
.cms-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.cms-service-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.cms-service-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.cms-service-card .body { padding: 16px; }
.cms-service-card h3 { font-size: 16px; margin: 0 0 8px; }
.cms-service-card p { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 1024px) {
  .cms-service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cms-service-grid { grid-template-columns: 1fr; }
}
.breadcrumb { font-size: 13.5px; margin-bottom: 12px; opacity: .7; }
.breadcrumb a { color: #fff; }

/* Home intro cards */
.home-intro { background: #fff; }
.home-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.home-intro-text {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-top: 12px;
}
.home-intro-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.home-mini-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.home-mini-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.home-mini-card h3 { font-size: 15px; margin: 0 0 4px; }
.home-mini-card p { font-size: 13px; color: var(--muted); margin: 0; }
@media (max-width: 768px) {
  .home-intro-grid { grid-template-columns: 1fr; gap: 28px; }
  .home-intro-cards { grid-template-columns: 1fr; }
}


/* ---------- Process with background ---------- */
.process-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.process-bg-overlay {
  position: absolute;
  inset: 0;
  /* Lighter veil so the background photo stays clearly visible */
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.55) 0%,
    rgba(248, 250, 252, 0.62) 50%,
    rgba(248, 250, 252, 0.58) 100%
  );
  z-index: 1;
}
.process-section .process-step {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(16, 31, 66, 0.08);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 8px 24px rgba(16, 31, 66, 0.08);
}
.process-section .section-title,
.process-section .process-step h3 { color: var(--ink); }
.process-section .process-step p { color: var(--body); }


/* ---------- Services section with background ---------- */
.section-services {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.services-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.93);
  z-index: 1;
}
.services-photo-grid-6,
.services-photo-grid-9 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
  .services-photo-grid-6,
  .services-photo-grid-9 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-photo-grid-6,
  .services-photo-grid-9 { grid-template-columns: 1fr; }
}
.service-photo-card .photo {
  background: #e2e8f0;
}
.service-photo-card .photo img {
  object-fit: cover;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid, .services-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:not(:last-child)::after { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .welcome-grid { grid-template-columns: 1fr !important; gap: 28px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(300px, 86vw);
    background: #fff; box-shadow: var(--shadow-lg); z-index: 120;
    transform: translateX(100%); transition: transform .3s ease;
    padding: 80px 24px 24px; overflow-y: auto;
  }
  .main-nav.open { transform: none; }
  .main-nav .nav-menu { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav .menu-item > a { padding: 12px 14px; }
  .main-nav .sub-menu {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: 0;
    padding: 0 0 0 14px; background: transparent;
  }
  .hero-slider { height: min(560px, 78vh); }
  .slide-heading { font-size: 1.85rem; }
  .slider-arrow { display: none; }
  .section { padding: 64px 0; }
  .services-grid, .services-photo-grid,
  .testimonials-grid, .stats-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-inner p { margin: 0 auto; }
  .header-cta { display: none; }
}

@media (max-width: 480px) {
  .slide-actions { flex-direction: column; align-items: flex-start; }
  .btn-lg { width: 100%; justify-content: center; }
}


/* ---------- Packages pricing cards (from CMS HTML) ---------- */
.cms-service-grid .cms-service-card .pkg-price,
.page-content .pkg-price {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin: 8px 0 6px;
}
.page-content .pkg-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px;
}
.cms-service-card.featured {
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(16,31,66,.1);
  position: relative;
}
.cms-service-card.featured::before {
  content: "Popular";
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: var(--ink);
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}

/* ---------- Contact page polish ---------- */
.contact-section .contact-side-title {
  font-size: 1.25rem; margin: 0 0 18px; color: var(--ink);
}
.contact-form-wrap {
  padding: 28px 28px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.contact-form .field label { font-weight: 600; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31,51,112,.12);
}


/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  padding: 16px;
  pointer-events: none;
}
.cookie-banner-inner {
  pointer-events: auto;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: flex-end;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid rgba(201,162,39,.35);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
}
.cookie-banner-text { flex: 1; min-width: 0; }
.cookie-banner-text strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 6px;
}
.cookie-banner-text p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #cbd5e1;
}
.cookie-banner-text a { color: var(--accent); }
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1; }
}


/* ---------- Section backgrounds (CMS section_bg) ---------- */
.has-section-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.88);
  z-index: 1;
}
.services-overlay {
  background: linear-gradient(110deg, rgba(16,31,66,.82) 0%, rgba(16,31,66,.55) 50%, rgba(16,31,66,.4) 100%);
}

/* Force panel on background */
.force-panel {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255,255,255,.94);
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 16px 40px rgba(16,31,66,.12);
  border: 1px solid rgba(255,255,255,.6);
}

/* ---------- Services floating layout + square compact slider ---------- */
.services-showcase {
  padding: 56px 0;
  min-height: auto;
}
.services-float-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.services-intro-panel {
  background: rgba(255,255,255,.94);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 16px 40px rgba(16,31,66,.14);
  border: 1px solid rgba(255,255,255,.65);
  backdrop-filter: blur(8px);
}
.services-intro-panel .kicker { color: var(--accent); }
.services-showcase .services-intro-panel .section-title {
  color: var(--ink);
  text-align: left;
  font-size: 1.75rem;
}
.services-showcase .services-intro-panel .section-title::after {
  margin-left: 0;
}
.services-showcase .services-intro-panel .page-content { color: var(--body); }

/* Square-ish floating card: fixed 320px side (matches photo square) */
.services-float-card {
  position: sticky;
  top: 96px;
  width: 320px;
  max-width: 320px;
  box-sizing: border-box;
  background: rgba(255,255,255,.98);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 16px 40px rgba(16,31,66,.2);
  border: 1px solid rgba(201,162,39,.4);
  display: flex;
  flex-direction: column;
  margin-left: auto;
}

.svc-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.svc-slide {
  display: none;
  flex-direction: column;
  width: 100%;
  animation: svcFade .4s ease;
}
.svc-slide.is-active {
  display: flex;
}
@keyframes svcFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Square photo — width = height = full card inner width */
.svc-slide-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #e2e8f0;
  flex-shrink: 0;
}
.svc-slide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.svc-slide-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1F3370, #101F42);
  color: #C9A227;
  font-size: 13px;
  font-weight: 700;
  aspect-ratio: 1 / 1;
}
.svc-slide-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.svc-slide-title {
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: var(--ink);
  line-height: 1.3;
}
.svc-slide-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.svc-slider-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.svc-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: background .2s, border-color .2s;
  flex-shrink: 0;
}
.svc-nav-btn:hover {
  border-color: var(--accent);
  background: rgba(201,162,39,.12);
}
.svc-dots {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 140px;
}
.svc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
}
.svc-dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}
@media (max-width: 900px) {
  .services-float-layout {
    grid-template-columns: 1fr;
  }
  .services-float-card {
    position: relative;
    top: auto;
    width: min(320px, 100%);
    max-width: 320px;
    margin: 0 auto;
  }
}
