/*
Theme Name: Memori Landing
Description: FSE landing page for H Memorial Group
Author: VelvetyWeb
Version: 2.0.0
Text Domain: memori-landing
*/

/* ─── Fonts ──────────────────────────────────────────────────────── */

/* DM Sans — italic 300 */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 300;
  font-display: optional;
  src: url('/../assets/fonts/dm-sans-italic-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 300;
  font-display: optional;
  src: url('/../assets/fonts/dm-sans-italic-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DM Sans — normal 300 400 500 */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: optional;
  src: url('/../assets/fonts/dm-sans-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: optional;
  src: url('/../assets/fonts/dm-sans-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Frank Ruhl Libre — normal 400 600 */
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url('/../assets/fonts/frank-ruhl-normal-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url('/../assets/fonts/frank-ruhl-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url('/../assets/fonts/frank-ruhl-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── Design Tokens ──────────────────────────────────────────────── */
:root {
  --font-display: 'Frank Ruhl Libre', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  --color-bg:         #f5f3ef;
  --color-text:       #1c1c1c;
  --color-text-muted: #6b7280;
  --color-text-soft:  #9ca3af;
  --color-accent:     #c67c48;

  --radius-card: 20px;
  --wrapper-max: 1102px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.55;
  color: var(--color-text);
  background: #ffffff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
}
h2{
  font-size: clamp(30px, 5vw, 64px);
  font-style: normal;
  font-weight: 600;
  line-height: 113.333%;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

/* ─── Layout ─────────────────────────────────────────────────────── */
.wrapper {
  width: 100%;
  max-width: calc(var(--wrapper-max) + 32px);
  margin-right: auto;
  margin-left: auto;
  padding-right: 16px;
  padding-left: 16px;
}

main {
  overflow: clip;
}

/* ─── Blur backgrounds ───────────────────────────────────────────── */
.wp-site-blocks {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.blur-bg {
  position: absolute;
  width: min(1148px, 80vw);
  height: min(1148px, 80vw);
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, rgba(198,124,72,.16) 0%, rgba(198,124,72,.05) 45%, transparent 68%);
}

/* Desktop — Figma canvas 1440px → left in vw, top in % of page height (~5400px) */
.blur-bg--1 { left: -18%;  top:  -5%; } /* intro, top-left    */
.blur-bg--2 { left:  56%;  top:  23%; } /* offers, top-right  */
.blur-bg--3 { left: -22%;  top:  57%; } /* offers, bot-left   */
.blur-bg--4 { left:  57%;  top:  74%; } /* quote, right       */
.blur-bg--5 { left: -22%;  top:  79%; } /* quote, left        */

/* Tablet 768px — offers grid → 2 col, page ~30% taller than desktop */
@media (max-width: 1023px) {
  .blur-bg--1 { left: -30%;  top:  -3%; }
  .blur-bg--2 { left:  40%;  top:  18%; }
  .blur-bg--3 { left: -30%;  top:  52%; }
  .blur-bg--4 { left:  40%;  top:  72%; }
  .blur-bg--5 { left: -30%;  top:  78%; }
}

/* Mobile 767px — offers grid → 1 col, page ~2× desktop height */
@media (max-width: 767px) {
  .blur-bg--1 { left: -50%;  top:  -2%; }
  .blur-bg--2 { left:  20%;  top:  12%; }
  .blur-bg--3 { left: -50%;  top:  58%; }
  .blur-bg--4 { left:  20%;  top:  80%; }
  .blur-bg--5 { left: -50%;  top:  85%; }
}

#wp-skip-link { display: none !important; }

/* ─── Site Header ─────────────────────────────────────────────────── */
.site-header {
  padding: 48px 16px 16px;
}

.site-header__inner {
  display: flex;
  justify-content: center;
}

.site-header .wp-block-site-logo {
  margin: 0;
  line-height: 0;
}

.site-header .wp-block-site-logo a {
  display: inline-flex;
}

/* ─── Intro ──────────────────────────────────────────────────────── */
.intro {
  padding: clamp(16px, 4vw, 30px) 0 clamp(30px, 4vw, 48px);
}

/* 36px mobile → 84px desktop */
.intro__eyebrow,
.intro__heading {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, calc(1.19rem + 4.51vw), 5.25rem);
  font-weight: 600;
  line-height: 1.05;
}

.intro__eyebrow {
  color: var(--color-text-soft);
}

/* 18px mobile → 24px desktop */
.intro__body p {
  font-size: clamp(1.125rem, calc(1rem + 0.56vw), 1.5rem);
}

/* ─── Offers ─────────────────────────────────────────────────────── */
.offers {
  padding: 30px 0;
}

/* 30px mobile → 64px desktop */
.offers__heading {
  font-size: clamp(1.875rem, calc(1.13rem + 3.19vw), 4rem);
  line-height: 1.06;
  text-align: center;
  margin-bottom: clamp(20px, calc(14px + 1.5vw), 30px);
}

.offers__list {
  display: grid;
  gap: clamp(14px, calc(8px + 1.5vw), 30px);
}

/* ─── Offer Card ─────────────────────────────────────────────────── */
.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(280px, calc(30px + 26.3vw), 520px);
  padding: clamp(20px, calc(10px + 2.63vw), 48px);
  border-radius: var(--radius-card);
  overflow: hidden;
  transform: scale(1);
  transition: transform .3s ease-out;
}

/* Full-card clickable overlay */
.offer-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.offer-card__arrow{
  .offer-card--cream &{
    background-color: #4A4444;
  }
  .offer-card--ivory &{
    background-color: #8F744B;
  }
  .offer-card--silver &{
    background-color: #4A4444;
  }
  .offer-card--linen &{
    background-color: #A67C52;
  }
  .offer-card--sand &{
    background-color: #4B4A4A;
  }
  .offer-card--blush &{
    background-color: #18181A;
  }
  .offer-card--mist &{
    background-color: #7D8282;
  }
  .offer-card--peach &{
    background-color: #947556;
  }
  .offer-card--apricot &{
    background-color: #C67C48;
  }
  .offer-card--sky &{
    background-color: #0EA5E9;
  }
  .offer-card--ash &{
    background-color: #000000;
  }
  svg{
    transform: rotate(0deg);
    transform-origin: center;
    color: #ffffff;
    transition: transform .3s ease-out;
  }
} 
.offer-card:has(.offer-card__link:hover) .offer-card__arrow svg{
  transform: rotate(45deg);
}
.offer-card:has(.offer-card__link:hover){
  transform: scale(1.01);
}
.offer-card__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offer-card__info > *,
.offer-card .wp-block-heading,
.offer-card .wp-block-paragraph,
.offer-card h3,
.offer-card p {
  margin: 0 !important;
}

/* 20px mobile → 32px desktop */
.offer-card__title {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, calc(0.99rem + 1.13vw), 2rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-text);
  letter-spacing: 0.05rem;
}

/* 14px mobile → 18px desktop */
.offer-card__text {
  font-size: clamp(0.875rem, calc(0.76rem + 0.38vw), 1.125rem);
  font-weight: 300;
  line-height: 1.57;
  color: var(--color-text-muted);
}

/* ─── Card colour variants ───────────────────────────────────────── */

/* Light variants — dark text (default), only background differs */
.offer-card--cream   { background-color: #f8f5f0; }
.offer-card--ivory   { background-color: #fbf9ed; }
.offer-card--silver  { background-color: #e8e7e7; }
.offer-card--linen   { background-color: #f3efe8; }
.offer-card--sand    { background-color: #e9e3d4; }
.offer-card--blush   { background-color: #ece3dd; }
.offer-card--mist    { background-color: #ebeaeb; }
.offer-card--peach   { background-color: #fff4ea; }
.offer-card--apricot { background-color: #ffece0; }
.offer-card--sky     { background-color: #e7f4fa; }
.offer-card--ash     { background-color: #d3d3d3; }

/* Dark variant — overrides text and arrow colours */
.offer-card--black,
.offer-card--dark {
  background-color: #1c1f20;
}

.offer-card--black .offer-card__title,
.offer-card--dark  .offer-card__title {
  color: #ffffff;
}

.offer-card--black .offer-card__text,
.offer-card--dark  .offer-card__text {
  color: var(--color-text-soft);
}

.offer-card--black .offer-card__arrow,
.offer-card--dark  .offer-card__arrow {
  background: #C9A54C;
}
/* ─────────────────────────────────────────────────────────────────── */

.offer-card__bottom {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  min-height: 80px;
  padding-top: 24px;
}

.offer-card__logo {
  flex: 1 0 0;
  min-width: 0;
  display: flex !important;
  align-items: flex-end !important;
}
.hero{
  padding: clamp(16px, 3vw,30px) 0 clamp(30px, 4vw,48px);
}
.hero__content {
    max-width: 849px;
    margin: 0 auto;
}
.offer-card__logo img {
  max-height: clamp(60px, 7vw, 100px);
  width: auto;
  object-fit: contain;
}

/* 38px mobile → 46px desktop */
.offer-card__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(38px, 4vw, 46px);
  height: clamp(38px, 4vw, 46px);
  border-radius: 50%;
  background: rgba(28, 31, 32, 0.1);
  color: var(--color-text);
  pointer-events: none; /* overlay link handles clicks */
}

/* ─── Stats ──────────────────────────────────────────────────────── */
.stats {
  background: #000000;
}

.stats__panel {
  padding: clamp(48px, calc(14px + 4.23vw), 75px) 0;
}

.stats__head {
  display: grid;
  gap: 27px;
  margin-bottom: 30px;
}

.stats__head > * {
  margin: 0;
}

.stats__head h2 {
  /* 30px mobile → 64px desktop */
  font-size: clamp(1.875rem, calc(1.13rem + 3.19vw), 4rem);
  line-height: 1.07;
  color: #ffffff;
}

.stats__head p {
  font-size: clamp(1.125rem, calc(1rem + 0.56vw), 1.5rem);
  font-weight: 300;
  line-height: 1.4;
  color: #ffffff;
}

.stats__grid {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, calc(14px + 1.5vw), 48px);
}

.stats__item {
  display: grid;
  gap: 4px;
}

/* 60px mobile → 128px desktop */
.stats__number {
  font-family: var(--font-display);
  font-size: clamp(3.75rem, calc(2.25rem + 6.38vw), 8rem);
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
  margin: 0;
}

/* 14px mobile → 18px desktop */
.stats__label {
  font-size: clamp(0.875rem, calc(0.76rem + 0.38vw), 1.125rem);
  font-weight: 300;
  line-height: 1.57;
  color: var(--color-text-soft);
  margin: 0;
}

/* ─── Quote ──────────────────────────────────────────────────────── */
.quote-section {
  padding: clamp(48px, 10vw, 185px) 0;
}

.wp-block-quote.quote-block {
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}

/* 24px mobile → 44px desktop */
.quote-block p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, calc(1.06rem + 1.88vw), 2.75rem);
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.03em;
}

/* ─── Site Footer ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  padding: clamp(20px, calc(14px + 1.5vw), 30px) 0;
}

.site-footer__inner {
  display: flex;
  justify-content: center;
}

/* 14px mobile → 18px desktop */
.site-footer__copy {
  font-size: clamp(0.875rem, calc(0.76rem + 0.38vw), 1.125rem);
  font-weight: 300;
  color: var(--color-text-soft);
  margin: 0;
  text-align: center;
}

/* ─── Animations ─────────────────────────────────────────────────── */
.js-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--delay, 0ms);
}

.js-animate.is-visible {
  opacity: 1;
  transform: none;
}
.site-header .wp-block-site-logo {
    margin: 0;
    line-height: 0;
    max-width: 120px;
}
/* ─── Tablet 768px ───────────────────────────────────────────────── */
@media (min-width: 768px) {
  .wrapper {
    padding-right: 24px;
    padding-left: 24px;
  }

  .site-header {
    padding: 20px 0;
  }

  .offers {
    padding: 48px 0;
  }
  .site-header .wp-block-site-logo {
    margin: 0;
    line-height: 0;
    max-width: unset;
  }
}

/* ─── Desktop 1024px ─────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .wrapper {
    padding-right: 32px;
    padding-left: 32px;
  }

  /* Intro: centered on desktop */

  .intro__body {
    max-width: 849px;
    margin-left: auto;
    margin-right: auto;
  }

  .offers {
    padding: 48px 0 80px;
  }

  .offers__list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stats: two-column layout */
  .stats__panel {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
  }

  .stats__head {
    flex: 0 0 520px;
    max-width: 520px;
    margin-bottom: 0;
  }

  .stats__grid {
    flex-direction: column;
  }
}

/* ─── Block Editor ───────────────────────────────────────────────── */

/* Вимикаємо анімації в редакторі */
.editor-styles-wrapper .js-animate {
  opacity: 1;
  transform: none;
}

/* Редактор додає padding до .editor-styles-wrapper — компенсуємо */
.editor-styles-wrapper .wrapper {
  max-width: 100%;
  padding-right: 0;
  padding-left: 0;
}

/* Секції займають повну ширину в редакторі */
.editor-styles-wrapper .intro,
.editor-styles-wrapper .offers,
.editor-styles-wrapper .stats,
.editor-styles-wrapper .quote-section {
  width: 100%;
}

/* Картки в редакторі: flex-direction через wp-block-group */
.editor-styles-wrapper .offer-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.editor-styles-wrapper .offer-card > .wp-block-group {
  width: 100%;
}

.editor-styles-wrapper .offer-card__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}