/* INSPECT-A public site — works without Tailwind CDN (Hostgator-safe) */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }
.hidden { display: none !important; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid rgba(226,232,240,.8);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
}
.site-header-inner {
  max-width: 80rem; margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-logo { flex-shrink: 0; }
.site-logo img { height: 2.5rem; width: auto; max-width: 140px; object-fit: contain; }
.site-logo-text { font-size: 1.125rem; font-weight: 900; color: var(--primary); }
.site-nav {
  flex-wrap: wrap; gap: .75rem 1.25rem; font-size: .875rem; font-weight: 600; color: #334155;
}
.site-nav a { border-bottom: 2px solid transparent; padding-bottom: 2px; }
.site-nav a:hover, .site-nav a.active { color: var(--primary); border-color: var(--primary); }
.site-nav--desktop { display: none; flex: 1; justify-content: center; }
.site-header-tools { display: flex; flex-shrink: 0; align-items: center; gap: .5rem; }
.site-menu { position: relative; z-index: 100; }
.site-menu-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border: 1px solid #e2e8f0; border-radius: .5rem;
  background: #fff; color: #1e293b; cursor: pointer; list-style: none;
}
.site-menu-toggle::-webkit-details-marker { display: none; }
.site-menu-toggle::marker { content: ""; }
.site-menu-toggle:hover { background: #f8fafc; }
.site-menu-icon { width: 1.25rem; height: 1.25rem; display: block; }
.site-menu-icon--close { display: none; }
.site-menu[open] .site-menu-icon--open { display: none; }
.site-menu[open] .site-menu-icon--close { display: block; }
.site-menu-panel {
  position: fixed; left: 0; right: 0; top: 4.5rem; z-index: 200;
  max-height: min(75dvh, calc(100dvh - 5rem)); overflow-y: auto;
  border-bottom: 1px solid #e2e8f0; background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
}
.site-nav--mobile {
  display: flex; flex-direction: column; gap: .25rem;
  max-width: 80rem; margin: 0 auto; padding: 1rem 1.5rem;
  font-size: 1rem;
}
.site-nav--mobile a {
  display: block; padding: .75rem .75rem; border-radius: .5rem;
  border-bottom: 2px solid transparent;
}
.site-nav--mobile a:hover { background: #f8fafc; }
.site-nav--mobile a.active {
  color: var(--primary); border-color: var(--primary); background: #f8fafc;
}
.lang-switch { display: flex; gap: .25rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.lang-switch a { padding: .25rem .5rem; border-radius: .25rem; color: #475569; }
.lang-switch a.active { background: var(--primary); color: #fff; }

@media (min-width: 768px) {
  .site-nav--desktop { display: flex; }
  .site-menu { display: none; }
}

/* CMS pages (page builder content) */
.cms-shell {
  max-width: 48rem; margin: 0 auto; padding: 3rem 1.5rem 2rem;
  width: 100%;
}
.cms-shell--narrow { max-width: 42rem; }
.cms-shell--wide { max-width: 80rem; }
.cms-title {
  margin: 0 0 2rem; font-size: clamp(1.75rem, 4vw, 1.875rem);
  font-weight: 900; color: var(--primary); line-height: 1.2;
}
.cms-blocks { display: flex; flex-direction: column; gap: 2rem; }
.cms-blocks--loose { gap: 2.5rem; }

.cms-split-header {
  border-bottom: 1px solid #e2e8f0; background: var(--surface-muted); padding: 2.5rem 1.5rem;
}
.cms-split-header-inner { max-width: 80rem; margin: 0 auto; }
.cms-split-header .cms-title { margin: 0; font-size: clamp(1.75rem, 4vw, 2.25rem); }
.cms-split-body { max-width: 48rem; margin: 0 auto; padding: 3rem 1.5rem 2rem; width: 100%; }

.cms-hero {
  overflow: hidden; border-radius: 1rem; background: var(--surface-muted);
  border: 1px solid rgba(0,0,0,.05);
}
.cms-hero-inner { padding: 2rem 1.5rem; }
@media (min-width: 640px) { .cms-hero-inner { padding: 2.5rem 2.5rem; } }
.cms-hero-inner h1 {
  margin: 0; font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 900; color: var(--primary);
}
.cms-hero-inner p { margin: .75rem 0 0; max-width: 48rem; color: #475569; line-height: 1.6; }

.cms-hero--image { padding: 0; }
.cms-hero-img-wrap { position: relative; height: 12rem; width: 100%; }
@media (min-width: 640px) { .cms-hero-img-wrap { height: 14rem; } }
.cms-hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cms-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent 55%);
}
.cms-hero-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem; color: #fff; }
.cms-hero-caption h1 { margin: 0; font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 900; color: #fff; }
.cms-hero-caption p { margin: .5rem 0 0; max-width: 42rem; font-size: .9375rem; color: rgba(255,255,255,.92); }

.cms-heading { margin: 0; font-weight: 700; color: var(--primary); font-size: 1.5rem; line-height: 1.3; }
.cms-heading--h3 { font-size: 1.25rem; }

.cms-paragraph { font-size: 1rem; line-height: 1.65; color: #334155; }
.cms-paragraph p { margin: .65rem 0; }
.cms-paragraph h2, .cms-paragraph h3 { color: var(--primary); margin: 1.25rem 0 .5rem; font-weight: 700; }
.cms-paragraph h2 { font-size: 1.375rem; }
.cms-paragraph h3 { font-size: 1.125rem; }
.cms-paragraph ul, .cms-paragraph ol { margin: .65rem 0; padding-left: 1.5rem; }
.cms-paragraph li { margin: .25rem 0; }
.cms-paragraph a { color: #075985; text-decoration: underline; }
.cms-paragraph blockquote {
  margin: 1rem 0; padding: .25rem 0 .25rem 1rem; border-left: 4px solid #cbd5e1; color: #475569;
}
.cms-paragraph strong, .cms-paragraph b { font-weight: 700; }

.cms-figure { margin: 0; }
.cms-figure img {
  max-height: 480px; width: 100%; border-radius: .75rem; object-fit: cover;
  border: 1px solid rgba(0,0,0,.05);
}
.cms-figure figcaption { margin-top: .5rem; text-align: center; font-size: .875rem; color: #64748b; }

/* Embedded iframe */
.cms-iframe-wrap { margin: 0 auto; }
.cms-iframe-inner {
  position: relative; width: 100%; overflow: hidden;
  border: 1px solid #e2e8f0; border-radius: .75rem; background: #f8fafc;
}
.cms-iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* Downloadable files grid */
.cms-files { margin: 0; }
.cms-files-heading {
  margin: 0 0 1.25rem; font-size: 1.25rem; font-weight: 700; color: var(--primary);
}
.cms-file-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem;
}
.cms-file-card {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding: 1.5rem 1.25rem; border: 1px solid #e2e8f0; border-radius: .75rem;
  background: #fff; text-align: center; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.cms-file-card__icon { width: 4rem; height: 5rem; flex-shrink: 0; }
.cms-file-card__title {
  margin: 0; font-size: .9375rem; font-weight: 700; line-height: 1.4; color: #1e293b;
}
.cms-file-card__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: auto; padding: .55rem 1.25rem; border-radius: .375rem;
  background: #ea580c; color: #fff; font-size: .875rem; font-weight: 600;
  text-decoration: none; transition: background .15s;
}
.cms-file-card__btn:hover { background: #c2410c; color: #fff; }
.cms-file-card__btn-icon { width: 1rem; height: 1rem; flex-shrink: 0; }

/* 404 page */
.not-found {
  padding: 4rem 1.5rem 5rem;
  background: linear-gradient(180deg, var(--surface-muted) 0%, #fff 55%);
}
.not-found-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 4px 24px rgba(15, 23, 42, .06);
}
.not-found-code {
  margin: 0;
  font-size: clamp(3.5rem, 12vw, 5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
  opacity: .15;
}
.not-found-title {
  margin: -1.5rem 0 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.2;
}
.not-found-text {
  margin: 1rem 0 0;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #475569;
}
.not-found-home { margin-top: 1.75rem; }

/* Contact form on CMS pages */
.contact-form-wrap {
  max-width: 48rem; margin: 0 auto; padding: 0 1.5rem 4rem; width: 100%;
}
.contact-form-wrap--narrow { max-width: 42rem; }
.contact-form-wrap--wide { max-width: 80rem; }
.contact-form-wrap--split { max-width: 48rem; }
.contact-form-card {
  padding: 1.5rem; border-radius: 1rem; background: #fff;
  border: 1px solid rgba(226,232,240,.9); box-shadow: 0 4px 24px rgba(15,23,42,.06);
}
.contact-form-title { margin: 0; font-size: 1.25rem; font-weight: 900; color: var(--primary); }
.contact-form-subtitle { margin: .5rem 0 0; font-size: .875rem; color: #475569; line-height: 1.5; }
.contact-form-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: #334155; }
.form-input {
  display: block; width: 100%; margin-top: .35rem; padding: .5rem .75rem;
  border: 1px solid #e2e8f0; border-radius: .5rem; font: inherit; color: #0f172a;
  background: #fff;
}
.form-input:focus { outline: 2px solid #94a3b8; outline-offset: 0; border-color: #94a3b8; }
.form-textarea { min-height: 9rem; resize: vertical; }
.contact-form-btn { margin-top: .25rem; border: none; cursor: pointer; }
.contact-form-step2 { margin-top: 1.5rem; }
.contact-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1rem; }
.contact-form-link {
  border: none; background: none; padding: 0; font-size: .875rem; font-weight: 600;
  color: #0369a1; text-decoration: underline; cursor: pointer;
}
.contact-form-message { margin-top: 1rem; font-size: .875rem; }
.contact-form-message--ok { color: #047857; }
.contact-form-message--err { color: #b91c1c; }
.otp-row { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.otp-input {
  width: 2.5rem; height: 3rem; border: 1px solid #e2e8f0; border-radius: .5rem;
  text-align: center; font-size: 1.125rem; font-weight: 700;
}

/* Hero */
.hero {
  position: relative; z-index: 0; min-height: 520px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--hero-from) 0%, var(--hero-from) 38%, var(--hero-to) 100%);
}
.hero-inner {
  position: relative; max-width: 80rem; margin: 0 auto; padding: 6rem 1.5rem 4rem;
  display: flex; align-items: stretch; min-height: 520px;
}
.hero-copy { max-width: 36rem; color: #fff; align-self: center; }
.hero-copy h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; line-height: 1.15; }
.hero-copy p { margin: 1.25rem 0 0; font-size: 1.05rem; color: rgba(255,255,255,.9); line-height: 1.6; }
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 2rem;
  padding: .75rem 1.75rem; border-radius: .5rem; font-weight: 700; font-size: .875rem;
  background: var(--primary); color: var(--text-on-primary);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.btn-primary:hover { opacity: .92; }
.hero-social { display: none; margin-left: auto; flex-direction: column; gap: .75rem; align-self: center; }
.hero-social a {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff;
}
.hero-social a:hover { background: rgba(255,255,255,.2); }
.social-icon-svg { width: 1rem; height: 1rem; display: block; }
.footer-social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  background: rgba(255,255,255,.1); color: #fff;
}
.footer-social a:hover { background: rgba(255,255,255,.2); }
@media (min-width: 768px) { .hero-social { display: flex; } }

/* Stats bar */
.stats-wrap {
  position: relative; z-index: 10; margin-top: -50px; scroll-margin-top: 6rem;
}
.stats-bar {
  max-width: 80rem; margin: 0 auto; padding: 10px 1.5rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem;
  background: var(--primary); border-radius: 10px; min-height: 100px;
}
@media (min-width: 640px) { .stats-bar { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .stats-bar { grid-template-columns: repeat(5, 1fr); gap: 1rem; } }

.stat-card {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: .25rem .5rem; text-align: center; color: var(--text-on-primary);
}
@media (min-width: 640px) {
  .stat-card { flex-direction: row; text-align: left; gap: .75rem; padding: .25rem .5rem; }
}
.stat-icon {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1);
}
.stat-icon-svg { width: 1.25rem; height: 1.25rem; }
.stat-value { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.stat-label { font-size: .75rem; font-weight: 500; color: rgba(255,255,255,.8); }
@media (min-width: 640px) { .stat-label { font-size: .875rem; } }

/* Sections */
.section { max-width: 80rem; margin: 0 auto; padding: 4rem 1.5rem; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 900; color: var(--primary); }
.section-head p { margin: .75rem auto 0; max-width: 42rem; color: #475569; }

/* Carousel */
.carousel { position: relative; }
.carousel-track {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
.carousel[data-page-size="2"] .carousel-track { grid-template-columns: repeat(2, 1fr); }
.carousel[data-page-size="3"] .carousel-track { grid-template-columns: repeat(3, 1fr); }
.carousel[data-page-size="4"] .carousel-track { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 639px) { .carousel .carousel-track { grid-template-columns: 1fr !important; } }
@media (min-width: 640px) and (max-width: 1023px) {
  .carousel[data-carousel="services"] .carousel-track { grid-template-columns: repeat(2, 1fr) !important; }
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 2.5rem; height: 2.5rem; border-radius: 9999px; border: 1px solid #e2e8f0;
  background: #fff; color: #334155; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.carousel-btn:disabled { opacity: .4; cursor: default; }
.carousel-btn svg { width: 1.25rem; height: 1.25rem; }
.carousel-btn[data-carousel-prev] { left: -.75rem; }
.carousel-btn[data-carousel-next] { right: -.75rem; }
.carousel-slide { display: none; }
.carousel-slide.is-visible { display: block; }
.carousel-pad { visibility: hidden; min-height: 1px; }

/* Service card */
.service-card, .card {
  height: 100%; padding: 1.5rem; border-radius: .75rem; background: var(--card-bg);
  box-shadow: 0 8px 30px rgba(15,23,42,.08); border: 1px solid rgba(0,0,0,.05);
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(15,23,42,.12); }
.service-card-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 9999px; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-muted); color: var(--primary);
}
.service-card h3 { margin: 0; font-size: 1.125rem; font-weight: 700; color: var(--primary); }
.service-card p { margin: .5rem 0 0; flex: 1; font-size: .875rem; color: #475569; line-height: 1.6; }

/* Project card */
.project-card {
  position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: .75rem;
  background: #e2e8f0; box-shadow: 0 4px 12px rgba(0,0,0,.08); border: 1px solid rgba(0,0,0,.05);
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover img { transform: scale(1.05); }
.project-card-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1rem; background: linear-gradient(to top, rgba(0,0,0,.75), transparent 55%); color: #fff;
}
.project-card-overlay h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.project-card-overlay p { margin: .25rem 0 0; font-size: .75rem; opacity: .9; }

/* Partners */
.partners-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
  opacity: .9; filter: grayscale(100%);
}
@media (min-width: 640px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .partners-grid { grid-template-columns: repeat(6, 1fr); } }
.partner-cell {
  display: flex; align-items: center; justify-content: center; height: 3.5rem;
  padding: .5rem; border-radius: .5rem; background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.05);
}
.partner-cell img { max-height: 2.5rem; max-width: 100%; object-fit: contain; }

/* Accreditation */
.accreditation-section { border-block: 1px solid rgba(226,232,240,.8); background: var(--surface-muted); padding: 4rem 0; }
.accreditation-grid {
  max-width: 80rem; margin: 0 auto; padding: 0 1.5rem;
  display: grid; gap: 1.5rem; align-items: center;
}
@media (min-width: 1024px) { .accreditation-grid { grid-template-columns: 35% 65%; } }
.accreditation-logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem;
  padding: 1.5rem; border-radius: .75rem; background: rgba(255,255,255,.7); border: 1px solid rgba(0,0,0,.05);
}

/* CTA */
.cta-section { border-top: 1px solid rgba(226,232,240,.8); background: var(--surface-muted); padding: 2.5rem 1.5rem; }
.cta-inner {
  max-width: 80rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem;
  align-items: flex-start;
}
@media (min-width: 640px) { .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Footer */
.site-footer { margin-top: auto; border-top: 1px solid #e2e8f0; background: var(--primary); color: var(--text-on-primary); padding: 3rem 1.5rem; }
.site-footer-inner { max-width: 80rem; margin: 0 auto; display: grid; gap: 2rem; }
@media (min-width: 1024px) { .site-footer-inner { grid-template-columns: repeat(3, 1fr); } }
.site-footer a { color: inherit; text-decoration: underline; }
.footer-logo img { height: 2.5rem; filter: brightness(0) invert(1); }
.footer-map-col { min-width: 0; }
.footer-map {
  overflow: hidden; max-width: 16rem; border-radius: .5rem;
  border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.15);
}
.footer-map--embed iframe {
  display: block; width: 100%; height: 10rem; border: 0;
}
.footer-map--image img {
  display: block; width: 100%; height: 10rem; object-fit: cover;
}
