/* ========================================
   Container
   ======================================== */
.hw-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.hw-container--narrow {
  max-width: var(--max-width-narrow);
}

/* ========================================
   Section
   ======================================== */
.hw-section {
  padding: var(--section-padding-mobile) 0;
}

@media (min-width: 768px) {
  .hw-section {
    padding: var(--section-padding) 0;
  }
}

.hw-section--wine {
  background-color: var(--color-wine-dark);
  color: var(--color-white);
}

.hw-section--cream {
  background-color: var(--color-cream);
}

.hw-section--light {
  background-color: var(--color-light-gray);
}

/* ========================================
   Section Heading
   ======================================== */
.hw-section-heading {
  margin-bottom: 48px;
}

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

.hw-section-heading__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .hw-section-heading__title {
    font-size: 32px;
  }
}

.hw-section-heading__subtitle {
  font-size: 15px;
  color: var(--color-gray);
  line-height: 1.8;
}

.hw-section--wine .hw-section-heading__subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   Buttons
   ======================================== */
.hw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 16px 40px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.hw-btn--primary {
  background: linear-gradient(180deg, var(--color-wine-light) 0%, var(--color-wine) 60%, var(--color-wine-dark) 100%);
  color: var(--color-white);
  border-radius: var(--radius-full);
  box-shadow:
    inset 0 0 0 1px var(--color-gold),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -10px 20px rgba(0, 0, 0, 0.18),
    0 4px 16px rgba(74, 28, 35, 0.35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hw-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px var(--color-gold),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -10px 20px rgba(0, 0, 0, 0.2),
    0 8px 22px rgba(74, 28, 35, 0.45);
}

.hw-btn--outline {
  background-color: transparent;
  color: var(--color-black);
  border: 1px solid var(--color-black);
}

.hw-btn--outline:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

.hw-btn--white {
  background: linear-gradient(180deg, var(--color-gold-light) 0%, var(--color-gold) 60%, var(--color-gold-dark) 100%);
  color: var(--color-wine-dark);
  border-radius: var(--radius-full);
  box-shadow:
    inset 0 0 0 1px var(--color-wine-dark),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -10px 18px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(168, 137, 61, 0.4);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hw-btn--white:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px var(--color-wine-dark),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -10px 18px rgba(0, 0, 0, 0.15),
    0 8px 22px rgba(168, 137, 61, 0.5);
}

.hw-btn--large {
  font-size: 18px;
  padding: 20px 48px;
  border-radius: var(--radius-full);
}

.hw-btn--full {
  width: 100%;
}

.hw-link {
  color: var(--color-wine);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
  transition: opacity var(--transition-fast);
}

.hw-link:hover {
  opacity: 0.7;
}

@media (max-width: 767px) {
  .hw-btn--large {
    font-size: 16px;
    padding: 18px 32px;
    width: 100%;
  }
}

/* ========================================
   Cards
   ======================================== */
.hw-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 32px 24px;
}

.hw-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--color-wine);
}

.hw-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hw-card__text {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.8;
}

/* ========================================
   Badge
   ======================================== */
.hw-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white);
}

.hw-badge__number {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

/* ========================================
   Grid
   ======================================== */
.hw-grid {
  display: grid;
  gap: 24px;
}

.hw-grid--2 { grid-template-columns: 1fr; }
.hw-grid--3 { grid-template-columns: 1fr; }
.hw-grid--4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .hw-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .hw-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .hw-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .hw-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ========================================
   Check List
   ======================================== */
.hw-checklist {
  display: grid;
  gap: 12px;
}

.hw-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.6;
}

.hw-checklist__item::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  background-color: var(--color-wine);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

.hw-section--wine .hw-checklist__item::before {
  background-color: var(--color-white);
}

@media (min-width: 768px) {
  .hw-checklist--2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   Step
   ======================================== */
.hw-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.hw-step:last-child {
  border-bottom: none;
}

.hw-step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-wine);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
}

.hw-step__content {
  flex: 1;
}

.hw-step__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hw-step__text {
  font-size: 14px;
  color: var(--color-gray);
}

/* ========================================
   Utility
   ======================================== */
.hw-text-center { text-align: center; }
.hw-text-wine { color: var(--color-wine); }
.hw-mt-24 { margin-top: 24px; }
.hw-mt-32 { margin-top: 32px; }
.hw-mt-48 { margin-top: 48px; }
.hw-mb-16 { margin-bottom: 16px; }
.hw-mb-24 { margin-bottom: 24px; }

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

/* ========================================
   Header
   ======================================== */
.hw-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  background: linear-gradient(180deg, #2A0E12 0%, #3A1217 100%);
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  height: var(--header-height);
  transition: background-color var(--transition-base);
}

.hw-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  gap: 24px;
}

.hw-header__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.hw-header__logo-seal {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-gold);
  font-size: 20px;
  font-weight: 500;
  position: relative;
  flex-shrink: 0;
}

.hw-header__logo-seal::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 50%;
}

.hw-header__logo-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.1;
}

.hw-header__logo-main {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.18em;
}

.hw-header__logo-sub {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 11px;
  font-weight: 400;
  color: var(--color-gold);
  letter-spacing: 0.4em;
}

.hw-header__nav {
  display: none;
}

.hw-header__nav-list {
  display: flex;
  gap: 4px;
}

.hw-header__nav-list a {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  color: #E8DDD3;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.hw-header__nav-list a::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.hw-header__nav-list a:hover {
  color: var(--color-gold);
}

.hw-header__nav-list a:hover::before {
  transform: scaleX(1);
}

.hw-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hw-header__login-link {
  font-size: 13px;
  font-weight: 500;
  color: #D8C8BB;
  letter-spacing: 0.05em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  display: none;
}

.hw-header__login-link:hover {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

/* Header CTA — pill + bevel gold (inherits .hw-btn--white style, slimmer) */
.hw-btn.hw-btn--header {
  font-size: 13px;
  font-weight: 700;
  padding: 12px 24px;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hw-btn.hw-btn--header i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.hw-btn.hw-btn--header:hover i {
  transform: translateX(3px);
}

/* Font Awesome icons inside any .hw-btn — vertical center */
.hw-btn i,
.hw-btn .fa-solid,
.hw-btn .fa-regular,
.hw-btn .fa-brands {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hw-header__btn-mobile {
  display: inline;
}

.hw-header__btn-desktop {
  display: none !important;
}

@media (min-width: 1024px) {
  .hw-header__btn-mobile {
    display: none !important;
  }

  .hw-header__btn-desktop {
    display: inline !important;
  }
}

/* Hamburger — Circle Frame */
.hw-header__hamburger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition-base);
  flex-shrink: 0;
}

.hw-header__hamburger:hover {
  background-color: rgba(201, 168, 76, 0.12);
}

.hw-header__hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background-color: var(--color-gold);
  transition: transform var(--transition-base), opacity var(--transition-base), background-color var(--transition-base);
  border-radius: 1px;
}

.hw-header__hamburger.is-open {
  background-color: var(--color-gold);
}

.hw-header__hamburger.is-open span {
  background-color: var(--color-wine-dark);
}

.hw-header__hamburger.is-open span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.hw-header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hw-header__hamburger.is-open span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Mobile menu overlay — Fullscreen Dark + Gold */
.hw-header__nav.is-open {
  display: block;
  position: fixed;
  top: var(--header-height-mobile);
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #2A0E12 0%, #3A1217 100%);
  color: #F5EBE4;
  z-index: 10000;
  overflow-y: auto;
  padding: 32px 28px 40px;
}

.hw-header__nav.is-open::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold) 50%, transparent);
}

.admin-bar .hw-header__nav.is-open {
  top: calc(var(--header-height-mobile) + 46px);
}

@media (min-width: 783px) {
  .admin-bar .hw-header__nav.is-open {
    top: calc(var(--header-height-mobile) + 32px);
  }
}

.hw-header__nav.is-open .hw-header__nav-list {
  flex-direction: column;
  gap: 0;
}

.hw-header__nav.is-open .hw-header__nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.hw-header__nav.is-open .hw-header__nav-list a::before {
  display: none;
}

.hw-header__nav.is-open .hw-header__nav-list a:hover {
  color: var(--color-gold);
  padding-left: 6px;
}

/* Chevron icon on nav links — only visible in mobile open state */
.hw-header__nav-list a i {
  display: none;
}

.hw-header__nav.is-open .hw-header__nav-list a i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  color: var(--color-gold);
  opacity: 0.6;
}

/* Mobile extras inside the nav: CTA buttons + social */
.hw-header__nav-actions,
.hw-header__nav-social {
  display: none;
}

.hw-header__nav.is-open .hw-header__nav-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 28px auto 0;
  max-width: 280px;
}

.hw-header__nav.is-open .hw-header__nav-actions .hw-btn {
  padding: 14px 24px;
  font-size: 14px;
}

.hw-header__nav.is-open .hw-header__nav-social {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.hw-header__nav-social a {
  color: var(--color-gold);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.hw-header__nav-social a:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

body.menu-open {
  overflow: hidden;
}

/* Desktop */
@media (min-width: 1024px) {
  .hw-header {
    height: var(--header-height);
  }

  .hw-header__nav {
    display: block;
  }

  .hw-header__hamburger {
    display: none;
  }

  .hw-header__login-link {
    display: inline;
  }
}

/* Body offset for fixed header */
.hw-main {
  padding-top: var(--header-height-mobile);
}

@media (min-width: 1024px) {
  .hw-main {
    padding-top: var(--header-height);
  }
}

/* WP Admin Bar adjustment (logged-in users) */
.admin-bar #wpadminbar {
  position: fixed !important;
}

.admin-bar .hw-header {
  top: 46px;
}

.admin-bar .hw-main {
  padding-top: calc(var(--header-height-mobile) + 46px);
}

.admin-bar .hw-header__nav.is-open {
  top: calc(var(--header-height-mobile) + 46px);
}

@media (min-width: 783px) {
  .admin-bar .hw-header {
    top: 32px;
  }

  .admin-bar .hw-main {
    padding-top: calc(var(--header-height-mobile) + 32px);
  }

  .admin-bar .hw-header__nav.is-open {
    top: calc(var(--header-height-mobile) + 32px);
  }
}

@media (min-width: 1024px) {
  .admin-bar .hw-main {
    padding-top: calc(var(--header-height) + 32px);
  }
}

/* ========================================
   Footer — Elegant Cream Editorial
   ======================================== */
.hw-footer {
  background-color: #F5EFE6;
  color: var(--color-wine-dark);
  padding: 72px 0 24px;
  border-top: 1px solid #E5DBCE;
  position: relative;
}

.hw-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--color-gold);
}

.hw-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hw-footer__brand-main {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-wine-dark);
  line-height: 1;
}

.hw-footer__brand-sub {
  display: inline-block;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.5em;
  color: var(--color-gold);
  margin-top: 10px;
}

.hw-footer__tagline {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-gray);
  margin-top: 18px;
  letter-spacing: 0.05em;
  line-height: 1.9;
}

.hw-footer__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 38px auto 32px;
  max-width: 240px;
}

.hw-footer__divider::before,
.hw-footer__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #D8C8B8;
}

.hw-footer__divider i {
  color: var(--color-gold);
  font-size: 13px;
}

.hw-footer__nav-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 4px;
}

.hw-footer__nav-list li {
  position: relative;
}

.hw-footer__nav-list li + li::before {
  content: "｜";
  position: absolute;
  left: -3px;
  top: 50%;
  transform: translateY(-50%);
  color: #C9B9A8;
  font-size: 12px;
}

.hw-footer__nav-list a {
  display: inline-block;
  font-size: 13px;
  color: var(--color-wine-dark);
  padding: 8px 18px;
  letter-spacing: 0.04em;
  transition: color var(--transition-fast);
}

.hw-footer__nav-list a:hover {
  color: var(--color-wine);
}

.hw-footer__social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
}

.hw-footer__social a {
  color: var(--color-wine);
  font-size: 18px;
  transition: transform var(--transition-fast), color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hw-footer__social a:hover {
  color: var(--color-gold);
  transform: translateY(-2px);
}

.hw-footer__bottom {
  text-align: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #E5DBCE;
}

.hw-footer__copyright {
  font-family: var(--font-heading);
  font-size: 11.5px;
  color: #9B8A7A;
  letter-spacing: 0.12em;
  text-align: center;
}

/* ========================================
   FAQ
   ======================================== */
.hw-faq__item {
  border-bottom: 1px solid var(--color-border);
}

.hw-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-black);
  line-height: 1.6;
}

.hw-faq__question::after {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform var(--transition-base);
}

.hw-faq__item.is-open .hw-faq__question::after {
  transform: rotate(180deg);
}

.hw-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.hw-faq__answer-inner {
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.8;
}
