/* ============================================
   Dematts Marketing — Shared Styles
   ============================================ */

:root {
  --navy: #0A1F44;
  --navy-deep: #071730;
  --blue-deep: #123B72;
  --blue: #1B4D89;
  --blue-bright: #0B63F6;
  --blue-light: #6EA8FF;
  --blue-glow: #7FB2FF;
  --bg: #F5F8FC;
  --white: #FFFFFF;
  --ink: #10203D;
  --slate: #4C5C78;
  --line: #DCE4F0;

  --font-display: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Inter", "Helvetica Neue", Arial, sans-serif;

  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--slate); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-bright);
  font-weight: 600;
  margin-bottom: 0.9em;
  display: inline-block;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 248, 252, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}

.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
  border-radius: 24%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--blue-deep);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--blue-bright);
  border-bottom-color: var(--blue-bright);
}

.nav-phone {
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--navy);
  color: var(--white) !important;
  padding: 9px 16px;
  border-radius: 8px;
  border-bottom: none !important;
  white-space: nowrap;
}
.nav-phone:hover { background: var(--blue-deep); }

.nav-cta {
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--blue-bright);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 8px;
  border-bottom: none !important;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(11, 99, 246, 0.28);
}
.nav-cta:hover { background: #0952d1; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--blue-bright);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(11, 99, 246, 0.25);
}
.btn-primary:hover { background: #0952d1; }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--blue-bright); color: var(--blue-bright); }

.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover { background: #e9f0fb; }

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -160px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle at center, rgba(11,99,246,0.10), transparent 70%);
  pointer-events: none;
}

.hero-growth-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: rgba(11,99,246,0.07);
  border: 1px solid rgba(11,99,246,0.18);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-deep);
  margin-bottom: 20px;
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-bright);
  flex-shrink: 0;
  position: relative;
}
.hero-badge .dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--blue-bright);
  animation: pulse-ring 2.2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  max-width: 15ch;
}

.hero p.lead {
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-phone-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--slate);
}
.hero-phone-note a { color: var(--blue-bright); font-weight: 600; }

/* Signature panel: comparison card */
.hero-panel {
  background: linear-gradient(165deg, #0F2A54 0%, var(--navy) 60%);
  border-radius: 20px;
  padding: 34px 30px;
  color: var(--white);
  position: relative;
  box-shadow: 0 24px 48px rgba(10, 31, 68, 0.28);
  overflow: hidden;
}
.hero-panel::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(111,168,255,0.18), transparent 70%);
  pointer-events: none;
}
.hero-panel .panel-title {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  margin-bottom: 22px;
}

.panel-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  position: relative;
}
.panel-item + .panel-item {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.panel-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(111, 168, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel-icon svg {
  width: 20px;
  height: 20px;
  stroke: #7FB2FF;
}

.panel-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 3px;
}
.panel-value {
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* ---------- Video hero (homepage only) ---------- */

.hero-video {
  padding: 120px 0 96px;
  min-height: 640px;
  display: flex;
  align-items: center;
  background: var(--navy-deep);
}
.hero-video::before { display: none; }

.hero-video-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.hero-video-el.is-switching { opacity: 0; }

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(6,20,42,0.64) 0%, rgba(7,23,48,0.57) 36%, rgba(9,28,58,0.41) 68%, rgba(9,28,58,0.50) 100%);
}

.hero-video .hero-grid { position: relative; z-index: 2; }

.hero-video h1,
.hero-video p.lead {
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.hero-video p.lead { color: rgba(255,255,255,0.85); }

.hero-video .hero-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-video .hero-badge .dot { background: var(--blue-light); }
.hero-video .hero-badge .dot::after { border-color: var(--blue-light); }

.hero-video .hero-phone-note { color: rgba(255,255,255,0.72); }
.hero-video .hero-phone-note a { color: var(--blue-light); }

.hero-video .hero-panel {
  border: 1px solid rgba(255,255,255,0.14);
}

.hero-video .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.hero-video .btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ---------- Stat ticker (signature element) ---------- */

.ticker {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 60%);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.ticker-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.ticker .wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  z-index: 1;
}

.ticker-item {
  padding: 30px 20px;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,0.10);
}
.ticker-item:first-child { border-left: none; }

.ticker-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--white);
  letter-spacing: -0.02em;
}
.ticker-value span { color: #6EA8FF; }

.ticker-label {
  margin-top: 6px;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.62);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: var(--font-mono);
}

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  max-width: 60ch;
  margin-bottom: 40px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* ---------- Card grid ---------- */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 22px;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  box-shadow: 0 16px 32px rgba(10, 31, 68, 0.10);
  transform: translateY(-3px);
  border-color: rgba(11,99,246,0.25);
}

.card .icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #E8F0FE;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card .icon svg { width: 20px; height: 20px; stroke: var(--blue-bright); }

.card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.card p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Feature row list (why it works) ---------- */

.feature-row-list {
  border-top: 1px solid var(--line);
}

.feature-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.feature-check {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #E8F0FE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-check svg { width: 19px; height: 19px; stroke: var(--blue-bright); }

.feature-row h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.feature-row p { margin-bottom: 0; font-size: 0.95rem; max-width: 60ch; }

/* ---------- Service list (how-we-do-it) ---------- */

.service-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
}

.service-row {
  display: grid;
  grid-template-columns: 48px 1.1fr 1.6fr;
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.service-row:last-child { border-bottom: none; }
.service-row:hover { background: #FAFCFF; }

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #E8F0FE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-icon svg { width: 19px; height: 19px; stroke: var(--blue-bright); }

.service-row h3 {
  font-size: 1.02rem;
  margin: 0;
}

.service-row p {
  margin: 0;
  font-size: 0.92rem;
}

/* ---------- Process steps ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.process-step {
  padding: 20px 0 0;
  border-top: 2px solid var(--blue-bright);
}
.process-step .step-index {
  font-family: var(--font-mono);
  color: var(--slate);
  font-size: 0.8rem;
  margin-bottom: 10px;
  display: block;
}
.process-step h4 { font-size: 1rem; margin-bottom: 6px; }
.process-step p { font-size: 0.88rem; margin-bottom: 0; }

/* ---------- Video hook-rate showcase ---------- */

.showcase {
  background: var(--navy);
  border-radius: 16px;
  padding: 44px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  color: var(--white);
}
.showcase .eyebrow { color: #7FB2FF; }
.showcase h2 { color: var(--white); font-size: 1.6rem; }
.showcase p { color: rgba(255,255,255,0.72); }

.hook-figure {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 4.2rem;
  line-height: 1;
  color: var(--white);
}
.hook-figure span { color: #6EA8FF; }
.hook-caption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 10px;
}

.hook-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
  margin-top: 22px;
  overflow: hidden;
}
.hook-bar-fill {
  height: 100%;
  width: 47%;
  background: linear-gradient(90deg, #0B63F6, #6EA8FF);
  border-radius: 6px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--blue-bright);
  color: var(--white);
  border-radius: 16px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; font-size: 1.5rem; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 0; }
.cta-band .btn-light { flex-shrink: 0; }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 14px;
  padding: 32px;
}
.contact-info-card h3 { color: var(--white); font-size: 1.1rem; }
.contact-info-card p { color: rgba(255,255,255,0.7); font-size: 0.92rem; }

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.contact-info-item:first-of-type { border-top: none; padding-top: 22px; }

.contact-info-item .icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item .icon svg { width: 17px; height: 17px; stroke: #7FB2FF; }

.contact-info-item .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 3px;
}
.contact-info-item .value { font-weight: 600; font-size: 0.98rem; }
.contact-info-item .value a { color: #7FB2FF; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.field .optional {
  font-weight: 400;
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(11,99,246,0.14);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 100px; }

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { color: #0F7A3D; }
.form-status.err { color: #C0362C; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
}
.footer-col a:hover { color: #7FB2FF; }
.footer-bottom {
  padding-top: 20px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255,255,255,0.45);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-video { min-height: 560px; padding: 100px 0 72px; }
  .hero-video-overlay { background: linear-gradient(180deg, rgba(6,20,42,0.63) 0%, rgba(7,23,48,0.60) 55%, rgba(9,28,58,0.57) 100%); }
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .ticker .wrap { grid-template-columns: repeat(2, 1fr); }
  .ticker-item:nth-child(odd) { border-left: none; }
  .showcase { grid-template-columns: 1fr; padding: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 40px 1fr; }
  .service-row p { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 20px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .nav-phone, .nav-cta { margin-top: 6px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .hero { padding: 56px 0 40px; }
  .hero-video { min-height: 500px; padding: 88px 0 56px; }
  .section { padding: 52px 0; }
}

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