/*
Theme Name: Hinterfolk Collective
Theme URI: https://hinterfolkcollective.com
Author: Hinterfolk Collective
Author URI: https://hinterfolkcollective.com
Description: Custom hardened WordPress theme with built-in Stripe e-commerce for Hinterfolk Collective — consciously curated living from the Noosa Hinterland. No WooCommerce dependency.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
License: Private — All Rights Reserved
License URI: https://hinterfolkcollective.com
Text Domain: hinterfolk
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --hf-black: #1a1815;
  --hf-charcoal: #2d2a25;
  --hf-dark: #3d3830;
  --hf-earth: #5c5347;
  --hf-mid: #8a7f72;
  --hf-warm: #b8a99a;
  --hf-sand: #d4c8b8;
  --hf-linen: #ece5da;
  --hf-cream: #f5f0e8;
  --hf-offwhite: #faf8f4;
  --hf-white: #fdfcfa;
  --hf-sage: #7a8c6e;
  --hf-sage-deep: #5e6e53;
  --hf-sage-soft: #9aab8d;
  --hf-sage-muted: #c5d1bb;
  --hf-terracotta: #c07a5a;
  --fs-display: clamp(2.75rem, 6.5vw, 5.5rem);
  --fs-h1: clamp(2rem, 4.5vw, 3.5rem);
  --fs-h2: clamp(1.625rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.125rem, 1.8vw, 1.5rem);
  --fs-body: clamp(0.9375rem, 1.1vw, 1.0625rem);
  --fs-small: 0.8125rem;
  --fs-micro: 0.6875rem;
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 6rem;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 0.4s var(--ease);
  --max-w: 1240px;
  --max-w-narrow: 860px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Nunito Sans', sans-serif; font-size: var(--fs-body); line-height: 1.75; color: var(--hf-charcoal); background: var(--hf-white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; }
::selection { background: var(--hf-sage-muted); color: var(--hf-black); }

h1, h2, h3, h4, h5, h6 { font-family: 'Cormorant Garamond', serif; font-weight: 400; line-height: 1.15; color: var(--hf-black); letter-spacing: -0.01em; }
.hf-label { font-family: 'Nunito Sans', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; font-size: var(--fs-micro); color: var(--hf-sage); }

.hf-container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-md); }
.hf-container--narrow { max-width: var(--max-w-narrow); }
.hf-section { padding: var(--sp-xl) 0; }

/* HEADER */
.hf-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: var(--sp-sm) 0; transition: background var(--transition), backdrop-filter var(--transition), padding var(--transition), box-shadow var(--transition); }
.hf-header.scrolled { background: rgba(253, 252, 250, 0.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 0.5rem 0; box-shadow: 0 1px 0 rgba(0,0,0,0.04); }
.hf-header__inner { display: flex; align-items: center; justify-content: space-between; }
.hf-logo { display: flex; align-items: center; gap: 0.75rem; }
.hf-logo__img { width: 44px; height: 44px; object-fit: contain; }
.hf-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.hf-logo__name { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 500; color: var(--hf-black); letter-spacing: 0.02em; }
.hf-logo__tagline { font-family: 'Nunito Sans', sans-serif; font-size: 0.5625rem; color: var(--hf-mid); text-transform: uppercase; letter-spacing: 0.2em; }
.hf-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.hf-nav__link { font-family: 'Nunito Sans', sans-serif; font-size: var(--fs-small); font-weight: 400; color: var(--hf-earth); letter-spacing: 0.04em; position: relative; padding: 0.25em 0; }
.hf-nav__link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--hf-sage); transition: width var(--transition); }
.hf-nav__link:hover, .hf-nav__link--active { color: var(--hf-black); }
.hf-nav__link:hover::after, .hf-nav__link--active::after { width: 100%; }
.hf-nav__cart { position: relative; display: flex; align-items: center; padding: 0.25em; }
.hf-nav__cart svg { width: 22px; height: 22px; color: var(--hf-earth); transition: color var(--transition); }
.hf-nav__cart:hover svg { color: var(--hf-sage); }
.hf-nav__cart-count { position: absolute; top: -4px; right: -6px; width: 16px; height: 16px; background: var(--hf-sage); color: var(--hf-white); font-size: 0.5625rem; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hf-menu-toggle { display: none; background: none; border: none; padding: 0.5rem; z-index: 1001; }
.hf-menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--hf-charcoal); margin: 5px 0; transition: all var(--transition); }
.hf-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hf-menu-toggle.active span:nth-child(2) { opacity: 0; }
.hf-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* HERO */
.hf-hero { min-height: 100vh; display: flex; align-items: center; position: relative; background: var(--hf-cream); overflow: hidden; }
.hf-hero__bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 30%, var(--hf-sage-muted) 0%, transparent 50%), radial-gradient(ellipse at 20% 80%, var(--hf-sand) 0%, transparent 50%), var(--hf-cream); opacity: 0.4; }
.hf-hero__botanical { position: absolute; inset: 0; opacity: 0.025; background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0 C40 20 60 30 40 50 C20 30 40 20 40 0z' fill='%233d3830'/%3E%3C/svg%3E"); background-size: 80px 80px; }
.hf-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xl); align-items: center; min-height: 100vh; padding: 120px 0 var(--sp-xl); }
.hf-hero__label { display: inline-flex; align-items: center; gap: 0.75rem; margin-bottom: var(--sp-md); }
.hf-hero__label::before { content: ''; width: 32px; height: 1px; background: var(--hf-sage); }
.hf-hero__title { font-size: var(--fs-display); color: var(--hf-black); margin-bottom: var(--sp-md); }
.hf-hero__title em { font-style: italic; color: var(--hf-sage-deep); }
.hf-hero__subtitle { color: var(--hf-earth); max-width: 460px; margin-bottom: var(--sp-lg); line-height: 1.85; }
.hf-hero__image { position: relative; }
.hf-hero__image-frame { aspect-ratio: 3/4; background: var(--hf-linen); overflow: hidden; position: relative; }
.hf-hero__image-frame img { width: 100%; height: 100%; object-fit: cover; }
.hf-hero__image-accent { position: absolute; bottom: -20px; left: -20px; width: 140px; height: 140px; border: 1px solid var(--hf-sage-muted); z-index: -1; }

/* BUTTONS */
.hf-btn { display: inline-flex; align-items: center; gap: 0.6rem; font-family: 'Nunito Sans', sans-serif; font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 1em 2em; border: none; position: relative; transition: all var(--transition); }
.hf-btn--primary { background: var(--hf-sage-deep); color: var(--hf-white); }
.hf-btn--primary:hover { background: var(--hf-sage); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(94, 110, 83, 0.2); }
.hf-btn--dark { background: var(--hf-charcoal); color: var(--hf-cream); }
.hf-btn--dark:hover { background: var(--hf-black); transform: translateY(-2px); }
.hf-btn--text { background: none; color: var(--hf-sage-deep); padding: 0.5em 0; border-bottom: 1px solid var(--hf-sage); letter-spacing: 0.08em; }
.hf-btn--text:hover { color: var(--hf-black); border-color: var(--hf-black); }
.hf-btn__arrow { width: 16px; height: 16px; transition: transform var(--transition); }
.hf-btn:hover .hf-btn__arrow { transform: translateX(3px); }

/* PRODUCT GRID */
.hf-shop { background: var(--hf-offwhite); }
.hf-shop__header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: var(--sp-lg); flex-wrap: wrap; gap: var(--sp-sm); }
.hf-shop__filters { display: flex; gap: var(--sp-xs); flex-wrap: wrap; }
.hf-filter-btn { font-family: 'Nunito Sans', sans-serif; font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.6em 1.4em; background: transparent; border: 1px solid var(--hf-sand); color: var(--hf-earth); transition: all var(--transition); cursor: pointer; }
.hf-filter-btn:hover, .hf-filter-btn.active { background: var(--hf-charcoal); border-color: var(--hf-charcoal); color: var(--hf-cream); }
.hf-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-md); }
.hf-product-card { background: var(--hf-white); transition: transform var(--transition), box-shadow var(--transition); }
.hf-product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.06); }
.hf-product-card__image { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--hf-cream); }
.hf-product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.hf-product-card:hover .hf-product-card__image img { transform: scale(1.04); }
.hf-product-card__badge { position: absolute; top: var(--sp-sm); left: var(--sp-sm); font-family: 'Nunito Sans', sans-serif; font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3em 0.8em; background: var(--hf-sage); color: var(--hf-white); }
.hf-product-card__info { padding: var(--sp-sm) var(--sp-sm) var(--sp-md); }
.hf-product-card__category { font-family: 'Nunito Sans', sans-serif; font-size: var(--fs-micro); color: var(--hf-mid); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.25rem; }
.hf-product-card__title { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 500; color: var(--hf-black); margin-bottom: 0.5rem; line-height: 1.3; }
.hf-product-card__price { font-family: 'Nunito Sans', sans-serif; font-size: var(--fs-body); font-weight: 600; color: var(--hf-sage-deep); }
.hf-product-card__price-old { text-decoration: line-through; color: var(--hf-mid); font-weight: 400; margin-left: 0.5rem; }
.hf-product-card__buy { display: block; width: 100%; margin-top: var(--sp-sm); font-family: 'Nunito Sans', sans-serif; font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.9em; background: var(--hf-charcoal); color: var(--hf-cream); border: none; transition: all var(--transition); text-align: center; }
.hf-product-card__buy:hover { background: var(--hf-sage-deep); }
.hf-product-card__buy:disabled { background: var(--hf-sand); color: var(--hf-mid); cursor: not-allowed; }

/* SINGLE PRODUCT */
.hf-product-single { background: var(--hf-white); }
.hf-product-single__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xl); align-items: start; }
.hf-product-single__gallery { position: sticky; top: 100px; }
.hf-product-single__main-img { aspect-ratio: 1; overflow: hidden; background: var(--hf-cream); margin-bottom: var(--sp-sm); }
.hf-product-single__main-img img { width: 100%; height: 100%; object-fit: cover; }
.hf-product-single__details h1 { font-size: var(--fs-h1); margin-bottom: var(--sp-xs); }
.hf-product-single__price { font-family: 'Nunito Sans', sans-serif; font-size: 1.5rem; font-weight: 600; color: var(--hf-sage-deep); margin-bottom: var(--sp-md); }
.hf-product-single__desc { color: var(--hf-earth); line-height: 1.85; margin-bottom: var(--sp-lg); }
.hf-product-single__meta { border-top: 1px solid var(--hf-linen); padding-top: var(--sp-md); margin-top: var(--sp-md); }
.hf-product-single__meta dt { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: 0.12em; color: var(--hf-mid); margin-bottom: 0.25rem; }
.hf-product-single__meta dd { color: var(--hf-charcoal); margin-bottom: var(--sp-sm); }

/* STORY */
.hf-story { background: var(--hf-charcoal); color: var(--hf-cream); position: relative; overflow: hidden; }
.hf-story::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 50%, rgba(122,140,110,0.1), transparent 60%); }
.hf-story__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xl); align-items: center; }
.hf-story h2 { color: var(--hf-cream); margin: var(--sp-sm) 0 var(--sp-md); }
.hf-story__text { color: rgba(236,229,218,0.65); line-height: 1.85; margin-bottom: var(--sp-md); }
.hf-story__values { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-sm); margin-top: var(--sp-lg); }
.hf-value { padding: var(--sp-md); border: 1px solid rgba(255,255,255,0.06); transition: border-color var(--transition); }
.hf-value:hover { border-color: rgba(122,140,110,0.3); }
.hf-value__title { font-family: 'Nunito Sans', sans-serif; font-weight: 600; font-size: var(--fs-body); color: var(--hf-cream); margin-bottom: 0.4rem; }
.hf-value__desc { font-size: var(--fs-small); color: rgba(236,229,218,0.45); line-height: 1.65; }
.hf-story__quote { padding: var(--sp-lg); position: relative; }
.hf-story__quote-mark { font-family: 'Cormorant Garamond', serif; font-size: 8rem; color: var(--hf-sage); opacity: 0.15; line-height: 0.5; position: absolute; top: var(--sp-md); left: var(--sp-md); }
.hf-story__quote-text { font-family: 'Cormorant Garamond', serif; font-size: var(--fs-h3); color: rgba(236,229,218,0.85); line-height: 1.55; position: relative; z-index: 1; }

/* CONTACT */
.hf-contact { background: var(--hf-offwhite); }
.hf-contact__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--sp-xl); }
.hf-contact__info-item { margin-bottom: var(--sp-md); }
.hf-contact__info-label { font-family: 'Nunito Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.15em; font-size: var(--fs-micro); color: var(--hf-mid); margin-bottom: 0.25rem; }
.hf-contact__info-value { font-family: 'Cormorant Garamond', serif; font-size: var(--fs-h3); color: var(--hf-black); }
.hf-contact__info-value a:hover { color: var(--hf-sage); }
.hf-form { background: var(--hf-white); padding: var(--sp-lg); }
.hf-form__group { margin-bottom: var(--sp-md); }
.hf-form__label { display: block; font-family: 'Nunito Sans', sans-serif; font-size: var(--fs-micro); font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--hf-mid); margin-bottom: 0.5rem; }
.hf-form__input, .hf-form__textarea { width: 100%; font-family: 'Nunito Sans', sans-serif; font-size: var(--fs-body); color: var(--hf-charcoal); background: var(--hf-offwhite); border: 1px solid transparent; padding: 0.9em 1.1em; transition: all var(--transition); outline: none; }
.hf-form__input:focus, .hf-form__textarea:focus { border-color: var(--hf-sage); background: var(--hf-white); }
.hf-form__textarea { min-height: 140px; resize: vertical; }
.hf-form__honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.hf-form__feedback { margin-top: var(--sp-sm); padding: var(--sp-sm); font-family: 'Nunito Sans', sans-serif; font-size: var(--fs-small); display: none; }
.hf-form__feedback--success { display: block; background: #e8f5e9; color: #2e7d32; border-left: 3px solid #2e7d32; }
.hf-form__feedback--error { display: block; background: #fce4ec; color: #c62828; border-left: 3px solid #c62828; }

/* POLICY */
.hf-policy { background: var(--hf-offwhite); }
.hf-policy__content { max-width: var(--max-w-narrow); margin: 0 auto; line-height: 1.85; color: var(--hf-earth); }
.hf-policy__content h2 { font-size: var(--fs-h3); margin: var(--sp-lg) 0 var(--sp-sm); }
.hf-policy__content h2:first-child { margin-top: 0; }
.hf-policy__content p { margin-bottom: var(--sp-sm); }

/* FOOTER */
.hf-footer { background: var(--hf-black); color: rgba(236,229,218,0.4); padding: var(--sp-lg) 0 var(--sp-md); }
.hf-footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--sp-lg); padding-bottom: var(--sp-lg); border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: var(--sp-md); }
.hf-footer__brand p { margin-top: var(--sp-sm); font-size: var(--fs-small); line-height: 1.7; max-width: 280px; }
.hf-footer__col-title { font-family: 'Nunito Sans', sans-serif; font-weight: 600; color: var(--hf-cream); font-size: var(--fs-small); margin-bottom: var(--sp-sm); text-transform: uppercase; letter-spacing: 0.1em; }
.hf-footer__col a, .hf-footer__col span { display: block; font-size: var(--fs-small); color: rgba(236,229,218,0.4); margin-bottom: 0.5rem; transition: color var(--transition); }
.hf-footer__col a:hover { color: var(--hf-sage-soft); }
.hf-footer__bottom { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-micro); flex-wrap: wrap; gap: var(--sp-sm); }
.hf-footer__bottom a { color: rgba(236,229,218,0.4); }
.hf-footer__bottom a:hover { color: var(--hf-sage-soft); }

/* CART DRAWER */
.hf-cart-overlay { position: fixed; inset: 0; background: rgba(26,24,21,0.5); z-index: 2000; opacity: 0; visibility: hidden; transition: all var(--transition); }
.hf-cart-overlay.open { opacity: 1; visibility: visible; }
.hf-cart-drawer { position: fixed; top: 0; right: -420px; width: 400px; max-width: 90vw; height: 100vh; background: var(--hf-white); z-index: 2001; display: flex; flex-direction: column; transition: right var(--transition); box-shadow: -8px 0 32px rgba(0,0,0,0.1); }
.hf-cart-drawer.open { right: 0; }
.hf-cart-drawer__header { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-md); border-bottom: 1px solid var(--hf-linen); }
.hf-cart-drawer__title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--hf-black); }
.hf-cart-drawer__close { background: none; border: none; font-size: 1.5rem; color: var(--hf-mid); cursor: pointer; padding: 0.25rem; line-height: 1; }
.hf-cart-drawer__items { flex: 1; overflow-y: auto; padding: var(--sp-md); }
.hf-cart-item { display: grid; grid-template-columns: 70px 1fr auto; gap: var(--sp-sm); align-items: center; padding: var(--sp-sm) 0; border-bottom: 1px solid var(--hf-linen); }
.hf-cart-item__img { width: 70px; height: 70px; object-fit: cover; background: var(--hf-cream); }
.hf-cart-item__name { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: var(--hf-black); }
.hf-cart-item__price { font-size: var(--fs-small); color: var(--hf-sage-deep); font-weight: 600; }
.hf-cart-item__remove { background: none; border: none; color: var(--hf-mid); font-size: var(--fs-micro); cursor: pointer; text-decoration: underline; }
.hf-cart-drawer__footer { padding: var(--sp-md); border-top: 1px solid var(--hf-linen); }
.hf-cart-drawer__total { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-md); }
.hf-cart-drawer__total-label { font-family: 'Nunito Sans', sans-serif; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.12em; color: var(--hf-mid); }
.hf-cart-drawer__total-amount { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--hf-black); font-weight: 600; }
.hf-cart-drawer__checkout { display: block; width: 100%; text-align: center; }
.hf-cart-empty { text-align: center; padding: var(--sp-xl) var(--sp-md); color: var(--hf-mid); }

/* ANIMATIONS */
.hf-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.hf-reveal.visible { opacity: 1; transform: translateY(0); }
.hf-reveal-d1 { transition-delay: 0.1s; }
.hf-reveal-d2 { transition-delay: 0.2s; }
.hf-reveal-d3 { transition-delay: 0.3s; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hf-hero__grid { grid-template-columns: 1fr; }
  .hf-hero__image { display: none; }
  .hf-story__grid { grid-template-columns: 1fr; }
  .hf-product-single__grid { grid-template-columns: 1fr; }
  .hf-contact__grid { grid-template-columns: 1fr; }
  .hf-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hf-menu-toggle { display: block; }
  .hf-nav { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: var(--hf-white); flex-direction: column; justify-content: center; align-items: center; gap: var(--sp-md); transition: right var(--transition); }
  .hf-nav.open { right: 0; }
  .hf-nav__link { font-size: 1.25rem; color: var(--hf-charcoal); }
  .hf-story__values { grid-template-columns: 1fr; }
  .hf-footer__inner { grid-template-columns: 1fr; gap: var(--sp-md); }
  .hf-footer__bottom { flex-direction: column; text-align: center; }
}

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