/* Pagina principală: fildeș, in și albastru safir. */
.home-page {
  --ivory: #fcfaf6;
  --linen: #f4ecdf;
  --cream: #f8f2e8;
  --porcelain: #f0f4f7;
  --warm-accent: #806c4a;
}

.home-page .home-intro { background: var(--ivory); }
.home-page .home-story { background: var(--linen); }
.home-page .moments-section { background: var(--porcelain); }
.home-page .home-purpose { background: var(--cream); }
.home-page .donate-feature { background: #eaf0f5; }
.home-page .join-section { background: #153553; }
.home-page .join-section h2 { color: #fffaf0; }
.home-page .join-section em { color: #e8d8bb; }

.home-page p:not(.eyebrow):not(.handwritten):not(.small) { font-size:var(--type-body); line-height: 1.8; }

.home-page h2 {
  font-size:var(--type-h2);
  line-height: 1.08;
}
.home-page .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: "copy visual" "intro visual" "actions visual" "note visual";
  grid-template-rows: auto auto auto 1fr;
  column-gap: clamp(44px, 5vw, 92px);
  row-gap: 26px;
  min-height: 0;
  padding-block: 76px 84px;
  align-items: start;
}
.home-page .hero-copy { grid-area: copy; padding: 22px 0 0; }
.home-page .hero .eyebrow { font-size:var(--type-label); margin-bottom: 24px; }
.home-page .hero h1 {
  font-size:var(--type-h1);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.home-page .hero-title-line,
.home-page .hero h1 em { display: block; white-space: normal; }
.home-page .hero-description {
  grid-area: intro;
  max-width: 510px;
  margin: 0;
  font-size:var(--type-body)!important;
  line-height: 1.85;
}
.home-page .hero-actions { grid-area: actions; margin: 0; gap: 16px; }
.home-page .hero-actions .button { min-height: 54px; font-size:var(--type-action); padding: 15px 26px; }
.home-page .hero-actions .button.secondary {
  background: #eee5d5;
  color: var(--ink);
}
.home-page .hero-actions .button.secondary:hover { background: #e4d5bd; }
.home-page .hero-note {
  grid-area: note;
  display: flex;
  align-items: center;
  align-self: start;
  gap: 15px;
  margin: 7px 0 0;
  font-size:var(--type-body);
  line-height: 1.6;
  color: var(--ink);
}
.home-page .hero-note strong {
  display: block;
  margin-top: 4px;
  font-size:var(--type-small);
  font-weight: 500;
  color: var(--muted);
}
.home-page .note-heart {
  width: 46px;
  height: 46px;
  border: 0;
  background: #eee4d4;
  transform: translateY(6px);
}
.home-page .note-heart svg { width: 23px; height: 23px; }
.home-page .hero-visual {
  grid-area: visual;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 550px;
  max-width: 650px;
  margin: 0;
  padding: 0;
  justify-self: end;
  isolation: isolate;
}
.home-page .hero-visual::before { display: none; }
.home-page .hero-picture { position: relative; min-width: 0; min-height: 0; }
.home-page .hero-arch {
  position: relative;
  inset: auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  /* Arcul ocupă doar jumătatea de sus; laturile sunt drepte sub mijloc. */
  border-radius: 50% 50% 0 0 / 50% 50% 0 0;
  overflow: hidden;
  background: #dce5e8;
  z-index: 1;
}
.home-page .hero-arch::after { display: none; }
.home-page .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 76% !important;
  transform: none;
}
.home-page .hero-caption {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  line-height: 1.4;
}
.home-page .hero-caption em { font: 30px/1.2 var(--script); }
.home-page .hero-caption span { font-size: 12px; }

/* Accentele fotografiei sunt independente de fluxul textului. */
.home-page .hero-decor-frame {
  position: absolute;
  inset: -12px;
  border: 1px solid #b7cadd;
  border-radius: 50% 50% 0 0 / 50% 50% 0 0;
  transform: none;
  z-index: 0;
  pointer-events: none;
}
.home-page .hero-photo-small {
  position: absolute;
  left: -30px;
  bottom: 10px;
  width: clamp(170px, 14vw, 210px);
  padding: 8px 8px 0;
  background: #fffdf8;
  box-shadow: 0 10px 28px #1733511a;
  transform: rotate(-7deg);
  z-index: 3;
}
.home-page .hero-photo-small img { width: 100%; height: auto; aspect-ratio: 1600 / 1226; object-fit: cover; object-position: center 40% !important; }
.home-page .hero-photo-small > span { font: 24px/1.4 var(--script); text-align: center; padding: 7px 0; }
.home-page .hero-seal {
  top: 30px;
  right: -18px;
  width: 112px;
  height: 112px;
  gap: 9px;
  background: #faf5eb;
  border: 1px solid #bacddd;
  z-index: 4;
}
.home-page .hero-seal > span { display: block; font-size: 9px; line-height: 1.2; letter-spacing: .08em; }
.home-page .hero-seal svg { width: 26px; height: 26px; }
.home-page .hero-star { top: 48px; left: -24px; z-index: 3; }
.home-page .hero-star svg { width: 46px; height: 46px; }

.home-page .story-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(65px, 8vw, 140px);
  padding-block: 90px;
}
.home-page .story-copy p { max-width: 560px; font-size:var(--type-body); line-height: 1.85; }
.home-page .story-copy .underlink { font-size:var(--type-action); }
.home-page .story-art { width: 100%; max-width: 390px; justify-self: center; padding: 0; }
.home-page .story-art::before { display: none; }
.home-page .story-logo { width: 100%; transform: none; }
.home-page .story-art > .handwritten { text-align: center; margin-top: 18px; transform: none; }

.home-page .moments-section { padding-block: 86px; }
.home-page .section-heading { margin-bottom: 38px; }
.home-page .section-heading > div:last-child:not(:first-child) { max-width: 360px; }
.home-page .section-heading p:not(.eyebrow) { font-size:var(--type-body); line-height: 1.8; }
.home-page .section-heading .underlink { font-size:var(--type-action); }
.home-page .moments-grid { column-gap: 36px; row-gap: 32px; }
.home-page .moments-grid figure { min-width: 0; }
.home-page .moments-grid .photo-open { border-radius: 6px; }
.home-page .moment-large .photo-open { height: 620px; }
.home-page .moments-grid figure:not(.moment-large) .photo-open { height: 235px; }
.home-page .moments-grid figcaption > span { font-size:var(--type-label); letter-spacing: .1em; }
.home-page .moments-grid figcaption h3 { font-size:var(--type-h3); line-height: 1.1; }
.home-page .moment-large figcaption h3 { font-size:var(--type-h3); }

.home-page .purpose { padding-block: 86px; }
.home-page .purpose-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 2fr);
  gap: 70px;
  align-items: start;
}
.home-page .purpose-grid h2 { font-size:var(--type-h2); }
.home-page .purpose-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px; }
.home-page .purpose-list article { display: block; padding: 0; border: 0; }
.home-page .purpose-list article > span { color: var(--warm-accent); font-size:var(--type-label); line-height: 1; }
.home-page .purpose-list h3 { font-size:var(--type-h3); line-height: 1.1; margin-top: 22px; margin-bottom: 16px; }
.home-page .purpose-list p { font-size:var(--type-body); line-height: 1.8; }

.home-page .donate-feature { padding-block: 78px; }
.home-page .donate-feature-inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; }
.home-page .donate-symbol::before,
.home-page .donate-symbol::after { display: none; }
.home-page .donate-symbol > svg { color: #456c95; width: 100px; height: 100px; }
.home-page .donate-symbol > span { color: #7e6a49; }
.home-page .donate-feature p:not(.eyebrow) { max-width: 500px; font-size:var(--type-body); line-height: 1.8; }
.home-page .join-section p:not(.eyebrow) { font-size:var(--type-body); line-height: 1.8; max-width: 430px; }
.home-page .donate-feature .button,
.home-page .join-section .button { font-size:var(--type-action); }

@media (min-width: 761px) {
  .home-page .hero-visual { width: 90%; max-width: 585px; }
  .home-page .hero-photo { object-position: center 40% !important; }
}

@media (min-width: 1800px) {
  .home-page .hero-visual { min-height: 620px; }
  .home-page .hero { padding-block: 90px; }
}

@media (min-width: 761px) and (max-width: 1150px) {
  .home-page .hero { column-gap: 40px; row-gap: 22px; padding-block: 58px; }
  .home-page .hero-visual { min-height: 510px; }
  .home-page .hero-copy { padding-top: 0; }
  .home-page .hero-actions .button { font-size:var(--type-action); padding-inline: 18px; }
  .home-page .story-section { gap: 50px; padding-block: 70px; }
  .home-page .story-copy h2 { font-size:var(--type-h2); }
  .home-page .purpose-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; }
  .home-page .purpose-list { grid-template-columns: 1fr; gap: 26px; }
  .home-page .purpose-list article { display: flex; gap: 18px; }
  .home-page .purpose-list article > span { padding-top: 8px; }
  .home-page .purpose-list h3 { margin-top: 0; margin-bottom: 10px; }
  .home-page .moments-grid { gap: 28px; }
  .home-page .moment-large .photo-open { height: 570px; }
  .home-page .moments-grid figure:not(.moment-large) .photo-open { height: 205px; }
}

@media (max-width: 760px) {
  .home-page .wrap { width: calc(100% - 40px); }
  .home-page h2 { font-size:var(--type-h2); line-height: 1.1; }
  .home-page .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "visual" "intro" "actions" "note";
    grid-template-rows: auto;
    row-gap: 20px;
    padding-block: 28px 36px;
  }
  .home-page .hero-copy { padding: 0; }
  .home-page .hero .eyebrow { margin-bottom: 15px; font-size:var(--type-label); letter-spacing:var(--type-label-tracking); }
  .home-page .hero h1 { font-size:var(--type-h1); line-height: 1.02; letter-spacing: -.04em; }
  .home-page .hero-visual {
    min-height: 0;
    height: auto;
    max-width: none;
    gap: 10px;
    justify-self: stretch;
    align-self: auto;
    margin: 1px 0 0;
  }
  .home-page .hero-picture { aspect-ratio: 5 / 4; }
  .home-page .hero-arch { aspect-ratio: auto; border-radius: 18px 18px 5px 5px; }
  .home-page .hero-visual { gap: 36px; }
  .home-page .hero-photo { object-position: center 72% !important; }
  .home-page .hero-caption { justify-content: flex-start; }
  .home-page .hero-caption em { font-size: 27px; }
  .home-page .hero-caption span { display: none; }
  .home-page .hero-photo-small { display: block; left: 2px; bottom: -22px; width: clamp(124px, 34vw, 156px); padding: 6px 6px 0; transform: rotate(-5deg); }
  .home-page .hero-photo-small > span { font-size: 21px; line-height: 1.35; padding: 5px 0; white-space: nowrap; }
  .home-page .hero-decor-frame { inset: -6px; border-radius: 24px 24px 11px 11px; transform: none; }
  .home-page .hero-seal { top: -12px; right: 5px; width: 80px; height: 80px; gap: 8px; transform: rotate(8deg); }
  .home-page .hero-seal > span { display: none; }
  .home-page .hero-seal > span:first-child { display: block; font-size: 10px; letter-spacing: .03em; }
  .home-page .hero-seal svg { width: 25px; height: 25px; }
  .home-page .hero-star { top: 13px; left: 12px; color: #6c91b4; }
  .home-page .hero-star svg { width: 28px; height: 28px; }
  .home-page .hero-description { max-width: none; line-height: 1.7; }
  .home-page .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-page .hero-actions .button { min-height: 52px; padding: 13px 10px; font-size:var(--type-action); line-height: 1.4; text-align: center; }
  .home-page .hero-note { align-items: center; margin: 0; padding: 16px; background: #f0e6d6; border-radius: 12px; gap: 12px; font-size:var(--type-body); line-height: 1.55; }
  .home-page .hero-note strong { font-size:var(--type-small); margin-top: 4px; }
  .home-page .note-heart { width: 32px; height: 32px; background: transparent; }
  .home-page .note-heart svg { width: 25px; height: 25px; }

  .home-page .story-section { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 42px; }
  .home-page .story-copy h2 { margin-bottom: 22px; }
  .home-page .story-copy p { max-width: none; font-size:var(--type-body); line-height: 1.75; margin-bottom: 18px; }
  .home-page .story-copy .underlink { font-size:var(--type-action); min-height: 44px; margin-top: 0; }
  .home-page .story-art { display: flex; align-items: center; justify-content: flex-start; gap: 20px; max-width: none; width: 100%; }
  .home-page .story-logo { width: 92px; height: 92px; flex-shrink: 0; }
  .home-page .story-art > .handwritten { font-size: 29px; line-height: 1.2; margin: 0; text-align: left; }

  .home-page .moments-section { padding-block: 44px; }
  .home-page .section-heading { display: block; margin-bottom: 28px; }
  .home-page .section-heading > div:last-child:not(:first-child) { max-width: none; margin-top: 20px; }
  .home-page .section-heading p:not(.eyebrow) { font-size:var(--type-body); line-height: 1.7; margin-bottom: 8px; }
  .home-page .section-heading .underlink { font-size:var(--type-action); min-height: 44px; }
  .home-page .moments-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "season season" "nature place"; gap: 28px 16px; }
  .home-page .moment-season { grid-area: season; }
  .home-page .moment-nature { grid-area: nature; }
  .home-page .moment-place { grid-area: place; }
  .home-page .moment-large .photo-open,
  .home-page .moments-grid figure:not(.moment-large) .photo-open { height: auto; }
  .home-page .moments-grid .photo-open { height: auto; aspect-ratio: 4 / 5; border-radius: 8px; }
  .home-page .moments-grid .moment-season .photo-open { height: auto; aspect-ratio: 4 / 3; }
  .home-page .moments-grid .photo-open img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
  .home-page .moment-nature .photo-open img { object-position: center 80% !important; }
  .home-page .moment-place .photo-open img { object-position: center !important; }
  .home-page .moments-grid .photo-zoom { right: 9px; bottom: 9px; width: 38px; height: 38px; }
  .home-page .moments-grid figcaption { padding-top: 12px; }
  .home-page .moments-grid figcaption > span { font-size:var(--type-label); line-height: 1.5; letter-spacing: .07em; }
  .home-page .moments-grid figcaption h3,
  .home-page .moment-large figcaption h3 { font-size:var(--type-h3); line-height: 1.08; margin-top: 7px; }
  .home-page .moment-season figcaption h3 { font-size:var(--type-h3); }

  .home-page .purpose { padding-block: 44px; }
  .home-page .purpose-grid { display: block; }
  .home-page .purpose-grid h2 { font-size:var(--type-h2); margin-bottom: 30px; }
  .home-page .purpose-list { display: grid; grid-template-columns: 1fr; gap: 28px; }
  .home-page .purpose-list article { display: flex; gap: 16px; padding: 0; }
  .home-page .purpose-list article > span { min-width: 20px; padding-top: 8px; }
  .home-page .purpose-list h3 { font-size:var(--type-h3); line-height: 1.1; margin-top: 0; margin-bottom: 10px; }
  .home-page .purpose-list p { font-size:var(--type-body); line-height: 1.75; max-width: none; }

  .home-page .donate-feature { padding-block: 42px; }
  .home-page .donate-feature-inner { display: block; }
  .home-page .donate-symbol { display: none; }
  .home-page .donate-feature p:not(.eyebrow) { font-size:var(--type-body); line-height: 1.75; max-width: none; margin-block: 20px 24px; }
  .home-page .donate-feature .button { width: 100%; font-size:var(--type-action); }
  .home-page .join-section { padding-block: 42px; }
  .home-page .join-inner { display: block; }
  .home-page .join-section h2 { font-size:var(--type-h2); }
  .home-page .join-inner > div + div { margin-top: 22px; }
  .home-page .join-section p:not(.eyebrow) { max-width: none; font-size:var(--type-body); line-height: 1.75; }
  .home-page .join-section .button { width: 100%; font-size:var(--type-action); }
}

@media (max-width: 370px) {
  .home-page .wrap { width: calc(100% - 32px); }
  .home-page .hero h1 { font-size:var(--type-h1); }
  .home-page .hero-note { gap: 9px; padding: 14px 12px; }
  .home-page .hero-note > span:last-child { min-width: 0; }
  .home-page .story-art { gap: 15px; }
  .home-page .story-logo { width: 80px; height: 80px; }
  .home-page .story-art > .handwritten { font-size: 27px; }
}
