/* ===========================================================
   Karin Ben Avi Zafrani — Shared Stylesheet
   Design system: warm cream + terracotta + ink, Hebrew RTL
   =========================================================== */

/* -------- Tokens -------- */
:root{
  --bg:           #FBF8F4;
  --bg-alt:       #F2EDE5;
  --bg-deep:      #EBE3D5;
  --ink:          #1A1714;
  --ink-soft:     #5A4F47;
  --ink-mute:     #8A7F75;
  --accent:       #C97B5F;
  --accent-deep: #A65A40;
  --accent-soft:  #F4DCD0;
  --gold:         #C9A86B;
  --gold-soft:    #EDE0C2;
  --white:        #FFFFFF;
  --line:         #E5DED2;
  --line-soft:    #EFE9DE;

  --radius-sm:    10px;
  --radius:       20px;
  --radius-lg:    32px;
  --radius-pill:  999px;

  --shadow-xs:    0 2px 8px -2px rgba(26,23,20,.06);
  --shadow-sm:    0 8px 24px -12px rgba(26,23,20,.10);
  --shadow:       0 18px 40px -22px rgba(26,23,20,.18);
  --shadow-lg:    0 30px 80px -28px rgba(26,23,20,.28);

  --ease:         cubic-bezier(.2,.7,.2,1);
  --ease-out:     cubic-bezier(.16,1,.3,1);
  --t-fast:       180ms;
  --t-med:        320ms;
  --t-slow:       620ms;

  --container:    1240px;
  --gutter:       24px;
  --section-y:    96px;

  --font-sans:    "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-serif:   "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* -------- Reset -------- */
*,
*::before,
*::after{ box-sizing: border-box; }

html, body{ margin:0; padding:0; }

html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body{
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  min-height: 100vh;
  opacity: 0;
  animation: page-in 540ms var(--ease-out) forwards;
}

body.is-leaving{
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

/* Opacity-only — never animate `transform` on body, it would make body the
   containing block for `position: fixed` descendants and break .wa-float. */
@keyframes page-in{
  from{ opacity:0; }
  to  { opacity:1; }
}

img, svg, video{
  max-width: 100%;
  display: block;
}

a{
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
a:hover{ color: var(--accent-deep); }

button, input, textarea, select{
  font: inherit;
  color: inherit;
}

button{
  border: none;
  background: none;
  cursor: pointer;
}

::selection{ background: var(--accent-soft); color: var(--ink); }

/* -------- Typography -------- */
h1,h2,h3,h4,h5{
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .4em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1{ font-size: clamp(36px, 6vw, 68px); }
h2{ font-size: clamp(30px, 4.4vw, 48px); }
h3{ font-size: clamp(22px, 2.6vw, 28px); font-family: var(--font-sans); font-weight: 700; letter-spacing: -.005em; }
h4{ font-size: 20px; font-family: var(--font-sans); font-weight: 600; }

p{ margin: 0 0 1em; color: var(--ink-soft); }
p.lede{
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--ink);
  line-height: 1.55;
}

.eyebrow{
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow::before{
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-inline-end: 10px;
  transform: translateY(-2px);
}

.muted{ color: var(--ink-mute); }

/* -------- Layout -------- */
.container{
  width: 100%;
  max-width: var(--container);
  padding: 0 var(--gutter);
  margin: 0 auto;
}

.section{
  padding-block: var(--section-y);
  position: relative;
}

.section--alt{ background: var(--bg-alt); }
.section--deep{ background: var(--bg-deep); }
.section--ink{ background: var(--ink); color: #F0E9DD; }
.section--ink h1, .section--ink h2, .section--ink h3{ color: #FFF7EB; }
.section--ink p{ color: rgba(240,233,221,.78); }

.section-head{
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.center{
  margin-inline: auto;
  text-align: center;
}

/* -------- Buttons -------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  position: relative;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  isolation: isolate;
}

.btn .arr{
  display: inline-block;
  transition: transform var(--t-fast) var(--ease);
}
.btn:hover .arr{ transform: translateX(-4px); } /* RTL: arrow points right of text but moves toward text */

.btn--primary{
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover{
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--accent{
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--accent:hover{
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--ghost{
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--ghost:hover{
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn--soft{
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--soft:hover{
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--ink);
}

.btn-row{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* -------- Header / Nav -------- */
.site-header{
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 60;
  padding: 18px 0;
  transition: background var(--t-med) var(--ease),
              padding var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              backdrop-filter var(--t-med) var(--ease);
}

.site-header.is-scrolled{
  background: rgba(251,248,244,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  padding: 10px 0;
  box-shadow: 0 1px 0 var(--line-soft);
}

.nav-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand{
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}
.brand .dot{
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a{
  display: inline-block;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  border-radius: 999px;
  position: relative;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-links a::after{
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform var(--t-med) var(--ease);
}
.nav-links a:hover{ color: var(--accent); }
.nav-links a:hover::after{ transform: scaleX(.5); }
.nav-links a.is-current{ color: var(--accent); font-weight: 600; }
.nav-links a.is-current::after{ transform: scaleX(1); }

.nav-cta{ margin-inline-start: 8px; }
.nav-cta .btn{ padding: 10px 20px; font-size: 14px; }

.nav-toggle{
  display: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
}
.nav-toggle span{
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after{
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease);
}
.nav-toggle span::before{ top: -6px; }
.nav-toggle span::after{ top: 6px; }
.nav-toggle.is-open span{ transform: rotate(45deg); }
.nav-toggle.is-open span::before{ transform: rotate(-90deg) translateX(-6px); opacity: 0; }
.nav-toggle.is-open span::after{ transform: rotate(-90deg) translateX(6px); }

/* Mobile drawer */
.nav-drawer{
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 55;
  padding: 100px 32px 48px;
  transform: translateY(-100%);
  transition: transform var(--t-med) var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.nav-drawer.is-open{ transform: none; }
.nav-drawer ul{
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 4px;
}
.nav-drawer a{
  display: block;
  padding: 18px 20px;
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  opacity: 0;
  transform: translateY(12px);
}
.nav-drawer.is-open a{
  animation: drawer-in 460ms var(--ease-out) forwards;
}
.nav-drawer.is-open li:nth-child(1) a{ animation-delay: 80ms; }
.nav-drawer.is-open li:nth-child(2) a{ animation-delay: 130ms; }
.nav-drawer.is-open li:nth-child(3) a{ animation-delay: 180ms; }
.nav-drawer.is-open li:nth-child(4) a{ animation-delay: 230ms; }
.nav-drawer.is-open li:nth-child(5) a{ animation-delay: 280ms; }
.nav-drawer.is-open li:nth-child(6) a{ animation-delay: 330ms; }

@keyframes drawer-in{
  to{ opacity: 1; transform: none; }
}

.nav-drawer .nav-foot{
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 14px;
}

/* -------- Hero -------- */
.hero{
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}
.hero::before{
  /* Gradient blob */
  content: "";
  position: absolute;
  width: 720px; height: 720px;
  inset-inline-start: -200px;
  top: -120px;
  background: radial-gradient(closest-side, var(--accent-soft) 0%, transparent 75%);
  filter: blur(20px);
  z-index: 0;
  animation: blob 22s var(--ease) infinite alternate;
  opacity: .9;
}
.hero::after{
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  inset-inline-end: -160px;
  bottom: -200px;
  background: radial-gradient(closest-side, var(--gold-soft) 0%, transparent 70%);
  filter: blur(24px);
  z-index: 0;
  animation: blob 26s var(--ease) -6s infinite alternate-reverse;
  opacity: .8;
}

@keyframes blob{
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(40px,-30px,0) scale(1.08); }
  100% { transform: translate3d(-30px,20px,0) scale(0.95); }
}

.hero .container{ position: relative; z-index: 1; }

.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}

.hero h1{
  font-size: clamp(40px, 6vw, 76px);
  margin-bottom: .35em;
}
.hero h1 .accent{ color: var(--accent); }
.hero h1 .accent-mark{
  position: relative;
  display: inline-block;
}
.hero h1 .accent-mark::after{
  content: "";
  position: absolute;
  inset-inline: -4px;
  bottom: 6px;
  height: 14px;
  background: var(--gold-soft);
  border-radius: 4px;
  z-index: -1;
}

.hero-portrait{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}
.hero-portrait img{
  width: 100%; height: 100%;
  object-fit: cover;
  animation: ken-burns 14s var(--ease) infinite alternate;
}
.hero-portrait::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(220deg, transparent 50%, rgba(26,23,20,.20));
  pointer-events: none;
}

@keyframes ken-burns{
  0%   { transform: scale(1.02) translate(0,0); }
  100% { transform: scale(1.10) translate(-1.5%,-1%); }
}

/* Home hero portrait — match karin-159.jpg (1024×1536, 2:3) so no part is
   cropped, and disable Ken Burns since scaling > 1.0 would crop too. */
.page-home .hero-portrait{
  aspect-ratio: 1024 / 1536;
}
.page-home .hero-portrait img{
  animation: none;
  object-fit: cover;
}

.hero-portrait-frame{
  position: relative;
}
.hero-portrait-frame::before{
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: calc(var(--radius-lg) + 8px);
  border: 1.5px solid var(--gold);
  transform: rotate(2deg);
  z-index: 0;
  pointer-events: none;
}
.hero-portrait-frame .floating-dot{
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 2;
  box-shadow: 0 0 0 6px rgba(201,123,95,.18);
}
.hero-portrait-frame .floating-dot:nth-child(2){ top: -10px; inset-inline-start: 20%; animation: float 4s var(--ease) infinite alternate; }
.hero-portrait-frame .floating-dot:nth-child(3){ bottom: 14%; inset-inline-end: -10px; background: var(--gold); animation: float 5.5s var(--ease) -1.2s infinite alternate; }
.hero-portrait-frame .floating-dot:nth-child(4){ bottom: -10px; inset-inline-start: 32%; background: var(--ink); animation: float 6.2s var(--ease) -2.4s infinite alternate; }

@keyframes float{
  to{ transform: translateY(-10px); }
}

.hero-meta{
  margin-top: 36px;
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-soft);
}
.hero-meta .star-row{
  display: inline-flex; gap: 1px; color: var(--gold);
}
.hero-meta strong{ color: var(--ink); font-weight: 700; }

/* Smaller hero on inner pages */
.hero--small{
  padding: 150px 0 60px;
}
.hero--small h1{
  font-size: clamp(36px, 5vw, 56px);
}
.hero--small .hero-grid{
  grid-template-columns: 1.4fr .8fr;
  gap: 48px;
}
.hero--small .hero-portrait{
  aspect-ratio: 1/1;
  transform: none;
  border-radius: var(--radius);
}
.hero--small .hero-portrait-frame::before{
  inset: -14px;
  border-radius: calc(var(--radius) + 6px);
}

/* -------- Reveal Animations -------- */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible{
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"].is-visible{ transition-delay: 80ms; }
.reveal[data-delay="2"].is-visible{ transition-delay: 160ms; }
.reveal[data-delay="3"].is-visible{ transition-delay: 240ms; }
.reveal[data-delay="4"].is-visible{ transition-delay: 320ms; }
.reveal[data-delay="5"].is-visible{ transition-delay: 400ms; }
.reveal[data-delay="6"].is-visible{ transition-delay: 480ms; }

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

.card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--line);
  transition: transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent-soft);
}

.card .ico{
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .ico svg{ width: 24px; height: 24px; }

.card h3{ margin-bottom: 8px; }
.card p{ margin: 0 0 16px; }
.card .read-more{
  margin-top: auto;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
}
.card .read-more::after{
  content: "←";
  transition: transform var(--t-fast) var(--ease);
}
.card:hover .read-more::after{ transform: translateX(-4px); }

/* Service teaser card variant */
.card--teaser{
  padding: 28px;
}
.card--teaser .ico{
  margin-bottom: 14px;
  background: var(--gold-soft);
  color: var(--accent-deep);
}

/* Advantage card */
.adv-card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.adv-card::before{
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform var(--t-med) var(--ease);
}
.adv-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.adv-card:hover::before{ transform: scaleX(1); }
.adv-card .num{
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
.adv-card h3{ font-size: 21px; margin-bottom: 10px; }
.adv-card p{ margin: 0; font-size: 15px; }

/* -------- Stats / Numbers band -------- */
.stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  padding: 56px 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  margin-top: 24px;
}
.stat .num{
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--ink);
  font-weight: 700;
}
.stat .num .plus{ color: var(--accent); }
.stat .label{
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: .04em;
}

/* -------- Pull quote -------- */
.pullquote{
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.pullquote p{
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.35;
  color: var(--ink);
  position: relative;
  font-weight: 700;
}
.pullquote p::before,
.pullquote p::after{
  content: "“";
  display: block;
  font-size: 80px;
  line-height: .6;
  color: var(--accent);
  opacity: .35;
}
.pullquote p::before{ margin-bottom: 12px; }
.pullquote p::after{ content: "”"; margin-top: 8px; }
.pullquote .attrib{
  margin-top: 20px;
  font-family: var(--font-sans);
  color: var(--ink-mute);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* -------- Service block (alternating row) -------- */
.svc{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}
.svc:last-child{ margin-bottom: 0; }
.svc--reverse > .svc-text{ order: 2; }
.svc--reverse > .svc-media{ order: 1; }

.svc-text .num-badge{
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .02em;
  display: inline-block;
  margin-bottom: 16px;
  position: relative;
  padding-inline-start: 56px;
}
.svc-text .num-badge::before{
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 44px;
  height: 1px;
  background: var(--accent);
}

.svc-text h2{
  margin-bottom: 18px;
  font-size: clamp(28px, 3vw, 38px);
}

.svc-list{
  list-style: none;
  margin: 24px 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.svc-list li{
  position: relative;
  padding-inline-start: 28px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
.svc-list li::before{
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 11px;
  width: 14px;
  height: 2px;
  background: var(--accent);
}

.svc-media{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
}
.svc-media img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease);
}
.svc-media:hover img{ transform: scale(1.04); }

.svc-media-tag{
  position: absolute;
  bottom: 18px;
  inset-inline-start: 18px;
  background: rgba(251,248,244,.92);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line-soft);
}

/* -------- Process timeline -------- */
.process{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 32px;
}
.process::before{
  content: "";
  position: absolute;
  top: 24px;
  inset-inline: 24px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
}
.step{
  text-align: center;
  position: relative;
  padding-top: 64px;
}
.step .step-num{
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  color: var(--accent-deep);
  font-family: var(--font-serif);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.step h4{ margin-bottom: 6px; font-size: 18px; }
.step p{ font-size: 14px; margin: 0; }

/* -------- Portfolio grid -------- */
.filter-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.chip{
  padding: 9px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.chip:hover{ border-color: var(--accent); color: var(--ink); }
.chip.is-active{
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.portfolio{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  grid-auto-rows: 180px;
  grid-auto-flow: dense; /* pack tiles, avoid empty cells from row-span tiles */
}
.tile{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  cursor: pointer;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
  isolation: isolate;
}
.tile.is-hidden{ display: none; }
.tile img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease);
}
.tile:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.tile:hover img{ transform: scale(1.06); }
.tile-cap{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 24px;
  background: linear-gradient(to top, rgba(26,23,20,.78), transparent 55%);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.tile:hover .tile-cap{ opacity: 1; transform: none; }
.tile-cap .tag{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 600;
  margin-bottom: 4px;
}
.tile-cap h4{
  color: #fff;
  margin: 0;
  font-size: 18px;
}

/* Tile spans for masonry feel */
.tile.s-1{ grid-column: span 4; grid-row: span 2; }
.tile.s-2{ grid-column: span 4; grid-row: span 1; }
.tile.s-3{ grid-column: span 4; grid-row: span 1; }
.tile.s-4{ grid-column: span 6; grid-row: span 2; }
.tile.s-5{ grid-column: span 6; grid-row: span 2; }
.tile.s-6{ grid-column: span 4; grid-row: span 1; }
.tile.s-7{ grid-column: span 4; grid-row: span 2; }
.tile.s-8{ grid-column: span 4; grid-row: span 1; }
.tile.s-9{ grid-column: span 4; grid-row: span 1; }
.tile.s-10{ grid-column: span 4; grid-row: span 1; }
.tile.s-11{ grid-column: span 4; grid-row: span 2; }
.tile.s-12{ grid-column: span 4; grid-row: span 1; }

/* -------- Lightbox -------- */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15,13,11,.92);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.lightbox.is-open{ display: flex; opacity: 1; }
.lightbox-img{
  max-width: 90%;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: lb-zoom 320ms var(--ease-out);
}
@keyframes lb-zoom{
  from{ opacity:0; transform: scale(.96); }
  to  { opacity:1; transform: none; }
}
.lightbox-cap{
  position: absolute;
  bottom: 32px;
  inset-inline: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
  letter-spacing: .04em;
}
.lightbox button{
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.18);
  transition: all var(--t-fast) var(--ease);
}
.lightbox button:hover{ background: rgba(255,255,255,.20); transform: scale(1.06); }
.lb-close{ top: 28px; inset-inline-end: 28px; }
.lb-prev{ inset-inline-end: 28px; top: 50%; transform: translateY(-50%); }
.lb-next{ inset-inline-start: 28px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover{ transform: translateY(-50%) scale(1.06); }

body.no-scroll{ overflow: hidden; }

/* -------- Testimonial cards -------- */
.testimonials{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial{
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.testimonial:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-soft);
}
.testimonial .stars{
  display: inline-flex;
  gap: 3px;
  color: var(--gold);
  margin-bottom: 14px;
}
.testimonial .stars svg{ width: 16px; height: 16px; }
.testimonial blockquote{
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  flex: 1;
}
.testimonial .who{
  display: flex; flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}
.testimonial .who .name{
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.testimonial .who .biz{
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: .02em;
}

/* -------- Form -------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
}

.form{
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.form h2{
  font-family: var(--font-sans);
  font-size: 22px;
  margin-bottom: 24px;
}

.field{
  position: relative;
  margin-bottom: 20px;
}
.field input,
.field textarea{
  width: 100%;
  padding: 22px 18px 12px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.field textarea{
  min-height: 130px;
  resize: vertical;
  padding-top: 24px;
}
.field input:focus,
.field textarea:focus{
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(201,123,95,.12);
}
.field label{
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
  font-size: 14px;
  color: var(--ink-mute);
  pointer-events: none;
  transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  background: transparent;
  padding: 0 4px;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label{
  transform: translateY(-12px) scale(.82);
  color: var(--accent-deep);
  background: var(--bg);
}

.field--err input,
.field--err textarea{ border-color: #C0463F; }
.field-msg{
  margin-top: 8px;
  font-size: 13px;
  color: #C0463F;
  display: none;
}
.field--err .field-msg{ display: block; }

.form-status{
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  display: none;
}
.form-status.is-success{
  display: block;
  background: #E7EFE3;
  color: #355c2e;
  border: 1px solid #BAD2AE;
}
.form-status.is-error{
  display: block;
  background: #F8E0DD;
  color: #8E2A1F;
  border: 1px solid #E5B3AD;
}

.form .btn{ width: 100%; justify-content: center; padding: 18px; font-size: 16px; }

/* Contact card */
.contact-card{
  background: var(--ink);
  color: #F0E9DD;
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.contact-card::after{
  content: "";
  position: absolute;
  top: -40px;
  inset-inline-end: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201,123,95,.30), transparent 70%);
}
.contact-card h2{ color: #FFF7EB; font-size: 26px; }
.contact-card p{ color: rgba(240,233,221,.78); }

.contact-rows{
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.contact-row{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #F0E9DD;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.contact-row:hover{
  background: rgba(255,255,255,.08);
  color: #fff;
  transform: translateY(-2px);
}
.contact-row .ico-c{
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(201,123,95,.20);
  color: var(--accent-soft);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row .ico-c svg{ width: 20px; height: 20px; }
.contact-row .meta{ display: flex; flex-direction: column; flex: 1; min-width: 0; }
.contact-row .meta .lab{ font-size: 12px; color: rgba(240,233,221,.6); letter-spacing: .08em; text-transform: uppercase; }
.contact-row .meta .val{ font-size: 15px; font-weight: 500; }
.contact-row .arr-c{ color: rgba(240,233,221,.5); transition: transform var(--t-fast) var(--ease); }
.contact-row:hover .arr-c{ transform: translateX(-4px); color: var(--accent-soft); }

/* -------- FAQ accordion -------- */
.faq{ display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.faq details[open]{
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-xs);
}
.faq summary{
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary .plus{
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 18px;
  transition: transform var(--t-med) var(--ease), background var(--t-fast) var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary .plus{
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}
.faq .ans{
  padding: 0 26px 24px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* -------- Values strip -------- */
.values{
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  text-align: center;
  padding: 48px 0;
  border-block: 1px solid var(--line);
}
.value{
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--ink);
  font-weight: 700;
  position: relative;
}
.value::after{
  content: "·";
  position: absolute;
  inset-inline-end: -32px;
  color: var(--accent);
  font-size: 30px;
  opacity: .6;
}
.value:last-child::after{ display: none; }

/* -------- CTA Band -------- */
.cta-band{
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before{
  content: "";
  position: absolute;
  top: -120px; inset-inline-start: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(closest-side, rgba(201,123,95,.35), transparent 70%);
  border-radius: 50%;
}
.cta-band::after{
  content: "";
  position: absolute;
  bottom: -160px; inset-inline-end: -160px;
  width: 460px; height: 460px;
  background: radial-gradient(closest-side, rgba(201,168,107,.20), transparent 70%);
  border-radius: 50%;
}
.cta-band > *{ position: relative; z-index: 1; }
.cta-band h2{
  color: #FFF7EB;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 14px;
}
.cta-band p{
  color: rgba(240,233,221,.78);
  margin: 0 auto 28px;
  max-width: 580px;
}

/* -------- Footer -------- */
.site-footer{
  background: var(--bg-deep);
  padding: 80px 0 28px;
  margin-top: 0;
  color: var(--ink-soft);
}
.foot-grid{
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.foot-col h4{
  font-family: var(--font-serif);
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 18px;
  font-weight: 700;
}
.foot-col p{ font-size: 14px; line-height: 1.7; max-width: 360px; }
.foot-col ul{
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 10px;
}
.foot-col a{
  color: var(--ink-soft);
  font-size: 14px;
}
.foot-col a:hover{ color: var(--accent); }

.foot-socials{
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.foot-socials a{
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--t-fast) var(--ease);
}
.foot-socials a:hover{
  background: var(--ink);
  color: var(--accent-soft);
  transform: translateY(-2px);
  border-color: var(--ink);
}
.foot-socials svg{ width: 18px; height: 18px; }

.foot-bottom{
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-mute);
}
.foot-bottom a{ color: var(--ink-mute); }
.foot-bottom a:hover{ color: var(--accent); }

/* -------- Floating WhatsApp button -------- */
.wa-float{
  position: fixed;
  bottom: 22px;
  right: 22px;
  left: auto;
  z-index: 50;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.55);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.wa-float:hover{
  transform: scale(1.08) translateY(-2px);
  color:#fff;
  box-shadow: 0 18px 36px -10px rgba(37,211,102,.65);
}
.wa-float svg{ width: 32px; height: 32px; display: block; }
.wa-float::after{
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.35);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping{
  0%{ transform: scale(1); opacity:.7; }
  100%{ transform: scale(1.5); opacity: 0; }
}

/* -------- Responsive -------- */
@media (max-width: 1024px){
  :root{ --section-y: 80px; }
  .hero-grid{ grid-template-columns: 1fr; gap: 48px; }
  .hero-portrait{ max-width: 460px; margin-inline: auto; }
  .cards--4{ grid-template-columns: repeat(2, 1fr); }
  .cards--3{ grid-template-columns: repeat(2, 1fr); }
  .stats{ grid-template-columns: repeat(2, 1fr); padding: 48px 24px; }
  .svc{ grid-template-columns: 1fr; gap: 36px; }
  .svc--reverse > .svc-text,
  .svc--reverse > .svc-media{ order: unset; }
  .testimonials{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; gap: 36px; }
  .process{ grid-template-columns: repeat(2, 1fr); }
  .process::before{ display: none; }
  .portfolio{ grid-template-columns: repeat(6, 1fr); grid-auto-rows: 160px; }
  .tile.s-1, .tile.s-7, .tile.s-11{ grid-column: span 6; grid-row: span 2; }
  .tile.s-4, .tile.s-5{ grid-column: span 6; grid-row: span 2; }
  .tile{ grid-column: span 3; grid-row: span 1; }
}

@media (max-width: 720px){
  :root{ --gutter: 20px; --section-y: 64px; }
  body{ font-size: 16px; }
  .nav-links, .nav-cta{ display: none; }
  .nav-toggle{ display: inline-flex; }
  .hero{ padding: 130px 0 70px; }
  .hero h1{ font-size: clamp(34px, 8vw, 46px); }
  .hero-meta{ flex-direction: column; align-items: flex-start; gap: 14px; }
  .cards--4, .cards--3, .cards--2{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 36px 18px; }
  .testimonials{ grid-template-columns: 1fr; }
  .form{ padding: 28px 22px; }
  .contact-card{ padding: 28px 22px; }
  .cta-band{ padding: 48px 28px; }
  .foot-grid{ grid-template-columns: 1fr; gap: 36px; }
  .foot-bottom{ flex-direction: column; align-items: flex-start; }
  /* Portfolio: clean uniform 2-col grid on mobile (no irregular masonry).
     Use aspect-ratio per tile so images frame consistently regardless of
     row-height, and let "feature" tiles take full width with a wider crop. */
  .portfolio{
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    grid-auto-flow: row;
    gap: 12px;
  }
  .tile{
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 4 / 5;
  }
  .tile.s-1, .tile.s-4, .tile.s-7, .tile.s-11{
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 10;
  }
  /* Tile captions: always visible on mobile (no hover state on touch).
     Lighter gradient so the image still reads. */
  .tile-cap{
    opacity: 1;
    transform: none;
    padding: 14px 16px;
    background: linear-gradient(to top, rgba(26,23,20,.82), rgba(26,23,20,.10) 55%, transparent 80%);
  }
  .tile-cap .tag{ font-size: 11px; margin-bottom: 2px; }
  .tile-cap h4{ font-size: 14px; line-height: 1.3; }

  /* Filter chips: horizontal scroll instead of wrapping into a messy block */
  .filter-chips{
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .filter-chips::-webkit-scrollbar{ display: none; }
  .chip{
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 9px 16px;
    font-size: 13px;
  }

  /* Lightbox: bigger touch targets, clearer close placement */
  .lightbox{ padding: 12px; }
  .lightbox-img{ max-width: 100%; max-height: 70vh; }
  .lb-prev, .lb-next{ width: 44px; height: 44px; font-size: 24px; }
  .lb-close{ top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; font-size: 22px; }
  .lb-prev{ inset-inline-end: 14px; }
  .lb-next{ inset-inline-start: 14px; }
  .lightbox-cap{ bottom: 16px; font-size: 13px; padding-inline: 16px; }
  .values{ gap: 14px; padding: 32px 0; }
  .value::after{ inset-inline-end: -16px; }
}

/* -------- Touch devices (no hover) -------- */
@media (hover: none){
  /* Always show portfolio captions — touch users can't trigger hover */
  .tile-cap{
    opacity: 1;
    transform: none;
    background: linear-gradient(to top, rgba(26,23,20,.82), rgba(26,23,20,.10) 55%, transparent 80%);
  }
  .tile:hover img{ transform: none; }
}

/* -------- Reduced motion -------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-portrait img{ animation: none; }
  .hero::before, .hero::after{ animation: none; }
  .reveal{ opacity: 1; transform: none; }
  .wa-float::after{ display: none; }
}
