/* =====================================================================
   Сладката страна на мечтите
   Палитрата се сменя от променливите отдолу.
   ===================================================================== */

:root {
  --paper: #fdf8f3;
  --paper-2: #f6ece1;
  --ink: #3b2418;
  --muted: #8b7365;
  --accent: #c9506b;
  --accent-ink: #fffaf7;
  --gold: #d9a14a;
  --line: rgba(59, 36, 24, 0.13);
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Manrope", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 600; line-height: 1.12; }
h1 em, h2 em { color: var(--accent); font-style: italic; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { width: min(100% - 2.5rem, 1140px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; padding: 0.7rem 1.1rem; border-radius: 10px; background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.eyebrow { margin-bottom: 0.8rem; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.note { margin-top: 1.6rem; color: var(--muted); font-size: 13.5px; text-align: center; }
.note a { color: var(--accent); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.95rem 1.8rem; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-family: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 280ms var(--ease), box-shadow 280ms var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px var(--accent); }
.btn--ghost { background: none; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn--sm { padding: 0.6rem 1.25rem; font-size: 13.5px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(14px); transition: border-color 300ms var(--ease); }
.nav--stuck { border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 2rem; height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper-2); }
.brand__mark svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.brand__text { display: grid; line-height: 1.15; }
.brand__text strong { font-family: "Playfair Display", serif; font-size: 16px; font-weight: 600; }
.brand__text em { color: var(--muted); font-size: 11px; font-style: normal; letter-spacing: 0.1em; }

.nav__links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav__links a { position: relative; color: var(--muted); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: color 220ms var(--ease); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; border-radius: 2px; background: var(--accent); transition: width 280ms var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 0.6rem; border: 1px solid var(--line); border-radius: 12px; background: none; cursor: pointer; }
.nav__burger span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform 260ms var(--ease); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.nav__mobile[hidden] { display: none; }
.nav__mobile { display: grid; gap: 0.15rem; padding: 0.4rem 1.25rem 1.2rem; border-top: 1px solid var(--line); background: var(--paper); animation: drop 260ms var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.nav__mobile a { padding: 0.95rem 0.2rem; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600; text-decoration: none; }
.nav__mobile a:last-of-type { border-bottom: 0; }
.nav__mobile .btn { margin-top: 0.9rem; padding: 0.95rem 1.4rem; border-bottom: 0; }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 6rem); }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; pointer-events: none; }
.hero__blob--a { top: -120px; right: -80px; width: 420px; height: 420px; background: #f3d4d9; }
.hero__blob--b { bottom: -160px; left: -120px; width: 380px; height: 380px; background: #f6e3c8; }

.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.lead { max-width: 42ch; margin: 1.4rem 0 2.2rem; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.15rem); }
.hero__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.hero__facts { display: flex; gap: 2.2rem; flex-wrap: wrap; margin: 3rem 0 0; padding: 1.6rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.hero__facts li { display: grid; gap: 0.1rem; }
.hero__facts strong { font-family: "Playfair Display", serif; font-size: 1.3rem; }
.hero__facts span { color: var(--muted); font-size: 12.5px; }

/* CSS торта */
.hero__art { position: relative; display: grid; place-items: center; min-height: 340px; }
.cake { position: relative; width: 260px; height: 260px; animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.cake span { position: absolute; left: 50%; transform: translateX(-50%); }
.cake__plate { bottom: 6px; width: 250px; height: 20px; border-radius: 50%; background: rgba(59, 36, 24, 0.1); filter: blur(6px); }
.cake__tier { border-radius: 14px 14px 10px 10px; box-shadow: inset 0 -8px 0 rgba(0,0,0,0.05); }
.cake__tier--bottom { bottom: 18px; width: 210px; height: 78px; background: linear-gradient(180deg, #f6dcc4, #e9c39f); }
.cake__tier--middle { bottom: 92px; width: 160px; height: 66px; background: linear-gradient(180deg, #f8e7ea, #eec6ce); }
.cake__tier--top { bottom: 154px; width: 110px; height: 54px; background: linear-gradient(180deg, #fdf3ea, #f2ddc9); }
.cake__cherry { bottom: 206px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e2758d, var(--accent)); }
.cake__candle { bottom: 230px; width: 5px; height: 26px; border-radius: 3px; background: var(--gold); }
.cake__candle::after { content: ""; position: absolute; top: -13px; left: 50%; width: 10px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #ffd98a, #f0902f); transform: translateX(-50%); animation: flicker 1.4s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; } 50% { transform: translateX(-50%) scale(1.14); opacity: 0.85; } }

.sparkle { position: absolute; width: 9px; height: 9px; background: var(--gold); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: twinkle 3.4s ease-in-out infinite; }
.sparkle--1 { top: 12%; left: 14%; }
.sparkle--2 { top: 28%; right: 10%; animation-delay: 1.1s; }
.sparkle--3 { bottom: 22%; left: 8%; animation-delay: 2.2s; }
@keyframes twinkle { 0%, 100% { opacity: 0.2; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.2); } }

/* sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--paper-2); }
.section__head { max-width: 620px; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.section__intro { margin-top: 1.1rem; color: var(--muted); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform 420ms var(--ease), box-shadow 420ms var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 54px -34px rgba(59, 36, 24, 0.4); }
.card__media { aspect-ratio: 4 / 3; background: linear-gradient(140deg, #f6e3d3, #ecc9ae); }
.card__media[data-shade="1"] { background: linear-gradient(140deg, #f7dfd0, #e3b193); }
.card__media[data-shade="2"] { background: linear-gradient(140deg, #fae3e8, #eabcc7); }
.card__media[data-shade="3"] { background: linear-gradient(140deg, #f8ecd6, #e8cea2); }
.card__media[data-shade="4"] { background: linear-gradient(140deg, #ece2d6, #cdb69f); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 0.55rem; padding: 1.5rem; }
.card h3 { font-size: 1.35rem; }
.card p { flex: 1; color: var(--muted); font-size: 14.5px; }
.card__price { color: var(--accent); font-size: 13.5px; font-weight: 700; }

/* торти по поръчка */
.custom { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.custom h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.custom__copy > p { max-width: 44ch; margin: 1.2rem 0 2rem; color: var(--muted); }

.steps { display: grid; gap: 1rem; margin: 0 0 2.2rem; padding: 0; list-style: none; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.steps > li > span { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--accent); font-size: 12px; font-weight: 800; }
.steps strong { display: block; font-size: 15px; }
.steps em { color: var(--muted); font-size: 13.5px; font-style: normal; }

.custom__art { position: relative; display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.tag { padding: 0.7rem 1.3rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-family: "Playfair Display", serif; font-size: 1.05rem; animation: float 5s ease-in-out infinite; }
.tag--2 { animation-delay: .5s; } .tag--3 { animation-delay: 1s; }
.tag--4 { animation-delay: 1.5s; } .tag--5 { animation-delay: 2s; } .tag--6 { animation-delay: 2.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* галерия */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.shot { margin: 0; overflow: hidden; aspect-ratio: 1; border-radius: var(--radius); background: linear-gradient(140deg, #f6e3d3, #e6c3a6); transition: transform 500ms var(--ease); }
.shot--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.shot:hover { transform: scale(1.02); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot[data-shade="1"] { background: linear-gradient(140deg, #f9e0d3, #e4ab8c); }
.shot[data-shade="2"] { background: linear-gradient(140deg, #fbe6ea, #e9b9c5); }
.shot[data-shade="3"] { background: linear-gradient(140deg, #f8eed8, #e6cb9e); }
.shot[data-shade="4"] { background: linear-gradient(140deg, #efe4d7, #c9b096); }
.shot[data-shade="5"] { background: linear-gradient(140deg, #f6dee6, #ddaebc); }
.shot[data-shade="6"] { background: linear-gradient(140deg, #f5e8dc, #dcbf9d); }

/* отзиви */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.3rem; }
.quote { display: grid; gap: 1rem; margin: 0; padding: 2rem 1.7rem; border-radius: var(--radius); background: #fff; }
.quote p { color: var(--ink); font-family: "Playfair Display", serif; font-size: 1.1rem; font-style: italic; line-height: 1.6; }
.quote cite { color: var(--muted); font-size: 13px; font-style: normal; font-weight: 700; }

/* намерете ни */
.visit { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.visit__info { display: grid; gap: 0.7rem; }
.info { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; transition: transform 300ms var(--ease), border-color 300ms var(--ease); }
a.info:hover { transform: translateX(3px); border-color: var(--accent); }
.info__ico { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--paper-2); }
.info__ico svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linejoin: round; }
.info em { display: block; color: var(--muted); font-size: 11.5px; font-style: normal; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.info strong { font-size: 1rem; font-weight: 600; }

.visit__map { overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius); }
.visit__map iframe { width: 100%; height: 100%; border: 0; }

/* футър */
.footer { padding: clamp(2.6rem, 6vw, 4rem) 0 1.6rem; border-top: 1px solid var(--line); background: var(--paper-2); }
.footer__inner { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 2rem; }
.footer__inner > div:first-child p { max-width: 32ch; margin-top: 0.9rem; color: var(--muted); font-size: 14px; }
.footer__col { display: grid; gap: 0.5rem; align-content: start; }
.footer__col h4 { margin-bottom: 0.3rem; font-family: "Manrope", sans-serif; font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.footer__col a, .footer__col span { color: var(--muted); font-size: 14.5px; text-decoration: none; }
.footer__col a:hover { color: var(--accent); }
.footer__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer__base a { text-decoration: none; }
.footer__base a:hover { color: var(--accent); }

/* поява при скролване */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 750ms var(--ease), transform 750ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* адаптивност */
@media (max-width: 940px) {
  .hero__grid, .custom, .visit, .footer__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; min-height: 300px; }
  .shot--wide { grid-column: span 1; aspect-ratio: 1; }
}
@media (max-width: 760px) {
  .nav__links, .nav .btn--sm { display: none; }
  .nav__burger { display: flex; margin-left: auto; }
  .hero__facts { gap: 1.5rem; }
}
@media (min-width: 761px) { .nav__mobile { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
