/* ══════════════════════════════════════════
   NAVON LAW — Premium Stylesheet
   RTL Hebrew | Assistant Font
══════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --navy:        #0B1929;
  --navy-mid:    #132338;
  --navy-light:  #1B3058;
  --accent:      #2563EB;
  --accent-h:    #1D4ED8;
  --accent-soft: #EFF6FF;
  --silver:      #C8D6E5;
  --text:        #111827;
  --text-muted:  #6B7280;
  --bg:          #F9FAFB;
  --bg-card:     #FFFFFF;
  --border:      #E5E7EB;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.06);
  --shadow-md:   0 8px 32px rgba(0,0,0,.10);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.14);
  --radius:      14px;
  --radius-sm:   8px;
  --transition:  .3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Assistant', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
}


img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section Header ── */
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head h2        { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--text); margin: 10px 0 16px; }
.section-head h2.light  { color: #fff; }
.section-head p         { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
}
.tag.light {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Assistant', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(37,99,235,.35);
}
.btn-primary:hover {
  background: var(--accent-h);
  border-color: var(--accent-h);
  box-shadow: 0 8px 28px rgba(37,99,235,.45);
}
.btn-white {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-white:hover {
  background: var(--accent-soft);
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
}
.btn-ghost {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.7);
}
.btn-full { width: 100%; justify-content: center; }
.accent { color: var(--accent); }


/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  background: transparent;
  box-shadow: none;
  transition: background .35s ease, box-shadow .35s ease;
}
.navbar.scrolled {
  background: #fff;
  box-shadow: 0 2px 24px rgba(0,0,0,.08);
}

.nav-inner {
  width: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  position: relative;
}

/* לוגו — מרכז מוחלט */
.nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 80px;
  width: auto;
  transition: opacity .35s ease;
}
.logo-dark  { mix-blend-mode: multiply; }
.logo-light { position: absolute; }

/* בחלק העליון: לוגו לבן */
.logo-dark  { opacity: 0; }
.logo-light { opacity: 1; }

/* בגלילה: לוגו רגיל */
.navbar.scrolled .logo-dark  { opacity: 1; }
.navbar.scrolled .logo-light { opacity: 0; }

/* כפתור חייג */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 700;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.55);
  backdrop-filter: blur(8px);
  transition: var(--transition);
  flex-shrink: 0;
  z-index: 1;
}
.nav-cta:hover {
  background: rgba(255,255,255,.28);
  transform: translateY(-1px);
}
.navbar.scrolled .nav-cta {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  backdrop-filter: none;
}
.navbar.scrolled .nav-cta:hover {
  background: var(--accent-h);
  border-color: var(--accent-h);
}

/* המבורגר */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 999;
  cursor: pointer;
  position: relative;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .hamburger span {
  background: var(--navy);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); background: #fff; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); background: #fff; }

/* תפריט נפתח */
.nav-dropdown {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 12px 32px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.nav-dropdown.open { display: block; }
.nav-dropdown ul {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-link {
  display: block;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-link:hover {
  color: var(--accent);
  background: var(--accent-soft);
}


/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  background: url('../images/haifa-bg.png') center / cover no-repeat;
  overflow: hidden;
}

/* Dark overlay on top of the photo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 35, 0.72);
  pointer-events: none;
}

/* Hero — centered layout */
.hero-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  max-width: 860px;
  margin: 0 auto;
  padding: 140px 24px 100px;
  justify-content: center;
}

.badge {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 100px;
  background: rgba(37,99,235,.25);
  border: 1px solid rgba(37,99,235,.5);
  color: #93C5FD;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-firm {
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}
.hero-firm span {
  display: block;
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: rgba(255,255,255,.75);
  letter-spacing: .04em;
  margin-top: 6px;
}

.hero-tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 20px;
}
.hero-tagline em {
  font-style: normal;
  background: linear-gradient(135deg, #60A5FA, #93C5FD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.68);
  line-height: 1.85;
  margin-bottom: 40px;
  max-width: 680px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.hero-trust {
  display: flex;
  flex-direction: row;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  color: rgba(255,255,255,.72);
}
.trust-item svg { color: #60A5FA; flex-shrink: 0; }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-dot {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,.5);
  border-radius: 50%;
  animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
  0%,100% { transform: translateY(0); opacity:.5; }
  50%      { transform: translateY(8px); opacity:1; }
}

/* Diagonal cut at bottom */
.hero-cut {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}


/* ══════════════════════════════════════════
   SERVICES
══════════════════════════════════════════ */
.services {
  padding: 110px 0 120px;
  background: rgba(249, 250, 251, 0.82);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.svc-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
  cursor: pointer;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: var(--transition);
}
.svc-card:hover,
.svc-card.active {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(37,99,235,.14);
  border-color: rgba(37,99,235,.25);
}
.svc-card:hover::before,
.svc-card.active::before { transform: scaleY(1); }

.svc-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 14px;
  color: var(--accent);
  margin-bottom: 20px;
  transition: var(--transition);
  flex-shrink: 0;
}
.svc-card:hover .svc-icon,
.svc-card.active .svc-icon {
  background: var(--accent);
  color: #fff;
}

.svc-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0;
  transition: var(--transition);
}

/* Description — hidden by default, revealed on hover/active */
.svc-card p {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height .45s ease, opacity .35s ease, margin-top .35s ease;
}
.svc-card:hover p,
.svc-card.active p {
  max-height: 300px;
  opacity: 1;
  margin-top: 14px;
}

.svc-arrow {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
}
.svc-card:hover .svc-arrow,
.svc-card.active .svc-arrow { opacity: 1; transform: translateX(0); }


/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about {
  padding: 110px 0;
  background: rgba(255, 255, 255, 0.82);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* Image column — visually on the LEFT (second in RTL DOM order) */
.about-img-col { order: 2; }

.about-img-wrap {
  position: relative;
}

.about-img {
  width: 100%;
  height: 580px;
  object-fit: contain;
  object-position: bottom center;
}

/* Fallback if image missing */
.about-img-wrap:not(:has(img[src])) {
  height: 580px;
  background: var(--navy-mid);
  border-radius: 20px;
}

.about-float-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.float-icon { font-size: 1.8rem; }
.about-float-card strong { display: block; font-size: .95rem; font-weight: 700; color: var(--text); }
.about-float-card small  { font-size: .82rem; color: var(--text-muted); }

/* Text column — visually on the RIGHT (primary in RTL) */
.about-text-col { order: 1; }

.about-text-col .tag { margin-bottom: 16px; }

.about-text-col h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 24px;
}

.about-text-col p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-list {
  margin: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.about-list svg { color: var(--accent); flex-shrink: 0; }


/* ══════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════ */
.testimonials {
  padding: 110px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(37,99,235,.2) 0%, transparent 60%);
  pointer-events: none;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.testi-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.testi-card:hover {
  background: rgba(255,255,255,.11);
  transform: translateY(-4px);
}

.stars {
  color: #FCD34D;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.testi-card > p {
  font-size: 1rem;
  color: rgba(255,255,255,.82);
  line-height: 1.8;
  margin-bottom: 28px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  color: #fff;
  flex-shrink: 0;
}
.testi-author strong { display: block; color: #fff; font-size: .95rem; }
.testi-author small  { color: rgba(255,255,255,.55); font-size: .82rem; }


/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact {
  padding: 110px 0;
  background: rgba(249, 250, 251, 0.82);
}

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

.contact-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.ci-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  transition: var(--transition);
}
.ci-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(37,99,235,.1);
  transform: translateX(-4px);
}
.ci-item.wa .ci-icon { color: #25D366; }
.ci-item.wa:hover { border-color: #25D366; box-shadow: 0 4px 20px rgba(37,211,102,.15); }

.ci-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 10px;
  color: var(--accent);
  flex-shrink: 0;
}

.ci-item small  { display: block; font-size: .8rem; color: var(--text-muted); }
.ci-item strong { display: block; font-size: 1rem; font-weight: 700; color: var(--text); }

/* Form */
.contact-form {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Assistant', sans-serif;
  font-size: 1rem;
  color: var(--text);
  direction: rtl;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9CA3AF; }


/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--navy);
  padding: 80px 0 0;
  color: rgba(255,255,255,.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-logo {
  height: 75px;
  width: auto;
  margin-bottom: 20px;
}
.footer-brand p { font-size: .95rem; line-height: 1.7; }

.footer-nav h4,
.footer-contact h4 {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.footer-nav ul li { margin-bottom: 10px; }
.footer-nav a,
.footer-contact a {
  font-size: .92rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
  display: block;
  margin-bottom: 10px;
}
.footer-nav a:hover,
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: .85rem;
  flex-wrap: wrap;
  gap: 12px;
}
.disclaimer { color: rgba(255,255,255,.35); }


/* ══════════════════════════════════════════
   WHATSAPP FAB
══════════════════════════════════════════ */
.wa-fab {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  z-index: 999;
  transition: var(--transition);
}
.wa-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 10px 32px rgba(37,211,102,.55);
}
.wa-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.4);
  animation: waPulse 2.5s infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .8; }
  100% { transform: scale(1.5); opacity: 0;  }
}


/* ══════════════════════════════════════════
   ACCESSIBILITY WIDGET
══════════════════════════════════════════ */
.a11y-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: var(--gold);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  z-index: 1100;
  cursor: pointer;
  transition: var(--transition);
}
.a11y-btn:hover { transform: scale(1.1) translateY(-2px); }
.a11y-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.a11y-panel {
  position: fixed;
  bottom: 98px;
  right: 28px;
  width: 240px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
  padding: 18px;
  z-index: 1099;
  direction: rtl;
  display: none;
  animation: a11ySlide .2s ease;
}
.a11y-panel.open { display: block; }
@keyframes a11ySlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.a11y-panel h3 {
  font-size: .85rem;
  font-weight: 700;
  color: #555;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.a11y-options { display: flex; flex-direction: column; gap: 8px; }
.a11y-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f5f5;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 500;
  color: #333;
  text-align: right;
  transition: background .15s, border-color .15s;
  width: 100%;
}
.a11y-opt:hover { background: #eee; }
.a11y-opt.active { background: #fdf3d0; border-color: var(--gold); color: var(--gold); }
.a11y-opt svg { flex-shrink: 0; }
.a11y-reset {
  margin-top: 10px;
  width: 100%;
  background: none;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 8px;
  font-family: inherit;
  font-size: .82rem;
  color: #888;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.a11y-reset:hover { border-color: #bbb; color: #555; }

/* Applied accessibility classes */
body.a11y-large-text  { font-size: 110%; }
body.a11y-contrast    { filter: contrast(1.5); }
body.a11y-readable *  { font-family: Arial, Helvetica, sans-serif !important; }
body.a11y-links a     { text-decoration: underline !important; outline: 2px dashed currentColor; outline-offset: 2px; }

@media (max-width: 768px) {
  .a11y-btn { bottom: 20px; right: 20px; width: 52px; height: 52px; font-size: 22px; }
  .a11y-panel { right: 14px; width: calc(100vw - 28px); }
}


/* ══════════════════════════════════════════
   KEYFRAME ANIMATIONS
══════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px);  }
  50%       { transform: translateY(-9px); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes badgePop {
  0%   { opacity: 0; transform: scale(.8) translateY(12px); }
  70%  { transform: scale(1.05) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Hero entrance (staggered) ── */
.hero-center .badge        { animation: fadeUp .55s ease both; animation-delay: .1s;  }
.hero-center .hero-firm    { animation: fadeUp .65s ease both; animation-delay: .25s; }
.hero-center .hero-tagline { animation: fadeUp .65s ease both; animation-delay: .4s;  }
.hero-center .hero-sub     { animation: fadeUp .65s ease both; animation-delay: .55s; }
.hero-center .hero-btns    { animation: fadeUp .65s ease both; animation-delay: .7s;  }
.hero-center .hero-trust   { animation: fadeUp .65s ease both; animation-delay: .85s; }

/* ── Accent gradient text shimmer ── */
.hero-tagline em {
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
}

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.services-grid .reveal:nth-child(1) { transition-delay: .00s; }
.services-grid .reveal:nth-child(2) { transition-delay: .08s; }
.services-grid .reveal:nth-child(3) { transition-delay: .16s; }
.services-grid .reveal:nth-child(4) { transition-delay: .24s; }
.services-grid .reveal:nth-child(5) { transition-delay: .32s; }
.services-grid .reveal:nth-child(6) { transition-delay: .40s; }

.testi-grid .reveal:nth-child(1) { transition-delay: .00s; }
.testi-grid .reveal:nth-child(2) { transition-delay: .12s; }
.testi-grid .reveal:nth-child(3) { transition-delay: .24s; }

/* ── Section tag pop ── */
.section-head.visible .tag {
  animation: badgePop .5s ease both;
}

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-grid    { gap: 48px; }
  .hero-center   { padding: 130px 32px 80px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Navbar ── */
  .nav-inner { padding: 0 18px; justify-content: space-between; gap: 0; }
  .nav-logo  { flex: 1; }
  .nav-cta   { display: none; }
  .hamburger { display: flex; flex-shrink: 0; }

  /* Full-screen slide-down menu */
  .nav-dropdown {
    display: flex !important;
    position: fixed;
    top: 0; right: 0; left: 0; bottom: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    box-shadow: none;
    border-top: none;
    transform: translateY(-100%);
    transition: transform .42s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
    z-index: 998;
  }
  .nav-dropdown.open {
    transform: translateY(0);
    pointer-events: all;
  }
  .nav-dropdown ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
  }
  .nav-dropdown ul li { list-style: none; width: 80%; }
  .nav-link {
    font-size: 1.35rem;
    font-weight: 700;
    color: rgba(255,255,255,.85) !important;
    padding: 14px 24px;
    border-radius: 12px;
    width: 100%;
    text-align: center;
    background: transparent !important;
    transition: background var(--transition), color var(--transition);
  }
  .nav-link:hover,
  .nav-link.active {
    background: rgba(255,255,255,.1) !important;
    color: #fff !important;
  }
  /* Stagger menu items */
  .nav-dropdown.open li:nth-child(1) .nav-link { animation: fadeUp .3s ease both .15s; }
  .nav-dropdown.open li:nth-child(2) .nav-link { animation: fadeUp .3s ease both .22s; }
  .nav-dropdown.open li:nth-child(3) .nav-link { animation: fadeUp .3s ease both .29s; }
  .nav-dropdown.open li:nth-child(4) .nav-link { animation: fadeUp .3s ease both .36s; }
  .nav-dropdown.open li:nth-child(5) .nav-link { animation: fadeUp .3s ease both .43s; }

  /* ── Hero ── */
  .hero-center  { padding: 96px 20px 60px; }
  .hero-firm    { font-size: clamp(2.4rem, 10vw, 3.8rem); }
  .hero-btns    { gap: 10px; }
  .hero-trust   { gap: 16px; flex-direction: column; align-items: center; }
  .hero-sub     { font-size: 1rem; }
  .hero-cut     { height: 40px; }
  .badge        { font-size: .75rem; }

  /* ── Services ── */
  .services { padding: 70px 0 80px; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .svc-card { padding: 26px 22px; }
  .svc-arrow { display: none; }

  /* ── About ── */
  .about { padding: 70px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-text-col { order: 1; }
  .about-img-col  { order: 2; }
  .about-img { height: 360px; }
  .about-float-card {
    left: 8px; bottom: -14px;
    padding: 12px 16px;
    gap: 10px;
  }
  .about-float-card strong { font-size: .88rem; }
  .about-float-card small  { font-size: .78rem; }

  /* ── Testimonials ── */
  .testimonials { padding: 70px 0; }
  .testi-grid { grid-template-columns: 1fr; gap: 16px; }
  .testi-card { padding: 26px 22px; }

  /* ── Contact ── */
  .contact { padding: 70px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-form { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .ci-item { padding: 14px 16px; }

  /* ── Footer ── */
  .footer { padding-top: 52px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .footer-logo { height: 60px; }
  .footer-brand p { font-size: .9rem; }

  /* ── Section headers ── */
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: 1.75rem; }
  .section-head p  { font-size: 1rem; }

  /* ── General ── */
  .container { padding: 0 18px; }
  .wa-fab { bottom: 20px; left: 20px; width: 52px; height: 52px; }
}

/* ── Small phones ── */
@media (max-width: 420px) {
  .hero-btns  { flex-direction: column; align-items: center; }
  .btn        { width: 100%; justify-content: center; }
  .hero-center { padding: 88px 16px 48px; }
  .section-head h2 { font-size: 1.55rem; }
}
