/*
 * Anisha Agency — Perfume Packaging & Design Services (preview rebuild)
 * Values measured from the live page (Elementor). Breakpoints match the original:
 *   desktop ≥1025px · tablet 442–1024px · mobile ≤441px
 */

/* ---------- Fonts (self-hosted copies of the live site's files) ---------- */
@font-face { font-family: "Sklow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/sklow-regular.woff") format("woff"); }
@font-face { font-family: "Sklow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/sklow-medium.woff") format("woff"); }
@font-face { font-family: "Sklow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/sklow-bold.woff") format("woff"); }
@font-face {
  font-family: "Roboto"; font-style: normal; font-weight: 400 500; font-stretch: 100%; font-display: swap;
  src: url("../fonts/roboto-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --purple: #613077;      /* headings, nav accent */
  --text-purple: #5F196F; /* body copy */
  --lang: #462960;
  --text: #333;
  --hdr-h: 76px;
  --sklow: "Sklow", sans-serif;
  --roboto: "Roboto", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--hdr-h); }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 500 16px/1.5 var(--sklow);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: inherit; }
a[aria-disabled="true"] { cursor: default; } /* live-site links switched off in config.php */
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding-left: 40px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 2000; padding: 8px 14px; background: #fff; color: #000; }
.skip-link:focus { top: 8px; }

.show-mobile { display: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; }
.hdr {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
}
.hdr__logo { flex: 0 1 40%; display: flex; justify-content: center; }
.hdr__logo a { display: block; width: 40%; }
.hdr__logo img { display: block; width: 100%; }
.hdr__nav { flex: 0 0 59.928%; padding: 0 15px; }
.hdr__lang { flex: 0 1 20%; display: flex; justify-content: center; }
.hdr__toggle { display: none; }

/* Desktop menu */
.menu { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.menu__item { position: relative; display: flex; align-items: center; }
.menu__link {
  display: block;
  padding: 13px 20px;
  color: #000;
  font: 400 15px/20px var(--roboto);
  text-decoration: none;
  white-space: nowrap;
}
.menu__item.is-current > .menu__link,
.menu__item:hover > .menu__link,
.menu__link:focus-visible { color: #474547; }
/* underline pointer (fade) */
.menu__item::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--purple);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.menu__item.is-current::after,
.menu__item:hover::after,
.menu__item:focus-within::after { opacity: 1; }

.has-sub > .menu__link { padding-right: 0; }
.menu__sub-toggle {
  display: flex; align-items: center;
  align-self: stretch;
  padding: 0 20px 0 10px;
  border: 0; background: none; cursor: pointer;
  color: #474547;
}
.caret { width: 9.4px; height: 15px; fill: currentColor; }

.menu__sub {
  display: none;
  position: absolute; top: 100%; left: 0; z-index: 100;
  min-width: 130px;
  margin: 0; padding: 0; list-style: none;
  background: #fff;
  border: 1px solid #e5e5e5;
}
.has-sub:hover > .menu__sub,
.has-sub:focus-within > .menu__sub,
.has-sub.is-open > .menu__sub { display: block; }
.has-sub.is-dismissed > .menu__sub { display: none; }
.menu__sublink {
  display: block;
  padding: 13px 20px;
  color: #000;
  font: 500 15px/20px var(--roboto);
  text-decoration: none;
  white-space: nowrap;
}
.menu__sublink:hover, .menu__sublink:focus-visible { color: var(--purple); }

/* Language switcher (Weglot look-alike, links go to the live translations) */
.lang { position: relative; width: 90px; }
.lang__current {
  display: block;
  width: 115px;
  padding: 4px 0 4px 10px;
  list-style: none;
  cursor: pointer;
}
.lang__current::-webkit-details-marker { display: none; }
.lang__current span {
  display: block;
  width: 90px; height: 24px;
  border: 1px solid var(--lang);
  border-radius: 4px;
  color: var(--lang);
  font: 500 9px/22px var(--sklow);
  letter-spacing: .7px;
  text-align: center;
  text-transform: uppercase;
}
.lang__list {
  position: absolute; top: 100%; left: 0; z-index: 1100;
  width: 90px;
  margin: 2px 0 0; padding: 0; list-style: none;
  background: #fff;
  border: 1px solid #ebeef0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.lang:not([open]) .lang__list { display: none; }
.lang__list a {
  display: block;
  padding: 6px 12px;
  color: #333;
  font: 500 13px/25px var(--sklow);
  text-decoration: none;
}
.lang__list a:hover, .lang__list a:focus-visible { background: #f5f5f5; }

/* Mobile menu toggle */
.menu-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 33px; height: 33px;
  padding: 5.5px;
  border: 0; border-radius: 3px;
  background: rgba(0, 0, 0, .05);
  color: #33373d;
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

/* ---------- Sections ---------- */
.sec { padding: 4.5% 5%; }
.sec__inner { display: flex; max-width: 1215px; margin: 0 auto; }
.col { display: flex; flex-direction: column; justify-content: center; gap: 20px; width: 50%; padding: 10px; }

.h-hero { color: var(--purple); font: 500 30px/1 var(--sklow); letter-spacing: 1.2px; }
.h-section { color: var(--purple); font: 700 27px/1 var(--sklow); letter-spacing: 1.2px; }
.h-upper { text-transform: uppercase; }
.h-boxed {
  align-self: flex-start;
  width: 75%;
  padding: 10px 0;
  border: 1px solid #333;
  color: var(--purple);
  font: 500 22px/31px var(--sklow);
  letter-spacing: .8px;
  text-align: center;
}
.h-boxed a { color: inherit; text-decoration: none; }

.txt { color: var(--text-purple); font: 400 16px/24px var(--sklow); }
.txt p { margin-bottom: 14.4px; }

.rm__btn { display: none; }
.spacer { height: 20px; }

/* Hero */
.hero { min-height: 374px; background-image: linear-gradient(100deg, #e3e2e0 0%, #fff 50%, #d0cfcd 100%); }
.hero .sec__inner { align-items: stretch; }
.hero__text .rm__content { color: var(--text-purple); font: 400 18px/27px var(--sklow); }
.hero__tagline { margin-top: 20px; }
.hero__media { justify-content: flex-start; align-items: center; }
.hero__img { margin-top: 70px; }

/* Our work */
.work__media { align-items: center; }

/* Packaging */
.pack { background-color: transparent; background-image: linear-gradient(48deg, #cacaca 4%, #ddd 11%); }
.pack__col { width: 100%; }
.pack__media { margin-top: 5%; text-align: center; line-height: 0; }
.pack__img { height: 428px; }

/* Turnkey */
.turnkey { display: flex; justify-content: center; }
.turnkey__text { flex: 0 1 62%; width: auto; margin-left: 10vw; }
.turnkey__media { flex: 0 1 auto; min-width: 0; text-align: end; line-height: 0; }

/* Fragrance */
.frag, .frag__text { background-color: #eee; }
.frag__media { align-items: center; }

/* FAQ */
.faq { padding: 50px 0 100px; }
.faq__inner { max-width: 1215px; margin: 0 auto; padding: 10px; }
.faq__box {
  margin-top: 50px; /* 20px widget gap + 30px box margin */
  padding: 15px;
  background: #fff;
  border: 1px solid #f6f6f6;
  border-radius: 19px;
  box-shadow: 0 0 25px rgba(200, 200, 200, .5);
}
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 18px;
  background: #fff;
  color: #000;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__title { font: 500 20px/20px var(--sklow); }
.faq__icon { flex: 0 0 auto; width: 10px; height: 16px; margin-right: 0; fill: #737373; }
.faq__icon--open { display: none; fill: #4f4f4f; }
.faq__item[open] .faq__icon--closed { display: none; }
.faq__item[open] .faq__icon--open { display: block; }
.faq__a { padding: 15px 20px; color: #000; font: 400 18px/1.7 var(--sklow); letter-spacing: .2px; }
.faq__a p { margin-bottom: 14.4px; }

/* ---------- Footer / newsletter ---------- */
.site-footer {
  display: flex; align-items: center; justify-content: center;
  min-height: 20vh;
  padding: 70px 0;
  background: #fef6ff;
}
.nl { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 10px; }
.nl__heading { color: var(--purple); font: 500 18px/18px var(--sklow); text-align: center; }
.nl__divider { width: 7%; margin: 15px 0; border-top: 2px solid #484848; }
.nl__form { width: 40%; padding: 20px; }
.nl__fields { display: flex; }
.nl__input {
  flex: 0 0 75%;
  min-width: 0;
  margin: 0;
  padding: 20px 10px;
  border: 1px solid #000;
  border-radius: 3px;
  background: #fff;
  color: #7a7a7a;
  font: 400 15px/21px var(--roboto);
  -webkit-appearance: none; appearance: none;
}
.nl__input::placeholder { color: #7a7a7a; opacity: .6; }
.nl__btn {
  flex: 0 0 25%;
  margin: 0;
  padding: 24px 10px;
  border: 0; border-radius: 3px;
  background: #000;
  color: #fff;
  font: 500 16px/16px var(--roboto);
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.nl__msg { margin-top: 10px; color: #484848; font: 500 14px/20px var(--sklow); text-align: center; }
.nl__msg--invalid { color: #b00020; }
.nl__copy { margin: 15px 0; color: #a8a8a8; font: 500 16px/24px var(--sklow); letter-spacing: .4px; text-align: center; }

/* 404 */
.notfound main { max-width: 640px; margin: 15vh auto; padding: 0 20px; color: var(--text-purple); }
.notfound main p { margin-top: 16px; }

/* ======================= Tablet + mobile (≤1024px) ======================= */
@media (max-width: 1024px) {
  :root { --hdr-h: 199px; }

  .hdr {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "logo" "lang" "toggle";
    gap: 0;
    padding: 20px;
  }
  .hdr__logo { grid-area: logo; }
  .hdr__logo a { width: 180px; }
  .hdr__lang { grid-area: lang; justify-content: flex-start; margin: 22px 0 0 15px; }
  .hdr__toggle { grid-area: toggle; display: flex; justify-content: flex-end; margin: 0 15px 3px 0; }

  /* Menu becomes a dropdown below the header */
  .hdr__nav {
    display: none;
    position: absolute; left: 0; right: 0; top: calc(100% - 12px);
    max-height: calc(100vh - var(--hdr-h));
    max-height: calc(100dvh - var(--hdr-h) + 12px);
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid #e5e5e5;
  }
  .site-header.nav-open .hdr__nav { display: block; }
  .menu { display: block; }
  .menu__item { flex-wrap: wrap; }
  .menu__item::after { display: none; }
  .menu__link { padding: 10px 20px; font-weight: 500; }
  .menu__link:hover, .menu__link:focus-visible { color: var(--purple); }
  .menu__sub-toggle { padding: 10px 20px 10px 10px; }
  .menu__sub, .has-sub:hover > .menu__sub, .has-sub:focus-within > .menu__sub {
    display: none;
    position: static;
    flex: 0 0 100%;
    border: 1px solid #e5e5e5;
  }
  .has-sub.is-open > .menu__sub { display: block; }
  .menu__sublink { padding: 10px 20px; border-left: 8px solid transparent; white-space: normal; }

  .h-hero { font-size: 22px; }
  .h-section { font-size: 22px; }
  .hero__text .rm__content { font-size: 16px; }

  .faq { padding: 0 20px 50px; }
  .faq__title { font-size: 14px; line-height: 16px; }
  .faq__a { font-size: 13px; }

  .site-footer { padding: 20px; }
  .nl__form { width: 100%; }
}

/* Elementor's accordion widget tightens answer padding below 768px (not overridden on the original page). */
@media (max-width: 767px) {
  .faq__a { padding: 7px 15px; }
}

/* Without JavaScript the mobile menu is shown expanded instead of being unreachable. */
@media (max-width: 1024px) and (scripting: none) {
  .hdr__toggle { display: none; }
  .hdr__nav { display: block; position: static; grid-column: 1; max-height: none; margin-top: 12px; }
  .menu__sub { display: block !important; }
  .menu__sub-toggle { display: none; }
}

/* =========================== Mobile (≤441px) =========================== */
@media (max-width: 441px) {
  :root { --hdr-h: 144px; }

  .show-mobile { display: revert; }
  .hide-mobile { display: none; }

  .hdr {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 62px;
    grid-template-areas: "logo logo" "lang toggle";
    row-gap: 10px;
    padding: 10px 20px 0;
  }
  .hdr__logo a { width: 160px; }
  .hdr__lang { align-self: start; margin: 0 0 0 19px; }
  .hdr__toggle { align-self: start; margin: 0 19px 0 0; }
  .hdr__nav { top: calc(100% - 18px); max-height: calc(100dvh - var(--hdr-h) + 18px); }

  .sec__inner { flex-direction: column; }
  .col { width: 100%; }

  .h-hero, .h-section { font-size: 18px; line-height: 22px; letter-spacing: 0; }
  .h-boxed { width: 100%; padding: 0 0 0 10px; font-size: 16px; line-height: 31px; }

  /* Read more (text unfold) — collapsed by default when JS is available */
  .rm__content { color: var(--text); font: 500 14px/22px var(--sklow); }
  .rm--purple .rm__content { color: var(--text-purple); }
  .rm__content p:last-of-type { margin-bottom: 0; }
  .hero__text .rm__content { color: var(--text); font: 500 14px/22px var(--sklow); }
  .hero__tagline { margin-top: 22px; }
  .hero__tagline strong { font-weight: inherit; }

  /* Hero: image above the text */
  .hero .sec__inner { gap: 0; }
  .hero__media { order: -1; padding: 16px 0 0; }
  .hero__img { margin-top: 0; width: 100%; }

  /* Our work */
  .work__text { padding: 0; }
  .work__mobile-img img { display: block; width: 100%; height: 190px; object-fit: contain; }

  /* Packaging */
  .pack__col { padding: 0; }
  .pack__img { width: 100%; height: 205px; object-fit: cover; }

  /* Turnkey */
  .turnkey { flex-wrap: wrap; padding: 5% 0 5% 5%; }
  .turnkey__text { flex: 0 0 100%; margin: 0; padding: 5% 0; }
  .turnkey__media { flex: 0 0 100%; }
  .turnkey__media img { width: 100%; }

  /* Fragrance */
  .frag { padding: 5% 0; }
  .frag .sec__inner { flex-direction: column-reverse; }
  .frag__text { padding: 5% 0; }
  .frag__text .h-section { padding: 0 5%; }
  .frag__text .rm { margin-top: -3px; padding: 0 5%; }
  .frag__mobile-img img { display: block; width: 100%; }

  /* FAQ */
  .faq { padding: 5%; }
  .faq__box { margin-top: 20px; }

  /* Newsletter */
  .site-footer { padding: 50px 20px; }
  .nl__heading { font-size: 16px; line-height: 16px; }
  .nl__divider { width: 32%; margin-top: 7px; }
  .nl__form { padding: 0; }
  .nl__fields { flex-wrap: wrap; row-gap: 10px; }
  .nl__input, .nl__btn { flex-basis: 100%; }
}

@media (max-width: 441px) and (scripting: enabled) {
  .rm__content { overflow: hidden; transition: height .2s ease; }
  .rm:not(.is-open):not(.rm--short) .rm__content { height: 100px; }
  .rm[data-rm-height="94"]:not(.is-open):not(.rm--short) .rm__content { height: 94px; }
  .rm[data-rm-height="93"]:not(.is-open):not(.rm--short) .rm__content { height: 93px; }
  .rm[data-rm-height="91"]:not(.is-open):not(.rm--short) .rm__content { height: 91px; }
  .rm__btn {
    display: inline-block;
    padding: 10px 0 0;
    border: 0; background: none;
    color: var(--text-purple);
    font: 700 16px/24px var(--sklow);
    cursor: pointer;
  }
  .rm--short .rm__btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
