/* DV Solutions — "Spotless by sunrise"
   Editorial luxury-hospitality rebuild. Ivory paper, deep emerald, brass details.
   Fraunces (display) + Archivo (body). Fully readable with JavaScript disabled. */

:root {
  --ink: #0d241e;
  --pine: #123a30;
  --pine-deep: #0b2a22;
  --teal: #1a7f6e;
  --teal-bright: #2aa78f;
  --mint: #e3efe9;
  --ivory: #f7f3ea;
  --paper: #fdfbf6;
  --brass: #c2a566;
  --brass-deep: #9f8140;  /* ≥3:1 on paper/ivory for large display text */
  --brass-soft: #e6d9b8;
  --teal-text: #17715f;   /* ≥4.5:1 on paper/ivory for small text */
  --white: #ffffff;
  --muted: #55685f;
  --muted-dark: #a8bfb4;
  --radius: 8px;
  --shadow-img: 0 24px 60px rgba(13, 36, 30, 0.16);
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Archivo', 'Helvetica Neue', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
}

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

::selection { background: var(--brass-soft); color: var(--ink); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white);
  padding: 0.6rem 1.2rem; z-index: 200; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ————— NAV ————— */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  min-height: 68px;
  background: rgba(253, 251, 246, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(13, 36, 30, 0.1);
}

.nav-logo {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; min-height: 44px;
}
.nav-logo img { height: 34px; width: 34px; object-fit: contain; }
.nav-brand {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.15rem;
  color: var(--pine);
  letter-spacing: 0.01em;
}

.nav-menu {
  display: flex; align-items: center; gap: 0.5rem;
  min-width: 0;
}

/* Section links scroll on narrow screens; the CTA never leaves the viewport */
.nav-links {
  display: flex; align-items: center; gap: 0.15rem;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.65rem 0.8rem;
  min-height: 44px;
  display: inline-flex; align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--pine); background: var(--mint); }

.nav-cta {
  background: var(--pine);
  color: var(--ivory);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  min-height: 44px;
  display: inline-flex; align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 999px;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--teal); transform: translateY(-1px); }

/* ————— HERO ————— */
.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: flex; align-items: flex-end;
  color: var(--ivory);
  isolation: isolate;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 42, 34, 0.42) 0%, rgba(11, 42, 34, 0.18) 40%, rgba(9, 30, 24, 0.88) 100%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(7rem, 16vh, 11rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3.5rem, 8vh, 5.5rem);
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(3rem, 9vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 12ch;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  font-weight: 340;
  color: var(--brass-soft);
}

.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  max-width: 34rem;
  color: rgba(247, 243, 234, 0.88);
  margin-bottom: 2.4rem;
}

.hero-btns { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn-solid { background: var(--ivory); color: var(--pine-deep); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.btn-ghost { border: 1.5px solid rgba(247, 243, 234, 0.55); color: var(--ivory); }
.btn-ghost:hover { background: rgba(247, 243, 234, 0.12); border-color: rgba(247, 243, 234, 0.9); }

/* hero load animation — pure CSS, runs with or without JS */
.anim { opacity: 0; transform: translateY(24px); animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.anim-1 { animation-delay: 0.1s; }
.anim-2 { animation-delay: 0.25s; }
.anim-3 { animation-delay: 0.4s; }
.anim-4 { animation-delay: 0.55s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ————— TRUST RIBBON ————— */
.ribbon {
  background: var(--pine-deep);
  color: var(--brass-soft);
  border-top: 1px solid rgba(194, 165, 102, 0.25);
  border-bottom: 1px solid rgba(194, 165, 102, 0.25);
  overflow: hidden;
  padding: 0.85rem 0;
}
.ribbon-track {
  display: flex; align-items: center; justify-content: center; gap: 1rem 2.2rem;
  flex-wrap: wrap;
  padding: 0 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* JS upgrades the ribbon to a marquee; only then does it become a single row */
.ribbon-track.marquee {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
}
.ribbon .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--brass); flex-shrink: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .ribbon-track.marquee { animation: ticker 32s linear infinite; }
  @keyframes ticker { to { transform: translateX(-50%); } }
}

/* ————— SECTIONS ————— */
.section { padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 4vw, 2.5rem); }
.container { max-width: 1160px; margin: 0 auto; }
.container-narrow { max-width: 780px; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before { content: ''; width: 34px; height: 1.5px; background: var(--brass); }

h2 {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  max-width: 22ch;
  text-wrap: balance;
}

.section-sub { color: var(--muted); max-width: 36rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); font-size: 1.02rem; }

.section-dark { background: var(--pine-deep); color: var(--ivory); }
.section-dark h2 { color: var(--ivory); }
.section-dark .section-sub { color: var(--muted-dark); }
.section-dark .eyebrow { color: var(--brass-soft); }

.section-tint { background: var(--ivory); }

/* ————— SERVICES / FEATURES ————— */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid rgba(13, 36, 30, 0.12);
}
.feature:last-of-type { border-bottom: 1px solid rgba(13, 36, 30, 0.12); }
.feature-flip .feature-media { order: 2; }

.feature-media { position: relative; }
.feature-media img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  box-shadow: var(--shadow-img);
}
.feature-num {
  position: absolute;
  top: -0.55em; left: -0.12em;
  font-family: var(--font-display);
  font-weight: 340;
  font-style: italic;
  font-size: clamp(4rem, 8vw, 6.5rem);
  line-height: 1;
  color: var(--brass-deep);
  z-index: 1;
  text-shadow: 0 2px 20px rgba(253, 251, 246, 0.6);
}
.feature-flip .feature-num { left: auto; right: -0.12em; }

.feature-body h3 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin-bottom: 0.75rem;
}
.feature-body p { color: var(--muted); max-width: 32rem; }

.service-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.service-row li {
  padding: 1.4rem 1.5rem;
  background: var(--ivory);
  border: 1px solid rgba(13, 36, 30, 0.1);
  border-radius: var(--radius);
}
.service-row h4 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}
.service-row p { font-size: 0.88rem; color: var(--muted); }

/* ————— THE STANDARD ————— */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.steps li {
  border-top: 1.5px solid rgba(194, 165, 102, 0.45);
  padding-top: 1.4rem;
}
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  font-size: 2.4rem;
  color: var(--brass);
  display: block;
  line-height: 1;
  margin-bottom: 0.9rem;
}
.steps h3 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--ivory);
}
.steps p { font-size: 0.92rem; color: var(--muted-dark); }

/* ————— SECTORS ————— */
.sectors-split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.sector-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.1rem 2rem;
}
.sector-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(13, 36, 30, 0.12);
  font-weight: 500;
  font-size: 0.98rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.sector-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.sectors-img img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-img);
}

/* ————— ABOUT ————— */
.about-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about-img img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow-img);
}
.about-copy { display: flex; flex-direction: column; gap: 1rem; color: var(--muted); max-width: 36rem; }

/* ————— FAQ ————— */
.faq-list { display: flex; flex-direction: column; }
.faq-list details { border-bottom: 1px solid rgba(13, 36, 30, 0.14); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 0;
  min-height: 48px;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.12rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--brass);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 1.3rem; color: var(--muted); max-width: 60ch; }

/* ————— CAREERS ————— */
.careers {
  background: var(--pine);
  color: var(--ivory);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
  border-top: 1px solid rgba(194, 165, 102, 0.3);
}
.careers-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.careers h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--ivory); margin-bottom: 0.4rem; }
.careers p { color: var(--muted-dark); }

/* ————— CONTACT ————— */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.contact-card {
  border: 1px solid rgba(194, 165, 102, 0.3);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: rgba(247, 243, 234, 0.04);
}
.contact-card h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 0.6rem;
}
.contact-card p { font-size: 0.98rem; }
.contact-card a {
  color: var(--ivory);
  text-decoration-color: rgba(194, 165, 102, 0.6);
  text-underline-offset: 4px;
  display: inline-flex; align-items: center;
  min-height: 44px;
}
.contact-card a:hover { color: var(--brass-soft); }

/* ————— FOOTER ————— */
.footer {
  background: var(--ink);
  color: rgba(247, 243, 234, 0.6);
  text-align: center;
  padding: 2.2rem 1.5rem;
  font-size: 0.85rem;
}
.footer strong { color: rgba(247, 243, 234, 0.95); font-weight: 600; }
.footer-links { margin-top: 0.7rem; display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.footer-links a {
  color: rgba(247, 243, 234, 0.7);
  text-decoration: none;
  padding: 0.5rem 0.7rem;
  min-height: 44px;
  display: inline-flex; align-items: center;
}
.footer-links a:hover { color: var(--brass-soft); text-decoration: underline; text-underline-offset: 4px; }

/* ————— CHAT WIDGET ————— */
.dvchat-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--pine); color: var(--ivory);
  border: 1px solid rgba(194, 165, 102, 0.4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(13, 36, 30, 0.35);
  transition: transform 0.2s, background 0.2s;
}
.dvchat-fab:hover { background: var(--teal); transform: translateY(-2px); }

.dvchat-panel {
  position: fixed; right: 1.25rem; bottom: 5.9rem; z-index: 200;
  width: min(370px, calc(100vw - 2rem));
  height: min(520px, calc(100vh - 8rem));
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid rgba(13, 36, 30, 0.15);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(13, 36, 30, 0.3);
  overflow: hidden;
}

.dvchat-head {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--pine-deep); color: var(--ivory);
  padding: 0.8rem 1rem;
}
.dvchat-head > div { flex: 1; min-width: 0; }
.dvchat-head strong { font-family: var(--font-display); font-weight: 560; display: block; }
.dvchat-head span { font-size: 0.72rem; color: var(--muted-dark); }
.dvchat-wa {
  font-size: 0.78rem; font-weight: 600; text-decoration: none;
  color: var(--pine-deep); background: var(--brass-soft);
  padding: 0.4rem 0.8rem; border-radius: 999px; flex-shrink: 0;
}
.dvchat-close {
  background: none; border: 0; color: var(--ivory);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  min-width: 40px; min-height: 40px;
}

.dvchat-log {
  flex: 1; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.dvchat-msg {
  max-width: 85%; padding: 0.6rem 0.85rem;
  border-radius: 12px; font-size: 0.92rem; line-height: 1.5;
  white-space: pre-wrap; overflow-wrap: break-word;
}
.dvchat-assistant {
  background: var(--ivory); border: 1px solid rgba(13, 36, 30, 0.1);
  align-self: flex-start; border-bottom-left-radius: 4px;
}
.dvchat-user {
  background: var(--pine); color: var(--ivory);
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.dvchat-typing { color: var(--muted); letter-spacing: 0.2em; }

.dvchat-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.5rem; }
.dvchat-chips button {
  font-size: 0.78rem; padding: 0.4rem 0.8rem;
  background: var(--mint); color: var(--pine);
  border: 1px solid rgba(13, 36, 30, 0.12); border-radius: 999px;
  cursor: pointer;
}
.dvchat-chips button:hover { background: var(--teal); color: var(--ivory); }

.dvchat-form {
  display: flex; gap: 0.5rem; padding: 0.7rem;
  border-top: 1px solid rgba(13, 36, 30, 0.1);
}
.dvchat-form input {
  flex: 1; min-width: 0; font: inherit; font-size: 0.92rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(13, 36, 30, 0.18); border-radius: 999px;
  background: var(--white); color: var(--ink);
}
.dvchat-form input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.dvchat-form button {
  font: 600 0.88rem var(--font-body);
  background: var(--pine); color: var(--ivory);
  border: 0; border-radius: 999px; padding: 0.6rem 1.1rem;
  min-height: 44px; cursor: pointer;
}
.dvchat-form button:hover { background: var(--teal); }

@media (max-width: 600px) {
  .dvchat-fab { right: 0.9rem; bottom: 0.9rem; }
  .dvchat-panel { right: 0.9rem; bottom: 5.4rem; }
}

/* ————— SCROLL REVEAL (progressive enhancement) —————
   Transform-only: content is never opacity-hidden, so crawlers, answer engines
   and full-page captures always see the full page, with or without JavaScript. */
html.js .reveal {
  transform: translateY(22px);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js .reveal.visible { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal { transform: none; }
}

/* ————— RESPONSIVE ————— */
@media (max-width: 900px) {
  .feature, .feature-flip { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-flip .feature-media { order: 0; }
  .sectors-split, .about-split { grid-template-columns: 1fr; }
  .about-img img { aspect-ratio: 16 / 10; }
  .sector-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero { min-height: 88vh; min-height: 88svh; }
  .hero-inner { padding-top: 8rem; }
  .sector-list { grid-template-columns: 1fr; }
  .careers-inner { flex-direction: column; align-items: flex-start; }
}
