/**
 * Base stylesheet - Core styles, header, footer, navigation
 *
 * @package Hertwill Handbags
 */

/* Import design system variables */
@import 'variables.css';

/* ====================
   Reset & Base Styles
   ==================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* Prevent background scroll when overlays/drawers are open */
html.hh-no-scroll,
body.hh-no-scroll {
  overflow: hidden;
}

body {
  font-family: var(--hh-font-body);
  background: var(--hh-color-ivory);
  color: var(--hh-color-charcoal-deep);
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

@media (pointer: coarse) {

  button,
  input,
  textarea,
  select {
    min-height: 44px;
    min-width: 44px;
  }

  /* Targeted anchor touch targets to avoid breaking inline links */
  nav a,
  .hh-menu a,
  .hh-footer-links a,
  .hh-social-link,
  .hh-button,
  .woocommerce-loop-product__link,
  .woocommerce-pagination a,
  .page-numbers,
  .button,
  .add_to_cart_button,
  .remove {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Refined Typography Scale - Quieter, More Restrained */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--hh-font-heading);
  font-weight: 500;
  line-height: 1.15;
  color: var(--hh-color-charcoal-deep);
  margin: 0 0 var(--hh-spacing-sm);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 3.8vw + 1rem, 4rem);
}

h2 {
  font-size: clamp(1.85rem, 2.5vw + 0.9rem, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 1.8vw + 0.8rem, 2.2rem);
}

h4 {
  font-size: clamp(1.2rem, 1.2vw + 0.5rem, 1.6rem);
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1.4rem;
  color: rgba(42, 39, 37, 0.78);
}

ul,
ol {
  padding-left: 1.5rem;
  margin: 0 0 1.25rem;
}

strong,
b {
  font-weight: 600;
}

em,
i {
  font-style: italic;
}

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

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

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

/* ====================
   Button System - Refined Three-Tier Approach
   ==================== */

.hh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--hh-radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--hh-transition-slow);
  white-space: nowrap;
}

/* Primary Button - Solid Dark */
.hh-button,
.hh-button--primary {
  background: var(--hh-color-charcoal-deep);
  color: var(--hh-color-ivory);
  border: 1.5px solid transparent;
  box-shadow: 0 12px 30px rgba(31, 26, 23, 0.15);
}

.hh-button:hover,
.hh-button--primary:hover {
  background: transparent;
  color: var(--hh-color-charcoal-deep);
  border-color: rgba(31, 26, 23, 0.24);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(31, 26, 23, 0.18);
}

.hh-button:active,
.hh-button--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(31, 26, 23, 0.15);
}

/* Secondary Button - Outline */
.hh-button--outline {
  background: transparent;
  color: var(--hh-color-charcoal-deep);
  border: 1.5px solid var(--hh-color-charcoal);
  box-shadow: none;
}

.hh-button--outline:hover {
  background: var(--hh-color-charcoal-deep);
  color: var(--hh-color-white);
  border-color: var(--hh-color-charcoal-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(31, 26, 23, 0.12);
}

/* Tertiary Button - Ghost (for light backgrounds) */
.hh-button--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--hh-color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hh-button--ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Text Link Button */
.hh-button--text {
  background: none;
  border: none;
  padding: 0;
  color: var(--hh-color-charcoal);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0.02em;
}

.hh-button--text:hover {
  color: var(--hh-color-gold);
  text-decoration-color: var(--hh-color-gold);
  transform: none;
}

/* Button Sizes */
.hh-button--small {
  padding: 0.625rem 1.5rem;
  font-size: 0.8rem;
}

.hh-button--large {
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
}

/* Button States */
.hh-button:disabled,
.hh-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.hh-button:disabled:hover,
.hh-button[disabled]:hover {
  transform: none;
  box-shadow: none;
}

/* ====================
   Container
   ==================== */

.hh-container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

@supports (padding-left: max(0px, 1vw)) {
  .hh-container {
    padding-left: max(clamp(1rem, 5vw, 2.5rem), env(safe-area-inset-left));
    padding-right: max(clamp(1rem, 5vw, 2.5rem), env(safe-area-inset-right));
  }
}

/* ====================
   Shared Section Heading Pattern
   ==================== */

.hh-section-heading {
  max-width: 720px;
  margin: 0 auto var(--hh-spacing-lg);
  text-align: left;
}

@media (min-width: 768px) {
  .hh-section-heading {
    margin: 0 auto calc(var(--hh-spacing-xl) + var(--hh-spacing-md));
  }
}

.hh-section-heading--center {
  text-align: center;
}

.hh-section-heading__kicker {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hh-color-gold);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.hh-section-heading__subtitle {
  color: rgba(42, 39, 37, 0.72);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}

.hh-section-cta {
  text-align: center;
  margin-top: var(--hh-spacing-lg);
}

/* ====================
   Skip Link (Accessibility)
   ==================== */

.hh-skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--hh-color-gold);
  color: var(--hh-color-charcoal);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 1rem 0;
  text-decoration: none;
  z-index: 200;
  transition: top var(--hh-transition-base);
  font-weight: 600;
}

.hh-skip-link:focus {
  top: 0;
}

/* ====================
   Screen Reader Only
   ==================== */

.hh-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ====================
   Announcement Bar - Subtle at Top
   ==================== */

.hh-announcement-bar {
  background: var(--hh-color-charcoal-deep);
  color: var(--hh-color-gold);
  text-align: center;
  padding: 0.75rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(197, 169, 110, 0.15);
}

.hh-announcement-bar__message {
  margin: 0;
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  font-weight: 500;
  letter-spacing: clamp(0.04em, 1vw, 0.1em);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  white-space: normal;
  overflow: visible;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .hh-announcement-bar {
    padding: 0.625rem 0;
  }

  .hh-announcement-bar__message {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
  }

  .hh-site-title,
  .custom-logo-link {
    font-size: 2.15rem;
    letter-spacing: 0.2em;
  }
}

@media (min-width: 1024px) {

  .hh-site-title,
  .custom-logo-link {
    font-size: 2.45rem;
  }
}

/* ====================
   Site Header
   ==================== */

.hh-site-header {
  position: sticky;
  top: 0;
  z-index: var(--hh-z-header);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(213, 195, 179, 0.4);
  box-shadow: 0 8px 30px rgba(31, 26, 23, 0.04);
  padding: 1rem 0;
  transition: var(--hh-transition-base);
}

.hh-site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(31, 26, 23, 0.08);
}

.hh-site-header .hh-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(0.5rem, 3vw, 1.5rem);
}

/* ====================
   Site Branding
   ==================== */

.hh-site-branding {
  display: flex;
  align-items: center;
}

.hh-site-title,
.custom-logo-link {
  font-family: var(--hh-font-heading);
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  font-weight: 400;
  letter-spacing: clamp(0.14em, 2.5vw, 0.22em);
  text-transform: uppercase;
  color: var(--hh-color-charcoal-deep);
  text-decoration: none;
  line-height: 1;
  padding: 0.15rem 0;
  display: inline-block;
  transition: color var(--hh-transition-fast);
}

.hh-site-title:hover,
.custom-logo-link:hover {
  color: var(--hh-color-gold);
}

.custom-logo {
  max-height: 48px;
  width: auto;
}

/* ====================
   Primary Navigation
   ==================== */

.hh-primary-nav {
  justify-self: center;
}

/* Progressive enhancement defaults (nav/cart) */
/* Note: nav/cart JS-enhanced layout is scoped by responsive blocks below. */
.no-js .hh-mobile-toggle {
  display: none;
}

.no-js .hh-nav-overlay {
  display: none;
}

.no-js .hh-cart-toggle.js-only {
  display: none;
}

.hh-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(0.75rem, 1.2vw, 1.25rem);
  align-items: center;
  margin: 0 clamp(1.5rem, 4vw, 3rem);
}

.hh-menu li {
  margin: 0;
}

.hh-menu a {
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--hh-color-charcoal);
  text-decoration: none;
  position: relative;
  transition: color var(--hh-transition-fast);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hh-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--hh-color-gold), var(--hh-color-pearl));
  transition: width var(--hh-transition-base);
}

.hh-menu a:hover,
.hh-menu [aria-current="page"],
.hh-menu .current-menu-item>a,
.hh-menu .current_page_item>a,
.hh-menu .current_page_parent>a,
.hh-menu .current-menu-ancestor>a {
  color: var(--hh-color-gold);
}

.hh-menu a:hover::after,
.hh-menu [aria-current="page"]::after,
.hh-menu .current-menu-item>a::after,
.hh-menu .current_page_item>a::after,
.hh-menu .current_page_parent>a::after,
.hh-menu .current-menu-ancestor>a::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.hh-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(31, 26, 23, 0.2);
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: all var(--hh-transition-fast);
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.hh-mobile-toggle:hover {
  background: var(--hh-color-charcoal);
  color: var(--hh-color-ivory);
  border-color: var(--hh-color-charcoal);
}

.hh-mobile-toggle__icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  height: 18px;
  justify-content: center;
}

.hh-mobile-toggle__icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: all var(--hh-transition-base);
}

.hh-mobile-toggle[aria-expanded='true'] .hh-mobile-toggle__icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hh-mobile-toggle[aria-expanded='true'] .hh-mobile-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.hh-mobile-toggle[aria-expanded='true'] .hh-mobile-toggle__icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ====================
   Header Utilities (Cart, Search, etc.)
   ==================== */

.hh-header-utils {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

/* Cart Toggle - CSS-only icon (matching parelparol-theme) */
.hh-cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem 0.45rem 0.45rem;
  border-radius: var(--hh-radius-full);
  border: 1px solid transparent;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--hh-color-charcoal-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  transition: var(--hh-transition-base);
  line-height: 1;
  cursor: pointer;
}

.hh-cart-toggle:hover {
  border-color: rgba(42, 39, 37, 0.18);
  box-shadow: 0 10px 25px rgba(31, 26, 23, 0.12);
  transform: translateY(-2px);
  color: var(--hh-color-charcoal-deep);
}

/* Cart Icon - CSS-only (no SVG) */
.hh-cart-toggle__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--hh-color-mist);
  position: relative;
  flex-shrink: 0;
}

.hh-cart-toggle__icon::before,
.hh-cart-toggle__icon::after {
  content: '';
  position: absolute;
  background-color: transparent;
}

/* Cart Icon - Bag body */
.hh-cart-toggle__icon::before {
  top: calc(50% - 6.5px);
  left: 50%;
  width: 20px;
  height: 16px;
  border: 2px solid var(--hh-color-charcoal);
  border-radius: var(--hh-radius-sm);
  transform: translateX(-50%);
}

/* Cart Icon - Bag handle */
.hh-cart-toggle__icon::after {
  top: calc(50% - 9.5px);
  left: 50%;
  width: 18px;
  height: 10px;
  border: 2px solid var(--hh-color-charcoal);
  border-bottom: none;
  border-radius: 9px 9px 0 0;
  transform: translateX(-50%);
}

.hh-cart-toggle__label,
.hh-account-link__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  text-transform: uppercase;
}

/* Cart Count Badge */
.hh-cart-count {
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background-color: var(--hh-color-gold);
  color: var(--hh-color-charcoal-deep);
  font-size: 0.68rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Cart Styling */
@media (min-width: 768px) {
  .hh-cart-toggle {
    padding: 0.55rem 1.1rem 0.55rem 0.55rem;
    gap: 0.6rem;
    font-size: 0.8rem;
  }

  .hh-cart-toggle__icon {
    width: 38px;
    height: 38px;
  }

  .hh-cart-count {
    min-width: 1.5rem;
    height: 1.5rem;
    font-size: 0.72rem;
  }

  .hh-header-utils {
    gap: 0.9rem;
  }
}

@media (min-width: 1024px) {
  .hh-cart-toggle {
    padding: 0.6rem 1.2rem 0.6rem 0.6rem;
    font-size: 0.85rem;
  }

  .hh-cart-toggle__icon {
    width: 42px;
    height: 42px;
  }

  .hh-cart-count {
    min-width: 1.6rem;
    height: 1.6rem;
    font-size: 0.75rem;
  }

  .hh-header-utils {
    gap: 1.1rem;
  }
}

.hh-cart-info {
  line-height: 1;
}

/* Cart badge pulse microinteraction */
.hh-cart-info.is-pulse {
  animation: hh-pulse 0.35s ease;
}

/* Account Link - matches cart styling */
.hh-account-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem 0.45rem 0.45rem;
  border-radius: var(--hh-radius-full);
  border: 1px solid transparent;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--hh-color-charcoal-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--hh-transition-base);
  line-height: 1;
}

.hh-account-link:hover {
  border-color: rgba(42, 39, 37, 0.18);
  box-shadow: 0 10px 25px rgba(31, 26, 23, 0.12);
  transform: translateY(-2px);
}

.hh-account-link__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--hh-color-mist);
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hh-account-link__icon::before,
.hh-account-link__icon::after {
  content: '';
  position: absolute;
}

/* Account Icon - Head (filled circle) */
.hh-account-link__icon::before {
  top: calc(50% - 8.5px);
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--hh-color-charcoal);
  transform: translateX(-50%);
  display: block;
}

/* Account Icon - Shoulders (rounded block) */
.hh-account-link__icon::after {
  top: calc(50% - 3.5px);
  left: 50%;
  width: 20px;
  height: 12px;
  border-radius: 12px 12px 7px 7px;
  background-color: var(--hh-color-charcoal);
  transform: translateX(-50%);
  display: block;
}

.hh-account-link__label {
  display: none;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .hh-account-link {
    padding: 0.55rem 1.1rem 0.55rem 0.55rem;
    gap: 0.6rem;
    font-size: 0.8rem;
  }

  .hh-account-link__icon {
    width: 38px;
    height: 38px;
  }

}

@media (min-width: 1024px) {
  .hh-account-link {
    padding: 0.6rem 1.2rem 0.6rem 0.6rem;
    font-size: 0.85rem;
  }

  .hh-account-link__icon {
    width: 42px;
    height: 42px;
  }
}

@media (min-width: 640px) {

  .hh-cart-toggle__label,
  .hh-account-link__label {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    margin: 0;
    overflow: visible;
    border: 0;
  }
}

@keyframes hh-pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }

  100% {
    transform: scale(1);
  }
}

/* ====================
   Mobile Navigation
   ==================== */

@media (max-width: 768px) {
  :root {
    --hh-nav-overlay-offset: var(--hh-mobile-nav-width);
  }

  .hh-site-header .hh-container {
    grid-template-columns: auto 1fr auto;
  }

  .hh-mobile-toggle {
    display: flex;
    justify-self: start;
  }

  .hh-site-branding {
    justify-self: center;
  }

  .hh-site-header.is-nav-open {
    z-index: var(--hh-z-mobile-nav);
  }

  .hh-primary-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--hh-mobile-nav-width);
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile browsers */
    background: var(--hh-color-white);
    box-shadow: 4px 0 24px rgba(31, 26, 23, 0.15);
    z-index: var(--hh-z-mobile-nav);
    transform: translateX(-100%);
    transition: transform var(--hh-transition-base);
    padding: 2rem 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
  }

  .hh-primary-nav.is-open {
    transform: translateX(0);
  }

  .hh-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .hh-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(31, 26, 23, 0.08);
  }

  .hh-menu a {
    display: block;
    width: 100%;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--hh-color-charcoal-deep);
    cursor: pointer;
    position: relative;
    z-index: 1;
  }

  .hh-menu a::after {
    display: none;
  }

  .hh-menu a:hover {
    color: var(--hh-color-gold);
    padding-left: 0.5rem;
    transition: all var(--hh-transition-fast);
  }
}

/* Mobile Nav Overlay */
.hh-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 26, 23, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  left: var(--hh-nav-overlay-offset);
  z-index: var(--hh-z-nav-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--hh-transition-base);
}

.hh-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Page hero styles live in pages.css */

/* Progressive enhancement states - nav layout */
.no-js .hh-primary-nav {
  position: static;
  transform: none;
  height: auto;
  box-shadow: none;
  padding: 0;
}

.no-js .hh-mobile-toggle {
  display: none;
}

/* ====================
   Site Footer - Expanded Structure
   ==================== */

.hh-site-footer {
  background:
    radial-gradient(circle at top left, rgba(213, 195, 179, 0.16), transparent 40%),
    var(--hh-color-charcoal-deep);
  color: rgba(248, 245, 241, 0.85);
  --hh-footer-top-space: clamp(3.5rem, 6.8vw, 6.75rem);
  --hh-footer-major-space: clamp(3rem, 5.8vw, 5.75rem);
  --hh-footer-minor-space: clamp(1.5rem, 3vw, 2.5rem);
  padding: var(--hh-footer-top-space) 0 var(--hh-footer-minor-space);
  margin-top: auto;
}

/* Newsletter Signup - Top Section */
.hh-footer-newsletter {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: var(--hh-footer-major-space);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hh-footer-newsletter h4 {
  font-family: var(--hh-font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hh-color-white);
  margin: 0 0 var(--hh-spacing-sm);
}

@media (min-width: 768px) {
  .hh-footer-newsletter h4 {
    font-size: 1.25rem;
    letter-spacing: 0.16em;
  }
}

.hh-footer-newsletter p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 var(--hh-spacing-md);
}

@media (min-width: 768px) {
  .hh-footer-newsletter p {
    font-size: 1rem;
  }
}

/* Newsletter form styling - Horizontal layout matching old custom form */

.hh-footer-newsletter .tnp-subscription {
  max-width: 500px;
  margin: 0 auto;
}

.hh-footer-newsletter form,
.hh-footer-newsletter .tnp-form {
  display: flex;
  gap: var(--hh-spacing-sm);
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  margin-top: var(--hh-spacing-sm);
}

.hh-footer-newsletter .tnp-field {
  margin: 0;
}

.hh-footer-newsletter .tnp-field input,
.hh-footer-newsletter .tnp-field select,
.hh-footer-newsletter .tnp-field textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: var(--hh-radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--hh-color-white);
  font-size: 0.95rem;
}

.hh-footer-newsletter .tnp-field input:focus,
.hh-footer-newsletter .tnp-field select:focus,
.hh-footer-newsletter .tnp-field textarea:focus {
  outline: none;
  border-color: var(--hh-color-gold);
  box-shadow: 0 0 0 3px rgba(197, 169, 110, 0.25);
}

.hh-footer-newsletter .tnp-field-email {
  flex: 1 1 280px;
  min-width: 0;
  max-width: 440px;
}

.hh-footer-newsletter .tnp-field-button {
  flex: 0 0 150px;
  display: flex;
  align-items: stretch;
}

/* Hide the label */
.hh-footer-newsletter .tnp-field label {
  display: none;
}

.hh-site-footer .hh-footer-newsletter .tnp-email,
.hh-site-footer .hh-footer-newsletter input[type='email'],
.hh-site-footer .hh-footer-newsletter .tnp-field input[type='email'] {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--hh-radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--hh-color-white);
  letter-spacing: 0.01em;
  transition: var(--hh-transition-base);
  appearance: none;
  -webkit-appearance: none;
}

.hh-site-footer .hh-footer-newsletter .tnp-email::placeholder,
.hh-site-footer .hh-footer-newsletter input[type='email']::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.hh-site-footer .hh-footer-newsletter .tnp-email:focus,
.hh-site-footer .hh-footer-newsletter input[type='email']:focus,
.hh-site-footer .hh-footer-newsletter .tnp-field input[type='email']:focus {
  outline: none;
  border-color: var(--hh-color-gold);
  box-shadow: 0 0 0 3px rgba(197, 169, 110, 0.25);
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--hh-color-white);
}

.hh-site-footer .hh-footer-newsletter .tnp-submit,
.hh-site-footer .hh-footer-newsletter button[type='submit'],
.hh-site-footer .hh-footer-newsletter input[type='submit'] {
  padding: 0.875rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--hh-color-gold) !important;
  color: var(--hh-color-charcoal-deep) !important;
  border: none;
  border-radius: var(--hh-radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--hh-transition-base), box-shadow var(--hh-transition-base);
  box-shadow: none;
}

.hh-site-footer .hh-footer-newsletter .tnp-subscription input.tnp-submit:hover,
.hh-site-footer .hh-footer-newsletter .tnp-subscription input.tnp-submit:focus-visible,
.hh-site-footer .hh-footer-newsletter .tnp-submit:hover,
.hh-site-footer .hh-footer-newsletter .tnp-submit:focus-visible,
.hh-site-footer .hh-footer-newsletter button[type='submit']:hover,
.hh-site-footer .hh-footer-newsletter button[type='submit']:focus-visible,
.hh-site-footer .hh-footer-newsletter input[type='submit']:hover,
.hh-site-footer .hh-footer-newsletter input[type='submit']:focus-visible {
  background: var(--hh-color-gold) !important;
  color: var(--hh-color-charcoal-deep) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(197, 169, 110, 0.45);
  outline: 3px solid rgba(197, 169, 110, 0.55);
  outline-offset: 3px;
}

.hh-site-footer .hh-footer-newsletter .tnp-subscription input.tnp-submit:active,
.hh-site-footer .hh-footer-newsletter .tnp-submit:active,
.hh-site-footer .hh-footer-newsletter button[type='submit']:active,
.hh-site-footer .hh-footer-newsletter input[type='submit']:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(197, 169, 110, 0.3);
}



/* Mobile: Stack vertically */
@media (max-width: 768px) {

  .hh-footer-newsletter form,
  .hh-footer-newsletter .tnp-form {
    flex-direction: column;
  }

  .hh-footer-newsletter .tnp-field-email,
  .hh-footer-newsletter .tnp-field-button {
    width: 100%;
    flex: 1 1 auto;
    max-width: none;
  }

  .hh-footer-newsletter .tnp-submit {
    width: 100%;
  }
}

.hh-footer-newsletter .tnp-privacy,
.hh-footer-newsletter .tnp-response {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--hh-spacing-xs);
  line-height: 1.6;
}

.hh-footer-newsletter .tnp-field-button .tnp-submit,
.hh-footer-newsletter .tnp-field-button button,
.hh-footer-newsletter .tnp-field-button input[type='submit'] {
  width: 100%;
}

/* Newsletter plugin fallback buttons (shortcode outputs) */
/* Newsletter plugin default buttons outside footer (keep plugin defaults) */

.hh-newsletter-placeholder {
  padding: 1.5rem;
  background: rgba(197, 169, 110, 0.1);
  border-radius: var(--hh-radius-md);
  border: 1px solid rgba(197, 169, 110, 0.3);
}

.hh-newsletter-placeholder p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
}

/* Footer Content Grid */
.hh-footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 4vw, 3.75rem);
  margin: var(--hh-footer-major-space) 0 var(--hh-footer-major-space);
  padding: 0;
}

@media (min-width: 640px) {
  .hh-footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hh-footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Footer Section */
.hh-footer-section h3 {
  font-family: var(--hh-font-heading);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hh-color-white);
  margin-bottom: 0.85rem;
}

.hh-footer-section p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(248, 245, 241, 0.75);
  margin: 0;
}

/* Footer Links */
.hh-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hh-footer-links a {
  font-size: 0.9375rem;
  color: rgba(248, 245, 241, 0.75);
  text-decoration: none;
  transition: color var(--hh-transition-fast);
  display: inline-block;
}

.hh-footer-links a:hover {
  color: var(--hh-color-gold);
}

/* Social Links */
.hh-social-links {
  display: flex;
  gap: var(--hh-spacing-sm);
  justify-content: center;
  margin: clamp(3rem, 4vw, 3.75rem) auto;
}

.hh-social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(248, 245, 241, 0.75);
  transition: var(--hh-transition-base);
  text-decoration: none;
}

.hh-social-link:hover {
  background-color: var(--hh-color-gold);
  border-color: var(--hh-color-gold);
  color: var(--hh-color-charcoal-deep);
  transform: translateY(-2px);
}

.hh-social-link svg {
  width: 20px;
  height: 20px;
}

@media (pointer: coarse) {
  .hh-social-link {
    width: 48px;
    height: 48px;
  }

  .hh-social-link svg {
    width: 22px;
    height: 22px;
  }
}

/* Footer Bottom */
.hh-footer-bottom {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: var(--hh-footer-major-space);
  padding-top: var(--hh-footer-minor-space);
}

.hh-footer-mark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hh-footer-mark img {
  width: 38px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.hh-footer-copy {
  font-size: 0.75rem;
  color: rgba(248, 245, 241, 0.75);
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (min-width: 769px) {
  .hh-footer-copy {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
  }
}

/* Footer Navigation Menu */
.hh-footer-nav__menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hh-footer-nav__menu a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 245, 241, 0.65);
  text-decoration: none;
  transition: color var(--hh-transition-fast);
  opacity: 0.9;
}

.hh-footer-nav__menu a:hover {
  color: var(--hh-color-gold);
  opacity: 1;
}

/* Trust Badges */
.hh-footer-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 245, 241, 0.75);
}

.hh-footer-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding-left: 1.9rem;
}

.hh-footer-badges span::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--hh-color-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.hh-footer-badges span::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 12px;
  border: solid var(--hh-color-charcoal-deep);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  top: 50%;
  left: 7px;
  margin-top: -7px;
}

/* ====================
   Focus Styles (Accessibility)
   ==================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.hh-cart-toggle:focus-visible,
.hh-mobile-toggle:focus-visible {
  outline: 3px solid var(--hh-color-gold);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

/* ====================
   Responsive Typography
   ==================== */

@media (max-width: 640px) {
  body {
    font-size: 0.95rem;
  }

  .hh-site-header .hh-container {
    gap: 1rem;
  }

  .hh-menu a {
    font-size: 0.9rem;
  }

  .hh-footer-nav__menu {
    gap: 0.75rem;
  }
}

/* ====================
   Reduced Motion (Accessibility)
   ==================== */

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

/* ====================
   Prefer Increased Contrast (where supported)
   ==================== */
@media (prefers-contrast: more) {
  :root {
    --hh-color-charcoal: #1f1a17;
    --hh-color-charcoal-deep: #141110;
  }

  a:hover,
  .hh-menu a:hover,
  .hh-button:hover {
    filter: none;
  }

  .hh-button,
  .hh-button--primary {
    box-shadow: none;
  }

  .hh-cart-toggle:hover,
  .hh-feature:hover,
  .hh-product-card:hover {
    box-shadow: none;
  }
}

/* ====================
   Notice Messages (Newsletter, etc.)
   ==================== */

.hh-notice {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(500px, calc(100% - 2rem));
  padding: 1rem 1.5rem;
  border-radius: var(--hh-radius-lg);
  box-shadow: var(--hh-shadow-floating);
  z-index: 1000;
  animation: hh-slide-up 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes hh-slide-up {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.hh-notice p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
}


.hh-notice--success {
  background: var(--hh-color-alert-success);
  color: var(--hh-color-white);
}


.hh-notice--error {
  background: var(--hh-color-alert-error);
  color: var(--hh-color-white);
}

.hh-notice--info {
  background: var(--hh-color-gold);
  color: var(--hh-color-charcoal-deep);
}

/* Scroll reveal base states */
.hh-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--hh-transition-slow),
    transform var(--hh-transition-slow);
  transition-delay: var(--hh-reveal-delay, 0s);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  .hh-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}