/* ==========================================================================
   Sadad Center — Projects page (loads after style.css)
   ========================================================================== */

/* Theme accents per project category */
[data-theme="medical"]    { --accent: var(--copper);  --accent-soft: #F6E8D6; }
[data-theme="rescue"]     { --accent: var(--teal-800); --accent-soft: #DCEAE8; }
[data-theme="protection"] { --accent: var(--teal-600); --accent-soft: var(--teal-100); }
[data-theme="civil"]      { --accent: var(--copper-d); --accent-soft: #F3E6D3; }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 10px; border-radius: 999px;
  background: var(--accent-soft, var(--teal-100)); color: var(--accent, var(--teal-800));
  font-family: var(--font-head); font-size: .85rem; font-weight: 500; letter-spacing: .02em;
}
.tag svg { width: 16px; height: 16px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.p-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(1200px 600px at 85% 20%, #1B5F59 0%, transparent 60%), var(--teal-950);
  color: #fff; padding-block: calc(var(--header-h) + 72px) 120px;
}
.p-hero__arcs { position: absolute; z-index: -1; width: 720px; inset-inline-start: -300px; bottom: -380px; color: var(--teal-600); opacity: .25; pointer-events: none; }
.p-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.p-hero .eyebrow { color: var(--amber); }
.p-hero h1 { color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.2rem); line-height: 1.08; letter-spacing: -.02em; }
.p-hero h1 em { font-style: normal; color: var(--amber); }
.p-hero__lead { margin-top: 24px; font-size: clamp(1.12rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, .82); max-width: 600px; }
.p-hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn--ghost { border: 1.5px solid rgba(255, 255, 255, .4); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--teal-900); transform: translateY(-2px); }

.p-hero__stats { margin-top: 52px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; }
.p-hero__stats div { padding-inline: 0 28px; margin-inline-end: 28px; border-inline-end: 1px solid rgba(255, 255, 255, .18); }
.p-hero__stats div:last-child { border: 0; margin: 0; padding: 0; }
.p-hero__stats strong { display: block; font-family: var(--font-head); font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1; color: #fff; }
.p-hero__stats span { display: block; margin-top: 8px; font-size: .98rem; color: rgba(255, 255, 255, .65); }

/* Photo stack */
.stack { position: relative; aspect-ratio: 1 / 1; max-width: 540px; width: 100%; justify-self: center; }
.stack figure {
  position: absolute; margin: 0; padding: 10px 10px 34px; background: #fff; border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); transition: transform .6s var(--ease);
}
.stack figure img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.stack figcaption { position: absolute; bottom: 8px; inset-inline: 12px; font-family: var(--font-head); font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stack .s1 { width: 58%; height: 52%; top: 2%; left: 4%; transform: rotate(-6deg); }
.stack .s2 { width: 50%; height: 44%; top: 6%; right: 0; transform: rotate(5deg); }
.stack .s3 { width: 46%; height: 50%; bottom: 0; left: 10%; transform: rotate(4deg); }
.stack .s4 { width: 54%; height: 44%; bottom: 6%; right: 2%; transform: rotate(-4deg); }
.stack .s4 img { object-fit: contain; background: #fff; }
.stack:hover .s1 { transform: rotate(-8deg) translate(-8px, -6px); }
.stack:hover .s2 { transform: rotate(7deg) translate(8px, -6px); }
.stack:hover .s3 { transform: rotate(6deg) translate(-6px, 8px); }
.stack:hover .s4 { transform: rotate(-6deg) translate(8px, 6px); }
.p-hero__curve { position: absolute; bottom: -1px; inset-inline: 0; height: 60px; width: 100%; color: var(--sand-50); }

@media (max-width: 960px) {
  .p-hero__grid { grid-template-columns: 1fr; }
  .stack { max-width: 460px; order: -1; margin-bottom: 8px; }
}
@media (max-width: 560px) {
  .p-hero { padding-bottom: 96px; }
  .stack { max-width: 340px; }
  .p-hero__stats { grid-template-columns: 1fr 1fr 1fr; }
  .p-hero__stats div { padding-inline-end: 12px; margin-inline-end: 12px; }
  .p-hero__stats span { font-size: .85rem; }
}

/* ==========================================================================
   Sticky project index
   ========================================================================== */
.p-index {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(248, 244, 234, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.p-index ol { position: relative; display: flex; gap: 6px; list-style: none; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.p-index ol::-webkit-scrollbar { display: none; }
.p-index a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; font-family: var(--font-head); font-size: .92rem; color: var(--ink);
  transition: background-color .2s, color .2s;
}
.p-index a span { font-weight: 700; color: var(--copper); font-size: .82rem; }
.p-index a:hover { background: var(--white); }
.p-index a.is-active { background: var(--teal-800); color: #fff; }
.p-index a.is-active span { color: var(--amber); }

/* ==========================================================================
   Portfolio overview
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); font-family: var(--font-head); font-size: .95rem; color: var(--ink);
  transition: all .2s;
}
.filter svg { width: 18px; height: 18px; color: var(--accent, var(--teal-800)); }
.filter:hover { border-color: var(--teal-600); }
.filter.is-active { background: var(--teal-800); border-color: var(--teal-800); color: #fff; }
.filter.is-active svg { color: var(--amber); }
.filter small { font-size: .8rem; opacity: .6; }

.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.p-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s, opacity .35s;
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.p-card.is-hidden { display: none; }
.p-card__top { position: relative; height: 150px; overflow: hidden; background: var(--accent); }
.p-card__top img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.p-card:hover .p-card__top img { transform: scale(1.06); }
.p-card__top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 47, 44, .55), transparent 60%); }
.p-card__top .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .9); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--teal-950))); }
.p-card__top .ph svg { width: 56px; height: 56px; }
.p-card__top .ph .arcs { position: absolute; width: 120%; inset-inline-end: -45%; bottom: -70%; opacity: .16; color: #fff; }
.p-card__num { position: absolute; z-index: 1; top: 14px; inset-inline-start: 16px; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: #fff; background: rgba(11, 47, 44, .55); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.p-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.p-card h3 { font-size: 1.4rem; }
.p-card p { color: var(--muted); font-size: 1.03rem; line-height: 1.55; }
.p-card__price { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.p-card__price small { display: block; font-size: .82rem; color: var(--muted); }
.p-card__price strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--teal-900); }
.p-card__price .go { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); transition: background-color .25s, color .25s, transform .25s var(--ease); }
.p-card__price .go svg { width: 18px; height: 18px; transform: scaleX(-1); }
.p-card:hover .go { background: var(--accent); color: #fff; transform: translateX(3px); }
.p-card__link { position: absolute; inset: 0; z-index: 2; }
@media (max-width: 1000px) { .portfolio { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .portfolio { grid-template-columns: 1fr; } }

/* ==========================================================================
   Project section
   ========================================================================== */
.project { padding-block: clamp(72px, 9vw, 120px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 56px); }
.project:nth-of-type(even) { background: var(--white); }
.project__head { display: grid; grid-template-columns: auto 1fr; gap: 10px clamp(20px, 3vw, 40px); align-items: center; margin-bottom: clamp(36px, 5vw, 56px); }
.project__num {
  grid-row: span 3; font-family: var(--font-head); font-weight: 700; line-height: .85;
  font-size: clamp(5rem, 11vw, 9rem); color: transparent; -webkit-text-stroke: 2px var(--accent);
  letter-spacing: -.04em; opacity: .9;
}
.project__head h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); letter-spacing: -.015em; }
.project__tagline { font-size: clamp(1.12rem, 1.7vw, 1.35rem); color: var(--muted); }
.project__head .tag { justify-self: start; }

.project__grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.project__main > * + * { margin-top: clamp(36px, 4.5vw, 52px); }
@media (max-width: 1040px) { .project__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .project__head { grid-template-columns: 1fr; } .project__num { grid-row: auto; font-size: 4.4rem; } }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.fact { padding: 22px 22px 20px; border-radius: var(--radius); background: var(--accent-soft); position: relative; overflow: hidden; }
.fact strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.3rem); line-height: 1; color: var(--accent); letter-spacing: -.02em; }
.fact span { display: block; margin-top: 10px; font-size: .98rem; line-height: 1.45; color: var(--ink); }
.fact::after { content: ""; position: absolute; inset-inline-end: -26px; top: -26px; width: 70px; height: 70px; border-radius: 50%; border: 12px solid var(--accent); opacity: .08; }

/* Block headings */
.block__label { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--teal-900); }
.block__label::before { content: ""; width: 26px; height: 13px; border: 3px solid var(--accent); border-bottom: 0; border-radius: 26px 26px 0 0; }

.ticks li { position: relative; padding-inline-start: 30px; color: var(--ink); font-size: 1.08rem; line-height: 1.7; }
.ticks li + li { margin-top: 12px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--accent); }
.ticks b { color: var(--teal-900); }

/* Opportunity callout */
.opportunity {
  position: relative; overflow: hidden; padding: clamp(26px, 3.5vw, 38px); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--teal-900), var(--teal-800)); color: #fff;
}
.opportunity::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 6px; background: var(--amber); }
.opportunity svg.arcs { position: absolute; width: 260px; inset-inline-end: -90px; bottom: -120px; opacity: .14; color: var(--amber); }
.opportunity__label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: .85rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }
.opportunity__label svg { width: 18px; height: 18px; }
.opportunity p { position: relative; font-family: var(--font-head); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.45; font-weight: 400; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; counter-increment: step; padding-inline-start: 62px; padding-bottom: 22px; font-size: 1.06rem; line-height: 1.65; }
.steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: -4px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 2px solid var(--accent); color: var(--accent);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
}
.project:nth-of-type(even) .steps li::before { background: var(--sand-50); }
.steps li::after { content: ""; position: absolute; inset-inline-start: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }

/* Chips list (partners) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .98rem; }
.project:nth-of-type(even) .chips li { background: var(--sand-50); }
.note { margin-top: 14px; font-size: .98rem; color: var(--muted); }

/* Benefits + specs */
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.benefit { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--accent-soft); }
.benefit svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--accent); }
.benefit p { font-size: 1.02rem; line-height: 1.5; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec { background: var(--white); padding: 20px; }
.project:nth-of-type(even) .spec { background: var(--sand-50); }
.spec__k { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: .85rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.spec__k svg { width: 18px; height: 18px; }
.spec p { font-size: 1rem; line-height: 1.55; }
@media (max-width: 600px) { .benefits { grid-template-columns: 1fr; } }

/* Media */
.media { display: grid; gap: 14px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.media figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sand); position: relative; }
.media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--ratio, 4 / 3); }
.media .wide { grid-column: 1 / -1; }
.media .wide img { aspect-ratio: auto; }
.media .contain img { object-fit: contain; background: #fff; }
.media__caption { margin-top: 10px; font-size: .95rem; color: var(--muted); }
.media__caption::before { content: "↳ "; color: var(--accent); }
@media (max-width: 560px) { .media { --cols: 2; } }

/* Visual (projects without photos) */
.visual {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px;
  padding: clamp(26px, 4vw, 40px); border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--teal-950)));
}
.visual svg.arcs { position: absolute; width: 340px; inset-inline-end: -120px; top: -140px; opacity: .15; color: #fff; }
.visual__icon { width: 86px; height: 86px; flex-shrink: 0; border-radius: 24px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); }
.visual__icon svg { width: 44px; height: 44px; }
.visual strong { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; }
.visual span { display: block; margin-top: 8px; font-size: 1.08rem; color: rgba(255, 255, 255, .85); max-width: 420px; }

/* ==========================================================================
   Budget card (sticky aside)
   ========================================================================== */
.budget {
  position: sticky; top: calc(var(--header-h) + 76px);
  border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden;
}
.project:nth-of-type(even) .budget { background: var(--sand-50); }
.budget__head { padding: 26px 28px 22px; background: var(--teal-900); color: #fff; position: relative; overflow: hidden; }
.budget__head::after { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; border: 18px solid var(--amber); opacity: .18; }
.budget__label { font-family: var(--font-head); font-size: .82rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.budget__unit { margin-top: 8px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.budget__unit strong { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; }
.budget__unit span { color: rgba(255, 255, 255, .75); font-size: 1rem; }
.budget__body { padding: 22px 28px 26px; }
.lines li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .98rem; line-height: 1.5; }
.lines li span:last-child { font-family: var(--font-head); font-weight: 500; color: var(--teal-900); white-space: nowrap; }
.lines li small { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.formula { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: var(--sand); font-size: .92rem; color: var(--teal-900); font-family: var(--font-head); direction: ltr; text-align: left; }

.calc { margin-top: 20px; padding: 18px; border-radius: var(--radius); background: var(--accent-soft); }
.calc__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.calc__top label { font-family: var(--font-head); font-size: .95rem; font-weight: 500; color: var(--teal-900); }
.calc__count { font-family: var(--font-head); font-weight: 700; color: var(--accent); }
.calc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--accent) var(--p, 50%), rgba(22, 84, 79, .15) var(--p, 50%)); outline: none; }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .2s; }
.calc input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
.calc input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); cursor: pointer; }
.calc input[type="range"]:focus-visible { box-shadow: 0 0 0 4px rgba(218, 152, 66, .35); }
.calc__total { margin-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.calc__total span { font-size: .95rem; color: var(--muted); }
.calc__total strong { font-family: var(--font-head); font-size: 1.7rem; color: var(--teal-900); letter-spacing: -.01em; }

.program { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); }
.program span { font-size: .92rem; color: var(--muted); }
.program strong { font-family: var(--font-head); color: var(--teal-900); text-align: end; }
.program strong small { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }
.budget .btn { margin-top: 20px; }
.budget__note { margin-top: 12px; font-size: .9rem; color: var(--muted); text-align: center; }
@media (max-width: 1040px) { .budget { position: static; } }

/* External link */
.ext-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-family: var(--font-head); font-weight: 500; color: var(--teal-600); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.ext-link svg { width: 16px; height: 16px; }
.ext-link:hover { color: var(--copper-d); }
.highlight { margin-top: 18px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); border: 1.5px dashed var(--accent); }
.highlight svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.highlight p { font-weight: 600; color: var(--teal-900); }

/* ==========================================================================
   Partner section (form)
   ========================================================================== */
.field select {
  width: 100%; height: 56px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--sand-200); background: var(--sand-50);
  font: inherit; font-size: 1.08rem; color: var(--ink); appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316544F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 20px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field select:focus { outline: none; border-color: var(--teal-600); background-color: #fff; box-shadow: 0 0 0 4px rgba(18, 131, 122, .14); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.recognition { margin-top: 30px; display: grid; gap: 12px; }
.recognition li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, .85); }
.recognition svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--amber); margin-top: 3px; }
.p-hero__actions .btn--primary:hover svg { transform: translateY(3px); }

/* ---------- Refinements ---------- */
.p-card .tag { align-self: flex-start; }
.stack .s1 { height: 48%; }
.stack .s3 { height: 44%; bottom: -2%; }
.stack .s4 { height: 40%; bottom: 4%; }
.facts:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact strong { overflow-wrap: anywhere; }

/* Portfolio CTA card (fills the last grid slot) */
.p-card--cta {
  justify-content: space-between; padding: 30px 28px; color: #fff; border: 0;
  background: linear-gradient(150deg, var(--teal-800), var(--teal-950));
}
.p-card--cta svg.arcs { position: absolute; width: 300px; inset-inline-end: -110px; bottom: -130px; color: var(--amber); opacity: .2; pointer-events: none; }
.p-card--cta .eyebrow { color: var(--amber); }
.p-card--cta h3 { color: #fff; font-size: 1.7rem; }
.p-card--cta p { color: rgba(255, 255, 255, .8); margin-top: 12px; }
.p-card--cta .btn { position: relative; z-index: 3; margin-top: 26px; align-self: flex-start; }
.p-card--cta:hover { transform: translateY(-6px); }
@media (max-width: 1000px) { .portfolio .p-card--cta { grid-column: 1 / -1; } }
@media (max-width: 640px) { .portfolio .p-card--cta { grid-column: auto; } }
.p-card__top--tower { background: linear-gradient(to bottom, #000 0%, #000 50%, #fff 100%); }
.p-card__top--tower img { object-fit: contain; }
.p-card__top--tower::after { display: none; }

/* Projects-page logo (wider artwork with tagline) */
.site-header .brand img { height: 60px; }
.footer__brand img { height: 84px; }
@media (max-width: 560px) {
  .site-header .brand img { height: 48px; }
}

/* "NIS" amounts are wider than "₪": let the calculator total wrap/shrink on phones */
.calc__total { flex-wrap: wrap; }
@media (max-width: 560px) { .calc__total strong { font-size: 1.5rem; } }

/* ==========================================================================
   About Sadad (intro section)
   ========================================================================== */
.about { --accent: var(--copper); --accent-soft: #F6E8D6; }
.about .section-head p strong { color: var(--teal-900); }
.about h4 { font-family: var(--font-head); font-size: 1.15rem; color: var(--teal-900); }

/* The need + gap stats */
.need { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.need__text p { color: var(--ink); font-size: 1.08rem; line-height: 1.75; }
.need__text p + p { margin-top: 14px; }
.need__lead { font-weight: 600; color: var(--teal-900) !important; }
.gaps { display: grid; gap: 14px; }
.gaps li {
  display: grid; grid-template-columns: 128px 1fr; grid-template-rows: auto auto; column-gap: 22px; align-items: center;
  padding: 22px 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.gaps strong { grid-row: span 2; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 2.9rem); line-height: 1; color: var(--copper); letter-spacing: -.02em; }
.gaps span { font-size: 1.04rem; color: var(--ink); line-height: 1.5; }
.gaps small { margin-top: 6px; font-size: .85rem; color: var(--muted); }

/* Quote */
.quote {
  position: relative; margin: clamp(40px, 6vw, 64px) 0 0; padding: clamp(30px, 4vw, 44px) clamp(26px, 5vw, 60px);
  border-radius: var(--radius-lg); background: var(--teal-900); color: #fff; overflow: hidden;
}
.quote > svg { position: absolute; inset-inline-start: 22px; top: 18px; width: 64px; height: 64px; color: var(--amber); opacity: .25; }
.quote blockquote { position: relative; margin: 0; font-family: var(--font-head); font-size: clamp(1.25rem, 2.3vw, 1.6rem); line-height: 1.5; font-weight: 500; max-width: 900px; }
.quote figcaption { position: relative; margin-top: 16px; color: var(--amber); font-size: .98rem; }
.quote figcaption::before { content: "— "; }
.about__close { margin-top: 22px; font-size: 1.15rem; font-weight: 600; color: var(--teal-800); }

/* Arms + focus areas */
.about__grid { margin-top: clamp(48px, 7vw, 80px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 56px); }
.arms-list { display: grid; gap: 14px; }
.arms-list li { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.arms-list p, .focus-list p { margin-top: 4px; color: var(--muted); line-height: 1.6; }
.about .ic { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-100); color: var(--teal-800); }
.about .ic svg { width: 26px; height: 26px; }
.focus-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.focus-list li { padding: 22px; border-radius: var(--radius); background: var(--accent-soft); }
.focus-list .ic { background: var(--white); color: var(--copper-d); margin-bottom: 14px; }

/* Origins + founding partners */
.origins { margin-top: clamp(48px, 7vw, 80px); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.origins__text p { color: var(--ink); font-size: 1.05rem; line-height: 1.75; }
.origins__text p + p { margin-top: 14px; }
.founding { padding: 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.founding p { color: var(--ink); line-height: 1.7; }
.founding__logos { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.founding__logos img { height: 44px; width: auto; min-width: 0; object-fit: contain; }
.founding__logos img[src*="uja"] { height: 34px; flex: 1 1 auto; max-width: 48%; }
.founding__logos img[src*="svf"] { height: 62px; }

/* Partner contact (name + email) */
.contact__links a > span:not(.ic) { line-height: 1.4; }
.contact__addr { font-size: .95rem; color: var(--amber); }

@media (max-width: 960px) {
  .need, .about__grid, .origins { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gaps li { grid-template-columns: 1fr; padding: 20px; }
  .gaps strong { grid-row: auto; margin-bottom: 8px; }
  .focus-list { grid-template-columns: 1fr; }
  .quote > svg { width: 40px; height: 40px; top: 16px; }
  .quote blockquote { padding-top: 28px; }
}
