/* ===== Avukat Or — shared styles ===== */
:root{
  --purple:#7168ae;          /* TRUE brand lavender-violet (sampled from logo) */
  --purple-deep:#292246;     /* deep ink (Talmud band, page heroes, deep bands) */
  --purple-soft:#cdc4e0;     /* soft lavender panels */
  --purple-pale:#e6e1f0;     /* very light lavender */
  --gold:#fcc030;            /* TRUE brand gold/marigold (sampled from logo) */
  --gold-deep:#eaa81f;
  --gold-pale:#fdf3e0;
  --ink:#292246;
  --text:#3d3551;
  --text-soft:#6b6480;
  --white:#ffffff;
  --cream:#fbf9f5;
  --line:#ece7f2;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{font-family:'Rubik',sans-serif;color:var(--text);background:var(--white);direction:rtl;overflow-x:hidden;line-height:1.6;}
html[dir="ltr"] body{direction:ltr;}
a{text-decoration:none;color:inherit;}
img{display:block;max-width:100%;}

/* ---- top utility + nav ---- */
.nav{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,0.97);backdrop-filter:blur(12px);
  display:flex;align-items:center;justify-content:space-between;padding:0 40px;height:74px;
  box-shadow:0 2px 18px rgba(58,42,93,0.07);}
.nav-right{display:flex;align-items:center;gap:26px;}
.nav-links{display:flex;gap:22px;list-style:none;align-items:center;}
.nav-links a{font-size:0.95rem;color:var(--text);font-weight:500;transition:color .2s;white-space:nowrap;}
.nav-links a:hover,.nav-links a.active{color:var(--gold-deep);}
.logo{display:flex;align-items:center;gap:10px;}
.logo .mark{width:42px!important;height:42px!important;min-width:42px;max-width:42px;flex-shrink:0;}
.logo .txt{font-family:'Rubik',serif;font-weight:900;color:var(--purple);font-size:1.3rem;line-height:1;}
.logo .txt small{display:block;font-family:'Rubik',sans-serif;font-weight:400;font-size:0.6rem;color:var(--text-soft);letter-spacing:.02em;margin-top:3px;}
.nav-left{display:flex;align-items:center;gap:14px;}
.btn-donate{background:var(--gold);color:var(--purple-deep);font-weight:700;padding:9px 22px;border-radius:30px;font-size:0.9rem;transition:all .2s;box-shadow:0 4px 12px rgba(240,168,48,.35);}
.btn-donate:hover{background:var(--gold-deep);transform:translateY(-1px);}
.icon-btn{width:34px;height:34px;border-radius:50%;border:1.5px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--text-soft);font-size:.95rem;}
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;}
.hamburger span{width:26px;height:2px;background:var(--purple);display:block;border-radius:2px;}

/* ---- buttons ---- */
.btn-primary{display:inline-block;background:var(--gold);color:var(--purple-deep);font-weight:700;padding:14px 36px;border-radius:40px;font-size:1rem;box-shadow:0 6px 18px rgba(240,168,48,.4);transition:all .3s;border:none;cursor:pointer;font-family:'Rubik',sans-serif;}
.btn-primary:hover{background:var(--gold-deep);transform:translateY(-2px);}
.btn-ghost{display:inline-block;background:transparent;border:2px solid var(--purple);color:var(--purple);font-weight:600;padding:12px 32px;border-radius:40px;transition:all .3s;}
.btn-ghost:hover{background:var(--purple);color:#fff;}

/* ---- inner page hero band ---- */
.page-hero{position:relative;background:var(--purple-deep);overflow:hidden;min-height:300px;display:flex;align-items:center;}
.page-hero .ph-img{position:absolute;inset:0;opacity:.5;background-size:cover;background-position:center;}
.page-hero .ph-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(44,32,71,.95) 0%,rgba(44,32,71,.55) 60%,rgba(44,32,71,.2) 100%);}
.page-hero .ph-title{position:relative;z-index:2;padding:60px 48px;width:100%;}
.page-hero h1{font-family:'Suez One','Rubik',serif;font-size:clamp(2.4rem,5vw,4rem);font-weight:900;color:var(--gold);line-height:1.05;}
.swirl{position:absolute;z-index:1;opacity:.9;}

/* ---- generic section ---- */
section{padding:72px 48px;}
.wrap{max-width:1120px;margin:0 auto;}
.tag{display:inline-block;color:var(--gold-deep);font-size:.75rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;margin-bottom:8px;}
.h2{font-family:'Rubik',serif;font-size:clamp(1.7rem,3.2vw,2.5rem);font-weight:900;color:var(--purple);line-height:1.2;margin-bottom:14px;}
.lead{font-size:1.02rem;color:var(--text);line-height:1.95;font-weight:300;}

/* ---- wave divider ---- */
.wave{display:block;width:100%;height:60px;}
.wave path{fill:var(--gold);}

/* ---- footer ---- */
footer{background:var(--purple);color:rgba(255,255,255,.75);padding:54px 48px 26px;}
.foot-grid{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:40px;align-items:start;}
.foot-logo .txt{color:#fff;font-family:'Rubik',serif;font-weight:900;font-size:1.4rem;}
.foot-logo .txt small{display:block;font-family:'Rubik';font-weight:300;font-size:.65rem;color:var(--purple-soft);margin-top:3px;}
.foot-col h4{color:#fff;font-size:.92rem;margin-bottom:12px;font-weight:700;}
.foot-col ul{list-style:none;}
.foot-col li{margin-bottom:8px;}
.foot-col a{color:rgba(255,255,255,.7);font-size:.88rem;transition:color .2s;}
.foot-col a:hover{color:var(--gold);}
.foot-contact{font-size:.86rem;line-height:1.9;color:rgba(255,255,255,.72);}
.foot-foot{max-width:1120px;margin:26px auto 0;border-top:1px solid rgba(255,255,255,.12);padding-top:18px;text-align:center;font-size:.78rem;color:rgba(255,255,255,.5);}
.socials{display:flex;gap:10px;margin-top:14px;}
.socials a{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;color:#fff;font-size:.85rem;transition:background .2s;}
.socials a:hover{background:var(--gold);color:var(--purple-deep);}
.foot-donate{display:inline-block;background:var(--purple-deep);color:#fff;font-weight:700;padding:11px 30px;border-radius:30px;margin-top:14px;}

/* ---- forms ---- */
.form-field{width:100%;padding:13px 18px;border-radius:30px;border:none;font-family:'Rubik',sans-serif;font-size:.95rem;margin-bottom:12px;background:#fff;color:var(--text);text-align:start;}
html[dir="rtl"] .form-field{direction:rtl;}
html[dir="ltr"] .form-field{direction:ltr;}
.form-field:focus{outline:2px solid var(--gold);}
textarea.form-field{border-radius:20px;resize:vertical;min-height:90px;}

/* ---- responsive ---- */
@media(max-width:880px){
  .nav{padding:0 18px;}
  .nav-links{display:none;}
  .hamburger{display:flex;}
  .nav-links.open{display:flex;position:absolute;top:74px;right:0;left:0;background:#fff;flex-direction:column;padding:18px 24px;gap:16px;box-shadow:0 10px 24px rgba(0,0,0,.12);}
  section{padding:48px 22px;}
  .page-hero .ph-title{padding:40px 22px;}
  .foot-grid{grid-template-columns:1fr 1fr;gap:28px;}
}


.nav svg.mark{width:42px!important;height:42px!important;}

/* language toggle button */
.nav-lang{border:1.5px solid var(--gold);color:var(--gold-deep)!important;padding:5px 14px!important;border-radius:20px;font-size:.82rem!important;font-weight:700;transition:all .2s;}
.nav-lang:hover{background:var(--gold);color:#fff!important;}
/* LTR (English) tweaks: footer + hero text alignment stay natural */
html[dir="ltr"] .foot-contact{direction:ltr;}
html[dir="ltr"] .page-hero .ph-overlay{background:linear-gradient(90deg,rgba(44,32,71,.95) 0%,rgba(44,32,71,.55) 60%,rgba(44,32,71,.2) 100%);}

/* ===== Brand graphics (closer match to design PDF) ===== */
/* logo mark sizing */
.logo .mark{width:52px!important;height:48px!important;min-width:52px;flex-shrink:0;}

/* big white heart-ear swoosh bleeding off hero corners */
.big-swoosh{position:absolute;width:420px;height:420px;z-index:1;pointer-events:none;}
.big-swoosh.tl{top:-90px;left:-120px;}
.big-swoosh.tr{top:-90px;right:-120px;transform:scaleX(-1);}
.big-swoosh.br{bottom:-120px;right:-100px;}

/* gold wavy ribbon divider */
.gold-wave{display:block;width:100%;height:64px;margin:0;line-height:0;}
.gold-wave-flip{transform:rotate(180deg);}

/* handwritten-style hero script */
.hero-script{font-family:'Rubik',serif;font-style:italic;font-weight:900;}

/* page-hero: make the big title pop like the PDF */
.page-hero h1{position:relative;z-index:3;}
.page-hero .big-swoosh{opacity:1;}

/* real logo image */
.logo-img{height:46px;width:auto;display:block;}
.logo-img-foot{height:54px;width:auto;display:block;margin-bottom:4px;}
@media(max-width:880px){.logo-img{height:38px;}}

/* scroll-down chevron with gentle bounce */
.scroll-chevron{animation:chevBounce 2s ease-in-out infinite;transition:transform .2s;}
.scroll-chevron:hover{transform:scale(1.08);}
@keyframes chevBounce{0%,100%{transform:translateY(0)}50%{transform:translateY(6px)}}


/* interim hero script treatment (until designer's hand-lettered PNG arrives) */
.hero-script{font-family:'Suez One','Rubik',serif;font-weight:400;font-style:normal;letter-spacing:.01em;}
.hero-script span{transform:none;}

.page-hero.ph-banner .ph-img{opacity:1;}
.page-hero.ph-banner .ph-title h1{text-shadow:0 2px 14px rgba(0,0,0,.25);}
