/* =========================================================================
   Anett & Feri – Maldív-szigetek 2026.10.30
   Közös design tokenek + alaprendszer
   ========================================================================= */

:root {
  /* Akcentusok */
  --c-gold:        #BE9E5E;
  --c-gold-deep:   #9C7E45;
  --c-gold-soft:   #D8C39A;
  --c-ocean:       #2F5D7C;
  --c-ocean-deep:  #1F4257;
  --c-lagoon:      #7CB0C0;

  /* Semlegesek / hátterek */
  --c-cream:       #F5F0E8;
  --c-sand:        #ECE3D5;
  --c-mist:        #EAF1F2;
  --c-white:       #FFFFFF;

  /* Szöveg */
  --c-ink:         #243239;
  --c-muted:       #6E7C82;

  /* Tipográfia */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Mulish', system-ui, sans-serif;
  --font-script:  'Tangerine', cursive;

  --fs-hero:  clamp(2.75rem, 7vw, 6rem);
  --fs-h1:    clamp(2.25rem, 5vw, 3.75rem);
  --fs-h2:    clamp(1.75rem, 3.5vw, 2.75rem);
  --fs-h3:    1.375rem;
  --fs-body:  1.0625rem;
  --fs-small: .9rem;

  /* Térköz / forma */
  --container: 1140px;
  --container-wide: 1320px;
  --section-y: clamp(56px, 9vw, 120px);
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 10px 30px rgba(36,50,57,.08);
  --shadow-lg: 0 24px 60px rgba(31,66,87,.16);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  color: var(--c-ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }
/* Kiegyensúlyozott sortörés a rövid, kiemelt bekezdéseken (elegáns tördelés) */
.lead, .section-head p, .pagehero p, .band__content .quote, .cd__sub, .measure-narrow,
.notice__body p, .three__card p, .feature p, .deadline { text-wrap: balance; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.container-wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-y); }
.tint-cream { background: var(--c-cream); }
.tint-sand  { background: var(--c-sand); }
.tint-mist  { background: var(--c-mist); }
.tint-white { background: var(--c-white); }
.tint-ocean { background: var(--c-ocean-deep); color: var(--c-cream); }
.tint-ocean h1, .tint-ocean h2, .tint-ocean h3 { color: var(--c-white); }

.center { text-align: center; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--c-ink); }
.muted { color: var(--c-muted); }
.measure { max-width: 62ch; }
.measure-narrow { max-width: 48ch; }
.mx-auto { margin-inline: auto; }

/* =========================================================================
   Dekoratív réteg – textúra, motívumok, hullám-átmenetek (egységes brand)
   ========================================================================= */

/* Halvány hullám/lagúna textúra a meleg felületeken */
.tint-cream, .tint-sand {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 20 C 15 8, 30 8, 45 20 S 75 32, 90 20 S 120 8, 135 20' fill='none' stroke='%239C7E45' stroke-width='1' stroke-opacity='0.05'/%3E%3C/svg%3E");
  background-size: 240px 80px;
}
.tint-cream { background-color: var(--c-cream); }
.tint-sand  { background-color: var(--c-sand); }

/* Hullám szekció-átmenet (JS illeszti be két eltérő színű szekció közé) */
.wave-sep { position: relative; line-height: 0; overflow: hidden; pointer-events: none; }
.wave-sep svg { display: block; width: 100%; height: clamp(38px, 5vw, 64px); }

/* Aranymotívum a szekciócímek alatt – a hero hullámának kistestvére */
.section-head h2::after {
  content: "";
  display: block;
  width: 78px; height: 16px;
  margin: 1rem 0 0;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='78' height='16' viewBox='0 0 78 16'%3E%3Cg fill='none' stroke='%23BE9E5E' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M2 9 C 12 2, 22 2, 30 8'/%3E%3Cpath d='M76 9 C 66 2, 56 2, 48 8'/%3E%3C/g%3E%3Cpath d='M39 3 L43 8 L39 13 L35 8 Z' fill='%23BE9E5E'/%3E%3C/svg%3E");
}
.section-head.center h2::after { margin-inline: auto; }

/* Aloldal-fejléc aláírás-hullám a cím alatt */
.pagehero h1::after {
  content: "";
  display: block;
  width: 120px; height: 22px;
  margin: 1.1rem auto 0;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='22' viewBox='0 0 120 22'%3E%3Cpath d='M4 12 C 24 2, 40 2, 56 11 S 96 21, 116 10' fill='none' stroke='%23D8C39A' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M60 4 L65 11 L60 18 L55 11 Z' fill='%23D8C39A'/%3E%3C/svg%3E");
}
.pagehero:not(.pagehero--photo) h1::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='22' viewBox='0 0 120 22'%3E%3Cpath d='M4 12 C 24 2, 40 2, 56 11 S 96 21, 116 10' fill='none' stroke='%23BE9E5E' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M60 4 L65 11 L60 18 L55 11 Z' fill='%23BE9E5E'/%3E%3C/svg%3E");
}

/* Iniciálé (drop cap) */
.dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  font-weight: 600;
  line-height: .8;
  float: left;
  margin: .06em .12em 0 0;
  color: var(--c-gold-deep);
}

/* Görgetési előrehaladás-jelző */
.scrollprog { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: linear-gradient(90deg, var(--c-gold-soft), var(--c-gold), var(--c-gold-deep)); transition: width .12s linear; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .scrollprog { transition: none; } }

/* Duotone-szerű egységesítés a sávképeken */
.band img { filter: saturate(.92) contrast(1.03); }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(140deg, rgba(47,93,124,.35), rgba(190,158,94,.14)); mix-blend-mode: multiply; }
.band__content { z-index: 3; }

/* ---------- Eyebrow + section header ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-gold-deep);
  margin: 0 0 .9rem;
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before, .eyebrow.flanked::after {
  content: "";
  width: 28px; height: 1px;
  background: var(--c-gold);
  display: inline-block;
}
.eyebrow.flanked { }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head.center { display: flex; flex-direction: column; align-items: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--c-gold); display: inline-block; }

/* Thin gold divider with shell/wave motif */
.divider {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  color: var(--c-gold);
  margin: 0 auto;
}
.divider::before, .divider::after {
  content: ""; height: 1px; width: clamp(40px, 12vw, 120px);
  background: linear-gradient(90deg, transparent, var(--c-gold));
}
.divider::after { background: linear-gradient(90deg, var(--c-gold), transparent); }
.divider svg { width: 26px; height: 26px; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .95em 1.8em;
  border-radius: var(--radius);
  border: 1px solid var(--c-gold);
  color: var(--c-gold-deep);
  background: transparent;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn:hover { background: var(--c-gold); color: var(--c-white); border-color: var(--c-gold); }
.btn-solid { background: var(--c-gold); color: var(--c-white); }
.btn-solid:hover { background: var(--c-gold-deep); border-color: var(--c-gold-deep); }
.btn-ghost-light { color: var(--c-cream); border-color: rgba(245,240,232,.6); }
.btn-ghost-light:hover { background: var(--c-cream); color: var(--c-ink); border-color: var(--c-cream); }
.btn-lg { padding: 1.1em 2.4em; font-size: .88rem; }

/* =========================================================================
   Navigáció
   ========================================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(14px, 2.2vw, 22px) clamp(20px, 5vw, 40px);
  transition: background .45s var(--ease), box-shadow .45s var(--ease), padding .45s var(--ease);
}
.nav--solid {
  background: rgba(245,240,232,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(190,158,94,.18);
  padding-block: clamp(10px, 1.6vw, 14px);
}
.nav__brand {
  display: inline-flex; align-items: center; gap: .6rem; flex-shrink: 0;
  text-decoration: none; color: inherit;
  font-family: var(--font-display);
  letter-spacing: .04em;
}
.nav__monogram {
  font-size: 1.5rem; font-weight: 600; color: var(--c-gold-deep);
  line-height: 1;
}
.nav__monogram .amp { font-style: italic; color: var(--c-gold); padding: 0 .08em; }
.nav__brandtext { display: flex; flex-direction: column; line-height: 1.05; }
.nav__brandtext b { font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav__brandtext small { font-family: var(--font-body); font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--c-muted); }
.nav--light:not(.nav--solid) .nav__monogram { color: #fff; }
.nav--light:not(.nav--solid) .nav__brandtext b { color: #fff; }
.nav--light:not(.nav--solid) .nav__brandtext small { color: rgba(255,255,255,.8); }

.nav__menu { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.8rem); }
.nav__links { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.6rem); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none; white-space: nowrap;
  font-size: .82rem; font-weight: 600; letter-spacing: .05em;
  color: var(--c-ink);
  padding: .4em 0; position: relative;
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--c-gold); transition: width .35s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--c-gold-deep); }
.nav--light:not(.nav--solid) .nav__links a { color: rgba(255,255,255,.92); }
.nav--light:not(.nav--solid) .nav__links a[aria-current="page"] { color: #fff; }

.nav__cta { white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .nav__brand { animation: navIn 1s var(--ease) .1s both; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 901px) {
  .nav__menu  { animation: navIn 1s var(--ease) .25s both; }
}
@keyframes navIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--c-ink); margin: 5px 0; transition: .3s var(--ease); }
.nav--light:not(.nav--solid) .nav__toggle span { background: #fff; }

@media (max-width: 900px) {
  .nav__toggle { display: block; z-index: 120; }
  .nav__menu {
    position: fixed; inset: 0; z-index: 110;
    background: rgba(245,240,232,.98);
    backdrop-filter: blur(8px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1.4rem;
    transform: translateY(-100%);
    transition: transform .5s var(--ease);
    padding: 2rem;
  }
  .nav__menu.open { transform: translateY(0); }
  .nav__links { flex-direction: column; gap: 1.4rem; }
  .nav__links a { font-size: 1.3rem; font-family: var(--font-display); }
  .nav__links a::after { display: none; }
  .nav--light:not(.nav--solid) .nav__links a { color: var(--c-ink); }
  .nav__cta { margin-top: .5rem; }
  body.menu-open { overflow: hidden; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav--light:not(.nav--solid) .nav__toggle.open span { background: var(--c-ink); }
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer { background: var(--c-ocean-deep); color: rgba(245,240,232,.82); padding-block: clamp(48px, 8vw, 80px) 2.5rem; position: relative; overflow: hidden; }
.footer__inner { display: grid; gap: 2.5rem; text-align: center; position: relative; z-index: 1; }
.footer__monogram { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--c-gold-soft); line-height: 1; }
.footer__monogram .amp { font-style: italic; color: var(--c-gold); }
.footer__date { letter-spacing: .3em; text-transform: uppercase; font-size: .82rem; color: var(--c-lagoon); margin-top: .6rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; justify-content: center; list-style: none; padding: 0; margin: 0; }
.footer__links a { text-decoration: none; font-size: .85rem; letter-spacing: .04em; color: rgba(245,240,232,.82); transition: color .3s var(--ease); }
.footer__links a:hover { color: var(--c-gold-soft); }
.footer__fine { font-size: .78rem; color: rgba(245,240,232,.45); letter-spacing: .04em; }
.footer__fine a { color: rgba(245,240,232,.7); }
.footer__invite { display: inline-flex; align-items: center; gap: .55em; white-space: nowrap; text-decoration: none; font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--c-gold-soft); border: 1px solid rgba(216,195,154,.5); border-radius: 999px; padding: .65em 1.4em; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.footer__invite:hover { background: var(--c-gold); color: #fff; border-color: var(--c-gold); }

/* ---------- Accessibility ---------- */
.skip-link { position: fixed; top: -120px; left: 12px; z-index: 300; background: var(--c-ocean-deep); color: #fff; padding: .75em 1.25em; border-radius: var(--radius); font-weight: 700; font-size: .9rem; text-decoration: none; box-shadow: var(--shadow-lg); transition: top .25s var(--ease); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }
.btn-solid:focus-visible, .nav__cta:focus-visible { outline-color: var(--c-ink); }
.linkblock:focus-visible, .card:focus-visible, .gallery figure:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 4px; }

/* =========================================================================
   Kártyák
   ========================================================================= */
.grid { display: grid; gap: clamp(1.2rem, 3vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card__body h3 { font-size: var(--fs-h3); }
/* Arany-csíkos kártya-variáns (szöveges "highlight" kártyákhoz) */
.card--accent { position: relative; border: 1px solid rgba(190,158,94,.2); }
.card--accent::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; z-index: 2; background: linear-gradient(90deg, var(--c-gold-soft), var(--c-gold), var(--c-gold-soft)); }

/* "Link block" used on homepage */
.linkblock { position: relative; display: block; text-decoration: none; color: var(--c-white); border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; }
.linkblock img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.linkblock::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(31,66,87,.85) 0%, rgba(31,66,87,.15) 60%, rgba(31,66,87,.05) 100%); transition: background .5s var(--ease); }
.linkblock:hover img { transform: scale(1.06); }
.linkblock__body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: clamp(1.4rem, 3vw, 2rem); }
.linkblock__body .eyebrow { color: var(--c-gold-soft); }
.linkblock__body .eyebrow::before { background: var(--c-gold-soft); }
.linkblock__body h3 { color: #fff; font-size: 1.6rem; margin-bottom: .3rem; }
.linkblock__more { display: inline-flex; align-items: center; gap: .5em; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--c-gold-soft); margin-top: .6rem; }
.linkblock__more svg { transition: transform .4s var(--ease); }
.linkblock:hover .linkblock__more svg { transform: translateX(5px); }

/* =========================================================================
   Scroll reveal
   ========================================================================= */
/* Koreografált, elemenként testreszabható belépő (a design-alternativa receptje nyomán).
   Safe base: always visible (no-JS / reduced-motion / fallback show content). */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  html.reveal-ready .reveal:not(.is-in) { opacity: 0; }
  /* Per-element vars: --tx, --ty, --s (scale), --r (rotate), --reveal-delay */
  .reveal.is-in { animation: revealCustom 1.3s var(--ease) var(--reveal-delay, 0ms) both; }
  .reveal.from-left.is-in  { --tx: -38px; --ty: 0px; }
  .reveal.from-right.is-in { --tx: 38px;  --ty: 0px; }
  .reveal.zoom.is-in       { --s: .9;     --ty: 0px; }
  .reveal.tilt.is-in       { --r: -2.5deg; --ty: 26px; }
  /* 3D flip akcentus – ritkán, kiemelt elemre */
  .reveal.flip.is-in { animation: flipInX 1.25s var(--ease) var(--reveal-delay, 0ms) both; transform-origin: center bottom; backface-visibility: hidden; }
}
@keyframes revealCustom {
  from { opacity: 0; transform: translate3d(var(--tx, 0px), var(--ty, 30px), 0) scale(var(--s, 1)) rotate(var(--r, 0deg)); }
  to   { opacity: 1; transform: none; }
}
@keyframes flipInX {
  from { opacity: 0; transform: perspective(560px) rotate3d(1,0,0,52deg); }
  60%  { opacity: 1; transform: perspective(560px) rotate3d(1,0,0,-9deg); }
  80%  { transform: perspective(560px) rotate3d(1,0,0,4deg); }
  to   { transform: perspective(560px); }
}

/* =========================================================================
   Full-bleed photo band
   ========================================================================= */
.band { position: relative; height: clamp(320px, 55vh, 560px); overflow: hidden; display: grid; place-items: center; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(31,66,87,.32); }
.band__content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 2rem; max-width: 60ch; }
.band__content h2 { color: #fff; font-size: var(--fs-h2); }
.band__content .quote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 3.5vw, 2.4rem); line-height: 1.3; }

/* =========================================================================
   Subpage hero (small)
   ========================================================================= */
.pagehero { position: relative; padding-top: clamp(140px, 20vh, 220px); padding-bottom: clamp(60px, 10vw, 110px); overflow: hidden; text-align: center; }
.pagehero--photo { color: #fff; }
.pagehero--photo .eyebrow { color: var(--c-gold-soft); }
.pagehero--photo .eyebrow::before, .pagehero--photo .eyebrow::after { background: var(--c-gold-soft); }
.pagehero__bg { position: absolute; inset: 0; z-index: 0; }
.pagehero__bg img { width: 100%; height: 100%; object-fit: cover; }
.pagehero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(31,66,87,.55), rgba(31,66,87,.35)); }
.pagehero .container { position: relative; z-index: 1; }
.pagehero h1 { font-size: var(--fs-h1); }
.pagehero--photo h1 { color: #fff; }
.pagehero p { margin-top: 1rem; }
.pagehero--photo p { color: rgba(255,255,255,.9); }

/* small generic spacing utils */
.stack > * + * { margin-top: 1rem; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; } .mt-4 { margin-top: 2.4rem; }
.flex-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.flex-center { justify-content: center; align-items: center; }
