/* ===================== Design Tokens ===================== */
:root {
  --blue-950: #17181a;
  --blue-900: #232427;
  --blue-800: #35373b;
  --blue-700: #4a4d52;
  --blue-600: #63666c;
  --blue-500: #86898f;
  --blue-100: #e3e4e6;
  --blue-50:  #f1f1f2;

  --accent: #e8630d;
  --accent-dark: #b94f0a;

  --ink-900: #18181b;
  --ink-700: #3f3f46;
  --ink-500: #6b6b70;
  --ink-200: #e4e4e7;
  --ink-100: #f4f4f5;

  --white: #ffffff;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(20, 20, 22, 0.07);
  --shadow-md: 0 8px 24px rgba(20, 20, 22, 0.12);
  --shadow-lg: 0 20px 48px rgba(20, 20, 22, 0.18);

  --container-w: 1180px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

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

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1em; color: var(--ink-700); }

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

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: .75em;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-outline {
  background: var(--white);
  color: var(--blue-700);
  border-color: var(--blue-100);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--blue-500); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--blue-700);
  padding: 8px 14px;
}
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-200);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}
.brand-logo { height: 46px; width: auto; display: block; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1rem; color: var(--blue-950); letter-spacing: -.01em; }
.brand-name em { color: var(--accent); font-style: normal; }
.brand-tag { font-size: .72rem; color: var(--ink-500); font-weight: 600; letter-spacing: .04em; }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--ink-700);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--blue-950); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.call-btn { font-size: .88rem; }

.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(--blue-900);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== Hero ===================== */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, var(--blue-100) 0%, rgba(219,234,254,0) 60%),
    linear-gradient(180deg, var(--white), var(--white));
  padding: 96px 0 88px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  color: var(--blue-950);
}
.hero-sub { font-size: 1.1rem; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 26px; }

.trust-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.trust-badges li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-700);
}
.trust-badges svg { width: 18px; height: 18px; color: var(--blue-600); flex-shrink: 0; }

.hero-visual { display: flex; justify-content: center; }
.hero-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--blue-900), var(--blue-700));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
}
.hero-card-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(232,99,13,0.35), rgba(232,99,13,0) 70%);
  top: -60px;
  right: -60px;
}
.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 8px);
}

/* ===================== Section shared ===================== */
section { padding: 96px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); color: var(--blue-950); }
.section-head p { font-size: 1.05rem; }

/* ===================== Services ===================== */
.services { background: var(--ink-100); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--ink-200);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.08rem; color: var(--blue-950); }
.service-card p { font-size: .92rem; margin-bottom: 0; }

/* ===================== Carousels ===================== */
.carousel-block { margin-top: 56px; }
.carousel-heading {
  font-size: 1.2rem;
  color: var(--blue-950);
  text-align: center;
  margin-bottom: 20px;
}
.carousel {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  background: var(--blue-950);
}
.carousel-viewport:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.carousel-track {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform .5s cubic-bezier(.65, 0, .35, 1);
  touch-action: pan-y;
}
.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(23, 24, 26, 0.55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
  z-index: 2;
}
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn:hover { background: var(--accent); }
.carousel-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.carousel-dot:hover { background: rgba(255, 255, 255, 0.85); }
.carousel-dot.is-active { background: var(--accent); transform: scale(1.3); }
.carousel-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .gallery-item img,
  .service-card,
  .btn,
  .nav-toggle span {
    transition: none;
  }
}

/* ===================== Gallery ===================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 680px;
  margin: 0 auto;
}
.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), rgba(0,0,0,0));
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
}

/* ===================== Why Us ===================== */
.why-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.why-copy h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); color: var(--blue-950); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}
.why-item h4 { color: var(--blue-800); font-size: 1rem; margin-bottom: .35em; }
.why-item p { font-size: .92rem; margin-bottom: 0; }

.why-visual { display: flex; flex-direction: column; gap: 20px; }
.stat-card {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-card-alt { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); }
.stat-num { font-size: 2rem; font-weight: 800; }
.stat-label { font-size: .9rem; opacity: .9; font-weight: 600; }

/* ===================== Who We Are ===================== */
.who-inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.who-video {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--ink-900, #111);
  line-height: 0;
}
.who-video video { width: 100%; max-height: 520px; display: block; object-fit: cover; }
.who-copy h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); color: var(--blue-950); }

/* ===================== Process ===================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.process-step {
  position: relative;
  padding: 28px 22px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--ink-200);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  color: var(--white);
  font-weight: 800;
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.05rem; color: var(--blue-950); }
.process-step p { font-size: .92rem; margin-bottom: 0; }

/* ===================== Service Area ===================== */
.area {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  text-align: center;
}
.area-inner { max-width: 720px; margin: 0 auto; }
.area h2 { color: var(--white); }
.area p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 0; }
.area .eyebrow { color: var(--accent); }
.area-map {
  width: 100%;
  height: 460px;
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--ink-100);
}
.area-map .leaflet-container { width: 100%; height: 100%; font-family: inherit; }
.area-outside {
  max-width: 560px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.area-outside p { color: rgba(255,255,255,0.85); font-size: 1.02rem; margin-bottom: 0; }

/* ===================== Contact ===================== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); color: var(--blue-950); }

.placeholder-flag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: #fdece1;
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: 6px 0 22px;
}

.contact-details { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-details li { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--ink-700); font-weight: 500; }
.contact-details svg { width: 20px; height: 20px; color: var(--blue-600); flex-shrink: 0; }
.contact-details a { color: var(--ink-900); text-decoration: none; font-weight: 600; }
.contact-details a:hover { color: var(--blue-700); }

.contact-form {
  background: var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--ink-200);
}
.form-row { margin-bottom: 18px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink-700); margin-bottom: 6px; }
input, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink-200);
  font-family: inherit;
  font-size: .95rem;
  background: var(--white);
  transition: border-color .15s ease;
  resize: vertical;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--blue-500);
}
.form-note {
  margin-top: 14px;
  font-size: .85rem;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
}

/* ===================== Footer ===================== */
.site-footer { background: var(--blue-950); color: rgba(255,255,255,0.75); padding: 48px 0 28px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.brand-footer .brand-name { color: var(--white); }
.brand-footer .brand-tag { color: rgba(255,255,255,0.6); }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: .9rem; font-weight: 600; }
.footer-nav a:hover { color: var(--white); }
.footer-copy { width: 100%; text-align: center; font-size: .8rem; margin: 24px 0 0; color: rgba(255,255,255,0.5); }
.photo-credits { width: 100%; margin: 10px auto 0; max-width: 640px; font-size: .75rem; color: rgba(255,255,255,0.45); }
.photo-credits summary { text-align: center; cursor: pointer; color: rgba(255,255,255,0.55); }
.photo-credits summary:hover { color: rgba(255,255,255,0.8); }
.photo-credits ul { margin: 10px 0 0; padding-left: 18px; line-height: 1.6; }
.photo-credits a { color: rgba(255,255,255,0.6); }
.photo-credits a:hover { color: var(--accent); }

/* ===================== Reveal animation ===================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-card { max-width: 280px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-inner { grid-template-columns: 1fr; }
  .why-visual { flex-direction: row; }
  .who-inner { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }

  /* Nav collapses here too: with the logo, 6 nav links, and two header
     buttons all in one row, the header overflows well before 760px on
     common tablet widths (e.g. 768px iPad portrait). */
  .main-nav { display: none; }
  .header-actions .call-btn span { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--ink-200);
    box-shadow: var(--shadow-md);
    gap: 2px;
  }
  .site-header.nav-open .main-nav a { display: block; padding: 12px 0; }
  .site-header.nav-open .main-nav a::after { display: none; }
}

@media (max-width: 760px) {
  section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .services-grid { grid-template-columns: 1fr; }
  .carousel-block { margin-top: 40px; }
  .carousel-btn { width: 34px; height: 34px; }
  .carousel-btn svg { width: 17px; height: 17px; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { flex-direction: column; }
  .process-grid { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
