/* שכבת עומק בסגנון אפליקציה, בפלטת הצבעים של האתר.
   לא מחליפה את styles.css, רק יושבת מעליו. */

:root {
  --elev-1:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 18px rgba(29, 58, 18, 0.1),
    0 2px 6px rgba(46, 50, 51, 0.08);
  --elev-2:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 14px 28px rgba(29, 58, 18, 0.14),
    0 4px 10px rgba(46, 50, 51, 0.08);
  --press:
    0 2px 4px rgba(29, 58, 18, 0.16) inset,
    0 1px 2px rgba(46, 50, 51, 0.08);
}

body:not(.alu-page) {
  background:
    radial-gradient(980px 560px at 100% -12%, rgba(140, 197, 64, 0.2) 0%, transparent 58%),
    radial-gradient(820px 500px at -8% 8%, rgba(0, 122, 158, 0.12) 0%, transparent 55%),
    radial-gradient(700px 640px at 80% 100%, rgba(29, 58, 18, 0.08) 0%, transparent 55%),
    var(--bg);
}

.alu-page {
  background:
    radial-gradient(1100px 520px at 100% -8%, var(--alu-mint) 0%, transparent 58%),
    radial-gradient(900px 520px at -8% 18%, var(--alu-wash) 0%, transparent 52%),
    radial-gradient(700px 500px at 50% 110%, rgba(12, 81, 101, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #eef6e8 0%, #e6f6f7 42%, #f7fbfb 100%);
}

.site-header {
  position: relative;
  isolation: isolate;
  border-bottom: 6px solid var(--brand);
  border-radius: 0 0 28px 28px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 18px 36px rgba(29, 58, 18, 0.32);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent);
  pointer-events: none;
  z-index: 0;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.logo-link,
.alu-page .alu-brand {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.85);
  transform: perspective(920px)
    rotateX(calc(var(--tilt-x, 0deg) + var(--orient-x, 0deg)))
    rotateY(calc(var(--tilt-y, 0deg) + var(--orient-y, 0deg)))
    translateY(var(--lift, 0px));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 10px 22px rgba(29, 58, 18, 0.22),
    0 3px 6px rgba(0, 0, 0, 0.1);
}
.logo-link::before,
.alu-page .alu-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.08) 42%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}

.site-brand,
.site-header h1 {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.28);
}

.index-grid {
  gap: 14px;
  padding: 2px 0 8px;
}

.index-tile {
  background-image: linear-gradient(180deg, #ffffff 0%, #f6faf4 100%);
  border-color: rgba(217, 224, 212, 0.9);
  border-radius: 18px;
  box-shadow: var(--elev-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.index-tile:hover,
.index-tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--elev-2);
}

.index-tile:active {
  transform: translateY(1px);
  box-shadow: var(--press);
}

.index-tile[aria-pressed="true"] {
  box-shadow:
    0 0 0 2px rgba(0, 122, 158, 0.28),
    var(--elev-2);
}

.index-tile-info {
  box-shadow: var(--elev-1);
}

.calc-tiles {
  gap: 16px;
  padding: 4px 2px 18px;
  perspective: 920px;
}

.calc-tiles .calc-open {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background-color: var(--teal);
  background-image:
    linear-gradient(165deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(165deg, #1593ba 0%, var(--teal) 52%, #006687 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -10px 18px rgba(0, 40, 55, 0.28),
    0 2px 3px rgba(0, 50, 70, 0.14),
    0 12px 20px rgba(0, 70, 90, 0.24),
    0 24px 36px rgba(29, 58, 18, 0.12);
  transform: perspective(920px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift));
  transform-style: preserve-3d;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.calc-tiles .calc-open::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 62%;
  height: 46%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), transparent 68%);
  border-radius: 20px 0 70% 0;
  pointer-events: none;
  z-index: 0;
}

.calc-tiles .calc-open > * {
  position: relative;
  z-index: 1;
}

.calc-tiles .calc-open-chevron {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 3px 6px rgba(0, 40, 55, 0.32);
}

.calc-tiles .calc-open:hover,
.calc-tiles .calc-open:focus-visible {
  --lift: -6px;
  --tilt-x: 6deg;
  --tilt-y: -7deg;
  background-color: #006f90;
  background-image:
    linear-gradient(165deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(165deg, #17a0c8 0%, #006f90 55%, #005a74 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -8px 16px rgba(0, 40, 55, 0.22),
    0 8px 16px rgba(0, 70, 90, 0.2),
    0 22px 36px rgba(0, 70, 90, 0.28),
    0 32px 48px rgba(29, 58, 18, 0.16);
  outline: 2px solid var(--header);
}

.calc-tiles .calc-open:active {
  --lift: 2px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  box-shadow:
    inset 0 8px 16px rgba(0, 30, 40, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 6px rgba(0, 40, 55, 0.22);
}

.calc-tiles .calc-open.tilt-nw { --tilt-x: 7deg; --tilt-y: -8deg; }
.calc-tiles .calc-open.tilt-n  { --tilt-x: 7deg; --tilt-y: 0deg; }
.calc-tiles .calc-open.tilt-ne { --tilt-x: 7deg; --tilt-y: 8deg; }
.calc-tiles .calc-open.tilt-w  { --tilt-x: 0deg; --tilt-y: -8deg; }
.calc-tiles .calc-open.tilt-mid { --tilt-x: 2deg; --tilt-y: 0deg; }
.calc-tiles .calc-open.tilt-e  { --tilt-x: 0deg; --tilt-y: 8deg; }
.calc-tiles .calc-open.tilt-sw { --tilt-x: -7deg; --tilt-y: -8deg; }
.calc-tiles .calc-open.tilt-s  { --tilt-x: -7deg; --tilt-y: 0deg; }
.calc-tiles .calc-open.tilt-se { --tilt-x: -7deg; --tilt-y: 8deg; }

.contact-cta,
.alu-form-card,
.alu-result-card,
.tmh-panel,
.hon-result,
.zak-result,
.mec-result,
.tz-result,
.tz-card,
.calc-res,
.detail-pane {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
}

.contact-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 5px solid var(--brand);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 32px rgba(29, 58, 18, 0.28);
}

.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent);
  pointer-events: none;
}

.contact-cta > * {
  position: relative;
  z-index: 1;
}

.contact-btn,
.refinance-btn {
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.contact-btn {
  background-image: linear-gradient(180deg, #b3e163 0%, var(--brand) 46%, #7ab534 100%);
  background-color: var(--brand);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -3px 5px rgba(60, 90, 20, 0.28),
    0 8px 16px rgba(29, 58, 18, 0.28);
}

.contact-btn:hover,
.contact-btn:focus-visible {
  background-image: linear-gradient(180deg, #c0ea74 0%, #a4d65f 48%, #86c43c 100%);
  transform: translateY(-2px);
}

.contact-btn:active,
.refinance-btn:active {
  transform: translateY(2px);
  box-shadow: var(--press);
}

.refinance-btn {
  background-image: linear-gradient(180deg, #2d5a1b 0%, var(--header) 55%, #14280c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -3px 6px rgba(0, 0, 0, 0.28),
    0 8px 16px rgba(29, 58, 18, 0.28);
}

.refinance-btn:hover,
.refinance-btn:focus-visible {
  background-image: linear-gradient(180deg, #3a6e24 0%, var(--brand-dark) 60%, #1d3a12 100%);
  transform: translateY(-2px);
}

.gloss,
.detail-pane,
.dialog-box,
.tmh-panel,
.hon-result,
.zak-result,
.mec-result,
.tz-result,
.tz-card,
.calc-res,
.tmh-table-wrap,
.tmh-chart-wrap,
.page-shell {
  box-shadow: var(--elev-1);
}

.gloss,
.detail-pane,
.tmh-panel,
.hon-result,
.zak-result,
.mec-result,
.tz-result,
.tz-card,
.calc-res,
.tmh-table-wrap,
.tmh-chart-wrap {
  border-radius: 18px;
}

.gloss summary {
  cursor: pointer;
}

.site-footer {
  position: relative;
  z-index: 1;
  box-shadow: 0 -16px 32px rgba(22, 38, 14, 0.12);
}

.site-footer a:hover,
.site-footer a:focus-visible,
.alu-nav a:hover,
.alu-nav a:focus-visible,
.page-shell a:hover,
.page-shell a:focus-visible {
  text-underline-offset: 3px;
}

.alu-page .alu-form-card,
.alu-page .alu-explain,
.alu-page .alu-yellow {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 36px rgba(12, 81, 101, 0.14),
    0 4px 10px rgba(12, 81, 101, 0.06);
}

.alu-page .alu-kind {
  background-image: linear-gradient(180deg, #ffffff, #f3f8f2);
  box-shadow:
    inset 0 1px 0 #fff,
    0 3px 8px rgba(12, 81, 101, 0.1);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.alu-page .alu-kind:hover {
  transform: translateY(-1px);
}

.alu-page .alu-kind:has(input:checked) {
  background-image: linear-gradient(180deg, #e8f6fb, #d8eef5);
  box-shadow:
    inset 0 2px 5px rgba(12, 81, 101, 0.14),
    0 0 0 1px var(--alu-cyan);
}

.alu-page .alu-step-num {
  background-image: linear-gradient(180deg, var(--alu-lime-bright), var(--alu-lime) 48%, var(--alu-lime-deep));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 3px 6px rgba(95, 138, 36, 0.28);
}

.alu-page .alu-result-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -10px 22px rgba(0, 20, 28, 0.28),
    0 18px 40px rgba(8, 48, 60, 0.36);
}

.alu-page .alu-result-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 70%;
  height: 42%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.alu-page .alu-result-card > * {
  position: relative;
  z-index: 1;
}

.alu-page .alu-pill {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.16);
}

.alu-page .alu-pdf {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 6px 14px rgba(0, 20, 28, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.alu-page .alu-pdf:hover,
.alu-page .alu-pdf:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
  transform: translateY(-2px);
}

.alu-page .alu-pdf:active {
  transform: translateY(1px);
  box-shadow: inset 0 3px 8px rgba(0, 20, 28, 0.3);
}

.alu-page .alu-pdf:disabled {
  transform: none;
}

/* שדות קלט: שקועים, עם הארה במיקוד, בלי תנועה */
input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),
select,
textarea,
.alu-page .alu-input-wrap input,
.alu-page .alu-date-field input[type="date"],
.field input,
.field select,
.calc-form input,
.calc-form select {
  background-image: linear-gradient(180deg, #f4f7f5, #ffffff 42%);
  box-shadow:
    inset 0 2px 6px rgba(12, 81, 101, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8);
  transition: box-shadow 0.16s ease, border-color 0.16s ease;
}

input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]):focus,
input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]):focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible,
.alu-page .alu-input-wrap input:focus,
.field input:focus,
.calc-form input:focus,
.calc-form select:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  box-shadow:
    inset 0 2px 6px rgba(12, 81, 101, 0.08),
    0 0 0 3px rgba(0, 122, 158, 0.2);
}

@media print {
  .site-header,
  .logo-link,
  .index-tile,
  .calc-tiles .calc-open,
  .contact-cta,
  .contact-btn,
  .refinance-btn,
  .gloss,
  .detail-pane,
  .tmh-panel,
  .hon-result,
  .zak-result,
  .mec-result,
  .tz-result,
  .tz-card,
  .calc-res,
  .alu-form-card,
  .alu-result-card,
  .alu-explain,
  .site-footer {
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
    text-shadow: none !important;
  }
  .site-header::before,
  .logo-link::before,
  .alu-page .alu-brand::before,
  .logo-link::after,
  .alu-page .alu-brand::after,
  .calc-tiles .calc-open::before,
  .contact-cta::before,
  .alu-page .alu-result-card::before {
    display: none !important;
  }
  .site-header,
  .logo-link,
  .alu-page .alu-brand,
  .index-tile,
  .index-tile-item,
  .calc-tiles .calc-open {
    transition: none !important;
  }
}
