/*
Theme Name: Hubs Honey
Theme URI: https://hubshoney.com/
Author: Project Giant
Description: A warm, editorial WooCommerce theme for Hubs Honey at Farrell Farms.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: hubs-honey
*/

:root {
  --ink: #1c1710;
  --ink-soft: #554b3d;
  --cream: #fffaf0;
  --cream-deep: #f3e8cf;
  --honey: #edae15;
  --honey-bright: #ffc640;
  --amber: #a94f22;
  --sage: #68764b;
  --white: #ffffff;
  --line: rgba(28, 23, 16, 0.14);
  --shadow: 0 18px 50px rgba(46, 32, 10, 0.12);
  --radius: 24px;
  --wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  clip: auto !important; width: auto; height: auto; margin: 12px; padding: 10px 14px;
  background: var(--white); color: var(--ink); z-index: 9999;
}
.wrap { width: var(--wrap); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 240, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { width: 86px; max-height: 65px; object-fit: contain; }
.brand-copy { line-height: 1; }
.brand-name { display: block; font-family: Georgia, serif; font-size: 21px; font-weight: 800; letter-spacing: .04em; }
.brand-place { display: block; margin-top: 7px; color: var(--ink-soft); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.primary-menu, .primary-menu ul { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; justify-content: center; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.primary-menu a { position: relative; text-decoration: none; font-size: 14px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.primary-menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--honey); transition: right .2s ease; }
.primary-menu a:hover::after, .primary-menu .current-menu-item > a::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-shop { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--white); text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.header-shop:hover { background: var(--amber); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ink); color: white; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; transition: transform .2s, opacity .2s; }

.hero { position: relative; min-height: 720px; overflow: hidden; color: var(--white); background: #20160b center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 11, 4, .9) 0%, rgba(17, 11, 4, .72) 42%, rgba(17, 11, 4, .12) 78%); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -190px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; box-shadow: 0 0 0 58px rgba(255,255,255,.04), 0 0 0 116px rgba(255,255,255,.03); }
.hero-inner { position: relative; z-index: 2; min-height: 720px; display: flex; align-items: center; padding-block: 100px; }
.hero-copy { max-width: 690px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; color: var(--honey-bright); font-size: 13px; font-weight: 850; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.hero h1, .section-title, .page-title, .entry-title { margin: 0; font-family: Georgia, "Times New Roman", serif; line-height: .98; letter-spacing: -.045em; }
.hero h1 { max-width: 760px; font-size: clamp(60px, 8vw, 112px); }
.hero h1 em { display: block; color: var(--honey-bright); font-weight: 400; }
.hero-lede { max-width: 620px; margin: 30px 0 34px; color: rgba(255,255,255,.82); font-size: clamp(18px, 2vw, 22px); }
.button-row { display: flex; flex-wrap: wrap; gap: 13px; }
.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex !important; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px !important;
  border: 1px solid transparent !important; border-radius: 999px !important; background: var(--honey) !important; color: var(--ink) !important;
  font-size: 13px !important; font-weight: 850 !important; letter-spacing: .09em; text-decoration: none !important; text-transform: uppercase;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.button:hover, .wp-element-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { transform: translateY(-2px); background: var(--honey-bright) !important; }
.button-dark { background: var(--ink) !important; color: var(--white) !important; }
.button-ghost { border-color: rgba(255,255,255,.42) !important; background: transparent !important; color: var(--white) !important; }
.button-ghost:hover { background: var(--white) !important; color: var(--ink) !important; }
.hero-note { display: flex; gap: 15px; align-items: center; margin-top: 52px; font-size: 13px; color: rgba(255,255,255,.75); }
.hero-note strong { color: var(--white); }
.bee-mark { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: var(--honey-bright); }

.scripture-band { position: relative; z-index: 3; background: #17120d; color: var(--white); }
.scripture-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 42px; align-items: center; padding-block: 34px; }
.scripture-inner blockquote { max-width: 980px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.45; }
.scripture-inner cite { color: var(--honey-bright); font-size: 12px; font-style: normal; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.trust-strip { position: relative; z-index: 3; margin-top: -1px; background: var(--honey); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { min-height: 102px; display: flex; align-items: center; padding: 22px 28px; border-right: 1px solid rgba(28,23,16,.2); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-family: Georgia, serif; font-size: 19px; }
.trust-item span { display: block; margin-top: 5px; font-size: 12px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; opacity: .7; }

.section { padding-block: clamp(78px, 10vw, 132px); }
.section-intro { max-width: 780px; margin-bottom: 48px; }
.section-intro.center { margin-inline: auto; text-align: center; }
.section-intro.center .eyebrow { justify-content: center; }
.section-title { font-size: clamp(44px, 5vw, 72px); }
.section-copy { max-width: 680px; margin: 22px 0 0; color: var(--ink-soft); font-size: 19px; }

.harvest-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 90px); align-items: center; }
.harvest-photo { position: relative; }
.harvest-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.harvest-badge { position: absolute; right: -28px; bottom: 40px; width: 150px; height: 150px; display: grid; place-items: center; padding: 18px; border-radius: 50%; background: var(--honey); text-align: center; font-family: Georgia, serif; font-size: 17px; font-weight: 800; line-height: 1.25; transform: rotate(5deg); }
.harvest-copy p { color: var(--ink-soft); }
.harvest-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 34px 0; }
.fact { padding: 18px; border-top: 2px solid var(--honey); background: rgba(255,255,255,.55); }
.fact strong { display: block; font-family: Georgia, serif; font-size: 27px; }
.fact span { color: var(--ink-soft); font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }

.products-section { background: var(--ink); color: var(--white); }
.products-section .section-copy { color: rgba(255,255,255,.63); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { position: relative; overflow: hidden; min-width: 0; border-radius: 20px; background: #2a231a; border: 1px solid rgba(255,255,255,.1); }
.product-card-media { position: relative; aspect-ratio: 4/4.4; overflow: hidden; background: #efe5d2; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-card-media img { transform: scale(1.04); }
.product-tag { position: absolute; top: 14px; left: 14px; padding: 6px 10px; border-radius: 999px; background: var(--honey); color: var(--ink); font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.product-card-body { padding: 22px; }
.product-card h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 24px; line-height: 1.15; }
.product-card h3 a { text-decoration: none; }
.product-card p { min-height: 50px; margin: 0 0 20px; color: rgba(255,255,255,.58); font-size: 14px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { color: var(--honey-bright); font-family: Georgia, serif; font-size: 23px; font-weight: 800; }
.text-link { font-size: 12px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; }
.text-link:hover { color: var(--honey-bright); }
.products-cta { margin-top: 36px; text-align: center; }

.story-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(44px, 8vw, 104px); align-items: center; }
.story-collage { position: relative; min-height: 620px; }
.story-collage img { position: absolute; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.story-collage .photo-one { top: 0; right: 0; width: 78%; height: 72%; }
.story-collage .photo-two { left: 0; bottom: 0; width: 50%; height: 48%; border: 10px solid var(--cream); }
.script-line { margin: 0 0 16px; color: var(--amber); font-family: Georgia, serif; font-size: 27px; font-style: italic; }
.story-copy p { color: var(--ink-soft); }
.quote { margin: 30px 0; padding: 24px 0 24px 26px; border-left: 4px solid var(--honey); font-family: Georgia, serif; font-size: 22px; line-height: 1.45; }

.gallery-section { padding-top: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 210px; gap: 14px; }
.gallery-grid figure { position: relative; margin: 0; overflow: hidden; border-radius: 16px; background: var(--cream-deep); }
.gallery-grid figure:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.gallery-grid figure:nth-child(2) { grid-column: span 4; }
.gallery-grid figure:nth-child(3) { grid-column: span 3; }
.gallery-grid figure:nth-child(4) { grid-column: span 3; }
.gallery-grid figure:nth-child(5) { grid-column: span 4; }
.gallery-grid figure:nth-child(6) { grid-column: span 5; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }

.journal-section { background: var(--cream-deep); }
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.journal-card { overflow: hidden; border-radius: 18px; background: var(--white); box-shadow: 0 12px 30px rgba(46,32,10,.08); }
.journal-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.journal-card-body { padding: 26px; }
.journal-card time { color: var(--amber); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.journal-card h3 { margin: 10px 0 12px; font-family: Georgia, serif; font-size: 25px; line-height: 1.2; }
.journal-card h3 a { text-decoration: none; }
.journal-card p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; }

.testimonials { background: var(--honey); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial { padding: 30px; border: 1px solid rgba(28,23,16,.22); border-radius: 18px; background: rgba(255,255,255,.25); }
.stars { margin-bottom: 15px; letter-spacing: .18em; }
.testimonial blockquote { margin: 0 0 22px; font-family: Georgia, serif; font-size: 20px; line-height: 1.45; }
.testimonial cite { font-style: normal; font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.cta { position: relative; overflow: hidden; padding-block: 90px; background: var(--sage); color: var(--white); }
.cta::after { content: ""; position: absolute; inset: 0 0 0 60%; background: url('assets/images/clover-bloom.jpg') center/cover; opacity: .22; }
.cta-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta h2 { max-width: 700px; margin: 0; font-family: Georgia, serif; font-size: clamp(40px, 5vw, 64px); line-height: 1.03; letter-spacing: -.035em; }

.site-footer { padding: 68px 0 30px; background: #120e09; color: rgba(255,255,255,.7); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 64px; padding-bottom: 48px; }
.footer-brand { max-width: 480px; }
.footer-brand .brand-name { color: var(--white); font-size: 28px; }
.footer-brand p { margin: 22px 0; }
.footer-title { margin: 0 0 18px; color: var(--white); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: 9px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--honey-bright); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }

.page-hero { padding: 96px 0 70px; background: var(--ink); color: var(--white); }
.page-title { max-width: 900px; font-size: clamp(52px, 7vw, 88px); }
.page-content, .site-main.woocommerce-main { padding-block: 80px; }
.entry-content { max-width: 820px; }
.entry-content > * { margin-top: 0; margin-bottom: 1.5em; }
.entry-content h2, .entry-content h3 { font-family: Georgia, serif; line-height: 1.15; }
.entry-content h2 { margin-top: 1.7em; font-size: 38px; }
.entry-content h3 { margin-top: 1.5em; font-size: 28px; }
.entry-meta { margin: 18px 0 30px; color: var(--ink-soft); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.woocommerce .products ul, .woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; padding-bottom: 22px; }
.woocommerce ul.products li.product a img { aspect-ratio: 1/1; object-fit: cover; margin: 0 0 20px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .price, .woocommerce ul.products li.product .button { margin-left: 20px !important; margin-right: 20px !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: Georgia, serif; font-size: 23px; }
.woocommerce ul.products li.product .price { color: var(--amber); font-size: 18px; font-weight: 800; }
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: auto; }
.woocommerce div.product .product_title { font-family: Georgia, serif; font-size: clamp(42px, 5vw, 68px); line-height: 1; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--amber); font-family: Georgia, serif; font-size: 28px; }

.reveal { opacity: 1; transform: none; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
  .header-shop { display: none; }
  .site-nav { position: fixed; inset: 89px 0 auto 0; padding: 28px 20px 36px; background: var(--cream); border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .25s ease; }
  .menu-open .site-nav { transform: none; }
  .primary-menu { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-menu a { display: block; padding: 13px 0; font-family: Georgia, serif; font-size: 27px; text-transform: none; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero, .hero-inner { min-height: 650px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(28,23,16,.2); }
  .harvest-grid, .story-grid { grid-template-columns: 1fr; }
  .harvest-photo { max-width: 680px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .story-collage { max-width: 680px; width: 100%; }
  .journal-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial { padding: 24px; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1.5fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .woocommerce .products ul, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --wrap: min(100% - 28px, 1180px); --radius: 18px; }
  body { font-size: 16px; }
  .header-inner { min-height: 76px; }
  .site-nav { top: 77px; }
  .brand img { width: 64px; }
  .brand-place { display: none; }
  .hero { background-position: 58% center; }
  .hero, .hero-inner { min-height: 660px; }
  .hero::before { background: linear-gradient(90deg, rgba(17,11,4,.94) 0%, rgba(17,11,4,.74) 72%, rgba(17,11,4,.5)); }
  .hero-inner { padding-block: 70px; }
  .hero h1 { font-size: clamp(54px, 17vw, 78px); }
  .hero-lede { font-size: 18px; }
  .button-row { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-note { margin-top: 38px; }
  .scripture-inner { grid-template-columns: 1fr; gap: 14px; padding-block: 30px; }
  .scripture-inner cite { white-space: normal; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item, .trust-item:nth-child(2) { min-height: 90px; border-right: 0; border-bottom: 1px solid rgba(28,23,16,.2); }
  .section { padding-block: 72px; }
  .section-title { font-size: 44px; }
  .harvest-badge { right: -6px; bottom: 20px; width: 120px; height: 120px; font-size: 14px; }
  .harvest-facts { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card-media { aspect-ratio: 5/4; }
  .story-collage { min-height: 470px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery-grid figure, .gallery-grid figure:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery-grid figure:first-child { grid-column: span 2; grid-row: span 2; }
  .cta { padding-block: 70px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .woocommerce .products ul, .woocommerce ul.products, .woocommerce div.product { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
