/* =========================================================
   D-NINE — הנדסה וקידום פרויקטים | Premium Urban Renewal
   Custom stylesheet (complements Tailwind utilities)
   ========================================================= */

:root {
  --navy-900: #081528;
  --navy-800: #0b2140;
  --navy-700: #13304f;
  --navy-600: #1c436e;
  --gold: #c6a15b;
  --gold-soft: #d8be8c;
  --copper: #b5703c;
  --cream: #f7f6f2;
  --ink: #1a2332;
  --muted: #5d6879;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: "Assistant", "Heebo", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: "Heebo", "Assistant", sans-serif;
  letter-spacing: -0.01em;
}

/* ---------- Selection & scrollbar ---------- */
::selection {
  background: var(--gold);
  color: var(--navy-900);
}

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #e9e7df; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--navy-700), var(--navy-900));
  border-radius: 10px;
  border: 2px solid #e9e7df;
}

/* ---------- Decorative gradient text ---------- */
.text-gradient-gold {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-soft) 45%, var(--copper) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Hero backdrop ---------- */
.hero-bg {
  background:
    radial-gradient(1100px 620px at 85% -10%, rgba(198,161,91,0.22), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(28,67,110,0.55), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 70% 35%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 70% 35%, black, transparent 78%);
  pointer-events: none;
}

/* Floating blueprint blobs */
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: 0.5;
  animation: floaty 12s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-26px) translateX(14px); }
}

/* ---------- Header ---------- */
.site-header {
  transition: background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease, border-color .35s ease;
}
.site-header.scrolled {
  background: rgba(8, 21, 40, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 10px 40px -18px rgba(0,0,0,.55);
  border-bottom-color: rgba(198,161,91,0.18) !important;
}

.nav-link {
  position: relative;
  transition: color .25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--copper));
  transition: width .3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn-gold {
  background: linear-gradient(120deg, var(--gold) 0%, var(--copper) 100%);
  color: var(--navy-900);
  box-shadow: 0 14px 34px -14px rgba(198,161,91,.75);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px -14px rgba(198,161,91,.9);
  filter: brightness(1.05);
}
.btn-ghost {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn-ghost:hover { transform: translateY(-2px); }

/* ---------- Service cards ---------- */
.service-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(26,35,50,0.07);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--copper));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -32px rgba(11,33,64,.45);
  border-color: rgba(198,161,91,.4);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  transition: transform .4s cubic-bezier(.2,.7,.2,1), background-color .4s ease, color .4s ease;
}
.service-card:hover .service-icon {
  transform: rotate(-6deg) scale(1.06);
  background: linear-gradient(135deg, var(--gold), var(--copper));
  color: #fff;
}

/* ---------- Quick services list (top of page) ---------- */
.quick-services { margin-top: 1.5rem; }
.qs-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
@media (min-width: 640px)  { .qs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (max-width: 639px) {
  .qs-grid > li:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - .375rem); }
}
@media (min-width: 1024px) {
  .qs-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .qs-grid > li { grid-column: span 2; }
  .qs-grid > li:nth-child(6) { grid-column: 2 / span 2; }
}
.qs-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--navy-800);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 18px 40px -24px rgba(0,0,0,.7);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.qs-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.qs-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,21,40,.92) 0%, rgba(8,21,40,.35) 55%, rgba(8,21,40,0) 100%);
  pointer-events: none;
}
.qs-label {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: .75rem .85rem;
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  line-height: 1.3;
  display: flex;
  align-items: flex-start;
  gap: .45rem;
}
.qs-text { min-width: 0; text-wrap: balance; overflow-wrap: break-word; }
.qs-nowrap { white-space: nowrap; }
.qs-num { padding-top: .12em; }
@media (min-width: 640px)  { .qs-label { font-size: .95rem; padding: .85rem 1rem; } }
@media (min-width: 1024px) { .qs-label { font-size: 1rem; } }
.qs-num {
  flex: none;
  color: var(--gold);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.qs-card:hover,
.qs-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 0 0 2px var(--gold), 0 24px 44px -22px rgba(0,0,0,.8);
}
.qs-card:hover img { transform: scale(1.07); }
.qs-card:focus-visible { outline: none; }

/* ---------- Service "read more" link ---------- */
.svc-more {
  transition: color .25s ease, gap .25s ease;
}
.svc-more:hover { gap: .65rem; }
.svc-more:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }

/* ---------- Service dialogs (native <dialog>) ---------- */
.svc-dialog {
  padding: 0;
  border: 0;
  border-radius: 1.5rem;
  width: min(880px, calc(100vw - 1.5rem));
  max-height: min(92vh, 960px);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(8,21,40,.7);
  overflow: hidden;
}
.svc-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: svcIn .35s cubic-bezier(.2,.7,.2,1) both;
}
.svc-dialog::backdrop {
  background: rgba(8,21,40,.72);
  backdrop-filter: blur(4px);
}
@keyframes svcIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.svc-head {
  position: relative;
  flex: none;
  padding: 1.75rem 1.75rem 1.5rem;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.svc-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff;
  transition: background-color .25s ease, color .25s ease;
}
.svc-close:hover { background: var(--gold); color: var(--navy-900); }
.svc-close:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.svc-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.75rem;
  line-height: 1.85;
  color: #3b4657;
}
.svc-body h3 {
  font-family: "Heebo", "Assistant", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy-900);
  margin: 2rem 0 .6rem;
  padding-right: .8rem;
  border-right: 4px solid var(--gold);
  line-height: 1.4;
}
.svc-body h3:first-child { margin-top: 0; }
.svc-body p { margin: .6rem 0; }
.svc-body strong { color: var(--navy-900); }
.svc-body ul, .svc-body ol { margin: .7rem 0; padding-right: 1.4rem; }
.svc-body ul { list-style: disc; }
.svc-body ol { list-style: decimal; }
.svc-body li { margin: .4rem 0; padding-right: .2rem; }
.svc-body li::marker { color: var(--copper); font-weight: 700; }
.svc-body details {
  border: 1px solid rgba(26,35,50,.1);
  border-radius: .9rem;
  margin: .6rem 0;
  background: var(--cream);
}
.svc-body summary {
  cursor: pointer;
  padding: .85rem 1.1rem;
  font-weight: 700;
  color: var(--navy-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.svc-body summary::-webkit-details-marker { display: none; }
.svc-body summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--copper);
  transition: transform .25s ease;
}
.svc-body details[open] summary::after { transform: rotate(45deg); }
.svc-body details > div { padding: 0 1.1rem 1rem; }
.svc-note {
  margin-top: 1.75rem;
  padding: .9rem 1.1rem;
  border-radius: .9rem;
  background: rgba(198,161,91,.12);
  font-size: .9rem;
  line-height: 1.7;
  color: #5d6879;
}
.svc-foot {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  padding: 1rem 1.75rem;
  background: var(--cream);
  border-top: 1px solid rgba(26,35,50,.08);
}
.svc-foot p { font-weight: 700; color: var(--navy-900); }
body.dialog-open { overflow: hidden; }

@media (max-width: 640px) {
  .svc-dialog { border-radius: 1.1rem; max-height: 94vh; }
  .svc-head { padding: 1.5rem 1.25rem 1.25rem; }
  .svc-body { padding: 1.25rem; }
  .svc-foot { padding: .9rem 1.25rem; }
}
@media (max-height: 640px) {
  .svc-head { padding: 1rem 1.25rem .9rem; }
  .svc-head h2 { font-size: 1.15rem; margin-top: .25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-dialog[open] { animation: none; }
}

/* ---------- Legal pages (accessibility / privacy / terms) ---------- */
.legal-header { background: var(--navy-900); border-bottom: 3px solid var(--gold); }
.legal-header-inner { max-width: 56rem; margin: 0 auto; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.legal-brand { color: #fff; font-family: "Heebo", sans-serif; font-weight: 900; font-size: 1.25rem; letter-spacing: .04em; }
.legal-brand small { display: block; color: var(--gold); font-size: .7rem; font-weight: 600; letter-spacing: .14em; }
.legal-back { color: var(--gold-soft); font-weight: 700; }
.legal-back:hover { color: #fff; }
.legal { max-width: 56rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; line-height: 1.9; color: #3b4657; }
.legal h1 { font-family: "Heebo", sans-serif; font-weight: 900; font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--navy-900); line-height: 1.25; }
.legal .legal-updated { margin-top: .5rem; color: #5d6879; font-size: .95rem; }
.legal h2 { font-family: "Heebo", sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--navy-900); margin: 2.4rem 0 .6rem; padding-right: .8rem; border-right: 4px solid var(--gold); line-height: 1.4; }
.legal p { margin: .7rem 0; }
.legal ul, .legal ol { margin: .7rem 0; padding-right: 1.5rem; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin: .35rem 0; }
.legal li::marker { color: var(--copper); font-weight: 700; }
.legal a:not(.btn-gold) { color: var(--navy-600); text-decoration: underline; text-underline-offset: 3px; }
.legal a:not(.btn-gold):hover { color: var(--copper); }
.legal strong { color: var(--navy-900); }
.legal-toc { margin-top: 1.5rem; padding: 1.1rem 1.4rem; background: #fff; border: 1px solid rgba(26,35,50,.08); border-radius: 1rem; }
.legal-toc p { font-weight: 800; color: var(--navy-900); margin: 0 0 .3rem; }
.legal-toc ol { margin: 0; }
.legal-box { margin: 1.2rem 0; padding: 1rem 1.2rem; background: rgba(198,161,91,.12); border-radius: .9rem; }
.legal-footer { background: var(--navy-900); color: #cbd5e1; text-align: center; padding: 1.5rem 1rem; font-size: .9rem; }
.legal-footer a { color: var(--gold-soft); margin: 0 .6rem; text-decoration: underline; text-underline-offset: 3px; }
.legal-footer a:hover { color: #fff; }

/* ---------- Global keyboard focus (WCAG 2.4.7) ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible,
input:focus-visible, textarea:focus-visible, video:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Video pause control (WCAG 2.2.2) ---------- */
.video-toggle {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: rgba(8,21,40,.85);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  border: 1px solid rgba(198,161,91,.6);
}
.video-toggle:hover { background: var(--gold); color: var(--navy-900); }

/* ---------- Urbanis dashboard mock ---------- */
.dash-bar { animation: grow 1.4s cubic-bezier(.2,.7,.2,1) both; transform-origin: bottom; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.pulse-dot {
  box-shadow: 0 0 0 0 rgba(198,161,91,.7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 16px rgba(198,161,91,0); }
  100% { box-shadow: 0 0 0 0 rgba(198,161,91,0); }
}

/* ---------- Logo (clean & premium) ---------- */
.logo { animation: logoFade .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes logoFade {
  0%   { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: none; }
}

.logo-badge {
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
}
.logo:hover .logo-badge {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 12px 28px -10px rgba(198,161,91,.6);
}

/* Luxurious light sweep across the badge */
.logo-gleam {
  position: absolute;
  top: -25%;
  left: -75%;
  width: 45%;
  height: 150%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  animation: logoGleam 6s 1.4s ease-in-out infinite;
}
@keyframes logoGleam {
  0%   { left: -75%; }
  16%  { left: 135%; }
  100% { left: 135%; }
}
.logo:hover .logo-gleam { animation: logoGleam 1.1s ease-in-out; }

/* ---------- Brand video — blends softly into the background ---------- */
.video-wrap { isolation: isolate; }
.video-glow {
  position: absolute;
  inset: -7% -5%;
  background: radial-gradient(ellipse 60% 64% at 50% 48%,
              #ece9e3 0%,
              rgba(236,233,227,.80) 38%,
              rgba(236,233,227,.30) 64%,
              rgba(236,233,227,0) 82%);
  filter: blur(16px);
  pointer-events: none;
  z-index: 0;
}
.video-blend {
  z-index: 1;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(76% 80% at 50% 48%, #000 36%, transparent 100%);
  mask-image: radial-gradient(76% 80% at 50% 48%, #000 36%, transparent 100%);
}

/* Edge-to-edge video: no side margins, only soft top/bottom fade */
.video-full { width: 100%; max-width: none; margin: 0; }
.video-full .video-glow { inset: -7% 0; }
.video-full .video-blend {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
#brand-video .quick-services { margin-top: 1.5rem; }

/* ---------- Owner section ---------- */
.owner-section { scroll-margin-top: 4rem; }
.owner-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .owner-grid { grid-template-columns: 340px minmax(0, 1fr); gap: 4rem; } }
.owner-profile {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1.75rem;
  background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 30px 60px -30px rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
}
@media (min-width: 1024px) { .owner-profile { position: sticky; top: 6rem; } }
.owner-avatar {
  position: relative;
  width: 11rem; height: 11rem; margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy-900);
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 10px rgba(198,161,91,.18), 0 24px 50px -20px rgba(0,0,0,.8);
}
@media (min-width: 1024px) { .owner-avatar { width: 13rem; height: 13rem; } }
.owner-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.owner-avatar::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 48%, transparent 62%, rgba(8,21,40,.85) 100%);
  pointer-events: none;
}
.owner-name { margin-top: 1.4rem; font-family: "Heebo", sans-serif; font-weight: 900; font-size: 1.75rem; color: #fff; line-height: 1.2; }
.owner-role { margin-top: .25rem; color: var(--gold-soft); font-weight: 700; font-size: .95rem; }
.owner-creds { list-style: none; margin: 1.5rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid rgba(255,255,255,.12); text-align: right; display: grid; gap: .65rem; }
.owner-creds li { position: relative; padding-right: 1.4rem; color: #cbd5e1; font-size: .95rem; line-height: 1.5; }
.owner-creds li::before { content: ""; position: absolute; right: 0; top: .55em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--gold); }
.owner-creds strong { color: #fff; }
.owner-cta { margin-top: 1.75rem; width: 100%; }

.owner-quote {
  position: relative;
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.4rem;
  border-right: 4px solid var(--gold);
  border-radius: .25rem 1rem 1rem .25rem;
  background: linear-gradient(270deg, rgba(198,161,91,.16), rgba(198,161,91,.03));
}
.owner-quote p { font-family: "Heebo", sans-serif; font-weight: 900; font-size: 1.6rem; line-height: 1.3; color: #fff; }
@media (min-width: 640px) { .owner-quote p { font-size: 2.1rem; } }
.owner-quote footer, .owner-quote .quote-by { margin-top: .6rem; color: var(--gold-soft); font-size: .9rem; font-weight: 600; }

.owner-track { margin-top: 3.5rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .owner-track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .owner-track { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.owner-card {
  position: relative;
  padding: 1.6rem 1.5rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.owner-card:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px rgba(198,161,91,.6), 0 24px 44px -26px rgba(0,0,0,.8); }
.owner-card-num { display: block; color: var(--gold); font-weight: 800; font-size: .8rem; letter-spacing: .12em; }
.owner-card h3 { margin-top: .5rem; font-family: "Heebo", sans-serif; font-weight: 800; font-size: 1.2rem; line-height: 1.3; color: #fff; }
.owner-card p { margin-top: .6rem; color: #cbd5e1; font-size: .95rem; line-height: 1.65; }

/* ---------- Partner (David Feldman) ---------- */
.partner-block { margin-top: 4.5rem; padding-top: 3.5rem; border-top: 1px solid rgba(255,255,255,.12); }
.partner-profile { position: static; }
.partner-subrole { margin-top: .35rem; color: #cbd5e1; font-weight: 600; font-size: .85rem; line-height: 1.4; }
.partner-media { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; }
.partner-media .owner-avatar { margin: 0; flex: none; }
.partner-diploma {
  display: block; width: 5rem; flex: none; text-align: center;
  border-radius: .5rem; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 2px var(--gold), 0 14px 26px -12px rgba(0,0,0,.8);
  transition: transform .3s ease, box-shadow .3s ease;
}
.partner-diploma:hover, .partner-diploma:focus-visible { transform: translateY(-4px) scale(1.04); box-shadow: 0 0 0 2px var(--gold-soft), 0 18px 30px -12px rgba(0,0,0,.9); }
.partner-diploma img { display: block; width: 100%; height: auto; }
.partner-diploma span { display: block; padding: .2rem .15rem; background: var(--navy-900); color: var(--gold-soft); font-size: .62rem; font-weight: 700; line-height: 1.2; }
.partner-points { margin: 2rem 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .partner-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.partner-points article { padding: 1.25rem 1.3rem; border-radius: 1rem; background: rgba(255,255,255,.06); box-shadow: 0 0 0 1px rgba(255,255,255,.12); border-right: 3px solid var(--gold); }
.partner-points h4 { font-family: "Heebo", sans-serif; font-weight: 800; font-size: 1.1rem; color: #fff; line-height: 1.3; }
.partner-points p { margin-top: .4rem; color: #cbd5e1; font-size: .93rem; line-height: 1.6; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .dash-bar, .pulse-dot, .float-wa,
  .logo, .logo-badge, .logo-gleam { animation: none !important; }
}

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  animation: wobble 3.4s ease-in-out infinite;
}
@keyframes wobble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- Form ---------- */
.field {
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.field:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(198,161,91,.16);
  background: #fff;
}

/* ---------- Divider shapes ---------- */
.diag-top {
  clip-path: polygon(0 0, 100% 42px, 100% 100%, 0 100%);
}

/* ---------- Timeline ---------- */
.step-line::before {
  content: "";
  position: absolute;
  top: 34px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(198,161,91,.55), rgba(198,161,91,.1));
}
@media (max-width: 767px) {
  .step-line::before { display: none; }
}

/* ---------- Contrast fixes (WCAG 1.4.3) — "html" prefix beats the later-loaded tailwind.css ---------- */
html .text-copper { color: #8a4b1c; }
html .text-slate-500 { color: #4f5b6e; }
html .bg-emerald-500 { background-color: #047857; }
html .hover\:bg-emerald-500:hover { background-color: #047857; }
html .hover\:bg-emerald-600:hover { background-color: #065f46; }