/* Grounded Specialty Coffee — Blocksy child theme styles.
   The homepage is built from core Gutenberg blocks (Pages > Home). Each block
   carries a "g-" class (Block > Advanced > Additional CSS class), and these
   rules give those blocks the brand look. Everything is scoped to .g-home so
   Blocksy's header, footer and other pages keep their Customizer styling. */

:root {
  /* Colors come from Blocksy's global palette (Customize > General > Colors).
     color1 olive (buttons/links) · color2 olive dark (hover) · color3 body text
     color4 espresso (headings, dark sections) · color5 sand (borders)
     color6 cream · color7 ivory (site background) · color8 white
     color9 taupe · color10 sage · color11 cocoa. The hex values are fallbacks only. */
  --olive: var(--theme-palette-color-1, #686C4E);
  --olive-dark: var(--theme-palette-color-2, #555A3F);
  --text: var(--theme-palette-color-3, #2B211C);
  --espresso: var(--theme-palette-color-4, #241C18);
  --sand: var(--theme-palette-color-5, #E2D5C4);
  --cream: var(--theme-palette-color-6, #EEE4D8);
  --ivory: var(--theme-palette-color-7, #F6F0E8);
  --taupe: var(--theme-palette-color-9, #B6A18B);
  --sage: var(--theme-palette-color-10, #A6A68A);
  --cocoa: var(--theme-palette-color-11, #624638);
  --text-muted: var(--cocoa);
  --line: rgba(36, 28, 24, 0.14); --line-light: rgba(246, 240, 232, 0.18);
  /* Fonts come from Blocksy's typography settings (Customize > General > Typography):
     --g-font-sans = Root (body) font, --g-font-serif = Heading 2 font. Set in functions.php. */
  --font-serif: var(--g-font-serif, "Cormorant Garamond", Garamond, serif);
  --font-sans: var(--g-font-sans, "Jost", "Helvetica Neue", Arial, sans-serif);
  /* Content width follows Blocksy's container (Customize > General > Layout > Maximum Site Width),
     so homepage sections, header and footer share the same left/right edges. */
  --container: var(--theme-normal-container-max-width, 1290px); --gutter: clamp(20px, 5vw, 96px); --section-y: clamp(88px, 11vw, 160px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
.g-home { background: var(--ivory); color: var(--text); font-family: var(--font-sans); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.g-home *, .g-home *::before, .g-home *::after { box-sizing: border-box; }
.g-home p { margin: 0; }
.g-home a { color: inherit; }
.g-home figure { margin: 0; }
.g-home img { display: block; max-width: 100%; height: auto; }
.g-home .wp-block-columns { margin: 0; gap: 24px; }
.g-home .wp-block-column { min-width: 0; }
.g-home .wp-block-image { margin: 0; }
.g-home .wp-block-buttons { gap: 14px 30px; }
.g-home h1, .g-home h2, .g-home h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.015em; color: inherit; text-wrap: balance; }
.g-home h1 em, .g-home h2 em, .g-home h3 em { font-style: italic; }
.g-home .wp-block-column > * + *, .g-home .g-stack > * + * { margin-top: 26px; }

/* Sections */
.g-home .g-section { padding: var(--section-y) var(--gutter); margin: 0; position: relative; }
.g-home .g-section > * { max-width: var(--container); margin-left: auto; margin-right: auto; }
.g-home .g-section > * + * { margin-top: clamp(48px, 6vw, 80px); }
.g-home .g-cream { background: var(--cream); }
.g-home .g-dark { background: var(--espresso); color: var(--ivory); }

/* Type helpers */
.g-home .g-display { font-size: clamp(42px, 5.2vw, 80px); }
.g-home .g-eyebrow { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-muted); }
.g-home .g-eyebrow::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: 0.4; }
.g-home .g-dark .g-eyebrow, .g-home .g-hero .g-eyebrow { color: var(--taupe); }
.g-home .g-lead { font-family: var(--font-serif); font-size: clamp(21px, 1.9vw, 26px); line-height: 1.5; color: var(--text-muted); }
.g-home .g-muted { color: var(--text-muted); max-width: 460px; }
.g-home .g-note { font-size: 14px; color: var(--taupe); }

/* ---------- Buttons ---------- */
.g-home .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 30px; border: 1px solid var(--olive); border-radius: 0;
  background: var(--olive); color: #fff;
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; line-height: 1.2;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.g-home .wp-block-button__link::after { content: "\2192"; font-size: 16px; letter-spacing: 0; transition: transform 0.4s var(--ease); }
.g-home .wp-block-button__link:hover { background: var(--olive-dark); border-color: var(--olive-dark); color: #fff; }
.g-home .wp-block-button__link:hover::after { transform: translateX(5px); }
.g-home .is-style-outline .wp-block-button__link { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.g-home .is-style-outline .wp-block-button__link:hover { background: var(--espresso); color: var(--ivory); }
.g-home .g-btn-light .wp-block-button__link { background: var(--ivory); color: var(--espresso); border-color: var(--ivory); }
.g-home .g-btn-light .wp-block-button__link:hover { background: transparent; color: var(--ivory); }
.g-home .g-btn-link .wp-block-button__link { min-height: 44px; padding: 0; background: transparent; border: 0; border-bottom: 1px solid currentColor; color: inherit; }
.g-home .g-btn-link .wp-block-button__link::after { content: none; }
.g-home .g-btn-link .wp-block-button__link:hover { background: transparent; color: inherit; opacity: 0.75; }
.g-home .g-btn-sm .wp-block-button__link { min-height: 46px; padding: 0 22px; font-size: 11.5px; }

/* Image frames: the photo always fills the frame (cropped with object-fit),
   also when the Image block has a link (figure > a > img). */
.g-home .g-frame { overflow: hidden; background: var(--sand); }
.g-home .g-frame > a { display: block; width: 100%; height: 100%; }
.g-home .g-frame img { width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 1.2s var(--ease); }
@media (hover: hover) { .g-home .g-frame:hover img { transform: scale(1.045); } }

/* ---------- 1. Hero ---------- */
.g-home .wp-block-columns.g-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 0; min-height: max(680px, calc(100svh - 110px)); background: var(--espresso); color: var(--ivory); overflow: hidden; }
.g-home .g-hero__content { display: flex; flex-direction: column; justify-content: center; padding: clamp(72px, 8vw, 120px) clamp(32px, 5vw, 88px) 120px max(var(--gutter), calc((100vw - var(--container)) / 2)); position: relative; z-index: 2; }
.g-home .g-hero__content > * + * { margin-top: 30px; }
.g-home .g-hero__title { font-size: clamp(58px, 7.2vw, 116px); line-height: 0.96; letter-spacing: -0.02em; color: #FBF7F1; }
.g-home .g-hero__text { max-width: 470px; font-size: 17.5px; font-weight: 300; line-height: 1.75; color: #E9DFD2; }
.g-home .g-hero .g-btn-link .wp-block-button__link { color: var(--ivory); }
.g-home .g-hero__media { position: relative; min-height: 100%; }
.g-home .g-hero__media > * + * { margin-top: 0; }
.g-home .g-hero__img { position: absolute; inset: 0; }
.g-home .g-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: g-settle 2.4s var(--ease) both; }
.g-home .g-hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(36, 28, 24, 0.5) 0%, rgba(36, 28, 24, 0) 30%); pointer-events: none; }
.g-home .g-hero__inset { position: absolute; z-index: 3; left: -96px; bottom: 72px; width: clamp(180px, 15vw, 236px); aspect-ratio: 4 / 5; border: 8px solid var(--ivory); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55); }
.g-home .g-hero__inset img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }

/* ---------- 2. Strip ---------- */
.g-home .g-strip { padding: 0 var(--gutter); background: var(--ivory); border-bottom: 1px solid var(--line); }
.g-home .g-strip > * { max-width: var(--container); margin: 0 auto; }
.g-home .g-strip .wp-block-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.g-home .g-strip .wp-block-column { display: flex; align-items: center; justify-content: center; padding: 30px 20px; }
.g-home .g-strip .wp-block-column + .wp-block-column { border-left: 1px solid var(--line); }
.g-home .g-strip p { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--espresso); }
.g-home .g-strip p::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--olive); flex-shrink: 0; }

/* ---------- 3. Three paths ---------- */
.g-home .g-paths { padding-top: clamp(64px, 7vw, 104px); padding-bottom: clamp(88px, 9vw, 136px); }
.g-home .g-paths .wp-block-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.g-home .g-paths .wp-block-column { display: flex; flex-direction: column; align-items: flex-start; }
.g-home .g-paths .wp-block-column > * + * { margin-top: 16px; }
.g-home .g-paths .g-frame { width: 100%; aspect-ratio: 4 / 5; margin-bottom: 10px; }
.g-home .g-paths .wp-block-column:first-child .g-frame img { object-position: center top; }
.g-home .g-paths .wp-block-column:nth-child(2) .g-frame img { object-position: center 40%; }
.g-home .g-paths .wp-block-column:nth-child(3) .g-frame img { object-position: center 60%; }
.g-home .g-paths h3 { font-size: clamp(32px, 2.9vw, 44px); font-weight: 500; }
.g-home .g-paths p { flex: 1; max-width: 360px; font-size: 16px; color: var(--text-muted); }
.g-home .g-paths .wp-block-buttons { margin-top: 24px; }

/* ---------- 4. Intro ---------- */
.g-home .g-intro .wp-block-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px 48px; align-items: end; }
.g-home .g-intro h2 { font-size: clamp(46px, 6.4vw, 100px); }

/* ---------- 5. Menu ---------- */
.g-home .g-menu > .wp-block-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 32px clamp(32px, 7vw, 120px); align-items: stretch; }
.g-home .g-menu__feature { height: 100%; min-height: 640px; }
.g-home .g-menu__feature img { height: 100%; object-position: center 40%; }
.g-home .g-menu-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.g-home .g-menu-list li { border-bottom: 1px solid var(--line); }
.g-home .g-menu-list a { display: flex; align-items: center; justify-content: space-between; min-height: 60px; font-family: var(--font-serif); font-size: 24px; text-decoration: none; transition: padding 0.45s var(--ease), color 0.3s; }
.g-home .g-menu-list a::after { content: "\2192"; font-family: var(--font-sans); font-size: 16px; opacity: 0.45; transition: transform 0.45s var(--ease), opacity 0.3s; }
.g-home .g-menu-list a:hover { padding-left: 10px; color: var(--olive-dark); }
.g-home .g-menu-list a:hover::after { opacity: 1; transform: translateX(4px); }
.g-home .g-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.g-home .g-pair > * + * { margin-top: 64px; }
.g-home .g-pair .g-frame { aspect-ratio: 3 / 4; }

/* ---------- 6. Shop (live WooCommerce products) ---------- */
.g-home .g-shop__head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.g-home .g-shop__head .wp-block-column:last-child > * + * { margin-top: 22px; }
.g-home .g-shop__tags { font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--espresso); }
.g-home .g-shop__tags strong { display: block; font-weight: 500; color: var(--olive-dark); }
.g-home .g-shop__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: stretch; }
.g-home .g-shop__feature { height: 100%; min-height: 560px; }
.g-home .g-shop__feature img { height: 100%; }
.g-home .g-shop .woocommerce { width: 100%; }
.g-home .g-shop ul.products { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 36px 24px !important; margin: 0 !important; padding: 0 !important; list-style: none; }
.g-home .g-shop ul.products::before, .g-home .g-shop ul.products::after { display: none !important; }
.g-home .g-shop ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; }
.g-home .g-shop ul.products li.product img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #EFE8DE; margin: 0 0 10px !important; }
.g-home .g-shop ul.products li.product figure, .g-home .g-shop ul.products li.product .ct-media-container { width: 100%; margin: 0; }
.g-home .g-shop .woocommerce-loop-product__title { margin: 0 !important; padding: 0 !important; font-family: var(--font-serif); font-size: 24px !important; font-weight: 400; line-height: 1.15; color: var(--espresso); }
.g-home .g-shop .woocommerce-loop-product__title a { text-decoration: none; color: inherit; }
.g-home .g-shop .price { font-size: 15px !important; color: var(--text-muted) !important; }
.g-home .g-shop li.product .button { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto !important; padding: 0 18px !important; border-radius: 0 !important; background: transparent !important; border: 1px solid var(--espresso) !important; color: var(--espresso) !important; font-size: 11px !important; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
.g-home .g-shop li.product .button:hover { background: var(--espresso) !important; color: var(--ivory) !important; }
.g-home .g-shop .out-of-stock-badge, .g-home .g-shop .onsale, .g-home .g-shop .ct-woo-card-extra { display: none !important; }

/* ---------- 7. Book Grounded ---------- */
.g-home .g-book > .wp-block-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 64px clamp(32px, 7vw, 120px); align-items: start; }
.g-home .g-book-media { position: relative; padding: 24px 0 96px; }
.g-home .g-book-media > * + * { margin-top: 0; }
.g-home .g-book-media > :first-child { width: 84%; aspect-ratio: 4 / 5; }
.g-home .g-book-media > :first-child img { object-position: 40% center; }
.g-home .g-book-media > :last-child { position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 3 / 4; border: 8px solid var(--espresso); }
.g-home .g-book-media > :last-child img { object-position: 62% 30%; }
.g-home .g-book h2 { color: #FBF7F1; }
.g-home .g-book h2 em { color: var(--sage); }
.g-home .g-book .g-muted { color: #E3D8CA; font-weight: 300; max-width: 480px; }
.g-home .g-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.g-home .g-chips li { padding: 8px 14px; border: 1px solid var(--line-light); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #E3D8CA; }
.g-home .g-steps { margin: 0; padding: 0; list-style: none; counter-reset: g-step; border-top: 1px solid var(--line-light); }
.g-home .g-steps li { counter-increment: g-step; display: flex; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line-light); font-size: 15.5px; font-weight: 300; line-height: 1.6; color: #E3D8CA; }
.g-home .g-steps li::before { content: counter(g-step, decimal-leading-zero); min-width: 34px; font-family: var(--font-serif); font-style: italic; font-size: 24px; line-height: 1.1; color: var(--sage); }
.g-home .g-steps strong { font-weight: 500; color: var(--ivory); }

/* ---------- 8. Story ---------- */
.g-home .g-story > .wp-block-columns { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 48px clamp(40px, 8vw, 140px); align-items: center; }
.g-home .g-arch { max-width: 420px; justify-self: center; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 0 0; }
.g-home .g-arch img { width: 100%; height: 100%; object-fit: cover; }
.g-home .g-signoff { padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--font-serif); font-style: italic; font-size: 26px; color: var(--olive); }

/* ---------- 9. Instagram ---------- */
.g-home .g-social__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.g-home .g-social__head > .wp-block-column { flex: 0 1 auto; }
.g-home .g-social-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 17vw, 260px); gap: 16px; }
.g-home .g-social-grid > * + * { margin-top: 0; }
.g-home .g-social-grid > * { height: 100%; }
.g-home .g-social-grid > :nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.g-home .g-social-grid > :nth-child(2) { grid-column: 2 / span 2; grid-row: 1; }
.g-home .g-social-grid > :nth-child(3) { grid-column: 4; grid-row: 1 / span 2; }
.g-home .g-social-grid > :nth-child(4) { grid-column: 2; grid-row: 2; }
.g-home .g-social-grid > :nth-child(5) { grid-column: 3; grid-row: 2; }
.g-home .g-social-grid > :nth-child(5) img { object-position: center top; }
.g-home .g-social-grid a { display: block; height: 100%; }

/* ---------- Motion ---------- */
@keyframes g-settle { from { transform: scale(1.08); } to { transform: scale(1); } }
.js .g-home .g-reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--reveal-delay, 0s); }
.js .g-home .g-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .g-home .g-reveal { opacity: 1; transform: none; }
  .g-home .g-hero__img img { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) { .g-home .g-hero__inset { left: -72px; } }

@media (max-width: 1024px) {
  .g-home .wp-block-columns.g-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
  .g-home .g-hero__title { font-size: clamp(54px, 7.4vw, 76px); }
  .g-home .g-hero__inset { display: none; }
  .g-home .g-strip .wp-block-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-home .g-strip .wp-block-column { justify-content: flex-start; }
  .g-home .g-strip .wp-block-column:nth-child(3) { border-left: 0; }
  .g-home .g-strip .wp-block-column:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .g-home .g-paths .wp-block-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 64px; }
  .g-home .g-intro .wp-block-columns { grid-template-columns: 1fr; }
  .g-home .g-menu > .wp-block-columns { grid-template-columns: 1fr 1fr; }
  .g-home .g-menu__feature { min-height: 0; aspect-ratio: 4 / 5; height: auto; }
  .g-home .g-shop__head, .g-home .g-shop__body { grid-template-columns: 1fr; }
  .g-home .g-shop__feature { min-height: 0; aspect-ratio: 16 / 10; height: auto; }
  .g-home .g-book > .wp-block-columns { grid-template-columns: 1fr; }
  .g-home .g-book-media { max-width: 680px; }
}

@media (max-width: 781px) {
  .g-home { font-size: 16px; }
  .g-home .wp-block-columns.g-hero { grid-template-columns: 1fr; min-height: 0; }
  .g-home .g-hero__media { order: -1; height: min(78svh, 640px); min-height: 420px; }
  .g-home .g-hero__media::before { background: linear-gradient(180deg, rgba(36, 28, 24, 0) 48%, rgba(36, 28, 24, 0.85) 80%, rgb(36, 28, 24) 100%); }
  .g-home .g-hero__img img { object-position: 55% 20%; }
  .g-home .g-hero__content { margin-top: -120px; padding: 0 var(--gutter) 88px; }
  .g-home .g-hero__content > * + * { margin-top: 24px; }
  .g-home .g-hero__title { font-size: clamp(46px, 12.6vw, 64px); line-height: 0.98; }
  .g-home .g-hero__text { font-size: 16px; }
  .g-home .g-hero .wp-block-buttons { flex-direction: column; align-items: stretch; max-width: 440px; }
  .g-home .g-hero .wp-block-button { width: 100%; }
  .g-home .g-hero .wp-block-button__link { width: 100%; }
  .g-home .g-hero .g-btn-link { text-align: center; }
  .g-home .g-hero .g-btn-link .wp-block-button__link { width: auto; }
  .g-home .g-strip .wp-block-column { padding: 22px 12px; }
  .g-home .g-strip p { font-size: 11px; letter-spacing: 0.14em; }
  .g-home .g-paths .wp-block-columns { grid-template-columns: 1fr; gap: 56px; }
  .g-home .g-paths .g-frame { aspect-ratio: 4 / 4.4; }
  .g-home .g-paths .wp-block-button, .g-home .g-paths .wp-block-button__link { width: 100%; }
  .g-home .g-menu > .wp-block-columns { grid-template-columns: 1fr; }
  .g-home .g-menu__feature { aspect-ratio: 4 / 4.6; }
  .g-home .g-pair { gap: 12px; }
  .g-home .g-pair > * + * { margin-top: 40px; }
  .g-home .g-shop ul.products { gap: 28px 12px !important; }
  .g-home .g-shop .woocommerce-loop-product__title { font-size: 20px !important; }
  .g-home .g-shop li.product .button { padding: 0 12px !important; font-size: 10px !important; letter-spacing: 0.12em; }
  .g-home .g-book-media { padding-bottom: 72px; }
  .g-home .g-book-media > :first-child { width: 86%; }
  .g-home .g-book-media > :last-child { width: 46%; border-width: 6px; }
  .g-home .g-story > .wp-block-columns { grid-template-columns: 1fr; }
  .g-home .g-arch { max-width: 340px; }
  .g-home .g-social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; gap: 10px; }
  .g-home .g-social-grid > :nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .g-home .g-social-grid > :nth-child(5) { grid-column: 2; grid-row: 1; }
  .g-home .g-social-grid > :nth-child(3) { grid-column: 2; grid-row: 2 / span 2; }
  .g-home .g-social-grid > :nth-child(4) { grid-column: 1; grid-row: 3; }
  .g-home .g-social-grid > :nth-child(2) { grid-column: 1 / -1; grid-row: 4; }
  .g-home .wp-block-buttons .wp-block-button { flex-basis: auto; }
}

@media (max-width: 480px) {
  :root { --section-y: 84px; }
  .g-home .g-display { font-size: clamp(38px, 10.6vw, 46px); }
  .g-home .g-intro h2 { font-size: clamp(42px, 11.6vw, 50px); }
  .g-home .g-menu-list a { font-size: 22px; min-height: 56px; }
}

/* ---------- Header (Blocksy Pro header builder) ---------- */
#header { font-family: var(--font-sans); }
#header [data-row*="middle"] { border-bottom: 1px solid var(--line); }
#header .site-logo-container img { width: auto; max-height: 76px; }
#header .site-title-container { display: none; }
#header .ct-cart-item .ct-label { display: none; }
#header .ct-menu-link { font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--espresso); }
#header [data-menu] > ul > li > .ct-menu-link { position: relative; }
#header [data-menu] > ul > li > .ct-menu-link::before { content: ""; position: absolute; left: var(--menu-item-padding, 0); right: var(--menu-item-padding, 0); bottom: 30%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
#header [data-menu] > ul > li > .ct-menu-link:hover::before,
#header [data-menu] > ul > li.current-menu-item > .ct-menu-link::before { transform: scaleX(1); transform-origin: left; }
#header .ct-header-cta .ct-button { min-height: 46px; padding: 0 22px; border-radius: 0; font-family: var(--font-sans); font-size: 11.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
#header .ct-header-cta .ct-button::after { content: "\2192"; margin-left: 10px; letter-spacing: 0; transition: transform 0.4s var(--ease); }
#header .ct-header-cta .ct-button:hover::after { transform: translateX(4px); }
#offcanvas .ct-menu-link { font-family: var(--font-serif); font-size: 30px; text-transform: none; letter-spacing: 0; }

/* ---------- Footer (Content Block "Site Footer" + Blocksy copyright row) ----------
   The footer content sits in the same centered container as Blocksy's copyright row. */
.g-site-footer { background: var(--espresso); color: #E3D8CA; font-family: var(--font-sans); }
.g-site-footer .g-footer { margin: 0; padding: clamp(72px, 8vw, 112px) var(--gutter) clamp(48px, 5vw, 72px); }
.g-site-footer .g-footer > * { width: 100%; max-width: var(--container); margin-left: auto !important; margin-right: auto !important; }
.g-site-footer .g-footer > * + * { margin-top: 48px; }
.g-site-footer .wp-block-columns { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px clamp(32px, 4vw, 64px); margin-top: 0; margin-bottom: 0; }
.g-site-footer .wp-block-column { min-width: 0; }
.g-site-footer .wp-block-column > * + * { margin-top: 18px; }
.g-site-footer .wp-block-image { margin: 0; }
.g-site-footer .g-footer-logo img { width: 112px; height: auto; }
.g-site-footer p { margin: 0; }
.g-site-footer .g-footer-tagline { font-family: var(--font-serif); font-style: italic; font-size: 26px; line-height: 1.3; color: var(--ivory); }
.g-site-footer .g-footer-note { max-width: 320px; font-size: 14px; color: var(--taupe); }
.g-site-footer h4 { margin: 0 0 6px; font-family: var(--font-sans); font-size: 11.5px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--taupe); }
.g-site-footer ul { margin: 0; padding: 0; list-style: none; }
.g-site-footer li { padding: 6px 0; font-size: 15.5px; }
.g-site-footer a { color: var(--ivory); text-decoration: none; overflow-wrap: anywhere; transition: color 0.3s; }
.g-site-footer a:hover { color: var(--sage); }
#footer, #footer [data-row] { background-color: var(--espresso) !important; }
#footer [data-row*="bottom"] { border-top: 1px solid var(--line-light); }
#footer [data-row*="bottom"] .ct-container { max-width: var(--container); }
#footer .ct-footer-copyright { color: var(--taupe); font-size: 13px; letter-spacing: 0.04em; }
@media (max-width: 1024px) {
  .g-site-footer .wp-block-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-site-footer .wp-block-column:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .g-site-footer .wp-block-columns { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .g-site-footer .wp-block-column:first-child, .g-site-footer .wp-block-column:last-child { grid-column: 1 / -1; }
}

/* ---------- Menu page (template "Grounded full width" + [grounded_menu]) ---------- */
.g-home.g-page { min-height: 40vh; }

/* Hero */
.g-home .g-mhero { margin: 0; padding: clamp(48px, 6vw, 104px) var(--gutter) clamp(72px, 9vw, 136px); background: var(--cream); overflow: hidden; }
.g-home .g-mhero > * { max-width: var(--container); margin-left: auto; margin-right: auto; }
.g-home .wp-block-columns.g-mhero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px 24px; align-items: center; }
.g-home .g-mhero__content { grid-column: 1 / span 6; display: flex; flex-direction: column; align-items: flex-start; }
.g-home .g-mhero__content > * + * { margin-top: 30px; }
.g-home .g-mhero__title { font-size: clamp(56px, 6.8vw, 108px); line-height: 0.98; letter-spacing: -0.02em; color: var(--espresso); }
.g-home .g-mhero__title em { color: var(--olive-dark); }
.g-home .g-mhero__text { max-width: 470px; font-size: 17.5px; font-weight: 300; line-height: 1.75; color: var(--text-muted); }
.g-home .g-mhero__index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; width: 100%; max-width: 520px; margin: clamp(8px, 2vw, 28px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.g-home .g-mhero__index li { margin: 0; border-bottom: 1px solid var(--line); }
.g-home .g-mhero__index a { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; font-size: 11.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--espresso); transition: color 0.3s, padding 0.45s var(--ease); }
.g-home .g-mhero__index a span { font-family: var(--font-serif); font-style: italic; font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--olive); }
.g-home .g-mhero__index a:hover { color: var(--olive-dark); padding-left: 6px; }
.g-home .g-mhero__media { grid-column: 7 / -1; position: relative; padding-bottom: 40px; }
.g-home .g-mhero__media > * + * { margin-top: 0; }
.g-home .g-mhero__main { width: 86%; margin-left: auto; aspect-ratio: 4 / 5; }
.g-home .g-mhero__main img { object-position: center 45%; animation: g-settle 2.4s var(--ease) both; }
.g-home .g-mhero__inset { position: absolute; left: 0; bottom: 0; width: 38%; aspect-ratio: 3 / 4; border: 8px solid var(--cream); box-shadow: 0 30px 60px -34px rgba(36, 28, 24, 0.5); }
.g-home .g-mhero__inset img { object-position: center 30%; }
.g-home .g-mhero__caption { position: absolute; top: 0; right: calc(86% + 18px); writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-serif); font-style: italic; font-size: 18px; letter-spacing: 0.02em; color: var(--cocoa); white-space: nowrap; }

/* Collection head */
.g-home .g-collection__head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px 64px; align-items: end; }
.g-home .g-collection__head .wp-block-column:first-child > * + * { margin-top: 24px; }
.g-home .g-collection__note { max-width: 400px; margin-left: auto; padding-left: 18px; border-left: 2px solid var(--olive); font-size: 14px; line-height: 1.65; color: var(--text-muted); }

/* Tabs */
.g-home .g-menu-app { width: 100%; }
.g-home .g-mtabs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.g-home .g-mtabs__scroller { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.g-home .g-mtabs__scroller::-webkit-scrollbar { display: none; }
.g-home .g-mtabs__list { position: relative; display: grid; grid-template-columns: repeat(var(--tabs, 4), minmax(0, 1fr)); }
.g-home .g-mtabs__tab { position: relative; display: flex; align-items: baseline; gap: 14px; min-height: 76px; margin: 0; padding: 24px 24px 22px; background: transparent; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; color: var(--espresso); font-family: var(--font-sans); text-align: left; cursor: pointer; }
.g-home .g-mtabs__tab:first-child { border-left: 0; padding-left: 0; }
.g-home .g-mtabs__tab:hover, .g-home .g-mtabs__tab:focus { background: transparent; color: var(--espresso); }
.g-home .g-mtabs__tab:focus-visible { outline: 2px solid var(--olive); outline-offset: -4px; }
.g-home .g-mtabs__num { font-family: var(--font-serif); font-style: italic; font-size: 19px; line-height: 1; color: var(--olive); opacity: 0.55; transition: opacity 0.35s var(--ease); }
.g-home .g-mtabs__label { font-size: 12px; font-weight: 500; letter-spacing: 0.22em; line-height: 1.3; text-transform: uppercase; white-space: nowrap; opacity: 0.55; transition: opacity 0.35s var(--ease); }
.g-home .g-mtabs__tab:hover .g-mtabs__num, .g-home .g-mtabs__tab:hover .g-mtabs__label,
.g-home .g-mtabs__tab[aria-selected="true"] .g-mtabs__num, .g-home .g-mtabs__tab[aria-selected="true"] .g-mtabs__label { opacity: 1; }
.g-home .g-mtabs__indicator { position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; background: var(--olive); transition: transform 0.55s var(--ease), width 0.55s var(--ease); pointer-events: none; }

/* Panels */
.g-home .g-mpanel { margin-top: clamp(36px, 4.5vw, 56px); }
.g-home .g-mpanel[hidden] { display: none; }
.g-home .g-mpanel:focus-visible { outline: 2px solid var(--olive); outline-offset: 12px; }
.g-home .g-mpanel__meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: clamp(32px, 4vw, 48px); }
.g-home .g-mpanel__intro { font-family: var(--font-serif); font-style: italic; font-size: clamp(22px, 2vw, 28px); line-height: 1.3; color: var(--cocoa); }
.g-home .g-mpanel__count { font-size: 11.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--taupe); }
.g-home .g-mpanel__empty { padding: 48px 0; border-top: 1px solid var(--line); font-family: var(--font-serif); font-size: 24px; color: var(--text-muted); }

/* Beverage grid */
.g-home .g-bev-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 36px); row-gap: clamp(64px, 7vw, 112px); align-items: start; }
.g-home .g-bev { margin: 0; }
.g-home .g-mpanel.is-entering .g-bev { animation: g-bev-in 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes g-bev-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.g-home .g-bev__media { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.g-home .g-bev__media img, .g-home .g-bev__placeholder { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 25%; transition: transform 1.2s var(--ease); }
@media (hover: hover) { .g-home .g-bev:hover .g-bev__media img { transform: scale(1.045); } }
.g-home .g-bev__tag { position: absolute; top: 16px; left: 16px; z-index: 1; padding: 6px 10px 5px; background: var(--espresso); color: var(--ivory); font-size: 10.5px; font-weight: 500; line-height: 1; letter-spacing: 0.2em; text-transform: uppercase; }
.g-home .g-bev.is-soon .g-bev__media img { filter: saturate(0.75); }
.g-home .g-bev__body { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; row-gap: 10px; margin-top: 24px; }
.g-home .g-bev__num { grid-row: 1 / span 2; padding-top: 6px; font-family: var(--font-serif); font-style: italic; font-size: 20px; line-height: 1; color: var(--olive); }
.g-home .g-bev__name { margin: 0; font-family: var(--font-serif); font-weight: 500; font-size: clamp(28px, 2.5vw, 38px); line-height: 1.06; letter-spacing: -0.01em; color: var(--espresso); }
.g-home .g-bev__desc { grid-column: 2; max-width: 400px; font-size: 15.5px; line-height: 1.7; color: var(--text-muted); }
.g-home .g-bev--feature { grid-column: span 7; }
.g-home .g-bev--tall { grid-column: span 5; margin-top: clamp(96px, 13vw, 220px); }
.g-home .g-bev--tall .g-bev__media { aspect-ratio: 3 / 4; }
.g-home .g-bev--third { grid-column: span 4; }
.g-home .g-bev--third.g-bev--offset { margin-top: clamp(40px, 5vw, 80px); }
.g-home .g-bev--half { grid-column: span 6; }
.g-home .g-bev--half:nth-child(even) { margin-top: clamp(40px, 5vw, 80px); }
.g-home .g-bev--half .g-bev__media { aspect-ratio: 5 / 6; }
.g-home .g-bev--wide { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 36px); align-items: center; }
.g-home .g-bev--wide .g-bev__media { grid-column: 1 / span 7; aspect-ratio: 16 / 11; }
.g-home .g-bev--wide .g-bev__body { grid-column: 9 / -1; margin-top: 0; }
.g-home .g-bev--wide .g-bev__name { font-size: clamp(34px, 3.4vw, 52px); }

/* Made with intention */
.g-home .wp-block-columns.g-intention__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 64px 24px; align-items: center; }
.g-home .g-intention__media { grid-column: 1 / span 6; position: relative; padding-bottom: 72px; }
.g-home .g-intention__media > * + * { margin-top: 0; }
.g-home .g-intention__main { width: 82%; aspect-ratio: 4 / 5; }
.g-home .g-intention__main img { object-position: center 30%; }
.g-home .g-intention__detail { position: absolute; right: 0; bottom: 0; width: 40%; aspect-ratio: 3 / 4; border: 8px solid var(--cream); }
.g-home .g-intention__body { grid-column: 8 / -1; }
.g-home .g-intention__body > * + * { margin-top: 28px; }
.g-home .g-intention h2 em { color: var(--olive-dark); }
.g-home .g-intention .g-lead { max-width: 460px; }
.g-home .g-intention .g-signoff { max-width: 460px; font-size: 24px; }

/* Event CTA */
.g-home .wp-block-columns.g-mcta__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 64px 24px; align-items: center; }
.g-home .g-mcta__body { grid-column: 1 / span 5; }
.g-home .g-mcta__body > * + * { margin-top: 28px; }
.g-home .g-mcta h2 { color: #FBF7F1; }
.g-home .g-mcta h2 em { color: var(--sage); }
.g-home .g-mcta .g-muted { max-width: 440px; font-weight: 300; color: #E3D8CA; }
.g-home .g-mcta__media { grid-column: 7 / -1; position: relative; padding-bottom: 56px; }
.g-home .g-mcta__media > * + * { margin-top: 0; }
.g-home .g-mcta__main { width: 84%; margin-left: auto; aspect-ratio: 1 / 1; }
.g-home .g-mcta__inset { position: absolute; left: 0; bottom: 0; width: 36%; aspect-ratio: 3 / 4; border: 8px solid var(--espresso); }
.g-home .g-mcta__inset img { object-position: 40% center; }

/* Menu page responsive */
@media (max-width: 1280px) {
  .g-home .g-mtabs__tab { padding-inline: 18px; gap: 10px; }
  .g-home .g-mtabs__label { letter-spacing: 0.18em; }
}
@media (max-width: 1024px) {
  .g-home .g-mhero__content { grid-column: 1 / span 7; }
  .g-home .g-mhero__media { grid-column: 8 / -1; }
  .g-home .g-mhero__main { width: 100%; }
  .g-home .g-mhero__inset { left: -40px; width: 46%; }
  .g-home .g-mhero__caption { display: none; }
  .g-home .g-mhero__index { grid-template-columns: 1fr; max-width: 360px; }
  .g-home .g-collection__head { grid-template-columns: 1fr; }
  .g-home .g-collection__note { margin-left: 0; }
  .g-home .g-mtabs { margin-inline: calc(var(--gutter) * -1); }
  .g-home .g-mtabs__scroller { padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scroll-snap-type: x proximity; }
  .g-home .g-mtabs__list { display: flex; width: max-content; min-width: 100%; }
  .g-home .g-mtabs__tab { flex: 1 0 auto; scroll-snap-align: start; }
  .g-home .g-bev--third { grid-column: span 6; }
  .g-home .g-bev--third.g-bev--offset { margin-top: 0; }
  .g-home .g-bev--third.g-bev--end { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 36px); align-items: center; }
  .g-home .g-bev--third.g-bev--end .g-bev__media { grid-column: 1 / span 7; aspect-ratio: 4 / 3; }
  .g-home .g-bev--third.g-bev--end .g-bev__body { grid-column: 8 / -1; margin-top: 0; }
  .g-home .g-bev--wide .g-bev__body { grid-column: 8 / -1; }
  .g-home .g-intention__body { grid-column: 7 / -1; }
  .g-home .g-mcta__body { grid-column: 1 / -1; max-width: 640px; }
  .g-home .g-mcta__media { grid-column: 1 / -1; max-width: 720px; }
}
@media (max-width: 781px) {
  .g-home .g-mhero { padding-top: 32px; }
  .g-home .g-mhero__content, .g-home .g-mhero__media { grid-column: 1 / -1; }
  .g-home .g-mhero__content > * + * { margin-top: 24px; }
  .g-home .g-mhero__title { font-size: clamp(46px, 12.4vw, 66px); }
  .g-home .g-mhero__text { font-size: 16px; }
  .g-home .g-mhero .wp-block-buttons { flex-direction: column; align-items: stretch; width: 100%; max-width: 440px; }
  .g-home .g-mhero .wp-block-button, .g-home .g-mhero .wp-block-button__link { width: 100%; }
  .g-home .g-mhero .g-btn-link { text-align: center; }
  .g-home .g-mhero .g-btn-link .wp-block-button__link { width: auto; }
  .g-home .g-mhero__index { grid-template-columns: 1fr 1fr; column-gap: 20px; max-width: none; }
  .g-home .g-mhero__index a { gap: 8px; font-size: 10.5px; letter-spacing: 0.14em; }
  .g-home .g-mhero__media { padding-bottom: 48px; }
  .g-home .g-mhero__main { width: 88%; aspect-ratio: 4 / 4.6; }
  .g-home .g-mhero__inset { left: 0; width: 40%; border-width: 6px; }
  .g-home .g-mtabs__tab { min-height: 64px; padding: 20px 18px 18px; }
  .g-home .g-mtabs__scroller { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .g-home .g-bev-grid { column-gap: 12px; row-gap: 56px; }
  .g-home .g-bev--feature, .g-home .g-bev--wide { grid-column: 1 / -1; }
  .g-home .g-bev--feature .g-bev__media { aspect-ratio: 4 / 4.6; }
  .g-home .g-bev--tall { grid-column: 3 / -1; margin-top: 0; }
  .g-home .g-bev--third, .g-home .g-bev--half { grid-column: span 6; }
  .g-home .g-bev--half:nth-child(even) { margin-top: 0; }
  .g-home .g-bev--third .g-bev__media, .g-home .g-bev--half .g-bev__media { aspect-ratio: 3 / 4; }
  .g-home .g-bev--third .g-bev__body, .g-home .g-bev--half .g-bev__body { grid-template-columns: 1fr; }
  .g-home .g-bev--third .g-bev__num, .g-home .g-bev--half .g-bev__num { grid-row: auto; padding-top: 0; font-size: 17px; }
  .g-home .g-bev--third .g-bev__desc, .g-home .g-bev--half .g-bev__desc { grid-column: 1; font-size: 14px; line-height: 1.6; }
  .g-home .g-bev--third .g-bev__name, .g-home .g-bev--half .g-bev__name { font-size: clamp(21px, 5.6vw, 26px); }
  .g-home .g-bev--third.g-bev--end, .g-home .g-bev--wide { display: block; }
  .g-home .g-bev--third.g-bev--end .g-bev__media, .g-home .g-bev--wide .g-bev__media { aspect-ratio: 4 / 3; }
  .g-home .g-bev--third.g-bev--end .g-bev__body, .g-home .g-bev--wide .g-bev__body { grid-template-columns: auto minmax(0, 1fr); margin-top: 18px; }
  .g-home .g-bev--third.g-bev--end .g-bev__num { grid-row: 1 / span 2; padding-top: 6px; font-size: 20px; }
  .g-home .g-bev--third.g-bev--end .g-bev__desc { grid-column: 2; font-size: 15.5px; line-height: 1.7; }
  .g-home .g-bev--third.g-bev--end .g-bev__name, .g-home .g-bev__name { font-size: clamp(26px, 7vw, 32px); }
  .g-home .g-bev--wide .g-bev__name { font-size: clamp(30px, 8vw, 38px); }
  .g-home .g-bev__body { column-gap: 12px; margin-top: 18px; }
  .g-home .g-bev__tag { top: 10px; left: 10px; padding: 4px 8px 3px; font-size: 9.5px; letter-spacing: 0.16em; }
  .g-home .g-intention__media, .g-home .g-intention__body { grid-column: 1 / -1; }
  .g-home .g-intention__media { max-width: 560px; padding-bottom: 56px; }
  .g-home .g-intention__detail, .g-home .g-mcta__inset { border-width: 6px; }
  .g-home .g-mcta .wp-block-buttons, .g-home .g-mcta .wp-block-button, .g-home .g-mcta .wp-block-button__link { width: 100%; }
}
@media (max-width: 480px) {
  .g-home .g-mhero__index a { font-size: 10px; letter-spacing: 0.12em; }
  .g-home .g-mtabs__label { font-size: 11px; letter-spacing: 0.16em; }
  .g-home .g-bev--tall { grid-column: 2 / -1; }
}

/* Product pages (outside the homepage) */
.grounded-pickup-note { margin: 0 0 24px; padding: 16px 18px; border: 1px solid rgba(36, 28, 24, 0.14); font-size: 14.5px; line-height: 1.6; color: #624638; }
.grounded-pickup-note strong { color: #241C18; font-weight: 500; }
