/* =============================================================================
   Zhyvitsa — Florist & Event Decoration Studio (Warsaw)
   Stylesheet
   Sections: Design Tokens, Base, Vine Motif, Header, Hero, About, Services,
   Bouquets, Process, Gallery, Contact, Footer, Responsive, Accessibility.
   ============================================================================= */

/* ---------- Design tokens ---------- */
:root{
  --bg-primary: #F9A01B;   /* Bright Yellowish-Orange — dominant background, ~60% */
  --bg-secondary: #F57C00; /* Deep Warm Orange — secondary background/accents, ~25% */
  --bg-deep: #8F4A00;      /* darker orange for contrast on contact/footer */
  --accent: #C62828;       /* Crimson Red — primary brand type & emblem, ~15% */
  --accent-soft: #E2574A;
  --cream: #FBF1E6;
  --cream-dim: #F3E2CC;
  --ink: #2B1810;
  --line: rgba(245,124,0,0.35);
  --shadow: 0 24px 60px -20px rgba(143,74,0,0.35);
  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ---------- Base / reset ---------- */
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth; scroll-padding-top:96px;}
html.nav-open, html.nav-open body{
  overflow:hidden;
  height:100%;
}
html.nav-open body{
  position:fixed;
  width:100%;
}
body{
  background:var(--cream);
  color:var(--ink);
  font-family:'Work Sans', sans-serif;
  font-weight:300;
  line-height:1.65;
  overflow-x:hidden;
}
h1,h2,h3,h4{
  font-family:'Cormorant Garamond', serif;
  font-weight:500;
  color:var(--accent);
  letter-spacing:.01em;
}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
address{font-style:normal;}
.eyebrow{
  font-size:.72rem;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:var(--accent);
  font-weight:500;
  display:inline-block;
  margin-bottom:14px;
}
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 40px;
}
section{ position:relative; }

/* ---------- Curling vine background motif (rendered by vine-geometry.js) ---------- */
.vine-bg{
  position:absolute; top:0; height:100%; width:240px;
  pointer-events:none; z-index:0; overflow:hidden;
}
.vine-bg svg{ width:100%; height:100%; display:block; }
.about-visual .vine-bg{ inset:0; width:100%; }

.vine-stem-path{ fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.vine-spiral-path{
  fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round;
  transition:stroke-dashoffset .05s linear;
}
.vine-bud{ fill:var(--vine-leaf, var(--cream)); }

/* ---------- Scroll reveal ---------- */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in{ opacity:1; transform:translateY(0); }

/* ---------- Header ---------- */
header{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  padding:26px 0;
  transition:padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
header .wrap{ display:flex; align-items:center; justify-content:space-between; }
header.scrolled{
  padding:14px 0;
  background:rgba(251,241,230,0.92);
  backdrop-filter:blur(10px);
  box-shadow:0 8px 30px -12px rgba(143,74,0,0.18);
}
.logo{
  display:flex; align-items:center; gap:12px;
  font-family:'Cormorant Garamond', serif;
  font-size:1.55rem;
  color:var(--accent);
}
.logo .mark{ width:28px; height:37px; display:flex; align-items:center; }
.logo .mark img{ width:100%; height:100%; object-fit:contain; display:block; }
.logo b{ font-weight:600; letter-spacing:.03em; }
.logo span{ font-size:.62rem; letter-spacing:.24em; text-transform:uppercase; color:var(--accent-soft); display:block; font-family:'Work Sans',sans-serif; margin-top:2px; }

nav.links{ display:flex; align-items:center; gap:34px; }
nav.links a{
  font-size:.78rem; letter-spacing:.1em; text-transform:uppercase;
  color:var(--accent); font-weight:500;
  position:relative; padding-bottom:4px;
}
nav.links a::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:1px;
  background:var(--bg-secondary); transition:width .35s var(--ease);
}
nav.links a:hover::after{ width:100%; }
.nav-right{ display:flex; align-items:center; gap:16px; }
.lang-switch{ display:flex; gap:8px; font-size:.72rem; letter-spacing:.08em; }
.lang-switch a{ color:var(--accent); padding:4px 6px; opacity:.65; transition:.3s; }
.lang-switch a.active{ opacity:1; font-weight:600; border-bottom:1px solid currentColor; }
.lang-switch a:hover{ opacity:1; }
.nav-phone{
  font-size:.82rem; letter-spacing:.03em; color:var(--accent);
  border:1px solid rgba(198,40,40,0.5);
  padding:9px 20px; border-radius:2px;
  transition:.3s;
}
.nav-phone:hover{ background:var(--accent); color:var(--cream); border-color:var(--accent); }

.burger{
  display:none; flex-direction:column; gap:5px; cursor:pointer; z-index:1100;
  background:none; border:0; padding:0; -webkit-appearance:none; appearance:none;
}
.burger span{ width:26px; height:1.5px; background:var(--accent); transition:.3s; }
/* Open state: fold the three bars into a close (X) mark over the full-screen nav. */
.burger.active span{ background:var(--cream); }
.burger.active span:nth-child(1){ transform:translateY(6.5px) rotate(45deg); }
.burger.active span:nth-child(2){ opacity:0; }
.burger.active span:nth-child(3){ transform:translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  min-height:100vh;
  background:radial-gradient(ellipse at 75% 20%, var(--bg-primary) 0%, var(--bg-secondary) 55%, var(--bg-deep) 100%);
  display:flex; align-items:center;
  padding:140px 0 100px;
  color:var(--ink);
  overflow:hidden;
}
.hero-inner{ position:relative; z-index:2; max-width:760px; }
.hero .eyebrow{ color:var(--accent); }
.hero h1{
  font-size:clamp(2.6rem, 5.4vw, 4.6rem);
  line-height:1.08;
  font-weight:500;
  color:var(--accent);
}
.hero h1 em{ font-style:italic; color:var(--accent-soft); font-weight:400; }
.hero p.lead{
  margin-top:26px; max-width:520px;
  font-size:1.08rem; font-weight:300;
  color:rgba(43,24,16,0.78);
}
.cta-row{ display:flex; gap:18px; margin-top:44px; flex-wrap:wrap; }
.btn{
  display:inline-block; padding:15px 34px;
  font-size:.78rem; letter-spacing:.14em; text-transform:uppercase;
  border-radius:2px; transition:.35s var(--ease); cursor:pointer; border:1px solid transparent;
}
.btn-primary{ background:var(--accent); color:var(--cream); font-weight:500; }
.btn-primary:hover{ background:var(--accent-soft); transform:translateY(-2px); box-shadow:0 14px 30px -10px rgba(226,87,74,0.5); }
.btn-ghost{ border-color:rgba(43,24,16,0.35); color:var(--ink); }
.btn-ghost:hover{ border-color:var(--ink); background:rgba(43,24,16,0.06); }

.hero-stats{
  position:relative; z-index:2;
  margin-top:86px; display:flex; gap:56px; flex-wrap:wrap;
}
.stat b{ font-family:'Cormorant Garamond',serif; font-size:2.15rem; color:var(--accent); font-weight:500; display:block; }
.stat span{ font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:rgba(43,24,16,0.65); }

/* ---------- Shared section header ---------- */
.section-head{ max-width:620px; margin-bottom:64px; }
.section-head h2{ font-size:clamp(2rem, 3.4vw, 2.9rem); font-weight:500; line-height:1.18; }
.section-head p{ margin-top:18px; color:#6b5245; font-size:1.02rem; max-width:520px; }
.section-pad{ padding:130px 0; }

/* ---------- About ---------- */
.about{ background:var(--cream); }
.about-grid{ display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; }
.about-visual{
  position:relative; aspect-ratio:4/5; border-radius:2px;
  background:linear-gradient(160deg, var(--bg-secondary) 0%, var(--bg-deep) 100%);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.about-visual .frame-text{
  position:relative; z-index:2; text-align:center; color:var(--cream);
  font-family:'Cormorant Garamond', serif; font-style:italic; font-size:1.5rem;
  padding:40px; line-height:1.5;
}
.about-visual .frame-text span{ display:block; margin-top:14px; font-size:.7rem; font-style:normal; letter-spacing:.2em; text-transform:uppercase; color:var(--cream-dim); }
.about-copy p{ margin-top:20px; color:#5a4436; }
.about-copy p:first-of-type{ margin-top:26px; }
.signature-line{ margin-top:36px; padding-top:26px; border-top:1px solid var(--line); display:flex; align-items:center; gap:16px; }
.signature-line .sig-mark{ font-family:'Cormorant Garamond', serif; font-style:italic; font-size:1.6rem; color:var(--accent); }
.signature-line .sig-role{ font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:#a08770; }

/* ---------- Services ---------- */
.services{ background:var(--cream-dim); }
.service-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.service-card{
  background:var(--cream-dim); padding:46px 38px; position:relative;
  transition:background .4s var(--ease);
}
.service-card:hover{ background:#fdf7ee; }
.service-card .icon{ width:42px; height:42px; margin-bottom:26px; color:var(--accent); }
.service-card .icon svg{ width:100%; height:100%; }
.service-card h3{ font-size:1.4rem; font-weight:500; margin-bottom:12px; }
.service-card p{ font-size:.92rem; color:#6b5245; }
.service-card .tag{
  position:absolute; top:38px; right:38px;
  font-size:.68rem; letter-spacing:.14em; color:var(--bg-secondary); text-transform:uppercase;
}

/* ---------- Bouquets ---------- */
.bouquets{ background:var(--cream); }
.bouquet-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:80px; align-items:start; }
.bouquet-copy p{ margin-top:20px; color:#5a4436; }
.bouquet-copy p:first-of-type{ margin-top:0; }
.bouquet-copy strong{ font-weight:500; color:var(--ink); }
.bouquet-note{
  margin-top:34px; padding:24px 30px;
  border-left:2px solid var(--accent);
  background:var(--cream-dim);
  font-family:'Cormorant Garamond', serif; font-style:italic;
  font-size:1.2rem; line-height:1.55; color:#5a4436;
}
.bouquet-list{ border-top:1px solid var(--line); }
.bouquet-item{ padding:24px 2px; border-bottom:1px solid var(--line); }
.bouquet-item h3{ font-size:1.25rem; font-weight:500; margin-bottom:6px; }
.bouquet-item p{ font-size:.92rem; color:#6b5245; }
.bouquet-item .meta{
  display:block; margin-top:10px;
  font-size:.68rem; letter-spacing:.14em; text-transform:uppercase; color:var(--bg-secondary);
}
.bouquet-care{
  margin-top:70px; padding-top:40px; border-top:1px solid var(--line);
  display:grid; grid-template-columns:repeat(3, 1fr); gap:40px;
}
.bouquet-care h3{ font-size:1.15rem; font-weight:500; margin-bottom:8px; }
.bouquet-care p{ font-size:.92rem; color:#6b5245; }
.bouquet-care .care-num{
  display:block; margin-bottom:12px;
  font-family:'Cormorant Garamond', serif; font-style:italic; font-size:1.4rem; color:var(--bg-secondary);
}

/* ---------- Process ---------- */
.process{ background:var(--bg-secondary); color:var(--cream); position:relative; overflow:hidden; }
.process .section-head h2{ color:var(--cream); }
.process .section-head p{ color:rgba(251,241,230,0.75); }
.process-list{ position:relative; z-index:2; }
.process-row{
  display:grid; grid-template-columns:90px 1fr; gap:34px;
  padding:34px 0; border-top:1px solid rgba(251,241,230,0.22);
  align-items:baseline;
}
.process-row:last-child{ border-bottom:1px solid rgba(251,241,230,0.22); }
.process-num{ font-family:'Cormorant Garamond',serif; font-size:1.6rem; color:var(--accent); font-style:italic; }
.process-row h3{ color:var(--cream); font-size:1.35rem; font-weight:500; margin-bottom:6px; }
.process-row p{ color:rgba(251,241,230,0.72); font-size:.95rem; max-width:520px; }

/* ---------- Gallery / Instagram ---------- */
.gallery{ background:var(--cream); position:relative; overflow:hidden; }
.gallery .section-head{ margin-left:auto; margin-right:auto; text-align:center; margin-bottom:52px; }
.gallery .section-head p{ margin-left:auto; margin-right:auto; }

.ig-card{
  position:relative; z-index:2;
  display:flex; flex-direction:column; align-items:center; text-align:center;
  max-width:560px; margin:0 auto; padding:54px 46px;
  border:1px solid var(--line); border-radius:2px;
  background:var(--cream-dim);
  transition:background .4s var(--ease), border-color .4s var(--ease),
             transform .4s var(--ease), box-shadow .4s var(--ease);
}
.ig-card:hover{
  background:#fdf7ee; border-color:var(--accent);
  transform:translateY(-3px); box-shadow:0 24px 50px -24px rgba(143,74,0,0.45);
}
.ig-glyph{ width:44px; height:44px; color:var(--accent); }
.ig-glyph svg{ width:100%; height:100%; }
.ig-handle{
  margin-top:24px; line-height:1.1;
  font-family:'Cormorant Garamond', serif; font-size:2.1rem; font-weight:500;
  color:var(--accent);
}
.ig-sub{ margin-top:12px; max-width:390px; font-size:.95rem; color:#6b5245; }
.ig-go{
  margin-top:30px; display:inline-flex; align-items:center; gap:10px;
  font-size:.74rem; letter-spacing:.16em; text-transform:uppercase;
  color:var(--bg-secondary); transition:color .4s var(--ease);
}
.ig-go .arrow{ transition:transform .4s var(--ease); }
.ig-card:hover .ig-go{ color:var(--accent); }
.ig-card:hover .ig-go .arrow{ transform:translateX(5px); }

/* ---------- Contact ---------- */
.contact{ background:var(--bg-deep); color:var(--cream); position:relative; overflow:hidden; }
.contact-grid{ display:grid; grid-template-columns:1fr; max-width:560px; margin:0 auto; position:relative; z-index:2; }
.contact .section-head{ margin-left:auto; margin-right:auto; text-align:center; }
.contact .section-head h2{ color:var(--cream); }
.contact .section-head p{ color:rgba(251,241,230,0.65); margin-left:auto; margin-right:auto; }
.info-block{ margin-bottom:32px; }
.info-block .label{ font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color:var(--cream-dim); margin-bottom:8px; display:block; }
.info-block .value{ font-size:1.15rem; color:var(--cream); font-family:'Cormorant Garamond',serif; }
.info-block .value small{ display:block; font-family:'Work Sans',sans-serif; font-size:.85rem; color:rgba(251,241,230,0.55); margin-top:4px; }
.info-block .value a:hover{ color:var(--accent-soft); }

/* ---------- Footer ---------- */
footer{ background:var(--bg-deep); border-top:1px solid rgba(251,241,230,0.15); padding:40px 0; }
.footer-row{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; }
.footer-row .logo{ color:var(--cream-dim); font-size:1.2rem; }
.footer-row .fine{ font-size:.78rem; color:rgba(251,241,230,0.45); }
.footer-links{ display:flex; gap:26px; }
.footer-links a{ font-size:.78rem; color:rgba(251,241,230,0.55); transition:.3s; }
.footer-links a:hover{ color:var(--accent-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1300px){
  .vine-bg{ width:140px; }
}
@media (max-width: 1100px){
  .vine-bg{ width:90px; }
}
@media (max-width: 1050px){
  .vine-bg{ width:40px; }
  /* Six nav items + phone no longer fit on one line here. */
  nav.links{ gap:22px; }
  .nav-phone{ display:none; }
}
@media (max-width: 980px){
  .about-grid{ grid-template-columns:1fr; gap:50px; }
  .bouquet-grid{ grid-template-columns:1fr; gap:48px; }
  .bouquet-care{ grid-template-columns:1fr; gap:28px; margin-top:50px; }
  .service-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 760px){
  .wrap{ padding:0 24px; }
  nav.links{
    position:fixed; top:0; left:0; right:0;
    width:100%; height:100vh; height:100dvh;
    background:var(--bg-secondary);
    flex-direction:column; justify-content:center; gap:30px;
    transform:translateX(100%); transition:transform .5s var(--ease);
    overflow-y:auto; -webkit-overflow-scrolling:touch;
    z-index:1050;
  }
  nav.links.open{ transform:translateX(0); }
  nav.links a{ font-size:1.1rem; color:var(--cream) !important; }
  .nav-phone{ display:none; }
  .lang-switch{ position:fixed; top:20px; right:70px; z-index:1100; }
  .burger{ display:flex; }
  .service-grid{ grid-template-columns:1fr; }
  .process-row{ grid-template-columns:50px 1fr; }
  .section-pad{ padding:90px 0; }
  .ig-card{ padding:40px 26px; }
  .ig-handle{ font-size:1.8rem; }
  .bouquet-note{ padding:20px 22px; font-size:1.1rem; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; scroll-behavior:auto !important; }
  .reveal{ opacity:1; transform:none; }
  .vine-stem-path{ stroke-dashoffset:0 !important; }
}

:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
