/* site-analytix.css
   Purpose: public-site polish layer with a stricter, more commercial visual system.

   Rollback:
   1) Remove the <link> to /css/site-analytix.css in src/darelwasl/site/templates.clj
   2) Delete this file
   3) sudo systemctl restart darelwasl.service
*/

@import url("https://fonts.googleapis.com/css2?family=Geologica:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap");

:root {
  --site-ink: #0b1e31;
  --site-muted: #46566a;
  --site-accent: #0ea5e9;
  --site-accent-strong: #0b78b5;
  --site-bg: #f6f1ea;
  --site-surface: #ffffff;
  --site-border: #d8e0e8;
  --site-shadow: none;
  --site-soft-shadow: none;
  --site-radius: 0;
  --site-radius-lg: 0;
  --site-max: 1180px;
  --dw-font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dw-font-display: "Geologica", var(--dw-font-body);
}

html[dir="ltr"] body {
  font-family: var(--dw-font-body);
  letter-spacing: 0;
}

html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4 {
  font-family: var(--dw-font-display);
  font-weight: 500;
  letter-spacing: 0;
}

body {
  background: var(--site-bg);
}

body::before {
  display: none !important;
}

.text-accent {
  color: var(--site-accent);
}

main {
  padding: 0 24px 96px;
  gap: 0;
}

section {
  background: transparent;
  border: none;
  border-top: 1px solid var(--site-border);
  border-radius: 0;
  box-shadow: none;
  padding: 72px 0;
}

section.hero {
  border-top: none;
  padding: 82px clamp(24px, 6.2vw, 76px);
}

.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: none;
  border-bottom: 1px solid var(--site-border);
}

.lang-switch,
.nav-link,
.nav-link.primary-cta,
.mobile-toggle,
.nav-dropdown {
  border-radius: 0;
}

.nav-link {
  font-weight: 600;
  color: var(--site-ink);
  opacity: 0.86;
  padding: 10px 12px;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  background: transparent;
  box-shadow: inset 0 -2px 0 rgba(14, 165, 233, 0.6);
}

.nav-link.primary-cta {
  background: var(--site-accent);
  color: #ffffff;
  border: 1px solid var(--site-accent);
  box-shadow: none;
}

.nav-link.primary-cta:hover {
  background: var(--site-accent-strong);
  box-shadow: none;
  transform: none;
}

.nav-dropdown {
  box-shadow: none;
  border-color: var(--site-border);
}

.hero {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.07), transparent 55%),
    linear-gradient(135deg, #0b1e31 0%, #0b3550 45%, #0ea5e9 100%);
  color: #f8fbff;
}

.hero::before,
.hero::after {
  content: none !important;
  display: none !important;
}

.hero.hero--solo {
  grid-template-columns: 1fr !important;
}

.hero.hero--solo .hero-copy {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.headline {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero--authority-home .headline {
  font-size: clamp(40px, 4.6vw, 66px);
  line-height: 1.03;
  max-width: 13.8ch;
  margin-left: auto;
  margin-right: auto;
}

.strapline {
  color: rgba(248, 251, 255, 0.8);
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

.hero--authority-home .strapline {
  font-size: clamp(16px, 1.28vw, 19px);
  max-width: 56ch;
}

.hero-actions {
  justify-content: center;
}

.cta {
  border-radius: 0;
  padding: 15px 18px 12px;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 500;
  box-shadow: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.cta.primary {
  background: var(--site-accent);
  color: #ffffff;
}

.cta.primary:hover {
  background: var(--site-accent-strong);
  transform: translateY(-1px);
}

.cta.secondary {
  background: transparent;
  border: 1px solid var(--site-border);
  color: var(--site-ink);
}

.cta.secondary:hover {
  background: rgba(14, 165, 233, 0.06);
  border-color: rgba(14, 165, 233, 0.35);
}

.hero:not(.hero--simple) .cta.secondary {
  background: transparent;
  border: 1px solid rgba(248, 251, 255, 0.28);
  color: #f8fbff;
  box-shadow: none;
}

.hero:not(.hero--simple) .cta.secondary:hover {
  background: rgba(248, 251, 255, 0.08);
  border-color: rgba(248, 251, 255, 0.38);
}

.section-title--stack {
  display: grid;
  justify-content: flex-start;
  gap: 0;
  margin-bottom: 14px;
}

.section-title--stack h2 {
  font-size: clamp(28px, 2.7vw, 40px);
  line-height: 1.08;
  max-width: 18ch;
}

.section-lead {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.68;
  color: var(--site-muted);
  margin: 0 0 24px;
}

.section-lead--light {
  color: rgba(248, 251, 255, 0.74);
}

.proof-strip {
  border-top: none;
  padding: 0;
  margin-top: -40px;
  position: relative;
  z-index: 3;
}

.proof-inner {
  background: #ffffff;
  border: 1px solid var(--site-border);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.proof-item {
  border-right: 1px solid var(--site-border);
  padding: 18px 20px 17px;
}

.proof-item:last-child {
  border-right: none;
}

.proof-value {
  font-weight: 600;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.02em;
}

.proof-label {
  margin-top: 8px;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.6;
}

.authority-offer,
.execution-section,
.market-proof,
.testimonials {
  padding-top: 72px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  border-top: 3px solid var(--site-accent);
  border-left: 1px solid var(--site-border);
  border-right: 1px solid var(--site-border);
  border-bottom: 1px solid var(--site-border);
  background: #ffffff;
  padding: 21px 20px 19px;
}

.service-card h3 {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 23px;
  line-height: 1.12;
}

.service-card p {
  margin: 0;
  color: var(--site-muted);
}

.service-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--site-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 30, 49, 0.28);
}

.service-link:hover {
  border-bottom-color: rgba(11, 30, 49, 0.56);
}

.offer-divider {
  height: 1px;
  background: var(--site-border);
  margin: 28px 0 24px;
}

.setup-header {
  display: block;
  margin-bottom: 22px;
}

.section-lead--setup {
  max-width: 68ch;
  margin-top: 0;
  margin-bottom: 0;
}

.card-grid {
  gap: 18px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--site-border);
  border-radius: 0;
  padding: 21px;
}

.card--icon {
  padding-top: 21px;
}

.card--setup-option {
  position: relative;
  min-height: 340px;
  padding: 0;
  overflow: hidden;
  display: block;
  background: transparent;
  border: none;
  box-shadow: none;
  isolation: isolate;
  perspective: 1400px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card--setup-option::before {
  display: none;
}

.card--setup-option::after {
  display: none;
}

.card-icon {
  position: static;
  width: 46px;
  height: 46px;
  border-radius: 0;
  margin-bottom: 14px;
  background: rgba(14, 165, 233, 0.12);
  color: var(--site-accent-strong);
}

.card-icon--setup {
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  overflow: hidden;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.card-icon--setup img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transform: none;
  transition: none;
}

.setup-option-flip {
  position: relative;
  width: 100%;
  min-height: 340px;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(.2, .75, .18, 1);
}

.setup-option-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.setup-option-face--front {
  z-index: 2;
  background: transparent;
}

.setup-option-face--back {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, #f8fbfd 0%, #eef3f7 100%);
  border: 1px solid rgba(11, 30, 49, 0.08);
}

.setup-option-copy {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  color: var(--site-ink);
}

.setup-option-copy > * {
  max-width: none;
}

.setup-option-copy p {
  margin: 0;
  color: var(--site-muted);
  font-size: 15px;
  line-height: 1.62;
}

.setup-option-copy .text-link {
  display: inline-flex;
  margin-top: 14px;
  border-bottom-color: rgba(11, 30, 49, 0.24);
}

.card--setup-option:hover,
.card--setup-option:focus-within {
  transform: translateY(-2px);
  box-shadow: none;
  border-color: transparent;
}

.card--setup-option:hover .setup-option-flip,
.card--setup-option:focus-within .setup-option-flip {
  transform: rotateY(180deg);
}

.text-link {
  color: var(--site-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 30, 49, 0.28);
}

.text-link:hover {
  border-bottom-color: rgba(11, 30, 49, 0.58);
}

.steps--authority {
  margin-top: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-index {
  border-radius: 0;
  background: var(--site-accent);
}

.step {
  border-radius: 0;
  border-color: var(--site-border);
  background: #ffffff;
  padding: 19px;
}

.steps--authority .step {
  min-height: 152px;
}

.label {
  font-size: 20px;
  line-height: 1.14;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.control-item {
  border-top: 2px solid var(--site-ink);
  padding-top: 14px;
}

.control-value {
  font-size: 24px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.control-label {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--site-muted);
}

.proof-system {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #0b1e31;
  color: #f8fbff;
  border-top: none;
  padding-left: clamp(24px, 7vw, 84px);
  padding-right: clamp(24px, 7vw, 84px);
}

.proof-system .section-title--stack h2 {
  max-width: 16ch;
}

.card-grid--proof {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card--proof {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(248, 251, 255, 0.14);
  color: #f8fbff;
}

.card--proof h3 {
  margin-top: 0;
  font-size: 21px;
  line-height: 1.14;
}

.card--proof .muted {
  color: rgba(248, 251, 255, 0.7);
}

.market-proof__countries {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--site-muted);
}

.market-proof__logos {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--site-border);
}

.market-proof__logos.logo-marquee-band--clients {
  margin-bottom: 0;
  padding-bottom: 4px;
}

.market-proof__logos .logo-marquee__track {
  gap: clamp(24px, 3vw, 38px);
  animation-duration: 24s;
}

.market-proof__logos .logo-marquee__item--client {
  min-width: 214px;
  min-height: 88px;
  padding: 14px 18px;
}

.market-proof__logos .logo-marquee__item--client img {
  max-height: 56px;
}

.testimonials-intro {
  max-width: 62ch;
  margin: 0 0 22px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
}

.testimonial-card {
  margin: 0;
  display: grid;
  gap: 18px;
  padding: 22px 0 0;
  border-top: 2px solid var(--site-accent);
  background: transparent;
  border-left: none;
  border-right: none;
  border-bottom: none;
  box-shadow: none;
}

.testimonial-person {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.testimonial-photo {
  display: block;
  width: 82px;
  height: 98px;
  object-fit: cover;
  border: 1px solid var(--site-border);
  background: #ffffff;
}

.testimonial-card figcaption {
  display: grid;
  gap: 4px;
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--site-ink);
}

.testimonial-card blockquote::before {
  content: none;
}

.footer-cta {
  background: #0b1e31;
  color: #f8fbff;
}

.footer-cta .cta.primary {
  background: var(--site-accent);
}

.footer-cta .cta.primary:hover {
  background: var(--site-accent-strong);
}

.footer-cta .cta.secondary {
  background: transparent;
  border: 1px solid rgba(248, 251, 255, 0.22);
  color: #f8fbff;
}

.footer-cta .cta.secondary:hover {
  background: rgba(248, 251, 255, 0.08);
  border-color: rgba(248, 251, 255, 0.32);
}

@media (max-width: 1080px) {
  .proof-grid,
  .service-grid,
  .steps--authority,
  .control-grid,
  .card-grid--proof,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .setup-header {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 720px) {
  section.hero {
    padding: 58px 20px 64px;
  }

  .proof-strip {
    margin-top: -20px;
  }

  .section-title--stack h2 {
    max-width: none;
    font-size: clamp(26px, 8.4vw, 38px);
  }

  .section-lead {
    font-size: 16px;
  }

  .hero--authority-home .headline {
    max-width: 13ch;
    font-size: clamp(36px, 10.8vw, 48px);
  }

  .hero--authority-home .strapline {
    font-size: 15px;
    line-height: 1.7;
  }

  .hero-actions {
    gap: 10px;
  }

  .cta {
    padding: 15px 16px 13px;
    font-size: 15px;
  }

  .logo-marquee {
    -webkit-mask-image: none;
    mask-image: none;
    overflow: visible;
  }

  .logo-marquee-band--institutional {
    margin-top: 4px;
    margin-bottom: 10px;
    padding: 14px 0 8px;
  }

  .logo-marquee-band--institutional .logo-marquee__track {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
    animation: none;
  }

  .logo-marquee-band--institutional .logo-marquee__item:nth-child(n + 6) {
    display: none;
  }

  .logo-marquee-band--institutional .logo-marquee__item--institutional {
    min-width: 0;
    min-height: 72px;
    width: 100%;
    padding: 8px 10px;
  }

  .logo-marquee-band--institutional .logo-marquee__item--institutional img {
    max-height: 48px;
    margin: 0 auto;
  }

  .proof-grid,
  .service-grid,
  .steps--authority,
  .control-grid,
  .card-grid--proof,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .proof-item {
    border-right: none;
    border-bottom: 1px solid var(--site-border);
  }

  .proof-item:last-child {
    border-bottom: none;
  }

  .service-card h3,
  .card--proof h3,
  .label {
    font-size: 20px;
  }

  .service-card,
  .card,
  .step {
    padding: 18px;
  }

  .card--setup-option {
    min-height: 0;
    padding: 0;
    display: block;
    transform: none;
    box-shadow: none;
    background: #ffffff;
    perspective: none;
  }

  .setup-option-flip {
    min-height: 0;
    transform: none !important;
  }

  .setup-option-face {
    position: static;
    inset: auto;
    transform: none;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
  }

  .setup-option-face--back {
    border-top: 1px solid rgba(11, 30, 49, 0.08);
  }

  .card-icon--setup {
    min-height: 220px;
    filter: none;
  }

  .setup-option-copy {
    padding: 18px 18px 16px;
    background: #ffffff;
    box-shadow: none;
  }

  .testimonial-card {
    padding-top: 18px;
    gap: 14px;
  }

  .testimonial-person {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .testimonial-photo {
    width: 72px;
    height: 86px;
  }

  .control-grid {
    gap: 14px;
  }

  .control-value {
    font-size: 24px;
  }

  .market-proof__logos .logo-marquee__track {
    gap: 18px;
    animation-duration: 20s;
  }

  .market-proof__logos .logo-marquee__item--client {
    min-width: 156px;
    min-height: 70px;
    padding: 10px 12px;
  }

  .market-proof__logos .logo-marquee__item--client img {
    max-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
