/*
Theme Name: Howl N Buzz
Theme URI: https://github.com/Seaside-Cyber/howlnbuzz-wordpress
Author: Seaside Cyber
Description: A warm, lightweight WooCommerce theme created for Howl N Buzz Boutique.
Version: 1.2.1
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: howlnbuzz
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --hnb-cream: #f6f0e4;
  --hnb-paper: #fffaf1;
  --hnb-ink: #191713;
  --hnb-rust: #a94e1a;
  --hnb-rust-dark: #7f3713;
  --hnb-olive: #686823;
  --hnb-honey: #e4a900;
  --hnb-line: #d8cbb8;
  --hnb-muted: #665f55;
  --hnb-shadow: 0 18px 50px rgb(55 35 20 / 10%);
  --hnb-radius: 1.25rem;
  --hnb-wide: 76rem;
  --hnb-content: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--hnb-cream); color: var(--hnb-ink); font-family: "Trebuchet MS", "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.7; text-rendering: optimizeLegibility; }
img { height: auto; max-width: 100%; }
a { color: var(--hnb-rust-dark); text-underline-offset: .16em; }
a:hover { color: var(--hnb-rust); }
button, input, select, textarea { font: inherit; }

button, .button, .wp-element-button, input[type="submit"] { align-items: center; background: var(--hnb-rust); border: 2px solid var(--hnb-rust); border-radius: 999px; color: #fff; cursor: pointer; display: inline-flex; font-weight: 800; gap: .45rem; justify-content: center; line-height: 1.2; min-height: 2.85rem; padding: .75rem 1.3rem; text-decoration: none; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
button:hover, .button:hover, .wp-element-button:hover, input[type="submit"]:hover { background: var(--hnb-rust-dark); border-color: var(--hnb-rust-dark); color: #fff; transform: translateY(-1px); }
.button--secondary { background: transparent; color: var(--hnb-ink); }
.button--secondary:hover { background: var(--hnb-ink); border-color: var(--hnb-ink); }

input:not([type="checkbox"]):not([type="radio"]), select, textarea { background: #fff; border: 1px solid var(--hnb-line); border-radius: .65rem; color: var(--hnb-ink); min-height: 2.8rem; padding: .65rem .8rem; width: 100%; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--hnb-honey); outline-offset: 3px; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute !important; width: 1px; }
.screen-reader-text:focus { background: #fff; clip: auto !important; clip-path: none; height: auto; left: 1rem; padding: .75rem 1rem; top: 1rem; width: auto; z-index: 100000; }
.site-shell { margin-inline: auto; max-width: var(--hnb-wide); padding-inline: clamp(1rem, 4vw, 2rem); }
.content-shell { margin-inline: auto; max-width: var(--hnb-content); padding-inline: 1rem; }

.site-header { background: rgb(246 240 228 / 94%); border-bottom: 1px solid rgb(169 78 26 / 16%); position: sticky; top: 0; z-index: 100; }
.admin-bar .site-header { top: 32px; }
.header-inner { align-items: center; display: flex; gap: 1.2rem; justify-content: space-between; min-height: 9.5rem; transition: min-height .25s ease; }
.site-branding { align-items: center; display: flex; gap: .75rem; min-width: 0; }
.custom-logo { display: block; max-height: 8rem; max-width: min(22rem, 42vw); width: auto; transition: max-height .25s ease, max-width .25s ease; }
.site-header.is-scrolled .header-inner { min-height: 4.5rem; }
.site-header.is-scrolled .custom-logo { max-height: 3.5rem; max-width: 12rem; }
.site-title { color: var(--hnb-ink); font-family: Georgia, serif; font-size: clamp(1.25rem, 3vw, 1.65rem); font-weight: 800; line-height: 1.1; text-decoration: none; }
.menu-toggle { display: none; padding: .55rem .8rem; }
.primary-navigation { align-items: center; display: flex; gap: 1.25rem; }
.primary-navigation ul { align-items: center; display: flex; gap: clamp(.85rem, 2vw, 1.5rem); list-style: none; margin: 0; padding: 0; }
.primary-navigation a { color: var(--hnb-ink); font-size: .94rem; font-weight: 800; text-decoration: none; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { color: var(--hnb-rust); }
.header-cart { align-items: center; display: inline-flex; gap: .35rem; white-space: nowrap; }
.cart-count { align-items: center; background: var(--hnb-honey); border-radius: 50%; color: var(--hnb-ink); display: inline-flex; font-size: .73rem; height: 1.45rem; justify-content: center; min-width: 1.45rem; }

.hero { overflow: hidden; padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.hero::before { background: var(--hnb-honey); border-radius: 50%; content: ""; height: 16rem; opacity: .14; position: absolute; right: -5rem; top: 1rem; width: 16rem; }
.hero-grid { align-items: center; display: grid; gap: clamp(2rem, 7vw, 6rem); grid-template-columns: minmax(0, 1.05fr) minmax(18rem, .95fr); }
.eyebrow { color: var(--hnb-olive); font-size: .82rem; font-weight: 900; letter-spacing: .14em; margin: 0 0 .75rem; text-transform: uppercase; }
h1, h2, h3, h4, h5, h6 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; text-wrap: balance; }
.hero h1 { font-size: clamp(3rem, 7vw, 6.3rem); letter-spacing: -.055em; margin: 0; max-width: 11ch; }
.hero-copy { color: var(--hnb-muted); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.hero-art { aspect-ratio: 1 / 1; background: var(--hnb-paper); border: 1px solid var(--hnb-line); border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%; box-shadow: var(--hnb-shadow); display: grid; overflow: hidden; place-items: center; position: relative; }
.hero-art img { height: 100%; object-fit: cover; width: 100%; }
.hero-monogram { color: var(--hnb-rust); font-family: Georgia, serif; font-size: clamp(4rem, 10vw, 8rem); font-weight: 900; letter-spacing: -.08em; }
.hero-monogram small { color: var(--hnb-olive); display: block; font-family: "Trebuchet MS", sans-serif; font-size: .7rem; letter-spacing: .18em; text-align: center; text-transform: uppercase; }

.home-section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.home-section--paper { background: var(--hnb-paper); border-block: 1px solid var(--hnb-line); }
.section-heading { align-items: end; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 2rem; }
.section-heading h2 { font-size: clamp(2rem, 5vw, 3.65rem); letter-spacing: -.035em; margin: 0; }
.section-heading p { color: var(--hnb-muted); margin: .5rem 0 0; max-width: 42rem; }
.text-link { font-weight: 900; white-space: nowrap; }
.feature-card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card { background: var(--hnb-paper); border: 1px solid var(--hnb-line); border-radius: var(--hnb-radius); box-shadow: var(--hnb-shadow); overflow: hidden; }
.feature-card__image { display: block; overflow: hidden; }
.feature-card__image img { aspect-ratio: 4 / 3; display: block; object-fit: cover; transition: transform .3s ease; width: 100%; }
.feature-card:hover .feature-card__image img { transform: scale(1.035); }
.feature-card__content { padding: 1.25rem; }
.feature-card__content h3 { font-size: 1.5rem; margin: 0; }
.feature-card__content p { color: var(--hnb-muted); margin: .5rem 0 0; }
.category-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.category-card { background: var(--hnb-olive); border-radius: var(--hnb-radius); color: #fff; min-height: 15rem; overflow: hidden; position: relative; }
.category-card:nth-child(2n) { background: var(--hnb-rust); }
.category-card:nth-child(3n) { background: var(--hnb-honey); color: var(--hnb-ink); }
.category-card img { height: 100%; inset: 0; object-fit: cover; opacity: .42; position: absolute; transition: transform .35s ease; width: 100%; }
.category-card:hover img { transform: scale(1.035); }
.category-card__content { bottom: 0; left: 0; padding: 1.35rem; position: absolute; right: 0; z-index: 1; }
.category-card a { color: inherit; text-decoration: none; }
.category-card h3 { font-size: 1.75rem; margin: 0; }
.story-grid { align-items: center; display: grid; gap: clamp(2rem, 7vw, 6rem); grid-template-columns: 1fr 1fr; }
.story-image { background: var(--hnb-olive); border-radius: 2rem .5rem 2rem .5rem; min-height: 25rem; overflow: hidden; }
.story-image img { height: 100%; min-height: 25rem; object-fit: cover; width: 100%; }
.story-copy h2 { font-size: clamp(2.3rem, 5vw, 4rem); margin: 0; }
.story-copy p { color: var(--hnb-muted); font-size: 1.08rem; }
.visit-card { background: var(--hnb-ink); border-radius: 2rem; color: #fff; display: grid; gap: 2rem; grid-template-columns: 1.2fr .8fr; padding: clamp(2rem, 6vw, 5rem); position: relative; }
.visit-card::after { border: 2px solid var(--hnb-honey); border-radius: 50%; content: ""; height: 8rem; opacity: .45; position: absolute; right: 3rem; top: -2.5rem; width: 8rem; }
.visit-card h2 { font-size: clamp(2.3rem, 5vw, 4rem); margin: 0; }
.visit-card p { color: #ded7ca; }
.visit-card .button { align-self: center; justify-self: end; position: relative; z-index: 1; }
.newsletter { background: var(--hnb-honey); padding-block: 2.5rem; }
.newsletter-inner { align-items: center; display: flex; gap: 2rem; justify-content: space-between; }
.newsletter h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 0; }
.newsletter p { margin: .3rem 0 0; }

.site-main { min-height: 55vh; }
.page-header { padding-block: clamp(3rem, 7vw, 6rem) 2rem; }
.page-title { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -.045em; margin: 0; }
.entry-content { padding-bottom: 4rem; }
.entry-content > * { margin-left: auto; margin-right: auto; max-width: var(--hnb-content); }
.entry-content > .alignwide { max-width: var(--hnb-wide); }
.entry-content > .alignfull { margin-left: calc(50% - 50vw); max-width: none; width: 100vw; }
.entry-meta { color: var(--hnb-muted); font-size: .9rem; }
.post-navigation { border-top: 1px solid var(--hnb-line); margin-top: 2rem; padding-top: 1.5rem; }
.site-footer { background: var(--hnb-ink); color: #e8e0d3; padding-block: 4rem 1.5rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
.footer-brand .site-title { color: #fff; }
.site-footer a { color: #f5d987; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer .menu { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.footer-bottom { align-items: center; border-top: 1px solid #413d35; color: #bfb7aa; display: flex; font-size: .85rem; gap: 1rem; justify-content: space-between; margin-top: 3rem; padding-top: 1.25rem; }
.site-credit { align-items: center; display: inline-flex; gap: .55rem; text-decoration: none; }
.site-credit img { height: 1.75rem; object-fit: contain; width: 1.75rem; }
.contact-form-wrap { margin-bottom: 5rem; }
.contact-form { background: var(--hnb-paper); border: 1px solid var(--hnb-line); border-radius: var(--hnb-radius); box-shadow: var(--hnb-shadow); padding: clamp(1.25rem, 4vw, 2.5rem); }
.contact-form__grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.contact-form label { display: block; font-weight: 800; }
.contact-form p { margin: 0 0 1.15rem; }
.contact-form__consent label { align-items: start; display: flex; font-weight: 400; gap: .65rem; }
.contact-form__consent input { margin-top: .4rem; }
.contact-form__honeypot { height: 0; left: -9999px; overflow: hidden; position: absolute; width: 0; }
.cf-turnstile { margin-bottom: 1.15rem; }
.contact-notice { border-radius: .75rem; font-weight: 800; margin-bottom: 1rem; padding: .9rem 1rem; }
.contact-notice--success { background: #e6eed1; color: #3f5015; }
.contact-notice--error { background: #f7dfd5; color: #762f12; }
.pagination .nav-links { display: flex; gap: .5rem; justify-content: center; }
.pagination a, .pagination span { background: #fff; border: 1px solid var(--hnb-line); border-radius: 50%; display: grid; height: 2.75rem; place-items: center; text-decoration: none; width: 2.75rem; }
.pagination .current { background: var(--hnb-rust); color: #fff; }

@media (max-width: 800px) {
  .admin-bar .site-header { top: 46px; }
  .menu-toggle { display: inline-flex; }
  .primary-navigation { background: var(--hnb-paper); border-bottom: 1px solid var(--hnb-line); display: none; left: 0; padding: 1rem; position: absolute; right: 0; top: 100%; }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { align-items: stretch; flex-direction: column; }
  .primary-navigation a { display: block; padding: .45rem; }
  .header-cart { margin-left: auto; }
  .hero-grid, .story-grid, .visit-card { grid-template-columns: 1fr; }
  .hero-art { margin-inline: auto; max-width: 30rem; width: 100%; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .visit-card .button { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .feature-card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .site-title { font-size: 1.15rem; }
  .custom-logo { max-height: 5.5rem; max-width: 15rem; }
  .header-inner { min-height: 6.5rem; }
  .site-header.is-scrolled .custom-logo { max-height: 3rem; max-width: 10rem; }
  .site-header.is-scrolled .header-inner { min-height: 4rem; }
  .header-cart__label { display: none; }
  .hero h1 { font-size: 3.15rem; }
  .category-grid, .footer-grid, .feature-card-grid, .contact-form__grid { grid-template-columns: 1fr; }
  .section-heading, .newsletter-inner { align-items: flex-start; flex-direction: column; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
