/* PAGE LOADER */
#page-loader {
  position: fixed;
  inset: 0;
  background: #fffdf9; /* същия фон като сайта */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.hide {
  opacity: 0;
  visibility: hidden;
}

#page-loader .loader-logo {
  font-family: "Great Vibes", cursive;
  font-size: 2.6rem;
  color: #d79217;
  letter-spacing: 0.06em;
  animation: loader-pulse 1.4s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  50%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1);   opacity: 0.6; }
}

:root {
  --bg-main: #fffdf9;        /* много светъл крем */
  --accent-soft: #ffeedd;    /* пастелно прасковено */
  --accent-soft-2: #e4f5eb;  /* пастелно зелено */
  --accent-strong: #f1c27b;  /* меко златисто вместо ярко жълто */
  --text-main: #2f2a26;
  --text-muted: #7c746b;
  --border-soft: #f4e4cf;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.6;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* HEADER */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(243, 231, 201, 0.8);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.lang-switch {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.lang-switch a {
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
}

.lang-switch a.active {
  background: rgba(241, 194, 123, 0.3);
  color: #5b4020;
  font-weight: 600;
}

.logo {
  font-family: "Great Vibes", cursive;
  font-size: 2.2rem;
  white-space: nowrap;
  color: #d79217;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

nav a {
  position: relative;
  padding-bottom: 0.2rem;
  color: #555;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-strong);
  transition: width 0.25s ease;
}

nav a:hover::after {
  width: 100%;
}

/* HERO */

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); 
  gap: 3rem;
  align-items: center;
}

.hero-text-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 4.5vw, 2.3rem);
  white-space: normal;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: #d79217;
  white-space: normal;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  max-width: 32rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
}

.btn-primary {
  border: none;
  cursor: pointer;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe4c2, #f1c27b);
  color: #5b4020;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 18px rgba(241, 194, 123, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(241, 194, 123, 0.45);
}

.btn-ghost {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  padding: 0.72rem 1.4rem;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  color: #555;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn-ghost:hover {
  background: #fff8ec;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.hero-meta {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.hero-photo-wrapper {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.18),
    0 0 0 10px rgba(255, 255, 255, 0.9);
  background: #fff5ea;
}

.hero-photo-main {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.hero-photo-wrapper:hover .hero-photo-main {
  transform: scale(2);
}

.hero-badge {
  position: absolute;
  bottom: 1.1rem;
  left: 1.2rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(255, 248, 230, 0.9);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f4b41a;
}

/* SECTIONS */

section {
  padding: 3.5rem 1.5rem;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
}

.section-heading p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 24rem;
}

/* ABOUT */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: 2.8rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.about-highlight {
  display: inline-block;
  background: linear-gradient(90deg, rgba(255, 232, 163, 0.6), rgba(223, 247, 229, 0.7));
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.9rem;
  color: #836203;
}

.about-photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.about-photo-grid img {
  border-radius: 1.4rem;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.about-photo-grid img:nth-child(2) {
  margin-top: 2rem;
}

@media (max-width: 720px) {
  .about-photo-grid img {
    height: 360px;                 /* ключово: спира безкрайния crop */
    object-fit: cover;
    object-position: center top;   /* пази лицето */
  }
}
/* BOOK */

.book-section {
  background: linear-gradient(135deg, #fff7ef, #eaf6ef);
}

.book-card {
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  padding: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.book-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #a67909;
  margin-bottom: 0.6rem;
}

.book-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.book-card p {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.book-note {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a0a0a0;
  margin-top: 1rem;
}

.book-cover {
  position: relative;
  justify-self: center;
}

.book-cover-inner {
  border-radius: 0.9rem;
  width: 220px;
  height: 320px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.18),
    0 0 0 6px rgba(255, 255, 255, 0.9);
}

.book-cover-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ======================================================
   DIARY CARD LAYOUT (image + text left, shared card right)
   ====================================================== */

.diary-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: stretch;
}

/* ЛЯВА КОЛОНА */

.diary-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.diary-left-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.diary-cover-wrapper {
  border-radius: 0.9rem;
  width: 180px;
  height: 260px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.18),
    0 0 0 6px rgba(255, 255, 255, 0.85);
}

.diary-cover-wrapper .book-cover-inner {
  border-radius: 0;
  width: 100%;
  height: 100%;
  box-shadow: none;
  border: none;
}

.diary-cover-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.diary-copy h3 {
  margin-bottom: 0.6rem;
}

.diary-copy p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

/* бутон + текст отдолу */

.diary-left-bottom {
  text-align: center;
  margin-top: 0.4rem;
}

.diary-left-bottom .btn-primary[disabled] {
  opacity: 0.9;
  cursor: default;
}

.diary-signup-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ДЯСНА КОЛОНА – споделена картичка */

.diary-right {
  display: flex;
  align-items: stretch;
}

.diary-shared-card {
  width: 100%;
  background: #fffdf7;
  border-radius: 14px;
  border: 1px solid rgba(234, 217, 194, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
}

.diary-shared-title {
  font-family: "Great Vibes", cursive;
  font-size: 1.55rem;
  text-align: center;
  color: #c08835;
  margin-bottom: 0.35rem;
}

.diary-shared-divider {
  border-bottom: 1px dashed rgba(223, 204, 179, 0.9);
  margin-bottom: 0.7rem;
}

.diary-shared-question-label,
.diary-shared-answer-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(128, 109, 88, 0.9);
  margin-bottom: 0.25rem;
}

.diary-shared-question {
  font-family: "Playfair Display", serif;
  font-size: 0.92rem;
  color: #2a2520;
  margin-bottom: 0.55rem;
  line-height: 1.35;
}
.diary-shared-answer {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #5a5146;
  background: rgba(249, 244, 234, 0.7);
  border-radius: 10px;
  border: 1px solid #e1d5c2;

  padding: 0.2rem 0.7rem 0.6rem;
  white-space: normal;
}

.diary-shared-answer > :first-child {
  margin-top: 0;
}

.diary-shared-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .diary-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .diary-left-top {
    grid-template-columns: minmax(0, 1fr);
  }
.diary-cover-block {
  display: flex;
  flex-direction: column;
  align-items: center;   /* центрира бутона под снимката */
  gap: 0.8rem;
}

.diary-left-bottom {
  text-align: center;
  margin-top: 0.2rem;
}

  .diary-cover-wrapper {
    margin: 0 auto;
  }

  .diary-copy {
    text-align: left;
  }

  .diary-right {
    margin-top: 1rem;
  }
.book-card {
    display: flex;              /* override на grid */
    flex-direction: column;     /* вертикално */
    align-items: center;        /* център по хоризонтала */
    text-align: center;         /* центриран текст */
  }

  .book-cover {
    order: -1;                  /* корицата става ПЪРВА */
    margin-bottom: 1.2rem;
  }

  .book-card .btn-primary {
    margin-top: 0.6rem;
    margin-left: auto;
    margin-right: auto;         /* бутонът центриран */
  }

  .book-note {
    margin-top: 0.5rem;
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
  }
}

}

@media (max-width: 480px) {
  .diary-shared-card {
    border-radius: 12px;
    padding: 0.95rem 0.95rem 1.05rem;
  }

  .diary-shared-title {
    font-size: 1.4rem;
  }
}

/* GALLERY */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: 1.4rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 26px rgba(0,0,0,0.2);
  aspect-ratio: 3/4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(2);
}

/* CONTACT */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.8rem;
}

form {
  display: grid;
  gap: 1rem;
}

label {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

input, textarea {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid var(--border-soft);
  padding: 0.7rem 0.9rem;
  font: inherit;
  background: #fffdfa;
  resize: vertical;
  min-height: 44px;
}

textarea {
  min-height: 120px;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #f4b41a;
  box-shadow: 0 0 0 2px rgba(244, 180, 26, 0.2);
}

.contact-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
}

.contact-side {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-side p + p {
  margin-top: 0.7rem;
}

.contact-side strong {
  color: #444;
}

.contact-alert-success {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #2f7d32;
}

.contact-alert-error {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #c0392b;
}

/* FOOTER */
footer {
  border-top: 1px solid rgba(80, 65, 95, 0.7);
  padding: 2rem 1.5rem;         
  font-size: 0.85rem;
  text-align: center;               
  position: relative;
}

.footer-toggle {
  position: relative;
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  background: rgba(241, 194, 123, 0.3);   /* същия фон като active език */
  color: #5b4020;                         /* същия текстов цвят */
  font-weight: 600;                       /* като активния език */
  padding: 0.25rem 0.55rem;               /* леко по-голямо за да е като chip */
  border-radius: 999px;                   /* закръглено като EN/RO */
  border: none;
  cursor: pointer;
  opacity: 1;                             /* за да не стои избледняло */
  transition: background 0.2s ease;
}

.footer-toggle:hover {
  background: rgba(241, 194, 123, 0.45);  /* малко по-силен при hover */
  text-decoration: none;                  /* махаме underline */
}

/* RESPONSIVE */

@media (max-width: 800px) {
  .hero,
  .about-layout,
  .book-card,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero-photo-wrapper {
    max-width: 420px;
    margin: 0 auto;
  }

  .about-photo-grid img:nth-child(2) {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  nav ul {
    display: none; /* за сега скриваме менюто на малък екран */
  }

  .nav-inner {
    justify-content: center;
  }

  section {
    padding: 2.6rem 1.2rem;
  }

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

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .book-cover-inner {
    width: 180px;
    height: 260px;
  }
 }

#backToTop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe4c2, #f1c27b);
  color: #5b4020;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(241, 194, 123, 0.35);
  transition: 0.25s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 200;
}

#backToTop:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 22px rgba(241, 194, 123, 0.45);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

.notify-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 1.2rem;
  cursor: pointer;
  user-select: none;
}

.notify-wrap input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #fff;
  border: 2px solid #d3c4b5;
  display: inline-block;
  position: relative;
  transition: 0.2s ease;
}

.notify-wrap input:checked + .checkmark {
  background: #f3c96a;
  border-color: #f3c96a;
}

.checkmark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 12px;
  border: solid #5b4020;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: 0.2s;
}

.notify-wrap input:checked + .checkmark::after {
  opacity: 1;
}

.notify-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .notify-wrap {
    gap: 0.4rem;
    align-items: center;
  }

  .checkmark {
    width: 16px;      /* по-малък чекбокс */
    height: 16px;
    border-width: 2px;
  }

  .checkmark::after {
    left: 4px;
    top: 0px;
    width: 5px;
    height: 10px;
  }

  .notify-label {
    font-size: 0.78rem;   /* малко по-дребен текст */
    line-height: 1;
    white-space: nowrap;  /* НЕ позволява пренасяне */
  }

  .notify-wrap {
    flex-wrap: nowrap;    /* стои в една линия */
  }
}

/* =========================
   ORDER PAGE (2-column form)
   ========================= */

.order-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
}

.order-form .full {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .order-form {
    grid-template-columns: minmax(0, 1fr);
  }
}
.order-product{
  border-radius:1.2rem;
  background:rgba(255,255,255,0.9);
  box-shadow:0 12px 30px rgba(0,0,0,0.08);
  padding:1.1rem;
}
.order-cover{
  border-radius:1rem;
  overflow:hidden;
  border:1px solid rgba(0,0,0,0.06);
  box-shadow:0 10px 22px rgba(0,0,0,0.12);
  background:#fff;
}
.order-cover img{
  width:100%;
  height:auto;
  display:block;
}
.order-price{
  margin-top:.9rem;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:1rem;
}
.order-price-label{
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:var(--text-muted);
}
.order-price-val{
  font-weight:700;
  color:#5b4020;
}
