/* IBI Doe — layout clone of doe.institutobrasilisrael.org (see docs/live-page-capture.md) */

:root {
  --blue: #0079c1;
  --card-blue: #007dc2;
  --navy: #3b5aa0;
  --navy-btn: #3c589d;
  --grey: #727272;
  --grey-dark: #494949;
  --grey-light: #979797;
  --bg-light: #f1f1f1;
  --link: #74a4d4;
  --white: #fff;
  --error: #c62828;
  --radius-card: 15px;
  --radius-lg: 20px;
  --radius-pill: 30px;
  --container: 1160px;
  --gutter: 20px;
  --font: 'Roboto', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: #000; background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul[role="list"], ol { list-style: none; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
strong { font-weight: 700; }
[hidden] { display: none !important; }

.container { position: relative; z-index: 1; width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* Typography */
.h2 { font-size: 40px; line-height: 1.25; font-weight: 400; color: var(--blue); }
.h2--light { color: var(--white); }
.h2--xl { font-size: 45px; line-height: 70px; color: var(--card-blue); }
.body { font-size: 16px; line-height: 25px; color: var(--grey); }
.body + .body { margin-top: 25px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--radius-pill);
  background: var(--navy-btn); color: var(--white);
  font-weight: 600; text-decoration: none;
  transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid #9cc7ea; outline-offset: 2px; }
.btn--sm { width: 181px; height: 39px; font-size: 14px; }
.btn--lg { width: 384px; max-width: 100%; height: 54px; font-size: 20px; }
.btn--blue { width: 200px; height: 42px; font-size: 14px; background: var(--blue); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* 1. Hero */
.hero { position: relative; padding: 53px 0 91px; overflow: hidden; }
.hero__deco { position: absolute; left: -914px; top: 273px; width: 1093px; max-width: none; pointer-events: none; }
.hero__logo { width: 248px; margin: 0 auto; }
.hero__title { max-width: 940px; margin: 40px auto 27px; font-size: 45px; line-height: 59px; font-weight: 400; color: var(--blue); text-align: center; }

.amounts { display: grid; grid-template-columns: repeat(4, 256px); justify-content: center; gap: 31px; margin-bottom: 46px; }
.amount-card {
  display: flex; flex-direction: column; align-items: center;
  min-height: 295px; padding: 3px 6px 21px;
  background: var(--card-blue); color: var(--white);
  border-radius: var(--radius-card); text-align: center;
}
.amount-card__value { font-size: 70px; line-height: 109px; font-weight: 700; }
.amount-card__text { flex: 1; font-size: 16px; line-height: 25px; margin: -11px 0 9px; } /* live: text box overlaps the value's line box */

/* 2. Video + about */
.about { position: relative; padding-bottom: 109px; }
.video { position: relative; max-width: 918px; margin: -57px auto 0; aspect-ratio: 918 / 570; border-radius: 20px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.about__grid { display: grid; grid-template-columns: 542px 453px; justify-content: space-between; gap: 40px; margin: 69px 0 0; padding: 0 7px 0 60px; }
.about__grid .h2 { max-width: 401px; margin-bottom: 19px; }
.about__aside { position: relative; }
.about__stars { position: absolute; left: -223px; top: -4px; width: 375px; height: 136px; object-fit: cover; opacity: .9; pointer-events: none; }
.quote { position: relative; margin-top: 133px; font-size: 40px; line-height: 62px; font-weight: 700; color: var(--navy); }
.about .center { margin: 59px 0 74px; }
.about__stars-bottom { position: absolute; left: -314px; bottom: 480px; width: 705px; max-width: none; pointer-events: none; z-index: -1; }

.pillars { display: grid; grid-template-columns: repeat(3, 360px); justify-content: center; gap: 40px; }
.pillar {
  min-height: 463px; padding: 47px 46px 30px 40px;
  background: rgba(0, 121, 193, .8); color: var(--white);
  border-radius: var(--radius-lg);
  font-size: 16px; line-height: 25px;
}
.pillar__title { margin-bottom: 15px; font-size: 30px; line-height: 39px; font-weight: 700; }

/* 3. International */
.intl { padding: 53px 0 61px; }
.intl__grid { display: grid; grid-template-columns: 233px 465px; justify-content: center; gap: 98px; align-items: start; }
.intl__logo { width: 233px; }
.intl__name { margin-top: 13px; font-size: 25px; line-height: 39px; color: #74a5d3; }
.intl__text { margin-top: 3px; font-size: 16px; line-height: 25px; color: var(--grey-dark); }
.intl__text a { color: var(--link); }

/* 4. Impact */
.impact { padding: 52px 0 54px; background: var(--blue); color: var(--white); text-align: center; }
.impact .h2 { max-width: 856px; margin: 0 auto 20px; line-height: 62px; }
.impact__list { display: grid; grid-template-columns: repeat(3, 230px); justify-content: center; gap: 30px; }
.impact__num { font-size: 60px; line-height: 93px; font-weight: 700; }
.impact__num span { margin-left: 6px; font-size: 32px; }
.impact__list p:last-child { max-width: 200px; margin: -7px auto 0; font-size: 16px; line-height: 25px; }

/* 5. Testimonials */
.testimonials { padding: 72px 0 60px; }
.testimonials .h2 { margin-bottom: 16px; }
.slider { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 60px 40px; }
.slider__track { max-width: 660px; margin: 0 auto; text-align: center; }
.slide blockquote { font-size: 16px; line-height: 1.55; color: var(--grey); }
.slide figcaption { margin-top: 18px; font-size: 16px; font-weight: 700; color: #007abd; }
.slider__arrow {
  position: absolute; top: calc(50% - 35px);
  display: grid; place-items: center;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: #eee;
}
.slider__arrow svg { width: 7px; height: 13px; fill: none; stroke: #222; }
.slider__arrow--prev { left: 0; }
.slider__arrow--next { right: 0; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 10px; }
.slider__dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #c7c7c7; opacity: .5; }
.slider__dots button[aria-current="true"] { opacity: 1; background: #999; }

/* 6. Press */
.press { position: relative; padding: 81px 0 115px; overflow: hidden; }
.press .h2 { max-width: 856px; margin: 0 auto 56px; line-height: 54px; }
.press__stars { position: absolute; left: calc(50% - 755px); top: 61px; width: 375px; height: 136px; max-width: none; object-fit: cover; object-position: left; pointer-events: none; }
.press__book { position: absolute; left: calc(50% - 440px); top: 384px; width: 1082px; max-width: none; pointer-events: none; }
.press .container { max-width: 1340px; }
.press__list { display: grid; grid-template-columns: repeat(3, minmax(0, 411px)); justify-content: center; gap: 30px; }
.press-card {
  position: relative; display: block; height: 645px;
  border-radius: var(--radius-lg); overflow: hidden;
  background: #a8a8a8; color: var(--white); text-decoration: none;
}
.press-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.press-card:hover img { transform: scale(1.03); }
.press-card__body { position: absolute; left: 40px; right: 33px; top: 363px; display: flex; flex-direction: column; gap: 17px; font-size: 16px; line-height: 25px; }
.press-card__title { font-size: 22px; line-height: 34px; min-height: 102px; }

/* 7. Why */
.why { position: relative; padding: 52px 0 61px; background: var(--bg-light); overflow-x: clip; }
.why__deco { position: absolute; pointer-events: none; }
.why__deco--left { left: calc(50% - 628px); top: -56px; width: 232px; }
.why__deco--right { left: calc(50% + 400px); top: 31px; width: 178px; }
.why .h2 { max-width: 637px; margin: 0 auto 20px; }
.why__list { display: grid; grid-template-columns: repeat(3, 199px); justify-content: center; column-gap: 105px; margin-bottom: 20px; text-align: center; }
.why__num { display: block; font-size: 60px; line-height: 93px; font-weight: 700; color: var(--navy); }
.why__list p { font-size: 16px; line-height: 25px; color: var(--grey-light); }

/* 8. Footer */
.footer { padding: 53px 0 67px; background: var(--navy); color: var(--white); }
.footer__logo { width: 265px; margin: 0 auto 44px; }
.footer__cta { display: flex; align-items: center; justify-content: center; gap: 0; max-width: 856px; margin: 0 auto 18px; }
.footer__cta p { width: 448px; font-size: 16px; line-height: 25px; }
.social { display: flex; gap: 7px; margin-left: 14px; }
.social img { width: 33px; height: 33px; transition: opacity .2s; }
.social a:hover img { opacity: .8; }
.footer__legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 14px; font-size: 13px; line-height: 20px; text-transform: uppercase; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }

/* Donation modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 30, 60, .6); }
.modal__dialog {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto;
  padding: 36px 36px 28px; background: var(--white); border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.modal__close { position: absolute; top: 10px; right: 14px; width: 36px; height: 36px; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--grey); }
body.modal-open { overflow: hidden; }

.donate__title { margin-bottom: 20px; font-size: 28px; line-height: 1.2; color: var(--blue); }
.field-group { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field-group legend { margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .03em; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--bg-light); border-radius: var(--radius-pill); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented input, .chips input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span, .chips span {
  display: block; padding: 10px 16px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600; text-align: center; cursor: pointer; user-select: none;
  transition: background .15s, color .15s, border-color .15s;
}
.segmented span { color: var(--grey); }
.segmented input:checked + span { background: var(--navy-btn); color: var(--white); }
.chips span { border: 2px solid #d5dbe8; color: var(--navy); }
.chips input:checked + span { border-color: var(--navy-btn); background: var(--navy-btn); color: var(--white); }
.segmented input:focus-visible + span, .chips input:focus-visible + span { outline: 3px solid #9cc7ea; outline-offset: 2px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.chips + .field { margin-top: 12px; }
.field label { font-size: 13px; font-weight: 500; color: var(--grey-dark); }
.field input:not([type="checkbox"]):not([type="range"]) {
  width: 100%; height: 44px; padding: 0 12px;
  border: 1px solid #cfd5e1; border-radius: 8px;
  font: inherit; font-size: 16px; color: #000; background: var(--white);
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 121, 193, .15); }
.field.is-invalid input { border-color: var(--error); }
.field__error { min-height: 0; font-size: 12px; color: var(--error); }
.field__error:empty { display: none; }
.field__hint { font-size: 12px; line-height: 1.4; color: var(--grey); }

/* "Outro valor": big editable number + slider (main.js keeps both in step) */
.amount-picker { padding: 14px 16px 10px; border: 1px solid #cfd5e1; border-radius: 12px; background: var(--white); }
.field.is-invalid .amount-picker { border-color: var(--error); }
.amount-picker__value {
  display: flex; justify-content: center; align-items: baseline; gap: 6px;
  margin: 0 auto 12px; width: max-content; max-width: 100%;
  border-bottom: 2px solid #d5dbe8; transition: border-color .15s;
}
.amount-picker__value:focus-within { border-bottom-color: var(--blue); }
.amount-picker__value span { font-size: 20px; font-weight: 700; color: var(--grey); }
/* input[name] + later in the file: beats the generic `.field input:not(…):not(…)` box */
.field .amount-picker__value input[name] {
  width: calc(var(--chars, 6) * 1ch + 6px); max-width: 11ch; height: auto; padding: 0 0 2px;
  border: 0; border-radius: 0; box-shadow: none;
  font-size: 34px; font-weight: 700; line-height: 1.2; color: var(--navy); text-align: center;
  font-variant-numeric: tabular-nums; background: transparent;
}
.field .amount-picker__value input[name]:focus { border: 0; box-shadow: none; }

.amount-picker__range {
  --fill: 17%;
  display: block; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.field .amount-picker__range:focus { outline: none; border: 0; box-shadow: none; } /* ring is on the thumb */
.amount-picker__range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--navy-btn) var(--fill), #dfe4ee var(--fill));
}
.amount-picker__range::-moz-range-track { height: 6px; border-radius: 3px; background: #dfe4ee; }
.amount-picker__range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--navy-btn); }
.amount-picker__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; margin-top: -10px; border: 3px solid var(--white); border-radius: 50%;
  background: var(--navy-btn); box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.amount-picker__range::-moz-range-thumb {
  width: 20px; height: 20px; border: 3px solid var(--white); border-radius: 50%;
  background: var(--navy-btn); box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.amount-picker__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px #9cc7ea; }
.amount-picker__range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px #9cc7ea; }
.amount-picker__scale { display: flex; justify-content: space-between; margin-top: 2px; font-size: 12px; color: var(--grey); }
.field--check { margin: 4px 0 16px; }
.field--check label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; font-weight: 400; }
.field--check input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--navy-btn); }
.field--check a { color: var(--blue); }

.donate__hint { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--grey); }
.donate__summary { margin-bottom: 12px; font-size: 15px; text-align: center; color: var(--grey-dark); }
.donate__cancel { margin: -4px 0 12px; font-size: 13px; line-height: 1.4; text-align: center; color: var(--grey); }
.donate__cancel a { color: var(--blue); }
.donate-result .donate__cancel { margin: 0 0 16px; font-size: 14px; color: var(--grey-dark); }
.donate__form-error { margin-top: 10px; font-size: 14px; color: var(--error); text-align: center; }
.donate__secure { margin-top: 12px; font-size: 12px; text-align: center; color: var(--grey-light); }
.donate-result { text-align: center; }
.donate-result:focus { outline: none; } /* focused by script so screen readers read it; not a control */
.donate-result .donate__title { padding: 0 28px; } /* clear of the close button, still centered */
.donate-result p { margin-bottom: 20px; font-size: 16px; line-height: 1.5; color: var(--grey-dark); }
.donate-result img { margin: 0 auto 12px; }
.pix-qr { width: 220px; height: 220px; margin: 0 auto 16px; }
.pix-qr svg, .pix-qr img { display: block; width: 100%; height: 100%; margin: 0; }
.donate__again { display: block; margin: -8px auto 16px; padding: 4px 8px; border: 0; background: none; color: var(--blue); font-size: 14px; text-decoration: underline; }
.pix-status { margin: -8px 0 20px; font-size: 14px; color: var(--grey); }
.pix-status.is-paid { color: #1e7e34; font-weight: 600; }
.donate__antibot { margin: 4px 0 12px; }
.donate__test-note { margin: 0 0 16px; padding: 8px 12px; border-radius: 8px; background: #fff4d6; color: #7a5b00; font-size: 13px; }
.pix-code { display: flex; gap: 8px; margin-bottom: 20px; }
.pix-code input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid #cfd5e1; border-radius: 8px; font-size: 12px; }
.pix-code button { padding: 0 14px; border: 0; border-radius: 8px; background: var(--navy-btn); color: var(--white); font-weight: 600; }

/* Terms / Privacy modals (above the donation modal) */
.modal--doc { z-index: 110; }
.modal__dialog--doc { max-width: 760px; padding: 40px 44px 32px; }
.doc h2 { margin: 0 32px 4px 0; font-size: 28px; line-height: 1.2; color: var(--blue); }
.doc__updated { margin-bottom: 20px; font-size: 13px; color: var(--grey); }
.doc h3 { margin: 24px 0 8px; font-size: 17px; line-height: 1.35; color: var(--navy); }
.doc p, .doc li { font-size: 15px; line-height: 1.6; color: var(--grey-dark); }
.doc p + p { margin-top: 10px; }
.doc ul { margin-top: 8px; padding-left: 20px; list-style: disc; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--blue); overflow-wrap: anywhere; }
.doc strong { color: #333; }
.doc .doc__close { margin-top: 28px; text-align: center; }

/* Responsive */
@media (max-width: 1199px) {
  .amounts { grid-template-columns: repeat(2, 256px); }
  .about__grid { grid-template-columns: 1fr 1fr; padding: 0; }
  .quote { font-size: 32px; line-height: 48px; }
  .pillars { grid-template-columns: repeat(3, minmax(0, 360px)); gap: 20px; }
  .pillar { padding: 32px 24px; }
  .press__list { gap: 20px; }
  .press-card__body { left: 24px; right: 24px; }
}

@media (max-width: 959px) {
  .hero__title { font-size: 36px; line-height: 46px; }
  .h2 { font-size: 32px; }
  .h2--xl { font-size: 36px; line-height: 48px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__stars { display: none; }
  .quote { margin-top: 0; }
  .about__stars-bottom { display: none; }
  .pillars, .press__list { grid-template-columns: minmax(0, 420px); }
  .pillar { min-height: 0; }
  .intl__grid { grid-template-columns: 1fr; gap: 24px; justify-items: center; text-align: center; }
  .intl__logo { width: 160px; }
  .impact__list { grid-template-columns: 1fr; gap: 10px; }
  .impact .h2 { line-height: 1.35; }
  .br-desktop { display: none; }
  .why__list { grid-template-columns: minmax(0, 260px); row-gap: 20px; }
  .why__deco { width: 110px; }
  .why__deco--left { left: -30px; }
  .why__deco--right { left: auto; right: -20px; top: auto; bottom: 20px; }
  .footer__cta { flex-direction: column; gap: 20px; text-align: center; }
  .footer__cta .social { order: 1; } /* live mobile: social icons before the "doar" button */
  .footer__cta .btn { order: 2; }
  .footer__cta p { width: auto; max-width: 448px; }
  .social { margin-left: 0; }
  .press__stars, .press__book { opacity: .6; }
}

@media (max-width: 639px) {
  :root { --gutter: 16px; }
  .hero { padding: 40px 0 60px; }
  .hero__logo { width: 200px; }
  .hero__title { margin: 24px auto 36px; font-size: 26px; line-height: 33px; }
  .hero__deco { display: none; }
  .amounts { grid-template-columns: minmax(0, 256px); gap: 20px; margin-bottom: 36px; }
  .video { margin-top: -20px; border-radius: 12px; }
  .about__grid { margin-top: 40px; }
  .h2 { font-size: 28px; line-height: 1.3; }
  .h2--xl { font-size: 30px; line-height: 40px; }
  .quote { font-size: 26px; line-height: 38px; }
  .about .center { margin: 40px 0; }
  .slider { padding: 0 0 40px; }
  .slider__arrow { top: auto; bottom: -8px; }
  .press { padding: 60px 0 80px; }
  .press .h2 { line-height: 1.35; }
  .press__stars { display: none; }
  .press-card { height: 560px; }
  .press-card__body { top: auto; bottom: 28px; }
  .press-card__title { min-height: 0; }
  .btn--lg { height: 50px; font-size: 18px; }
  .footer__logo { width: 200px; margin-bottom: 32px; }
  .why { padding-top: 70px; }
  .why__deco { width: 64px; }
  .why__deco--left { left: -12px; top: -24px; }
  .why__deco--right { right: -8px; bottom: auto; top: 8px; }
  .footer__legal { flex-direction: column; align-items: center; gap: 6px; }
  .footer__legal > span[aria-hidden] { display: none; }

  .modal { padding: 0; place-items: stretch; }
  .modal__dialog { max-width: none; max-height: 100vh; height: 100%; border-radius: 0; padding: 28px 16px 24px; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
