/*
Theme Name: Soundview Beer Works
Theme URI: https://soundviewbeerworks.com/
Author: Soundview Beer Works
Description: A lightweight block theme for Soundview Beer Works — taproom-first homepage, live hours, open mic and band nights, Founders Series storytelling and WooCommerce-ready merch. Built for the WordPress Site Editor; no page builder required.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: soundview
Tags: block-theme, full-site-editing, one-column, custom-colors, custom-logo, editor-style, wide-blocks, e-commerce
*/

/* Most styling lives in theme.json. These rules add the pieces theme.json can't express. */

.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Announcement bar + sticky header */
.sv-topbar { text-align: center; font-weight: 600; font-size: 0.92rem; }
.sv-topbar a { color: inherit; }
.sv-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); border-bottom: 1px solid rgba(14, 42, 71, 0.08); }
.admin-bar .sv-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sv-header { top: 0; position: relative; } }
.sv-header .wp-block-site-title a { text-decoration: none; }
.sv-tagline { font-size: 0.7rem !important; letter-spacing: 0.18em; font-weight: 700; margin: 0 !important; }

/* Eyebrow labels */
.sv-eyebrow {
  font-size: 0.8rem !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--orange-dark);
}
.has-navy-background-color .sv-eyebrow, .sv-hero .sv-eyebrow { color: var(--wp--preset--color--yellow); }
.sv-lead { font-size: 1.2rem; opacity: 0.85; max-width: 60ch; }
.has-text-align-center.sv-lead { margin-inline: auto; }

/* Hero */
.sv-hero h1 { max-width: 14ch; }
.sv-hero p { max-width: 46ch; }

/* Open / closed pill (filled in by assets/js/soundview.js) */
.sv-open-status {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px; border-radius: 999px; font-weight: 600; margin: 0;
}
.sv-open-status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--wp--preset--color--yellow); }
.sv-open-status.is-open .dot { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25); }
.sv-open-status--light { background: var(--wp--preset--color--sand); border-color: transparent; color: var(--wp--preset--color--navy); }

/* Cards */
.sv-card {
  background: var(--wp--preset--color--white);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(14, 42, 71, 0.12);
  color: var(--wp--preset--color--ink);
}
.sv-card--week { border-top: 6px solid var(--wp--preset--color--orange); }
.has-navy-background-color .sv-card--dark { background: var(--wp--preset--color--navy-2); box-shadow: none; color: #dfe8f2; }
.has-navy-background-color .sv-card--dark h3 { color: #fff; }
.sv-when { font-weight: 700; color: var(--wp--preset--color--orange-dark); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem !important; }
.sv-style { color: var(--wp--preset--color--blue); font-weight: 700; font-size: 0.9rem !important; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0 !important; }
.sv-pill {
  display: inline-block; background: var(--wp--preset--color--sand); color: var(--wp--preset--color--navy);
  font-weight: 700; padding: 4px 12px; border-radius: 999px; font-size: 0.9rem !important;
}
.sv-tag {
  display: inline-block; background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--navy);
  font-size: 0.75rem !important; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
}

/* Hours table (core/table with class sv-hours) */
.sv-hours table { border-collapse: collapse; width: 100%; font-size: 1.05rem; }
.sv-hours td { padding: 12px 0; border: 0; border-bottom: 1px solid rgba(14, 42, 71, 0.12); }
.sv-hours td:last-child { text-align: right; font-weight: 600; }
.has-navy-background-color .sv-hours td { border-bottom-color: rgba(255, 255, 255, 0.14); }
.sv-hours tr.is-today td { color: var(--wp--preset--color--orange-dark); font-weight: 700; }
.has-navy-background-color .sv-hours tr.is-today td { color: var(--wp--preset--color--yellow); }
.sv-hours tr.is-closed td:last-child { opacity: 0.6; font-weight: 400; }

/* Embeds */
.sv-map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 14px; display: block; }
.sv-untappd iframe { width: 100%; min-height: 900px; border: 0; border-radius: 14px; background: #fff; display: block; }

/* Rounded images */
.sv-rounded img { border-radius: 14px; box-shadow: 0 10px 30px rgba(14, 42, 71, 0.12); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Reviews */
.sv-review { margin: 0; }
.sv-review p { font-style: italic; font-size: 1.15rem; }
.sv-review cite { font-style: normal; font-weight: 700; color: var(--wp--preset--color--yellow); font-size: 0.95rem; }

/* Place lists (Find Our Beer) */
.sv-places { list-style: none; padding: 0 !important; margin: 0; }
.sv-places li { padding: 14px 0; border-bottom: 1px solid rgba(14, 42, 71, 0.1); }
.sv-places strong { color: var(--wp--preset--color--navy); }

/* Event rows */
.sv-event { display: grid; grid-template-columns: 92px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(14, 42, 71, 0.1); }
.sv-event .date { background: var(--wp--preset--color--navy); color: #fff; border-radius: 12px; text-align: center; padding: 10px 0; }
.sv-event .date b { display: block; font-family: var(--wp--preset--font-family--display); font-size: 2.2rem; line-height: 1; font-weight: 400; }
.sv-event .date span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--yellow); }
.sv-event h3 { margin: 0 0 2px; }
.sv-event p { margin: 0; opacity: 0.75; }
@media (max-width: 640px) { .sv-event { grid-template-columns: 76px 1fr; } .sv-event .wp-element-button, .sv-event a.sv-btn { grid-column: 1 / -1; justify-self: start; } }
.sv-btn { display: inline-block; background: var(--wp--preset--color--navy); color: #fff !important; padding: 0.6em 1.2em; border-radius: 999px; text-decoration: none; font-weight: 700; }

/* Button styles */
.wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid currentColor; background: transparent; }
.wp-block-button.is-style-sv-navy > .wp-block-button__link { background: var(--wp--preset--color--navy); color: #fff; }

/* Footer */
.sv-footer a { text-decoration: none; }
.sv-footer a:hover { color: var(--wp--preset--color--yellow); }
.sv-footer .sv-footer-hours p { display: flex; justify-content: space-between; max-width: 220px; margin: 0; }

/* WooCommerce polish */
.woocommerce ul.products li.product, .wc-block-grid__product { background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 10px 30px rgba(14, 42, 71, 0.08); }
.woocommerce .price, .wc-block-components-product-price { color: var(--wp--preset--color--orange-dark); font-weight: 800; }

@media (max-width: 600px) {
  .sv-header .wp-block-site-title { font-size: 1.25rem !important; }
}
