/* =============================================================
   MOGRABI LAW FIRM — styles.css
   Premium law firm design: navy + gold + white, RTL Hebrew
============================================================= */

/* ─── VARIABLES ─────────────────────────────────────────── */
:root {
  --navy-deep:    #17173A;   /* business-card navy */
  --navy-mid:     #26265A;
  --navy-light:   #34347A;
  --gold:         #C8A96E;
  --gold-light:   #E2C98A;
  --gold-dark:    #A8833E;
  --gold-ink:     #86672C;   /* gold for TEXT on light backgrounds (contrast 4.7:1+) */
  --white:        #FFFFFF;
  --off-white:    #F5F3EE;
  --gray-100:     #F0EEE9;
  --gray-300:     #C8C4BC;
  --gray-500:     #6E6862;   /* darkened for WCAG AA text contrast (was #8C8680) */
  --gray-700:     #4A4540;
  --text-dark:    #1A1A2E;
  --text-body:    #3D3A36;

  --font-heading: 'Frank Ruhl Libre', 'David', serif;
  --font-body:    'Heebo', 'Arial', sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  --shadow-sm:  0 2px 8px rgba(15,31,61,.08);
  --shadow-md:  0 4px 20px rgba(15,31,61,.12);
  --shadow-lg:  0 8px 40px rgba(15,31,61,.18);
  --shadow-xl:  0 16px 60px rgba(15,31,61,.24);

  --transition: 0.3s cubic-bezier(.4,0,.2,1);

  --header-h: 160px;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
address { font-style: normal; }

/* ─── HIGH CONTRAST MODE ─────────────────────────────────── */
/* Filter is applied to page regions, not <body>: a filter on an ancestor
   breaks position:fixed (header, WhatsApp button). */
body.high-contrast main,
body.high-contrast .site-footer,
body.high-contrast .site-header,
body.high-contrast .whatsapp-fab {
  filter: contrast(1.5) saturate(0);
}
body.high-contrast a:not(.btn) { text-decoration: underline; }

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

/* ─── SECTION PADDING ────────────────────────────────────── */
.section-pad { padding: 96px 0; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-label.light { color: var(--gold-light); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.25;
  margin-bottom: 20px;
}
.section-title.light { color: var(--white); }

.section-intro {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
}
.section-intro.light { color: var(--gray-300); }

.section-header.centered { text-align: center; margin-bottom: 64px; }
.section-header.centered .section-intro { margin: 0 auto; }

.desktop-br { display: block; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-primary::before { background: var(--gold-light); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy-deep);
  border: 2px solid var(--navy-deep);
}
.btn-outline:hover {
  background: var(--navy-deep);
  color: var(--white);
}

.btn-sm { padding: 10px 20px; font-size: .875rem; }
.btn-full { width: 100%; }

.centered-cta { text-align: center; margin-top: 48px; }

/* ─── REVEAL ANIMATIONS ──────────────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: none;
}

/* ─── BACKGROUNDS ────────────────────────────────────────── */
.bg-dark { background: var(--navy-deep); }
.bg-off-white { background: var(--off-white); }

/* ─── IMAGE PLACEHOLDERS ─────────────────────────────────── */
/*
  When you're ready to add an image, replace:
    <div class="XYZ img-placeholder" aria-hidden="true"></div>
  with:
    <img src="assets/images/YOUR-FILE.jpg" class="XYZ" alt="...">
*/
.img-placeholder {
  background: linear-gradient(135deg, #222250 0%, #17173A 100%);
  position: relative;
  overflow: hidden;
}
.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,.03) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2.2s infinite;
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* =============================================================
   HEADER / NAVBAR
============================================================= */
.site-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: var(--navy-deep);
  box-shadow: var(--shadow-lg);
}

.navbar { height: 100%; }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-main {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .01em;
}
.logo-sub {
  font-size: .7rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Logo image in navbar */
.nav-logo {
  display: flex;
  align-items: center;
  overflow: visible;
}
.nav-logo-img {
  height: 138px;
  width: auto;
  max-width: 480px;
  display: block;
  object-fit: contain;
  transition: opacity var(--transition);
}
.nav-logo:hover .nav-logo-img { opacity: .85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 16px;
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.08); }

.nav-cta {
  background: var(--gold);
  color: var(--navy-deep) !important;
  font-weight: 700;
  margin-right: 8px;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.bar {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open .bar:nth-child(2) { opacity: 0; }
.hamburger.open .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  position: absolute;
  top: var(--header-h);
  right: 0; left: 0;
  background: var(--navy-mid);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding var(--transition);
}
.mobile-menu.open {
  max-height: 400px;
  padding: 16px 0 24px;
}
.mobile-nav-links { display: flex; flex-direction: column; }
.mobile-link {
  display: block;
  padding: 14px 24px;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background var(--transition), color var(--transition);
}
.mobile-link:hover { background: rgba(255,255,255,.06); color: var(--white); }
.mobile-link-cta {
  color: var(--gold) !important;
  font-weight: 700;
  margin: 12px 24px 0;
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  text-align: center;
}
.mobile-link-cta:hover { background: var(--gold); color: var(--navy-deep) !important; }

/* =============================================================
   HERO
============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
  background: var(--navy-deep);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(16,16,42,.90) 0%,
    rgba(23,23,58,.85) 50%,
    rgba(16,16,42,.80) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 840px;
  padding: 0 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200,169,110,.4);
  padding: 8px 20px;
  border-radius: 2px;
  margin-bottom: 28px;
}
.badge-sep { opacity: .4; }

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-accent {
  color: var(--gold);
  display: block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.8);
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Trust strip */
.hero-trust {
  position: relative;
  z-index: 2;
  width: 100%;
  background: rgba(16,16,42,.7);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(200,169,110,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px 0;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}
.trust-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.trust-plus { font-size: 1.4rem; }
.trust-label {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  letter-spacing: .05em;
  margin-top: 4px;
}
.trust-sep {
  width: 1px;
  height: 48px;
  background: rgba(200,169,110,.25);
}

/* Scroll down */
.scroll-down {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: .6;
  transition: opacity var(--transition);
  animation: bounce 2s ease infinite;
}
.scroll-down:hover { opacity: 1; }
.scroll-chevron {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* =============================================================
   ABOUT
============================================================= */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  align-items: start;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: visible;
}
.about-portrait {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: block;
}
/* Cut-out portrait on a navy panel with a soft gold glow, so the dark suit stands out */
.portrait-cutout {
  background:
    radial-gradient(ellipse 65% 50% at 50% 32%, rgba(230,201,143,.38) 0%, rgba(230,201,143,0) 70%),
    linear-gradient(170deg, var(--navy-light) 0%, var(--navy-deep) 75%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.portrait-cutout picture { display: flex; align-items: flex-end; justify-content: center; height: 100%; width: 100%; }
.portrait-cutout img {
  height: 97%;
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.35));
}

.about-img-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.badge-line1 {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
}
.badge-line2 {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 2px;
}

.about-text-col { padding-top: 16px; }

.about-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-body {
  color: var(--text-body);
  margin-bottom: 20px;
  line-height: 1.8;
}

.value-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 36px;
}
.value-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--off-white);
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--navy-deep);
  transition: all var(--transition);
}
.value-pill:hover {
  background: var(--navy-deep);
  color: var(--white);
  border-color: var(--navy-deep);
}
.pill-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--gold);
}
.value-pill:hover .pill-icon { stroke: var(--gold-light); }

/* =============================================================
   PRACTICE AREAS
============================================================= */
.practice-areas { padding-bottom: 112px; }

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

/* Card flip */
.pcard {
  perspective: 1000px;
  height: 340px;
  cursor: pointer;
}
.pcard:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: var(--radius-md); }

.pcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.4,0,.2,1);
}
/* Hover-flip only on devices that really hover (mouse). Touch devices flip on tap
   via the .flipped class set in script.js. */
@media (hover: hover) {
  .pcard:hover .pcard-inner { transform: rotateY(180deg); }
}
.pcard.flipped .pcard-inner { transform: rotateY(180deg); }

.pcard-front,
.pcard-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.pcard-front {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(200,169,110,.2);
  color: var(--white);
}
.pcard-back {
  background: var(--gold);
  color: var(--navy-deep);
  transform: rotateY(180deg);
}

.pcard-icon-wrap {
  width: 56px;
  height: 56px;
  border: 1.5px solid rgba(200,169,110,.4);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
  flex-shrink: 0;
}
.pcard-icon-wrap svg { width: 32px; height: 32px; }

.pcard-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.pcard-front .pcard-title { color: var(--white); }
.pcard-back .pcard-title { color: var(--navy-deep); margin-bottom: 16px; }

.pcard-excerpt {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  flex: 1;
}

.pcard-flip-hint {
  margin-top: auto;
  display: flex;
  align-items: center;
  color: var(--gold);
  opacity: .6;
  transition: opacity var(--transition);
}
.pcard-flip-hint svg { width: 20px; height: 20px; }
.pcard-flip-hint .hint-text { font-size: .8rem; margin-right: 6px; }
.pcard-flip-hint .hint-touch { display: none; }
@media (hover: none) {
  .pcard-flip-hint { opacity: 1; }
  .pcard-flip-hint .hint-mouse { display: none; }
  .pcard-flip-hint .hint-touch { display: inline; }
}
.pcard:hover .pcard-flip-hint { opacity: 1; }

.pcard-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  flex: 1;
}
.pcard-list li {
  font-size: .875rem;
  font-weight: 500;
  color: var(--navy-deep);
  padding-right: 16px;
  position: relative;
}
.pcard-list li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--navy-mid);
  font-weight: 700;
}

.pcard-back .btn-primary {
  background: var(--navy-deep);
  color: var(--white);
  margin-top: auto;
}
.pcard-back .btn-primary:hover { background: var(--navy-mid); }

/* =============================================================
   INSIGHTS
============================================================= */
.insights { background: var(--off-white); }

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

.icard {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.icard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.icard-img-wrap { position: relative; overflow: hidden; }
.icard-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .5s ease;
}
.icard:hover .icard-img { transform: scale(1.05); }

.icard-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 5px 12px;
  border-radius: 2px;
}

.icard-body { padding: 24px; }

.icard-date {
  display: block;
  font-size: .78rem;
  color: var(--gray-500);
  margin-bottom: 10px;
  letter-spacing: .04em;
}
.icard-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 12px;
}
.icard-excerpt {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 16px;
}
.icard-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition), color var(--transition);
}
.icard-link:hover { gap: 10px; color: var(--navy-deep); }

/* =============================================================
   TESTIMONIALS
============================================================= */
.testimonials { background: var(--navy-deep); }

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

.testi-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(200,169,110,.15);
  border-radius: var(--radius-md);
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testi-quote {
  width: 32px;
  height: 26px;
  color: var(--gold);
  opacity: .6;
  flex-shrink: 0;
}
.testi-text {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  line-height: 1.8;
  font-style: italic;
  flex: 1;
}
.testi-author {
  font-size: .82rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .04em;
}

/* =============================================================
   CONTACT
============================================================= */
.contact { background: var(--white); }

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

.contact-lead {
  color: var(--text-body);
  margin-bottom: 36px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cdetail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.cdetail-icon {
  width: 44px;
  height: 44px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-dark);
}
.cdetail-icon svg { width: 20px; height: 20px; }
.cdetail-text { display: flex; flex-direction: column; gap: 2px; }
.cdetail-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.cdetail-val {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.5;
}
.cdetail-val a { color: var(--navy-mid); }
.cdetail-val a:hover { text-decoration: underline; }

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}

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

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }

.form-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
}
.req { color: var(--gold-dark); }

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(26,52,104,.12);
}
.form-input.invalid {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}
.form-input.valid { border-color: #16A34A; }

.form-select { cursor: pointer; }

.form-textarea { resize: vertical; min-height: 120px; }

.form-err {
  font-size: .8rem;
  color: #DC2626;
  min-height: 18px;
  display: block;
}

/* Consent checkbox */
.form-consent-group { margin-bottom: 20px; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.consent-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.consent-box {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  background: var(--white);
  transition: all var(--transition);
  position: relative;
  margin-top: 2px;
}
.consent-check:checked + .consent-box {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
}
.consent-check:checked + .consent-box::after {
  content: '';
  position: absolute;
  top: 2px; right: 4px;
  width: 6px; height: 10px;
  border: 2px solid var(--white);
  border-top: none;
  border-right: none; /* RTL: use right/left carefully */
  transform: rotate(-45deg);
  /* Cross-browser checkmark */
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  border-top: none;
  border-right: none;
  width: 5px;
  height: 9px;
  top: 1px;
  right: 5px;
}
.consent-text {
  font-size: .85rem;
  color: var(--gray-700);
  line-height: 1.6;
}
.form-link { color: var(--navy-mid); text-decoration: underline; }
.form-link:hover { color: var(--navy-deep); }

/* Submit button states */
#submit-btn { gap: 10px; }
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(15,31,61,.3);
  border-top-color: var(--navy-deep);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
#submit-btn.loading .btn-label { opacity: .5; }
#submit-btn.loading .btn-spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Send-failure message */
.form-alert {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #FDF2F2;
  border: 1px solid #F3C9C9;
  color: #9B2C2C;
  font-size: .9rem;
  line-height: 1.6;
}
.form-alert a { font-weight: 700; text-decoration: underline; }
.form-alert[hidden] { display: none; }

/* Success state */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  gap: 16px;
  animation: fadeIn .5s ease;
}
.form-success[hidden] { display: none !important; }

@keyframes fadeIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }

.success-svg {
  width: 80px;
  height: 80px;
  color: var(--gold);
}
.success-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy-deep);
}
.success-text {
  color: var(--gray-500);
  line-height: 1.8;
}

/* =============================================================
   FOOTER
============================================================= */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); }

.footer-top { padding: 72px 0 48px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .footer-logo {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

/* Footer logo — invert so navy becomes white on dark bg */
.footer-logo-img {
  height: 138px;
  width: auto;
  object-fit: contain;
  opacity: .9;
}

.footer-tagline {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition), padding-right var(--transition);
  display: inline-block;
}
.footer-link:hover { color: var(--gold); padding-right: 4px; }

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}
.footer-address a:hover { color: var(--gold); }

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer-disclaimer {
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  text-align: center;
  flex: 1;
}

/* Accessibility toolbar */
.a11y-bar { display: flex; gap: 6px; }
.a11y-btn {
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  background: transparent;
  transition: all var(--transition);
}
.a11y-btn:hover, .a11y-btn[aria-pressed="true"] {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

/* =============================================================
   RESPONSIVE — TABLET (max 1024px)
============================================================= */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 320px 1fr;
    gap: 48px;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-grid .pcard:nth-child(4),
  .cards-grid .pcard:nth-child(5) {
    grid-column: auto;
  }
  .testi-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* =============================================================
   RESPONSIVE — MOBILE (max 768px)
============================================================= */
@media (max-width: 768px) {
  :root { --header-h: 72px; }

  /* Logo must fit the 72px mobile header */
  .nav-logo-img {
    height: 56px;
    max-width: 60vw;
  }

  .section-pad { padding: 64px 0; }
  .desktop-br { display: none; }

  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-title { font-size: 2.6rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { text-align: center; }
  .hero-trust {
    flex-wrap: wrap;
    gap: 0;
    padding: 16px;
  }
  .trust-item { padding: 12px 20px; }
  .trust-sep { height: 36px; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-portrait { max-width: 320px; margin: 0 auto; }
  .about-img-badge { left: 50%; transform: translateX(-50%); bottom: -28px; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; }
  .pcard { height: 300px; }

  /* Insights */
  .insights-grid { grid-template-columns: 1fr; }

  /* Testimonials */
  .testi-grid { grid-template-columns: 1fr; }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-row { flex-direction: column; text-align: center; }
  .footer-disclaimer { text-align: center; }
}

/* =============================================================
   RESPONSIVE — SMALL (max 480px)
============================================================= */
@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-badge { font-size: .65rem; flex-wrap: wrap; justify-content: center; }
  .trust-sep { display: none; }
  .trust-item { width: 50%; padding: 12px 8px; }
  .hero-trust { justify-content: flex-start; }
}

/* =============================================================
   WHATSAPP FLOATING BUTTON
============================================================= */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px 13px 16px;
  background: #25D366;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: wa-pulse 2.5s ease infinite;
}
.whatsapp-fab svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  flex-shrink: 0;
}
.whatsapp-label {
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  letter-spacing: .01em;
}
.whatsapp-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(37,211,102,.65);
  animation: none;
}
.whatsapp-fab:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.5); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,.8), 0 0 0 10px rgba(37,211,102,.1); }
}
@media (max-width: 768px) {
  .whatsapp-fab { bottom: 18px; left: 14px; padding: 11px 14px; gap: 8px; }
  .whatsapp-fab svg { width: 22px; height: 22px; }
  .whatsapp-label { font-size: .8rem; }
}

/* =============================================================
   ARTICLE PAGES
============================================================= */
.article-nav {
  background: var(--navy-deep);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: var(--shadow-md);
}
.article-nav .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.article-logo-img {
  height: 60px;
  width: auto;
  max-width: 60vw;
  display: block;
  object-fit: contain;
}
@media (max-width: 480px) {
  .article-logo-img { height: 48px; }
  .article-back { font-size: .85rem; }
}
.article-back {
  color: var(--gold);
  font-size: .9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.article-back:hover { color: var(--gold-light); }

.article-hero {
  background: var(--navy-deep);
  padding: 70px 24px 60px;
  text-align: center;
}
.article-tag-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 22px;
  letter-spacing: .04em;
}
.article-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: var(--white);
  max-width: 820px;
  margin: 0 auto 16px;
  line-height: 1.4;
  font-weight: 700;
}
.article-date-line {
  color: rgba(255,255,255,.5);
  font-size: .88rem;
}

.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.article-body p {
  font-size: 1.04rem;
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 1.5em;
}
.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--navy-deep);
  margin: 2.2em 0 .8em;
  padding-right: 16px;
  border-right: 4px solid var(--gold);
  line-height: 1.35;
}
.article-body ul {
  list-style: disc;
  padding-right: 28px;
  margin-bottom: 1.5em;
}
.article-body li {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: .45em;
}
.article-body .case-box {
  background: #eef2fb;
  border-right: 4px solid var(--navy-mid);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 2em 0;
}
.article-body .case-box strong {
  display: block;
  color: var(--navy-deep);
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: .02em;
}
.article-body .case-box p {
  font-size: .95rem;
  margin-bottom: 0;
  color: var(--gray-700);
}
/* Quotes / ruling boxes written in the admin editor (one box per run of lines) */
.article-body blockquote {
  background: #eef2fb;
  border-right: 4px solid var(--navy-mid);
  padding: 4px 24px;
  margin: 0;
  font-size: .97rem;
  line-height: 1.85;
  color: var(--gray-700);
}
.article-body :not(blockquote) + blockquote { margin-top: 2em; padding-top: 20px; border-radius: 0 var(--radius-md) 0 0; }
.article-body blockquote:not(:has(+ blockquote)) { margin-bottom: 2em; padding-bottom: 20px; border-radius: 0 0 var(--radius-md) 0; }
.article-body blockquote strong { color: var(--navy-deep); }
.article-body h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--navy-deep); margin: 1.6em 0 .5em; }
.article-body ol { padding-right: 28px; margin-bottom: 1.5em; }
.article-body a { color: var(--navy-mid); text-decoration: underline; }
.article-cover { max-width: 900px; margin: -36px auto 0; padding: 0 24px; position: relative; }
.article-cover img { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); aspect-ratio: 16/9; object-fit: cover; }
.icard-img-wrap img.icard-img { width: 100%; height: 220px; object-fit: cover; }

.article-body .disclaimer {
  background: var(--off-white);
  border-right: 4px solid var(--gray-300);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .88rem;
  color: var(--gray-500);
  font-style: italic;
  margin-top: 3em;
}

.article-cta-section {
  background: var(--navy-deep);
  padding: 64px 24px;
  text-align: center;
}
.article-cta-section h2 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.article-cta-section p {
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.article-footer {
  background: #101029;
  padding: 22px 24px;
  text-align: center;
  color: rgba(255,255,255,.35);
  font-size: .82rem;
}
.article-footer a { color: var(--gold); }

/* =============================================================
   PRINT
============================================================= */
@media print {
  .site-header, .scroll-down, .hamburger,
  .hero-ctas, .hero-trust,
  .a11y-bar, .contact-form { display: none !important; }
  body { color: #000; background: #fff; }
  .hero { min-height: auto; padding: 40px 0; }
  .hero-bg-overlay, .hero-bg-img { display: none; }
  .hero-title, .hero-subtitle { color: #000; }
}

/* =============================================================
   ACCESSIBILITY FIXES (WCAG 2.2 AA, mobile audit 2026-12-02)
============================================================= */
/* Gold text on light backgrounds → darker gold for contrast */
.section-label:not(.light) { color: var(--gold-ink); }
.icard-link, .req { color: var(--gold-ink); }

/* Readable minimum text size */
.hero-badge { font-size: .78rem; }
.icard-tag  { font-size: .8rem; }
@media (max-width: 480px) { .hero-badge { font-size: .78rem; } }

/* Comfortable tap targets (44px) for standalone links */
.icard-link  { min-height: 44px; }
.cdetail-val a, a.cdetail-val { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links { gap: 0; }
.footer-link { display: inline-flex; align-items: center; min-height: 44px; }
.footer-address a { display: inline-flex; align-items: center; min-height: 44px; }

/* 16px form fields: prevents iOS from zooming in on focus */
.form-input { font-size: 1rem; }

/* Footer of inner pages: readable text, links recognisable without colour */
.article-footer { color: rgba(255,255,255,.72); }
.article-footer a { text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 8px 0; }

/* Flip cards: keyboard users reach the link on the back → show the back */
.pcard:focus-within .pcard-inner { transform: rotateY(180deg); }
.pcard-back .btn:focus-visible { outline: 3px solid var(--navy-deep); outline-offset: 3px; }

/* Closed mobile menu is also removed from keyboard/screen-reader flow */
.mobile-menu:not(.open) { visibility: hidden; transition: max-height .4s ease, padding var(--transition), visibility 0s .4s; }
.mobile-menu.open { visibility: visible; }

/* Home footer: readable small print */
.footer-copy       { color: rgba(255,255,255,.72); }
.footer-disclaimer { color: rgba(255,255,255,.68); }

/* WhatsApp button: darker green so the white text/icon reach 5.4:1 contrast */
.whatsapp-fab { background: #0F7A3F; box-shadow: 0 4px 20px rgba(15,122,63,.45); }
.whatsapp-fab:hover { box-shadow: 0 6px 28px rgba(15,122,63,.6); }

/* Respect the system "reduce motion" setting */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .pcard-inner { transition: none !important; }
}
