/* Homepage: quiet editorial layout. Shared checkout/catalog styles stay in main.css. */
.home-page {
  --mx-ink: #142c3d;
  --mx-muted: #66737c;
  --mx-line: #e6eaed;
  --mx-soft: #f3f5f6;
  --mx-accent: #b5da3d;
  --mx-ease: cubic-bezier(.22, .61, .36, 1);
  background: #fff;
  color: var(--mx-ink);
  font-size: 16px;
  line-height: 1.6;
}
.home-page .site-header { background: #fff; }
.home-page :is(a, button) { -webkit-tap-highlight-color: transparent; }
.home-page :is(a, button):focus-visible { outline: 2px solid var(--mx-ink); outline-offset: 4px; }
.home-page main { padding-bottom: 40px; }

.mx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Type */
.mx-kicker { margin: 0 0 16px; color: var(--mx-muted); font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.mx-section h2 { margin: 0; max-width: 18ch; font-size: clamp(30px, 3.8vw, 48px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.mx-head { margin-bottom: 48px; }
.mx-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; }

/* Links and buttons */
.mx-btn {
  display: inline-flex; align-items: center; gap: 14px; min-height: 50px; padding: 0 24px;
  border-radius: 4px; background: var(--mx-ink); color: #fff; font-weight: 500;
  transition: background-color 300ms var(--mx-ease);
}
.mx-btn:hover { color: #fff; }
.mx-arrow { display: inline-block; transition: transform 400ms var(--mx-ease); }
.mx-textlink {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--mx-ink); font-weight: 500;
}
.mx-textlink::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor;
  transform-origin: right; transition: transform 500ms var(--mx-ease);
}

/* Hero */
 .mx-hero {
  display: flex; align-items: center; min-height: 640px; min-height: min(760px, 85svh);
  padding-block: clamp(72px, 10vw, 140px); color: #fff; background-color: #142c3d;
  background-image: linear-gradient(90deg, rgba(8, 22, 32, .86), rgba(8, 22, 32, .58)), var(--mx-hero-image, url("../fotomagic-hero-editorial.jpg"));
  background-size: cover; background-position: center;
}
.mx-hero > .mx-wrap { width: 100%; }
.mx-hero .mx-hero__title { color: #fff; text-shadow: 0 2px 24px #0003; }
.mx-hero .mx-hero__lead { color: #f1f4f6; }
.mx-hero .mx-btn { background: #d5f36b; color: #142c3d; }
.mx-hero .mx-btn:hover { background: #e2fa92; color: #142c3d; }
.mx-hero .mx-textlink, .mx-hero .mx-textlink:hover { color: #fff; }
.home-page .mx-hero :is(a, button):focus-visible { outline-color: #d5f36b; }
@media (max-width: 759px) {
  .mx-hero { min-height: 560px; padding-block: 64px; background-position: 58% center;
    background-image: linear-gradient(180deg, rgba(8, 22, 32, .78), rgba(8, 22, 32, .72)), var(--mx-hero-image, url("../fotomagic-hero-editorial.jpg")); }
  .mx-hero__title { font-size: clamp(40px, 8.4vw, 64px); }
}
.mx-hero__title { margin: 0; font-size: clamp(46px, 8.4vw, 116px); font-weight: 500; line-height: .98; letter-spacing: -.055em; }
.mx-line { display: block; overflow: hidden; padding-bottom: .06em; }
.mx-line > span { display: inline-block; }
.mx-dot { color: var(--mx-accent); }
.mx-hero__row { display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 48px); }
.mx-hero__lead { margin: 0; max-width: 440px; color: var(--mx-muted); font-size: clamp(16px, 1.5vw, 18px); }
.mx-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* Sections */
.mx-section { padding-top: clamp(88px, 12vw, 160px); }

.mx-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.mx-steps li { position: relative; padding: 28px 0 32px; }
.mx-steps__num { display: block; margin-bottom: 36px; color: var(--mx-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.mx-steps h3 { margin: 0 0 8px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.mx-steps p { margin: 0; max-width: 300px; color: var(--mx-muted); font-size: 15px; }

.mx-split { display: grid; gap: 8px; }
.mx-split .mx-head { margin-bottom: 32px; }
.mx-facts { margin: 0; }
.mx-facts > div { position: relative; display: grid; gap: 6px; padding: 24px 0; }
.mx-facts dt { font-family: "Outfit", sans-serif; font-size: 19px; font-weight: 500; letter-spacing: -.015em; }
.mx-facts dd { margin: 0; max-width: 420px; color: var(--mx-muted); font-size: 15px; }

/* Hairlines that draw in */
.mx-steps li::before, .mx-facts > div::before, .mx-closing__inner::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--mx-line);
  transform-origin: left;
}
.mx-closing__inner::before { background: var(--mx-ink); }

.mx-albums { display: grid; gap: 48px 24px; }
.mx-album { display: block; color: var(--mx-ink); }
.mx-album:hover { color: var(--mx-ink); }
.mx-album__img { overflow: hidden; border-radius: 2px; background: var(--mx-soft); }
.mx-album__img img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1200ms var(--mx-ease); }
.mx-album__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 18px; }
.mx-album h3 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.mx-album__meta span { color: var(--mx-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.mx-album p { margin: 6px 0 0; max-width: 340px; color: var(--mx-muted); font-size: 15px; }

.mx-closing__inner { position: relative; display: grid; gap: 32px; padding-top: 40px; }
.mx-closing h2 { max-width: 14ch; font-size: clamp(34px, 5vw, 64px); }
.mx-closing__side { display: grid; gap: 24px; justify-items: start; align-content: end; }
.mx-closing__side p { margin: 0; max-width: 360px; color: var(--mx-muted); }

/* Motion: only when JS is present (html.mx-motion) and the user has not asked for less motion. */
@media (prefers-reduced-motion: no-preference) {
  .mx-motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--mx-ease) var(--d, 0ms), transform 900ms var(--mx-ease) var(--d, 0ms); }
  .mx-motion .mx-line[data-reveal] { opacity: 1; transform: none; }
  .mx-motion .mx-line[data-reveal] > span { transform: translateY(105%); transition: transform 1100ms var(--mx-ease) var(--d, 0ms); }
  .mx-motion [data-reveal="image"] { transform: none; transition: opacity 1400ms var(--mx-ease) 200ms; }
  .mx-motion [data-reveal="image"] img { transform: scale(1.06); transition: transform 1800ms var(--mx-ease) 200ms; }
  .mx-motion [data-reveal="line"] { transform: none; }
  .mx-motion [data-reveal="line"] > :not(:first-child), .mx-motion [data-reveal="line"] > :first-child { transform: translateY(12px); transition: transform 900ms var(--mx-ease) calc(var(--d, 0ms) + 150ms); }
  .mx-motion [data-reveal="line"]::before { transform: scaleX(0); transition: transform 1100ms var(--mx-ease) var(--d, 0ms); }

  .mx-motion [data-reveal].is-in { opacity: 1; transform: none; }
  .mx-motion .mx-line[data-reveal].is-in > span,
  .mx-motion [data-reveal="line"].is-in > * { transform: none; }
  .mx-motion [data-reveal="image"].is-in img { transform: scale(1); }
  .mx-motion [data-reveal="line"].is-in::before { transform: scaleX(1); }
}

/* Footer keeps every original link; JS progressively enhances the groups. */
.home-page .site-footer { padding: 32px 0 24px; }
.home-page .site-shell--footer { max-width: 1280px; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.home-page .footer__intro { display: grid; grid-template-columns: minmax(0, 1fr) 44px; column-gap: 12px; align-items: start; padding-bottom: 24px; }
.home-page .footer__intro > :is(.footer__logo, p) { grid-column: 1 / -1; }
.home-page .footer__contact-actions { grid-column: 1; }
.home-page .footer__intro > .home-chat-dock { grid-column: 2; grid-row: 3 / 5; align-self: center; }
.home-page .footer__logo { min-height: 44px; border: 0; }
.home-page .footer__logo-image { height: 40px; max-width: 172px; }
.home-page .footer__intro p { max-width: 360px; margin: 16px 0 12px; color: var(--muted); font-size: 14px; }
.home-page .footer__contact-actions { gap: 0; }
.home-page .footer__contact-actions a { min-height: 44px; padding: 8px 0; font-size: 14px; font-weight: 500; background: transparent; }
.home-page .footer__contact-actions i { color: var(--muted); }
.home-page .footer__withdrawal-button { grid-column: 1; min-height: 44px; padding: 10px 14px; margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; font-weight: 600; color: #142c3d !important; }
.home-page :is(.footer__nav, .footer__company, .footer__address) { display: block; padding: 0; border-top: 1px solid var(--border); }
.home-page .footer__heading { margin: 0; padding: 16px 0; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; }
.home-footer-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; border: 0; background: transparent; color: inherit; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.home-footer-toggle::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 4px 4px 16px; }
.home-footer-toggle[aria-expanded="true"]::after { transform: rotate(225deg); margin-bottom: 0; }
.home-footer-panel { padding-bottom: 16px; }
.home-footer-panel[hidden] { display: none; }
.home-page .footer__nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; width: 100%; font-size: 14px; font-weight: 500; }
.home-page .footer__company-list { gap: 8px; }
.home-page .footer__company-list div { grid-template-columns: minmax(104px, .8fr) minmax(0, 1fr); gap: 12px; padding: 0; }
.home-page .footer__company-list dt, .home-page .footer__company-list dd { font-size: 13px; font-weight: 500; }
.home-page .footer__address address { font-size: 14px; font-weight: 500; }
.home-page .footer__social { margin-top: 12px; gap: 8px; }
.home-page .footer__social a { width: 44px; height: 44px; color: #142c3d !important; border-radius: 10px; }
.home-page .footer__legal { max-width: 1248px; margin: 24px auto 0; padding: 24px 16px 0; text-align: left; border-top: 1px solid var(--border); }
.home-page .footer__legal-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin-bottom: 16px; }
.home-page .footer__legal-links a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 13px; font-weight: 500; line-height: 1.5; }
.home-page .footer__legal small { max-width: 420px; font-size: 12px; }
.home-page .footer__avora-logo { margin: 16px 0 0; min-height: 44px; }
.home-page .footer__avora-logo img { height: 28px; }

/* On compact screens the contact dock has its own footer space, so it
   cannot obscure product actions. Wide screens have a floating side rail. */
.home-chat-dock { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; padding: 0; }
.home-chat { display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-size: 21px; box-shadow: 0 3px 10px #25232114; }
.home-page .home-chat--messenger,
.home-page .home-chat--messenger:hover { background: #fff; color: #1877f2; }
.home-page .home-chat--whatsapp,
.home-page .home-chat--whatsapp:hover { background: #25d366; color: #fff; }
.home-page.cart-drawer-open .home-chat-dock { visibility: hidden; }

@media (min-width: 600px) {
  .mx-albums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .mx-hero__row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
  .mx-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .mx-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .mx-facts > div { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: baseline; }
  .mx-closing__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; padding-top: 56px; }
  .home-page .site-footer { padding-top: 40px; }
  .home-page .site-shell--footer { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
  .home-page .footer__intro { grid-column: 1 / -1; padding-bottom: 0; }
  .home-page :is(.footer__nav, .footer__company, .footer__address) { border-top: 0; }
  .home-page .footer__heading { padding: 0 0 16px; }
  .home-footer-toggle { min-height: 0; cursor: default; }
  .home-footer-toggle::after { display: none; }
}
@media (min-width: 960px) {
  .mx-albums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mx-albums .mx-album:nth-child(2) { margin-top: 72px; }
  .home-page main { padding-bottom: 72px; }
}
@media (min-width: 1101px) {
  .home-page .site-shell--footer { grid-template-columns: 1.25fr 1fr 1fr .9fr; gap: 32px; }
  .home-page .footer__intro { grid-column: auto; }
  .home-page .footer__company-list div { grid-template-columns: 1fr; gap: 0; }
  .home-page .footer__legal-links { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 0 24px; }
}
@media (min-width: 1400px) {
  .home-page .footer__intro { grid-template-columns: minmax(0, 1fr); }
  .home-chat-dock { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 0; background: transparent; z-index: 15; }
}
@media (max-width: 480px) {
  .mx-hero__actions .mx-btn { width: 100%; justify-content: space-between; }
}
@media (hover: hover) and (pointer: fine) {
  .mx-btn:hover { background: #0b1c28; }
  .mx-btn:hover .mx-arrow, .mx-textlink:hover .mx-arrow { transform: translateX(4px); }
  .mx-textlink:hover { color: var(--mx-ink); }
  .mx-textlink:hover::after { transform: scaleX(0); }
  .mx-album:hover .mx-album__img img { transform: scale(1.035); }
}
@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after { transition: none !important; scroll-behavior: auto !important; }
}
