/* ═══════════════════════════════════════════════════════════
   NISA FLOWERS — nisaflowers.ro
   Paletă: ivoriu cald, roz pudrat (din logo), cerneală caldă,
   accente de roz-trandafiriu, salvie și auriu vechi.
   ═══════════════════════════════════════════════════════════ */

:root {
  --ivory:  #FCFAF7;
  --blush:  #F3EBE6;
  --blush-2:#E8D9D1;
  --ink:    #3B322E;
  --ink-soft:#6B5D56;
  --rose:   #C0876F;
  --rose-deep:#A96B55;
  --sage:   #82907C;
  --gold:   #C8A24B;
  --line:   #DED3CC;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", sans-serif;

  --w-max: 1180px;
  --dur: .8s;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* textură fină de hârtie */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.52 0 0 0 0 0.47 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--blush-2); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 em, h2 em { font-style: italic; color: var(--rose-deep); }

p { margin: 0 0 1em; }

a { color: var(--rose-deep); text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: .7rem 1.2rem;
  background: var(--ink);
  color: var(--ivory);
  border-radius: 0 0 .5rem .5rem;
  text-decoration: none;
  transition: top .25s var(--ease);
}
.skip-link:focus-visible { top: 0; }

/* ═════════ Butoane ═════════ */
.btn {
  display: inline-block;
  padding: .85rem 1.9rem;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-solid {
  background: var(--ink);
  color: var(--ivory);
  box-shadow: 0 8px 22px rgba(59, 50, 46, .22);
}
.btn-solid:hover { background: var(--rose-deep); box-shadow: 0 12px 26px rgba(169, 107, 85, .32); }

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }

.btn-mare { padding: 1.05rem 2.4rem; font-size: 1rem; }

/* ═════════ Header ═════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ivory) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(59, 50, 46, .06);
}

.header-inner {
  max-width: var(--w-max);
  margin-inline: auto;
  padding: .8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark img { width: 44px; height: 44px; display: block; }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .14em;
}
.brand-text em { font-style: italic; letter-spacing: .02em; color: var(--rose-deep); margin-left: .15em; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--ink);
  text-decoration: none;
  font-size: .98rem;
  letter-spacing: .05em;
  position: relative;
  padding: .3rem 0;
}
.nav-list a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--rose-deep);
  transition: right .3s var(--ease);
}
.nav-list a:not(.nav-cta):hover::after,
.nav-list a:not(.nav-cta):focus-visible::after { right: 0; }

.nav-cta {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: .45rem 1.3rem !important;
  transition: background .3s, color .3s;
}
.nav-cta:hover { background: var(--ink); color: var(--ivory) !important; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ivory);
  cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px;
  height: 1.6px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bar { top: 50%; transform: translateY(-50%); }
.nav-toggle-bar::before { top: -7px; left: 0; right: 0; }
.nav-toggle-bar::after { top: 7px; left: 0; right: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ═════════ Hero ═════════ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(52rem 32rem at 88% 0%, var(--blush) 0%, transparent 62%),
    radial-gradient(40rem 30rem at 0% 100%, color-mix(in srgb, var(--sage) 16%, transparent) 0%, transparent 60%),
    var(--ivory);
}

.hero-inner {
  max-width: var(--w-max);
  margin-inline: auto;
  padding: clamp(4rem, 9vh, 7rem) 1.5rem clamp(4rem, 8vh, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.eyebrow {
  font-size: .82rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 4.9rem);
  margin-bottom: 1.2rem;
}

.hero-lead {
  max-width: 34em;
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* cercul cu buchetul desenat */
.hero-art { display: grid; place-items: center; }
.hero-circle {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blush);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent),
              0 30px 60px rgba(59, 50, 46, .10);
}
.bouquet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* text circular rotitor */
.hero-circle-text {
  position: absolute;
  inset: -34px;
  animation: rotire 40s linear infinite;
}
.hero-circle-text svg { width: 100%; height: 100%; overflow: visible; }
.hero-circle-text text {
  font-family: var(--font-body);
  font-size: 9.5px;
  letter-spacing: .42em;
  text-transform: uppercase;
  fill: var(--ink-soft);
}
@keyframes rotire { to { transform: rotate(1turn); } }

/* petale plutitoare */
.petals { position: absolute; inset: 0; pointer-events: none; }
.petal {
  position: absolute;
  width: 26px;
  top: -40px;
  opacity: 0;
  animation: cadere linear infinite;
}
.p1 { left: 12%; animation-duration: 14s; animation-delay: 0s; }
.p2 { left: 32%; width: 18px; animation-duration: 18s; animation-delay: 4s; }
.p3 { left: 55%; width: 22px; animation-duration: 16s; animation-delay: 8s; }
.p4 { left: 72%; width: 16px; animation-duration: 20s; animation-delay: 2s; }
.p5 { left: 88%; animation-duration: 15s; animation-delay: 10s; }
@keyframes cadere {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  8%   { opacity: .8; }
  90%  { opacity: .6; }
  100% { transform: translateY(110vh) rotate(340deg); opacity: 0; }
}

/* ═════════ Bandă defilantă ═════════ */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ivory);
  padding: 1rem 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: defilare 30s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  white-space: nowrap;
  color: var(--ink-soft);
}
.marquee i { font-style: normal; color: var(--rose); font-size: .9rem; }
@keyframes defilare { to { transform: translateX(-50%); } }

/* ═════════ Secțiuni ═════════ */
.section { padding: clamp(4.5rem, 10vh, 7.5rem) 0; position: relative; }
.section-inner { max-width: var(--w-max); margin-inline: auto; padding-inline: 1.5rem; }

.section-nr {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--rose);
  letter-spacing: .2em;
  margin-bottom: .4rem;
}
.section-nr::after {
  content: "";
  display: inline-block;
  width: 3.2rem;
  height: 1px;
  background: var(--rose);
  margin-left: .8rem;
  vertical-align: middle;
  opacity: .6;
}

.section h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.section-sub { color: var(--ink-soft); max-width: 40em; }
.section-head { margin-bottom: clamp(2.2rem, 5vh, 3.5rem); }

/* ═════════ Despre / Ateliere (split) ═════════ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split-invers { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }

.despre { background: linear-gradient(180deg, var(--ivory), var(--blush) 130%); }
.colectii { background: #F8F5F1; }

.despre-fapte {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.despre-fapte li {
  display: grid;
  gap: .1rem;
  padding-left: 1.4rem;
  position: relative;
}
.despre-fapte li::before {
  content: "✿";
  position: absolute;
  left: 0;
  top: .1rem;
  color: var(--rose);
  font-size: .8rem;
}
.despre-fapte strong { font-weight: 500; letter-spacing: .02em; }
.despre-fapte span { color: var(--ink-soft); font-size: .95rem; }

/* rame foto */
.split-media { position: relative; }
.frame {
  position: relative;
  z-index: 1;
  margin: 0;
  background: #FFFDFC;
  padding: .9rem .9rem 0;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(59, 50, 46, .12);
  transform: rotate(-1.6deg);
  transition: transform .5s var(--ease);
}
.split-invers .frame { transform: rotate(1.6deg); }
.split-media:hover .frame { transform: rotate(0deg); }

.frame figcaption {
  font-family: var(--font-display);
  font-style: italic;
  text-align: center;
  padding: .7rem 0 .9rem;
  color: var(--ink-soft);
}

.frame-portrait > img { aspect-ratio: 3 / 4; }
.frame-landscape > img { aspect-ratio: 4 / 3; }

.frame-back {
  position: absolute;
  inset: 6% -4% -4% 6%;
  background: var(--blush-2);
  z-index: 0;
  transform: rotate(1.8deg);
}
.split-invers .frame-back { inset: 6% 6% -4% -4%; transform: rotate(-1.8deg); }

/* Fotografiile umplu cadrul, fără a deforma imaginea. */
.card-media img,
.g-item img,
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.frame img { height: auto; }

img.focus-upper { object-position: 50% 34%; }
img.focus-lower { object-position: 50% 68%; }
img.focus-left { object-position: 42% 50%; }

/* ═════════ Colecții ═════════ */
.colectii-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}

.card {
  background: #FFFDFC;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1rem 1rem 1.6rem;
  box-shadow: 0 10px 30px rgba(59, 50, 46, .04);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 48px rgba(59, 50, 46, .13);
}
.card:nth-child(even) { margin-top: 1.6rem; }

.card-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 1.2rem;
  background: var(--blush);
}

.card h3 {
  font-size: 1.55rem;
  margin: 0 0 .3rem;
  padding-inline: .4rem;
}
.card p {
  margin: 0;
  padding-inline: .4rem;
  color: var(--ink-soft);
  font-size: .97rem;
}

/* ═════════ Galerie ═════════ */
.galerie { background: #F3F0EA; }

.galerie-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}
.g-item {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--blush);
  box-shadow: 0 12px 28px rgba(59, 50, 46, .06);
}
.card-media img,
.g-item img { transition: transform .6s var(--ease), filter .4s ease; }
.card:hover .card-media img,
.g-item:hover img { transform: scale(1.035); filter: saturate(1.05) brightness(1.015); }

.galerie-nota {
  margin: 2.4rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* ═════════ Ateliere ═════════ */
.ateliere { background: linear-gradient(180deg, #F8FAF7, #E9EEE7); }

.lista-frunze {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: .6rem;
}
.lista-frunze li { padding-left: 1.6rem; position: relative; }
.lista-frunze li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 14px;
  height: 8px;
  border: 1.4px solid var(--sage);
  border-radius: 0 100% 0 100%;
}

/* ═════════ Contact ═════════ */
.contact {
  background:
    radial-gradient(46rem 26rem at 50% 120%, var(--blush) 0%, transparent 70%),
    var(--ivory);
  text-align: center;
}
.contact-inner { max-width: 780px; }
.contact .section-nr::after { display: none; }
.contact h2 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.contact-lead { color: var(--ink-soft); font-size: 1.12rem; max-width: 36em; margin-inline: auto; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.4rem;
}
.contact-fleur {
  width: 54px;
  margin-top: 3rem;
  color: var(--rose);
  animation: leganare 6s ease-in-out infinite;
}
@keyframes leganare {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}

/* ═════════ Footer ═════════ */
.site-footer {
  background: var(--ink);
  color: var(--blush);
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: .16em;
  margin: 0 0 .3rem;
}
.footer-brand em { font-style: italic; letter-spacing: .02em; color: var(--rose); }
.footer-motto {
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .65;
  margin-bottom: 1.8rem;
}
.footer-nav {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
}
.footer-nav a { color: var(--blush); text-decoration: none; font-size: .95rem; letter-spacing: .05em; }
.footer-nav a:hover { color: var(--rose); text-decoration: underline; }
.footer-copy { font-size: .85rem; opacity: .55; margin: 0; }

/* ═════════ Animații la derulare ═════════ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.vizibil { opacity: 1; transform: none; }
.d1 { transition-delay: .12s; }
.d2 { transition-delay: .24s; }
.d3 { transition-delay: .36s; }

/* ═════════ Responsive ═════════ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { display: grid; justify-items: center; }
  .hero-art { order: -1; margin-bottom: 2rem; }
  .hero-circle { width: min(72vw, 330px); }

  .split, .split-invers { grid-template-columns: 1fr; }
  .split-media { max-width: 460px; margin-inline: auto; }
  .split-invers .split-media { order: 2; }

  .colectii-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card:nth-child(even) { margin-top: 0; }

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

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(59, 50, 46, .08);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
  }
  .main-nav.deschis .nav-list { max-height: 24rem; }
  .nav-list li { width: 100%; text-align: center; }
  .nav-list a { display: block; padding: 1rem; }
  .nav-cta { border: 0; border-radius: 0; }

  .colectii-grid { grid-template-columns: 1fr; }
  .galerie-grid { gap: .75rem; }
  .brand-text { font-size: 1.25rem; }
}

/* ═════════ Accesibilitate: mișcare redusă ═════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .petal { display: none; }
  .hero-circle-text, .marquee-track, .contact-fleur { animation: none; }
}
