/* ============================================================
   Ahmad Kitane, Advocate — Landing Page Stylesheet
   ============================================================ */

/* ---------- Fonts (local, self-hosted) ---------- */
@font-face {
  font-family: "Cairo";
  src: url("../fonts/Cairo-300-ar.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Cairo";
  src: url("../fonts/Cairo-400-ar.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Cairo";
  src: url("../fonts/Cairo-700-ar.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Cairo";
  src: url("../fonts/Cairo-900-ar.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Cairo";
  src: url("../fonts/Cairo-300-lat.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("../fonts/Cairo-400-lat.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("../fonts/Cairo-700-lat.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("../fonts/Cairo-900-lat.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Heebo";
  src: url("../fonts/Heebo-300-he.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0590-05FF, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  src: url("../fonts/Heebo-400-he.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0590-05FF, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  src: url("../fonts/Heebo-700-he.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0590-05FF, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  src: url("../fonts/Heebo-900-he.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0590-05FF, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  src: url("../fonts/Heebo-300-lat.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Heebo";
  src: url("../fonts/Heebo-400-lat.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Heebo";
  src: url("../fonts/Heebo-700-lat.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Heebo";
  src: url("../fonts/Heebo-900-lat.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-400-lat.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-500-lat.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-600-lat.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --navy: #1b2a57;
  --navy-deep: #131f42;
  --gold: #c9a24b;
  --gold-light: #d8b98a;
  --gold-text: #8a6a1e; /* darker gold for text on light backgrounds (contrast >= 4.5:1) */
  --cream: #f7f2e8;
  --bg-light: #efe7d9;
  --text-primary: #2b2b2b;
  --text-secondary: #6b6b6b;
  --border: #e4dac8;
  --white: #ffffff;
  --radius: 4px;
  --shadow-soft: 0 10px 30px -10px rgba(27, 42, 87, 0.15);
  --shadow-card: 0 4px 20px rgba(27, 42, 87, 0.08);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg-light);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="ar"] body,
html[lang="ar"] * { font-family: "Cairo", "Montserrat", sans-serif; }
html[lang="he"] body,
html[lang="he"] * { font-family: "Heebo", "Montserrat", sans-serif; }

.latin-label {
  font-family: "Montserrat", sans-serif !important;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
}

@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;
    scroll-behavior: auto !important;
  }
}

/* ---------- Pattern background ---------- */
.pattern-bg {
  position: relative;
}
.pattern-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/brand/pattern-mask.png");
  background-size: cover;
  background-position: center;
  opacity: 0.09;
  pointer-events: none;
}
.pattern-bg-light::before { opacity: 0.06; }

/* ---------- Header ---------- */
#site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
#site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.nav-link {
  color: var(--cream);
  opacity: 0.85;
  position: relative;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.nav-link:hover { opacity: 1; color: var(--gold-light); }
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

.btn-cta {
  background: var(--cream);
  color: var(--navy);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: var(--gold-light);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  background: var(--navy-deep);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  background: var(--gold-light);
}

/* Mobile menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
#mobile-menu.open { max-height: 420px; }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
#hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  position: relative;
  overflow: hidden;
}

/* Background-removed photos sit directly on the page; the bottom edge fades out */
.cutout {
  position: relative;
}
.cutout::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 118%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 75, 0.30) 0%, rgba(201, 162, 75, 0.10) 42%, transparent 68%);
  pointer-events: none;
}
/* the shadow lives on the wrapper so the image's fade mask does not clip it */
.cutout-fig {
  position: relative;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.25));
}
.cutout img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
}
.cutout-light::before {
  background: radial-gradient(circle, rgba(216, 185, 138, 0.55) 0%, rgba(216, 185, 138, 0.18) 45%, transparent 70%);
}
.cutout-light .cutout-fig { filter: drop-shadow(0 16px 22px rgba(27, 42, 87, 0.16)); }

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
  pointer-events: none;
}

.stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 162, 75, 0.25);
  backdrop-filter: blur(6px);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---------- Cards ---------- */
.practice-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.practice-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--gold);
}
.practice-icon {
  background: var(--bg-light);
  color: var(--navy);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.practice-card:hover .practice-icon {
  background: var(--gold);
  color: var(--white);
  transform: scale(1.08) rotate(-4deg);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.testimonial-card {
  border-top: 3px solid var(--gold);
}

/* Corporate legal-support feature panel */
.corp-panel {
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -25px rgba(27, 42, 87, 0.35);
  border: 1px solid var(--border);
  overflow: hidden;
}
.corp-side {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  position: relative;
}
.corp-check {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(201, 162, 75, 0.16);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Form ---------- */
.form-input {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  color: var(--text-primary);
}
.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.18);
}
.form-input::placeholder { color: var(--text-secondary); opacity: 0.7; }

/* ---------- Footer ---------- */
#site-footer {
  background: var(--navy-deep);
  color: var(--cream);
}
.social-icon {
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, transform 0.25s ease;
}
.social-icon:hover {
  background: var(--gold);
  transform: translateY(-3px);
}

/* ---------- Misc ---------- */
/* Section labels use the identity font (Cairo/Heebo), no letter-spacing */
.eyebrow {
  color: var(--gold-text);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.4;
  letter-spacing: 0;
}
@media (min-width: 768px) { .eyebrow { font-size: 1.375rem; } }
.eyebrow-lg { font-size: 1.375rem; }
@media (min-width: 768px) { .eyebrow-lg { font-size: 1.75rem; } }

.footer-heading {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
  margin-bottom: 1rem;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.consent input {
  margin-top: 0.2rem;
  width: 15px;
  height: 15px;
  flex: none;
  accent-color: var(--navy);
}

.form-status {
  min-height: 1.25rem;
  font-size: 0.85rem;
}

.divider-gold {
  width: 56px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.whatsapp-float {
  position: fixed;
  bottom: 22px;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

html[dir="rtl"] .whatsapp-float { left: 22px; }

/* Language toggle */
.lang-toggle {
  border: 1px solid rgba(247, 242, 232, 0.35);
  border-radius: 999px;
  overflow: hidden;
}
.lang-btn {
  background: transparent;
  color: var(--cream);
  opacity: 0.65;
  transition: background 0.25s ease, opacity 0.25s ease, color 0.25s ease;
}
.lang-btn.active {
  background: var(--gold);
  color: var(--navy);
  opacity: 1;
  font-weight: 700;
}

/* Skip link */
.skip-link {
  position: absolute;
  right: 8px;
  top: -60px;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 16px;
  border-radius: var(--radius);
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 8px; }

/* ---------- Carousel (achievements) ---------- */
.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem 0.75rem 1.5rem;
  margin: 0 -0.75rem;
  scroll-padding-inline: 0.75rem;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.carousel-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
@media (min-width: 640px) { .carousel-item { flex-basis: calc((100% - 1.5rem) / 2); } }
@media (min-width: 1024px) { .carousel-item { flex-basis: calc((100% - 3rem) / 3); } }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}
.carousel-controls[hidden] { display: none; }
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
.carousel-btn:hover:not(:disabled) { background: var(--navy); color: var(--white); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }
.carousel-dots { display: flex; align-items: center; gap: 0.5rem; }
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--border);
  transition: width 0.3s ease, background 0.3s ease;
}
.carousel-dot.active { width: 26px; background: var(--gold); }

/* ---------- Cookie consent banner ---------- */
#cookie-banner {
  position: fixed;
  z-index: 120;
  inset-inline-start: 16px;
  bottom: 16px;
  width: min(680px, calc(100vw - 32px));
  background: var(--navy-deep);
  color: var(--cream);
  border: 1px solid rgba(201, 162, 75, 0.45);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
  padding: 1.1rem 1.25rem;
}
#cookie-banner[hidden] { display: none; }
#cookie-banner .cookie-text { font-size: 0.875rem; line-height: 1.75; color: rgba(247, 242, 232, 0.9); }
#cookie-banner .cookie-link {
  color: var(--gold-light);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-inline-start: 0.35rem;
}
#cookie-banner .cookie-actions { display: flex; gap: 0.6rem; margin-top: 0.9rem; flex-wrap: wrap; }
#cookie-banner .cookie-btn {
  flex: 1 1 150px;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.875rem;
  border: 1.5px solid var(--gold);
  transition: background 0.25s ease, color 0.25s ease;
}
#cookie-banner .cookie-accept { background: var(--gold); color: var(--navy); }
#cookie-banner .cookie-accept:hover { background: var(--gold-light); }
#cookie-banner .cookie-reject { background: transparent; color: var(--cream); }
#cookie-banner .cookie-reject:hover { background: rgba(247, 242, 232, 0.1); }
@media (max-width: 639px) {
  body.consent-open .whatsapp-float { bottom: calc(var(--consent-h, 180px) + 32px); }
}
