/*
Theme Name: Nora Wellbeing
Theme URI: https://norawellbeing.co.uk
Author: Nora Wellbeing
Author URI: https://norawellbeing.co.uk
Description: A bespoke WooCommerce theme for Nora Wellbeing, built around immersive mood-led shopping worlds.
Version: 0.1.26
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: nora-wellbeing
*/

:root {
  --nora-cream: #fbf3e8;
  --nora-cream-soft: #fffaf2;
  --nora-charcoal: #181210;
  --nora-charcoal-soft: #2a201c;
  --nora-burgundy: #8f2029;
  --nora-burgundy-deep: #69161d;
  --nora-gold: #c39638;
  --nora-plum: #3d2422;
  --nora-sage: #53634a;
  --nora-lavender: #7c6687;
  --nora-citrus: #c7782b;
  --nora-border-dark: rgba(255, 249, 245, 0.28);
  --nora-border-light: rgba(61, 36, 34, 0.14);
  --nora-shadow-soft: 0 22px 70px rgba(35, 23, 18, 0.18);
  --nora-shadow-card: 0 16px 45px rgba(35, 23, 18, 0.13);
  --nora-heading-font: "Cormorant Garamond", Georgia, serif;
  --nora-body-font: "Inter", Arial, sans-serif;
  --nora-content-width: 1360px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--nora-cream);
  color: var(--nora-charcoal);
  font-family: var(--nora-body-font);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: inherit;
  font-family: var(--nora-heading-font);
  font-weight: 600;
  line-height: 0.98;
}

p {
  margin: 0;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 18px;
  left: 18px;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  color: var(--nora-charcoal);
  background: var(--nora-cream-soft);
  border-radius: 4px;
}

.nora-site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 40;
  color: var(--nora-cream-soft);
}

body:not(.home) .nora-site-header {
  position: relative;
  color: var(--nora-cream-soft);
  background: var(--nora-charcoal);
}

body.admin-bar .nora-site-header {
  top: 32px;
}

.nora-site-header__inner {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  gap: 24px;
  width: min(100% - 48px, var(--nora-content-width));
  min-height: 92px;
  margin: 0 auto;
}

.nora-site-header__brand {
  display: inline-flex;
  align-items: center;
  width: 136px;
  text-decoration: none;
}

.nora-site-header__brand img {
  width: 100%;
}

.nora-site-header__nav {
  justify-self: center;
}

.nora-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  margin: 0;
  list-style: none;
  background: rgba(11, 9, 8, 0.38);
  border: 1px solid var(--nora-border-dark);
  border-radius: 999px;
  backdrop-filter: blur(18px);
}

.nora-menu a {
  display: inline-flex;
  min-width: 98px;
  justify-content: center;
  padding: 11px 16px;
  color: currentColor;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease;
}

.nora-menu a:hover,
.nora-menu a:focus-visible,
.nora-menu .current-menu-item > a {
  color: var(--nora-charcoal);
  background: rgba(255, 249, 245, 0.9);
  outline: none;
}

.nora-site-header__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.nora-icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: currentColor;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.nora-icon-button:hover,
.nora-icon-button:focus-visible {
  background: rgba(255, 249, 245, 0.12);
  border-color: var(--nora-border-dark);
  outline: none;
  transform: translateY(-1px);
}

.nora-icon {
  width: 22px;
  height: 22px;
}

.nora-cart-count {
  position: absolute;
  top: 5px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  color: var(--nora-charcoal);
  background: var(--nora-gold);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.nora-mobile-app-nav {
  display: none;
}

.nora-mobile-menu {
  display: none;
}

.nora-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  color: var(--nora-charcoal);
  background: var(--nora-cream-soft);
  border: 1px solid rgba(255, 249, 245, 0.64);
  border-radius: 999px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.nora-button:hover,
.nora-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.nora-button--primary {
  color: var(--nora-cream-soft);
  background: linear-gradient(135deg, var(--nora-burgundy), var(--nora-burgundy-deep));
  border-color: rgba(255, 249, 245, 0.08);
}

.nora-button--ghost {
  color: var(--nora-cream-soft);
  background: rgba(18, 14, 13, 0.22);
  border-color: rgba(255, 249, 245, 0.48);
  backdrop-filter: blur(14px);
}

.nora-button--dark {
  color: var(--nora-cream-soft);
  background: var(--nora-charcoal);
  border-color: var(--nora-charcoal);
}

.nora-section {
  padding: clamp(56px, 7vw, 112px) 24px;
}

.nora-section__inner {
  width: min(100%, var(--nora-content-width));
  margin: 0 auto;
}

.nora-section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.nora-section__eyebrow {
  color: var(--nora-burgundy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nora-section__title {
  margin-top: 10px;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
}

.nora-section__copy {
  max-width: 610px;
  color: rgba(24, 18, 16, 0.7);
}

.nora-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--nora-charcoal);
  font-weight: 650;
  text-decoration: none;
}

.nora-site-footer {
  color: var(--nora-cream-soft);
  background: var(--nora-charcoal);
}

.nora-site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  width: min(100% - 48px, var(--nora-content-width));
  padding: 42px 0;
  margin: 0 auto;
}

.nora-site-footer__brand img {
  width: 112px;
  margin-bottom: 18px;
}

.nora-site-footer__brand p,
.nora-site-footer__meta {
  max-width: 420px;
  color: rgba(255, 249, 245, 0.68);
}

.nora-site-footer__links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nora-footer-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nora-footer-menu li {
  margin: 0;
}

.nora-site-footer__links a {
  color: rgba(255, 249, 245, 0.82);
  text-decoration: none;
}

.nora-site-footer__meta {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 249, 245, 0.14);
  font-size: 0.84rem;
}

.nora-site-footer__credit {
  grid-column: 1 / -1;
  margin-top: -10px;
  color: rgba(255, 249, 245, 0.56);
  font-size: 0.78rem;
  text-align: center;
}

.nora-site-footer__credit a {
  color: rgba(255, 249, 245, 0.82);
  font-weight: 700;
  text-decoration: none;
}

.nora-site-footer__credit a:hover,
.nora-site-footer__credit a:focus-visible {
  color: var(--nora-cream-soft);
  text-decoration: underline;
}

.nora-basic-main {
  width: min(100% - 48px, 980px);
  padding: 72px 0;
  margin: 0 auto;
}

.nora-basic-main article + article {
  margin-top: 42px;
}

.nora-basic-main h1 {
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 8vw, 5rem);
}

@media (max-width: 980px) {
  .nora-site-header__inner {
    grid-template-columns: 1fr auto;
    min-height: 82px;
  }

  .nora-site-header__nav {
    display: none;
  }
}

@media (max-width: 700px) {
  body {
    padding-bottom: calc(94px + env(safe-area-inset-bottom));
  }

  body.admin-bar .nora-site-header {
    top: 46px;
  }

  .nora-site-header__inner {
    position: relative;
    grid-template-columns: 44px 1fr 44px;
    justify-items: center;
    width: min(100% - 32px, var(--nora-content-width));
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .nora-mobile-menu {
    position: relative;
    z-index: 4;
    display: block;
    justify-self: start;
  }

  .nora-mobile-menu__toggle {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    color: currentColor;
    appearance: none;
    background: rgba(255, 250, 242, 0.14);
    border: 1px solid rgba(255, 250, 242, 0.28);
    border-radius: 999px;
    box-shadow: 0 16px 42px rgba(19, 12, 10, 0.16);
    backdrop-filter: blur(18px) saturate(1.18);
    cursor: pointer;
  }

  body.nora-commerce-view:not(.home) .nora-mobile-menu__toggle,
  body.nora-search-view .nora-mobile-menu__toggle,
  body:not(.home):not(.nora-commerce-view) .nora-mobile-menu__toggle {
    color: var(--nora-charcoal);
    background: rgba(255, 250, 242, 0.82);
    border-color: rgba(61, 36, 34, 0.12);
  }

  .nora-mobile-menu__toggle span {
    display: block;
    width: 17px;
    height: 1.5px;
    background: currentColor;
    border-radius: 999px;
    transform-origin: center;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nora-mobile-menu.is-open .nora-mobile-menu__toggle span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .nora-mobile-menu.is-open .nora-mobile-menu__toggle span:nth-child(2) {
    opacity: 0;
  }

  .nora-mobile-menu.is-open .nora-mobile-menu__toggle span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .nora-mobile-menu__toggle:focus-visible {
    outline: 2px solid rgba(195, 150, 56, 0.7);
    outline-offset: 3px;
  }

  .nora-mobile-menu__panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: min(78vw, 280px);
    padding: 8px;
    color: var(--nora-charcoal);
    background: rgba(255, 250, 242, 0.9);
    border: 1px solid rgba(61, 36, 34, 0.12);
    border-radius: 24px;
    box-shadow: 0 24px 78px rgba(19, 12, 10, 0.22);
    backdrop-filter: blur(24px) saturate(1.16);
  }

  .nora-mobile-menu__panel[hidden] {
    display: none;
  }

  .nora-mobile-menu__nav {
    display: grid;
    gap: 4px;
  }

  .nora-mobile-menu__nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 11px 12px;
    color: inherit;
    border-radius: 18px;
    font-size: 0.94rem;
    font-weight: 750;
    text-decoration: none;
  }

  .nora-mobile-menu__nav a:hover,
  .nora-mobile-menu__nav a:focus-visible,
  .nora-mobile-menu__nav a.is-active {
    color: var(--nora-burgundy);
    background: rgba(74, 37, 69, 0.08);
    outline: none;
  }

  .nora-mobile-menu__nav .nora-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
  }

  .nora-mobile-menu__item-icon {
    position: relative;
    display: inline-flex;
  }

  .nora-mobile-menu .nora-cart-count {
    top: -8px;
    right: -10px;
  }

  .nora-site-header__brand {
    width: 108px;
    justify-content: center;
    justify-self: center;
    grid-column: 2;
  }

  .nora-site-header__actions {
    display: none;
  }

  .nora-mobile-app-nav {
    position: fixed;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 12px;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    min-height: 74px;
    padding: 8px;
    color: rgba(255, 250, 242, 0.76);
    background: linear-gradient(135deg, rgba(28, 20, 18, 0.78), rgba(64, 45, 39, 0.68));
    border: 1px solid rgba(255, 250, 242, 0.26);
    border-radius: 26px;
    box-shadow: 0 20px 60px rgba(19, 12, 10, 0.24);
    backdrop-filter: blur(22px) saturate(1.18);
  }

  .nora-mobile-app-nav::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: 25px;
    background: radial-gradient(circle at 18% 0%, rgba(255, 250, 242, 0.2), transparent 32%),
      radial-gradient(circle at 84% 112%, rgba(195, 150, 56, 0.2), transparent 38%);
    pointer-events: none;
  }

  .nora-mobile-app-nav__item {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 58px;
    color: inherit;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
  }

  .nora-mobile-app-nav__item:hover,
  .nora-mobile-app-nav__item:focus-visible,
  .nora-mobile-app-nav__item.is-active {
    color: var(--nora-charcoal);
    background: rgba(255, 250, 242, 0.94);
    outline: none;
  }

  .nora-mobile-app-nav__item:focus-visible {
    box-shadow: 0 0 0 3px rgba(195, 150, 56, 0.28);
  }

  .nora-mobile-app-nav__item:hover {
    transform: translateY(-1px);
  }

  .nora-mobile-app-nav .nora-icon {
    width: 21px;
    height: 21px;
  }

  .nora-mobile-app-nav__icon {
    position: relative;
    display: inline-flex;
  }

  .nora-mobile-app-nav .nora-cart-count {
    top: -8px;
    right: -10px;
  }

  .nora-icon-button {
    width: 40px;
    height: 40px;
  }

  .nora-button {
    width: 100%;
  }

  .nora-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .nora-section__header {
    display: block;
  }

  .nora-section__copy {
    margin-top: 14px;
  }

  .nora-site-footer__inner {
    grid-template-columns: 1fr;
    width: min(100% - 32px, var(--nora-content-width));
  }

  .nora-site-footer__links {
    justify-content: flex-start;
  }

  .nora-footer-menu {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
