/* ==========================================================================
   Win — mortgage & real-estate advisory. Framework-free reproduction.
   ========================================================================== */

:root{
  --teal:#007d7e;
  --orange:#f64d0b;
  --cream:#fff5e0;
  --wa:#24d366;
  --purple:rgb(128,0,127);
  --accent-blue:#0099ff;
  --ink:rgba(0,0,0,.8);
  --ink-solid:#111820;
  --body:#666;
  --muted:#666;
  --line:#eeedeb;
  --bg:#fafafa;
  --white:#fff;
  /* 1028 - 2*24 padding = 980px content box, centred → x 230…1210 at 1440 */
  --maxw:1028px;
  --radius:22px;
  --shadow:0 18px 50px -24px rgba(0,17,34,.22);
  --shadow-sm:0 8px 26px -18px rgba(0,17,34,.35);
  font-family:"Rubik","Rubik Placeholder",-apple-system,"Segoe UI",sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
/* scroll-padding keeps anchor targets clear of the sticky header */
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{
  margin:0;
  background:var(--bg);
  color:var(--body);
  font-family:"Rubik",-apple-system,"Segoe UI",Arial,sans-serif;
  font-size:18px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}
button{font-family:inherit}

.container{max-width:var(--maxw);margin-inline:auto;padding-inline:24px;width:100%}
.section{padding-block:0}
.section-title{
  font-weight:500;font-size:36px;line-height:43px;letter-spacing:-1.4px;
  color:var(--ink);text-align:center;margin:0;
}

/* scroll reveal */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.3,1)}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
  html{scroll-behavior:auto}
}

/* material symbols icon */
.msr{
  font-family:"Material Symbols Rounded";font-weight:normal;font-style:normal;
  line-height:1;letter-spacing:normal;text-transform:none;white-space:nowrap;
  direction:ltr;-webkit-font-feature-settings:"liga";font-feature-settings:"liga";
  -webkit-font-smoothing:antialiased;
}

/* buttons ------------------------------------------------------------------ */
.btn{display:inline-flex;align-items:center;gap:10px;border:none;cursor:pointer;
  border-radius:100px;font-weight:600;font-size:15px;line-height:1;transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease}
.btn:hover{transform:translateY(-2px)}
.btn-wa{background:var(--wa);color:#fff;padding:14px 22px;box-shadow:0 10px 22px -12px rgba(36,211,102,.9)}
.btn-wa svg{width:20px;height:20px}
.btn-orange{background:var(--orange);color:#fff;padding:11px 22px;box-shadow:0 10px 22px -12px rgba(246,77,11,.8)}
.btn-orange .msr{font-size:18px}

/* brand logo (stacked: mark on top, tagline underneath) -------------------- */
.brand{display:inline-flex;flex-direction:column;align-items:flex-start;gap:3px;line-height:1}
/* bare <svg> has no intrinsic width (defaults to 300px) — pin it to the
   logo's 72:13 viewBox aspect so it sizes from its height */
.brand-mark{width:auto;aspect-ratio:72/13;flex:0 0 auto}
.brand .brand-mark{height:26px}
.brand .tagline{font-size:11px;color:var(--muted);font-weight:500;white-space:nowrap;letter-spacing:.2px}

/* sticky site header ------------------------------------------------------- */
.site-header{position:sticky;top:0;z-index:60;display:flex;align-items:center;
  justify-content:space-between;gap:24px;direction:ltr;
  padding:14px clamp(18px,5vw,64px);background:rgba(250,250,250,.88);
  backdrop-filter:saturate(160%) blur(12px);border-bottom:1px solid transparent;
  transition:border-color .2s,box-shadow .2s}
/* divider + lift appear only once the page has scrolled under the bar */
.site-header.is-stuck{border-bottom-color:var(--line);box-shadow:0 4px 18px rgba(0,0,0,.05)}
.site-links{display:flex;align-items:center;gap:32px;direction:rtl}
.site-links a{font-size:18px;font-weight:400;color:rgb(102,102,102);position:relative;padding-block:6px}
.site-links a::after{content:"";position:absolute;inset-inline:0;bottom:0;height:2px;background:var(--teal);transform:scaleX(0);transition:transform .2s}
.site-links a:hover::after,.site-links a.is-current::after{transform:scaleX(1)}

/* hero --------------------------------------------------------------------- */
/* padding-top = the original's 210px hero offset minus our header's height, so
   every landmark below lands on the original's absolute Y despite the header */
.hero{padding-block:138px 0}
/* 10px inline-start inset puts the copy column's right edge at x1200, not 1210 */
.hero-grid{display:flex;align-items:center;gap:0;padding-inline-start:10px}
.hero-art{flex:1 1 auto;min-width:0}
/* The lottie canvas is 500×500 but its artwork only spans 487×315 of that, so a
   350×250 svg would render the art at ~243px. The box stays 350×250 for layout
   and the svg is over-sized to 360 (=350×500/487) and centred, overflowing into
   the surrounding whitespace, which makes the artwork itself 350px wide. */
.hero-art .lottie{width:350px;height:250px;margin-inline:auto;position:relative}
/* negative margins, not translate(-50%,-50%) — lottie writes an inline
   transform on the svg that would override a stylesheet transform */
.hero-art .lottie svg{position:absolute;top:50%;left:50%;
  width:360px!important;height:360px!important;margin:-180px 0 0 -180px}
.hero-copy{flex:0 0 475px;text-align:right}
/* looser than the original's 20px/12px stack — the owner wants the copy to breathe */
.hero-copy h1{font-size:48px;font-weight:800;letter-spacing:-.4px;line-height:52px;color:var(--ink);margin-bottom:32px}
.hero-lead{font-size:24px;font-weight:500;color:var(--body);line-height:34px}
/* text-align:start (not center) so the word hugs the preceding text instead of
   floating with a gap inside the reserved 2.8em box */
.hero-lead .rotator{display:inline-block;position:relative;font-weight:700;min-width:2.8em;text-align:start;color:var(--purple)}
.hero-lead .rotator span{position:absolute;inset:0;opacity:0;transition:opacity .5s,transform .5s;transform:translateY(8px)}
.hero-lead .rotator span.on{opacity:1;transform:none;position:relative}
/* 430px is the original's measured text measure — it drives the 2-line wrap.
   In RTL, margin-inline-start:auto shoved the box to the LEFT edge of the
   column; the default (0) keeps it flush right, aligned with the lead */
.hero-body{margin-top:24px;font-size:20px;color:var(--body);line-height:31px;
  max-width:430px}
/* the commit line, CTA and scroll cue are centred across the full container */
.hero-close{text-align:center}
.hero-commit{margin-top:101px;font-size:28px;font-weight:500;color:#333;line-height:34px}
.hero-commit .hi{color:var(--teal)}
.hero-commit .hi u{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.hero-commit .hi b{font-weight:700}
.hero-actions{margin-top:28px;display:flex;justify-content:center}
/* minimal hero CTA on every viewport: compact pill, no glow.
   row-reverse puts the glyph left of the label, as on the original */
.hero-actions .btn-wa{width:auto;height:38px;padding:9px 20px;border-radius:12px;
  font-size:15px;line-height:1;gap:8px;justify-content:center;text-align:center;
  flex-direction:row-reverse;white-space:nowrap;box-shadow:none}
.hero-actions .btn-wa:hover{box-shadow:0 6px 16px -8px rgba(36,211,102,.7)}
.hero-actions .btn-wa svg{width:17px;height:17px;flex:0 0 auto}
/* same trick: the cue's chevrons span only 115/500 of its canvas width */
.scroll-cue{width:30px;height:35px;position:relative}
.scroll-cue svg{position:absolute;top:50%;left:50%;
  width:130px!important;height:130px!important;margin:-65px 0 0 -65px}
.hero-cue-wrap{display:flex;justify-content:center;margin-top:53px}

/* about -------------------------------------------------------------------- */
#about{padding-block:225px 0}
.about-card{display:flex;gap:0;align-items:stretch;border:3px solid #0a0e12;border-radius:120px;
  overflow:hidden;background:var(--white);box-shadow:0 26px 60px -30px rgba(0,17,34,.4);
  height:400px;margin-top:50px}
/* photo is 480 of the capsule's 980 and sits flush against its left edge */
.about-photo{flex:0 0 480px;min-width:0}
.about-photo img{width:100%;height:100%;object-fit:cover;border-radius:120px 0 0 120px}
.about-text{flex:1 1 auto;padding:0 40px;display:flex;flex-direction:column;justify-content:center;gap:10px;text-align:right}
/* regular weight for readability — deliberate departure from the original's 500 */
.about-text p{font-size:18px;font-weight:400;color:var(--body);line-height:29px;letter-spacing:-.7px}

/* stats -------------------------------------------------------------------- */
.stats{padding-block:63px 0}
/* one flowing centred sentence — the original's space-between spread tore each
   number away from its unit ("250 …gap… לקוחות"), which read as broken */
.stats-line{display:block;text-align:center;
  font-size:22px;font-weight:500;color:var(--muted);line-height:33px}
.stats-line .seg{display:inline}
.stats .num{color:var(--teal);font-weight:700;font-size:28px;font-variant-numeric:tabular-nums;padding-inline:2px}

/* services ----------------------------------------------------------------- */
#services{padding-block:151px 0}
/* 3 × 313 + 2 × 20.5 gap = 980 */
.cards{display:flex;gap:20.5px;margin-top:90px}
.card{flex:1 1 0;height:300px;background:var(--white);border:1px solid #edecea;border-radius:12px;
  padding:32px 30px 30px;box-shadow:var(--shadow-sm);text-align:center;transition:transform .25s ease,box-shadow .25s ease}
.card:hover{transform:translateY(-6px);box-shadow:0 26px 50px -26px rgba(0,17,34,.32)}
.card .icon{width:80px;height:80px;margin:0 auto 47px}
.card h3{font-size:24px;font-weight:600;color:rgb(0,17,34);letter-spacing:-.5px;line-height:29px;margin-bottom:26px}
.card p{font-size:16px;color:var(--muted);line-height:23px}

/* partners ticker ---------------------------------------------------------- */
.partners{padding-block:153px 0;overflow:hidden}
/* direction:ltr — in RTL a max-content track overflows leftward and the
   translateX(-50%) marquee would slide fully off-screen (empty on narrow widths) */
.ticker{overflow:hidden;position:relative;height:56px;margin:97px 0 0;direction:ltr;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.ticker-track{display:flex;align-items:center;gap:70px;width:max-content;height:100%;
  flex-wrap:nowrap;animation:ticker 32s linear infinite}
.ticker:hover .ticker-track{animation-play-state:paused}
/* each partner logo keeps its own aspect and measured height (32–55px) —
   they are not uniformly sized on the original; js sets --h per logo */
.ticker-track img{flex:0 0 auto;height:var(--h,32px);width:auto;max-width:none;object-fit:contain}
@keyframes ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){
  .ticker{height:auto}
  .ticker-track{animation:none;flex-wrap:wrap;justify-content:center;width:100%;gap:40px}
}

/* membership --------------------------------------------------------------- */
.membership{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:87px}
.membership span{font-size:18px;color:var(--muted);font-weight:500}
.membership img{height:62px;width:auto}

/* testimonials ------------------------------------------------------------- */
.testimonials{padding-block:182px 0}
/* 820 = 700 card + 60px shadow room each side, carried by slide padding so the
   mask hides the neighbouring cards but not the active card's shadow */
.carousel{max-width:820px;margin:91px auto 0;position:relative}
/* the card's shadow must not be clipped — vertically the mask is padded past
   the shadow's extent (largest layer: y 20px, blur 60px → ~78px below, ~38px
   above); horizontally the 60px slide padding provides the room instead */
.carousel-viewport{overflow:hidden;padding:40px 0 80px;margin:-40px 0 -80px}
.carousel-track{display:flex;transition:transform .5s cubic-bezier(.4,.1,.2,1)}
.slide{flex:0 0 100%;padding:0 60px}
/* radius + 4-layer shadow read off the original: a soft ambient stack at 5%
   opacity each, not one hard drop shadow */
.tcard{background:#fff;border-radius:160px 40px;
  box-shadow:
    0 .796192px 2.38858px -.625px rgba(0,0,0,.05),
    0 2.41451px 7.24352px -1.25px rgba(0,0,0,.05),
    0 6.38265px 19.148px -1.875px rgba(0,0,0,.05),
    0 20px 60px -2.5px rgba(0,0,0,.05);
  padding:64px 59px;text-align:center;height:420px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:36px}
.tcard blockquote{margin:0;font-size:18px;line-height:29px;color:var(--muted);font-weight:400;max-width:580px}
.tcard .who{display:flex;flex-direction:row-reverse;align-items:center;gap:12px}
.tcard .who img{width:50px;height:50px;border-radius:50%;object-fit:cover}
.tcard .who strong{font-size:18px;font-weight:500;color:rgb(0,17,34)}
.carousel-btn{position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:38px;height:38px;border-radius:50%;border:none;cursor:pointer;background:#f0f0f0;color:#9a9a9a;
  display:flex;align-items:center;justify-content:center;box-shadow:0 6px 16px -8px rgba(0,0,0,.3);transition:background .2s,transform .2s}
.carousel-btn:hover{background:#e6e6e6;transform:translateY(-50%) scale(1.08)}
.carousel-btn svg{width:24px;height:24px}
.carousel-btn svg path{stroke:#9a9a9a}
/* the original sits the arrows inside the card, ~56px in from the card edge
   (card edge = 60px slide padding from the carousel edge) */
.carousel-btn.prev{inset-inline-start:116px}
.carousel-btn.next{inset-inline-end:116px}
/* dots sit inside the card in the original — absolute so they add no height */
.dots{display:flex;gap:8px;justify-content:center;position:absolute;inset-inline:0;bottom:72px;z-index:4}
.dots button{width:8px;height:8px;border-radius:50%;border:none;background:#d9d9d9;cursor:pointer;padding:0;transition:background .2s}
.dots button.active{background:#8a8a8a}

/* contact ------------------------------------------------------------------ */
.contact{padding-block:221px 106px}
/* left copy column 607 + 30 gap + 343 bubble = 980 */
/* single column since the bubble photo was removed — centre the contact block */
.contact-grid{display:flex;align-items:center;justify-content:center;gap:30px;direction:ltr}
.contact-left{flex:0 1 607px;text-align:center;direction:rtl;display:flex;flex-direction:column}
/* the contact heading shares the section-title style: 36/500, centred */
/* max-width holds the heading to the original's 3 lines (347px measured text width) */
.contact-left h2{font-size:36px;font-weight:500;line-height:43px;color:var(--ink);letter-spacing:-1.4px;
  margin:0 auto;max-width:360px}
.contact-doodle{width:100px;height:100px;margin:51px auto 0;display:flex;align-items:center;justify-content:center}
.doodle-inner{flex:0 0 auto;width:142px;height:80px;transform:rotate(90deg)}
.contact-actions{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:58px;flex-wrap:wrap}
.btn-cta-wa{background:var(--wa);color:#fff;padding:15px 28px;font-size:16px;border-radius:14px;
  box-shadow:0 10px 22px -12px rgba(36,211,102,.9)}
.btn-cta-wa svg{width:22px;height:22px}
.btn-cta-tel{background:#fff;color:var(--ink-solid);border:2px solid #14181c;padding:13px 28px;font-size:16px;border-radius:14px}
.btn-cta-tel:hover{background:#14181c;color:#fff}
.btn-cta-tel svg{width:20px;height:20px}
.scan{display:flex;flex-direction:column;align-items:center;gap:0;margin-top:70px}
.scan-pill{display:inline-flex;align-items:center;gap:8px;background:var(--wa);color:#fff;
  font-size:14px;font-weight:600;line-height:1;padding:6px 14px;border-radius:100px}
.scan-pill svg{width:18px;height:18px}
.qr{width:78px;height:82px;border:2px solid var(--teal);border-radius:6px;padding:3px;background:#fff}

/* footer ------------------------------------------------------------------- */
.site-footer{border-top:1px solid #e3ebe6;background:rgb(237,243,243)}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding-block:34px;flex-wrap:wrap;direction:ltr}
.footer-inner>*{direction:rtl}
.copyright{display:flex;align-items:center;gap:8px;font-size:16px;line-height:19px;color:#5a6560;direction:ltr}
.copyright .brand-mark{height:18px}
.credit{font-size:16px;line-height:19px;color:#5a6560}
/* PinkLime wordmark in the brand's Gaegu face; sized up to hold optical weight */
.credit a.pinklime{font-family:"Gaegu",cursive;font-weight:700;font-size:22px;
  line-height:1;letter-spacing:.3px;color:rgba(255,16,240,.85);vertical-align:-2px}

/* floating whatsapp — flat, quiet, no pulse -------------------------------- */
.wa-float{position:fixed;bottom:24px;right:24px;left:auto;z-index:70;width:52px;height:52px;
  border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:var(--wa);color:#fff;box-shadow:0 4px 14px rgba(0,0,0,.18);
  transition:transform .18s ease,box-shadow .18s ease}
.wa-float:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.22)}
.wa-float svg{width:26px;height:26px}

/* responsive --------------------------------------------------------------- */
/* below the 1028px container the fixed desktop tracks have to relax; the
   measured desktop rhythm above only has to hold at >=1080px */
@media (max-width:1080px){
  .contact-actions{gap:14px}
  .hero-grid{padding-inline-start:0}
  .hero-copy{flex:1 1 54%}
  .hero-art{flex:1 1 46%}
  .about-photo{flex:1 1 46%}
  .contact-left{flex:1 1 auto;min-width:0}
  .carousel{max-width:100%}
  .slide{padding:0 32px}
  .carousel-btn.prev{inset-inline-start:36px}
  .carousel-btn.next{inset-inline-end:36px}
}
@media (max-width:1000px){
  .section-title,.contact-left h2{font-size:30px;line-height:36px;letter-spacing:-1.1px}
  .hero-copy h1{font-size:40px;line-height:44px}
  .about-card{border-radius:70px}
  .site-links{gap:22px}
}
@media (max-width:810px){
  body{font-size:16px}
  .section-title,.contact-left h2{font-size:28px;line-height:34px}

  /* the desktop rhythm is a 1440-only target; these are scaled from the
     original's own 390px gaps (~70–165px between sections) */
  #about{padding-block:70px 0}
  .stats{padding-block:60px 0}
  #services{padding-block:120px 0}
  .partners{padding-block:130px 0}
  .testimonials{padding-block:100px 0}
  .contact{padding-block:130px 70px}
  .about-card{margin-top:40px}
  .cards{margin-top:60px}
  .ticker{margin-top:60px}
  .membership{margin-top:60px}
  .carousel{margin-top:60px}

  /* no room for the link list — the header keeps brand + CTA only */
  .site-header{gap:14px;padding:12px 18px;background:rgba(250,250,250,.92)}
  .site-header .btn-orange{padding:10px 16px}
  .site-links{display:none}

  .hero{padding-block:40px 0}
  /* column (not column-reverse): the H1 reads before the animation on mobile */
  .hero-grid{flex-direction:column;gap:28px}
  .hero-copy{flex:1 1 auto;text-align:center}
  .hero-copy h1{font-size:34px;line-height:42px;margin-bottom:24px}
  .hero-lead{font-size:20px;line-height:30px}
  .hero-body{font-size:18px;line-height:28px;margin-top:18px}
  .hero-commit{margin-top:38px;font-size:24px;line-height:32px}
  .hero-actions{margin-top:20px}
  .hero-cue-wrap{margin-top:22px}
  /* smaller scroll cue on mobile — the 130px svg overscan shrinks with it */
  .scroll-cue{width:20px;height:24px;opacity:.75}
  .scroll-cue svg{width:88px!important;height:88px!important;margin:-44px 0 0 -44px}
  .hero-art{flex:1 1 auto}
  .hero-art .lottie{max-width:280px;height:200px}

  .about-card{flex-direction:column-reverse;border-radius:48px;height:auto}
  .about-photo{flex:0 0 auto}
  /* stacked layout: the card's own radius + overflow clips the photo, so the
     desktop's left-corner rounding must not apply here */
  .about-photo img{height:auto;max-height:300px;border-radius:0}
  .about-text{padding:28px 26px}

  /* smaller type + balanced wrap on narrow screens */
  .stats-line{font-size:18px;line-height:30px;text-wrap:balance;padding-inline:6px}
  .stats .num{font-size:24px}

  .cards{flex-direction:column;gap:16px}
  .card{height:auto;padding:28px 24px}
  .card .icon{margin-bottom:20px}
  .card h3{margin-bottom:10px}

  .contact-grid{flex-direction:column;gap:30px}
  .contact-left{flex:1 1 auto;width:100%;max-width:100%;text-align:center;align-items:center}
  .contact-doodle{margin-top:26px}
  .contact-actions{margin-top:26px;flex-direction:column}
  .contact-actions .btn{width:min(300px,100%);justify-content:center}
  /* QR scanning makes no sense on the phone itself — desktop only */
  .scan{display:none}

  /* 46px inline padding keeps the quote clear of the overlaid arrows */
  .tcard{height:auto;min-height:320px;padding:44px 46px 70px;border-radius:80px 28px;gap:24px}
  .dots{bottom:28px}
  .slide{padding:0 14px}
  .carousel-btn.prev{inset-inline-start:20px}
  .carousel-btn.next{inset-inline-end:20px}

  .footer-inner{flex-direction:column-reverse;align-items:center;text-align:center;gap:12px;padding-block:26px}
  .copyright,.credit{font-size:13px;line-height:16px}
  .copyright .brand-mark{height:14px}
  .credit a.pinklime{font-size:17px;vertical-align:-1px}
}
