/* ============================================================
   АУРЕЛА — стилове
   Съдържание:
   0. Променливи и база
   1. Хедър и мобилно меню
   2. Hero
   3. За бранда
   4. Бестселъри
   5. Лукбук
   6. Сплит секция
   7. Футър
   8. Появяване при скрол
   9. Респонсив (1200 / 900 / 600)
   ============================================================ */

/* ------------------------------------------------------------
   0. ПРОМЕНЛИВИ И БАЗА
   ------------------------------------------------------------ */
:root {
  /* Цветове */
  --terracotta:      #A9714A;
  --terracotta-dark: #8A5A38;
  --cream:           #F1EFEA;
  --white:           #FBFAF8;
  --ink:             #1A1A1A;
  --gray:            #6B6B6B;

  /* Шрифтове */
  --font-title: "Playfair Display", Georgia, serif;
  --font-body:  "Jost", "Segoe UI", Arial, sans-serif;

  /* Скала на разстоянията: 8 / 16 / 24 / 40 / 64 / 96 / 128 */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;
  --s7: 128px;

  /* Движение */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  0.4s;

  /* Размери */
  --header-h: 76px;
  --maxw: 1400px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--header-h);       /* компенсира фиксирания хедър */
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.14;
}

p { margin: 0; }

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s5);
}

/* Общ стил на линковете със стрелка — подчертаването се удължава при hover */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  position: relative;
  padding-bottom: 6px;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 62%;
  height: 1px;
  background: currentColor;
  transition: width var(--dur) var(--ease);
}

.link-arrow:hover::after { width: 100%; }

.link-arrow svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur) var(--ease);
}

.link-arrow:hover svg { transform: translate(2px, -2px); }

/* Заглавие на секция */
.section-title {
  font-size: clamp(30px, 3.4vw, 46px);
}


/* ------------------------------------------------------------
   1. ХЕДЪР И МОБИЛНО МЕНЮ
   ------------------------------------------------------------ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--cream);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s5);
}

/* Лого */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--ink);
}

.logo__mark {
  width: 26px;
  height: 26px;
  color: var(--terracotta);
  flex: none;
}

.logo__word {
  font-family: var(--font-title);
  font-size: 25px;
  letter-spacing: -0.02em;
}

.logo--light { color: var(--cream); }
.logo--light .logo__mark { color: var(--cream); }

/* Навигация */
.nav {
  display: flex;
  gap: var(--s4);
}

.nav a {
  position: relative;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-block: 6px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--dur) var(--ease);
}

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

/* Иконки вдясно */
.actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
  justify-self: end;
}

.icon-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.icon-btn:hover svg {
  stroke: var(--terracotta);
  transform: translateY(-1px);
}

/* Количка с кръгче за брой */
.icon-btn--cart { position: relative; }

.cart-count {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 16px;
  height: 16px;
  padding-inline: 4px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--white);
  font-size: 10px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
}

/* Бургер — скрит на десктоп */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
}

.burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

/* Мобилно меню — плъзга се отдясно */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  width: min(320px, 84vw);
  height: 100%;
  padding: var(--s5) var(--s4);
  background: var(--cream);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  visibility: hidden;
}

.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu__close {
  position: absolute;
  top: var(--s3);
  right: var(--s3);
}

.mobile-menu__close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin-top: var(--s4);
}

.mobile-menu__nav a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(26, 26, 26, 0.42);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.menu-overlay.is-visible { opacity: 1; }


/* ------------------------------------------------------------
   2. HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  height: 85vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--terracotta-dark);
}

.hero__slides {
  position: absolute;
  inset: 0;
}

/* Кадрите се сменят с плавен fade */
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s var(--ease);
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Топъл теракотен градиент за четимост на текста */
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(138, 90, 56, 0.86) 0%, rgba(169, 113, 74, 0.55) 42%, rgba(169, 113, 74, 0.08) 74%),
    linear-gradient(to top, rgba(26, 26, 26, 0.28), transparent 46%);
}

.hero__content {
  position: absolute;
  left: 0;
  top: 45%;                      /* текстът застава на ~45% от височината */
  width: 100%;
  max-width: var(--maxw);
  padding-inline: var(--s5);
  margin-inline: auto;
  right: 0;
  color: var(--white);
}

.hero__title {
  font-size: clamp(38px, 4.6vw, 64px);
  margin-bottom: var(--s3);
}

/* Заглавието излиза ред по ред */
.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title .line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease);
}

.hero__slide.is-active .hero__title .line > span { transform: translateY(0); }
.hero__slide.is-active .hero__title .line:nth-child(1) > span { transition-delay: 0.15s; }
.hero__slide.is-active .hero__title .line:nth-child(2) > span { transition-delay: 0.32s; }

.hero__text {
  max-width: 50ch;
  font-size: 16px;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease) 0.5s, transform 0.8s var(--ease) 0.5s;
}

.hero__cta {
  margin-top: var(--s3);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease) 0.65s, transform 0.8s var(--ease) 0.65s;
}

.hero__slide.is-active .hero__text,
.hero__slide.is-active .hero__cta {
  opacity: 1;
  transform: translateY(0);
}

/* Стрелки долу вдясно */
.hero__arrows {
  position: absolute;
  right: max(var(--s5), calc((100% - var(--maxw)) / 2 + var(--s5)));
  bottom: var(--s5);
  display: flex;
  gap: var(--s2);
  z-index: 3;
}

.arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arrow--ghost {
  border: 1px solid rgba(251, 250, 248, 0.65);
}

.arrow--ghost svg { stroke: var(--white); }
.arrow--ghost:hover { background: rgba(251, 250, 248, 0.16); }

.arrow--solid {
  background: var(--ink);
  border: 1px solid var(--ink);
}

.arrow--solid svg { stroke: var(--white); }
.arrow--solid:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); }


/* ------------------------------------------------------------
   3. ЗА БРАНДА
   ------------------------------------------------------------ */
.about {
  background: var(--cream);
  padding-block: var(--s6);
}

.about__grid {
  display: grid;
  grid-template-columns: 40% 1fr;   /* 40 / 60 както в референцията */
  gap: var(--s5);
}

/* Заглавието горе, текстът и линкът притиснати към долния край */
.about__col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 460px;
  padding-block: var(--s1);
}

.about__title {
  font-size: clamp(30px, 3.2vw, 44px);
}

.about__bottom { max-width: 42ch; }

.about__text {
  color: var(--gray);
  font-size: 15px;
  margin-bottom: var(--s3);
}

/* Две вертикални снимки 3:4 една до друга */
.about__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}

.about__figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.about__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.about__figure:hover img { transform: scale(1.04); }


/* ------------------------------------------------------------
   4. БЕСТСЕЛЪРИ
   ------------------------------------------------------------ */
.bestsellers {
  background: var(--cream);
  padding-bottom: var(--s6);
}

/* Заглавие вляво, „виж всички“ вдясно на същия ред */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}

.card__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--white);
  overflow: hidden;
  margin-bottom: var(--s2);
}

/* Малко въздух около кадъра на бижуто */
.card__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--s3);
  transition: transform 0.6s var(--ease);
}

.card:hover .card__frame img { transform: scale(1.04); }

/* Сърце в горния десен ъгъл — появява се при hover */
.card__like {
  position: absolute;
  top: var(--s2);
  right: var(--s2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.card:hover .card__like {
  opacity: 1;
  transform: translateY(0);
}

.card__like svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
  transition: fill var(--dur) var(--ease), stroke var(--dur) var(--ease);
}

.card__like.is-liked svg {
  fill: var(--terracotta);
  stroke: var(--terracotta);
}

.card__name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  margin-bottom: 4px;
}

.card__price {
  font-size: 14px;
  font-weight: 500;
}

.card__price s {
  color: var(--gray);
  font-weight: 300;
  margin-left: 6px;
}


/* ------------------------------------------------------------
   5. ЛУКБУК
   ------------------------------------------------------------ */
.lookbook {
  position: relative;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
}

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

.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
}

/* Бяла точка с „+“, която пулсира */
.hotspot__dot {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgba(26, 26, 26, 0.22);
}

.hotspot__dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--white);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.65; }
  70%  { transform: scale(2.3); opacity: 0; }
  100% { transform: scale(2.3); opacity: 0; }
}

.hotspot__dot svg {
  position: relative;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  transition: transform var(--dur) var(--ease);
}

.hotspot__dot[aria-expanded="true"] svg { transform: rotate(45deg); }

/* Малката карта с име и цена */
.hotspot__card {
  position: absolute;
  left: 26px;
  top: -14px;
  width: 236px;
  padding: var(--s2);
  background: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
}

.hotspot.is-open .hotspot__card {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.hotspot__name {
  font-size: 13px;
  margin-bottom: 2px;
}

.hotspot__price {
  font-size: 13px;
  font-weight: 500;
}


/* ------------------------------------------------------------
   6. СПЛИТ СЕКЦИЯ
   ------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
}

.split__media {
  margin: 0;
  overflow: hidden;
  min-height: 560px;
}

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

.split__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s6) var(--s5);
}

.split__title {
  font-size: clamp(28px, 2.9vw, 42px);
  margin-bottom: var(--s3);
}

.split__text {
  max-width: 46ch;
  color: var(--gray);
  font-size: 15px;
  margin-bottom: var(--s3);
}

.split__body .link-arrow { align-self: flex-start; }


/* ------------------------------------------------------------
   7. ФУТЪР
   ------------------------------------------------------------ */
.footer {
  background: var(--terracotta-dark);
  color: var(--cream);
  padding-block: var(--s6) var(--s4);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s5);
}

.footer__note {
  max-width: 34ch;
  margin-top: var(--s2);
  font-size: 14px;
  color: rgba(241, 239, 234, 0.75);
}

.footer__head {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s2);
}

.footer__col li {
  font-size: 14px;
  color: rgba(241, 239, 234, 0.75);
  margin-bottom: var(--s1);
}

.footer__col a { transition: color var(--dur) var(--ease); }
.footer__col a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid rgba(241, 239, 234, 0.22);
  font-size: 12px;
  color: rgba(241, 239, 234, 0.6);
}


/* ------------------------------------------------------------
   8. ПОЯВЯВАНЕ ПРИ СКРОЛ
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ------------------------------------------------------------
   9. РЕСПОНСИВ
   ------------------------------------------------------------ */

/* --- до 1200px --- */
@media (max-width: 1200px) {
  .container,
  .header__inner { padding-inline: var(--s4); }

  .nav { gap: var(--s3); }

  .about { padding-block: var(--s5); }
  .about__grid { gap: var(--s4); }

  .split__body { padding: var(--s5) var(--s4); }
  .split__media { min-height: 460px; }

  .footer__grid { gap: var(--s4); }
}

/* --- до 900px: навигацията става бургер, сплитовете се разгъват --- */
@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .header__inner { grid-template-columns: 1fr auto; }

  .nav { display: none; }
  .burger { display: flex; }

  /* На таблет остават само търсене и количка, за да не се тъпче лентата */
  .actions .icon-btn:nth-child(2),
  .actions .icon-btn:nth-child(3) { display: none; }

  .hero { height: 78vh; }
  .hero__content { top: 42%; }

  /* На тесен екран градиентът тръгва отдолу, иначе текстът се губи */
  .hero__shade {
    background:
      linear-gradient(to top, rgba(138, 90, 56, 0.92) 6%, rgba(169, 113, 74, 0.62) 48%, rgba(169, 113, 74, 0.18) 100%);
  }

  /* Секцията „за бранда“ пада една под друга */
  .about__grid { grid-template-columns: 1fr; }
  .about__col { min-height: auto; gap: var(--s3); }
  .about__bottom { max-width: none; }

  .products { grid-template-columns: repeat(3, 1fr); }

  /* Сплитът се разгъва — снимката отгоре */
  .split { grid-template-columns: 1fr; }
  .split__media { min-height: 340px; max-height: 62vh; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* --- до 600px: мобилно --- */
@media (max-width: 600px) {
  .container,
  .header__inner { padding-inline: var(--s3); }

  .logo__word { font-size: 22px; }

  .hero { height: 80vh; min-height: 480px; }
  .hero__content { top: 38%; padding-inline: var(--s3); }
  /* ~36px по задание; 32px, за да остане на два реда при 390px ширина */
  .hero__title { font-size: 32px; }
  .hero__text { font-size: 14px; }

  .hero__arrows {
    right: var(--s3);
    bottom: var(--s3);
    gap: var(--s1);
  }

  .arrow { width: 46px; height: 46px; }
  .arrow svg { width: 17px; height: 17px; }

  .about { padding-block: var(--s4); }
  .about__media { gap: var(--s2); }

  .bestsellers { padding-bottom: var(--s5); }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--s2);
  }

  /* Мрежата с продукти пада на 2 колони */
  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s2);
  }

  .card__frame img { padding: var(--s2); }
  .card__name { font-size: 13px; }
  .card__price { font-size: 13px; }

  /* Сърцето стои видимо — на тъч няма hover */
  .card__like {
    opacity: 1;
    transform: none;
    width: 32px;
    height: 32px;
  }

  .lookbook { height: 60vh; min-height: 380px; }
  .hotspot__card { width: 200px; }

  /* Ако картата излиза от екрана вдясно, се отваря наляво */
  .hotspot.is-flipped .hotspot__card {
    left: auto;
    right: 26px;
  }

  .split__body { padding: var(--s4) var(--s3); }
  .split__media { min-height: 300px; }

  .footer { padding-block: var(--s5) var(--s3); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--s3); }
  .footer__bottom { margin-top: var(--s4); }
}


/* ------------------------------------------------------------
   Уважаваме предпочитанието за намалено движение
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
  .hero__text,
  .hero__cta { opacity: 1; transform: none; }
}
