/*
Theme Name: Brazos Event Productions
Theme URI: https://brazosep.com
Author: Clever Guys Media
Author URI: https://cleverguysmedia.com
Description: Custom block theme for Brazos Event Productions — full-service event production in Waco and across Texas. A Clever Guys Media company.
Version: 1.0.8
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brazosep
*/

:root {
  --red: #e31e24;
  --red-dark: #b5171c;
  --black: #131313;
  --charcoal: #1f1f1f;
  --white: #ffffff;
  --gray-100: #f6f5f3;
  --gray-200: #e9e7e3;
  --gray-500: #7a7a7a;
  --gray-700: #3d3d3d;
  --radius: 6px;
  --font-display: var(--wp--preset--font-family--oswald, 'Oswald', sans-serif);
  --font-body: var(--wp--preset--font-family--inter, 'Inter', sans-serif);
}

html { scroll-behavior: smooth; }

body { -webkit-font-smoothing: antialiased; }

img { max-width: 100%; height: auto; }

h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0 0 0.5em; }
h3 { font-size: 1.25rem; margin: 0 0 0.5em; }

p { margin: 0 0 1em; color: var(--gray-700); }

/* ---------- Shared section building blocks ---------- */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* WordPress's flow layout injects `margin-block-start` (block gap) onto every
   non-first child of a group. On our flex/grid containers — which space their
   children with `gap` instead — that stray top margin breaks alignment: it
   pushes the header's nav cluster and the 2nd/3rd cards in a row down by one
   gap. These containers use `gap`, so zero out the injected margins. */
.site-header .container > *,
.header-right > *,
.grid > *,
.loc-grid > *,
.gallery > *,
.stats > *,
.tag-list > *,
.split > *,
.contact-grid > *,
.footer-top > *,
.footer-links > * {
  margin-block-start: 0;
}

.eyebrow {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--red) !important;
  font-weight: 600;
  margin-bottom: 0.75em;
}

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }

.section--dark { background: var(--black); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: #cfcfcf; }
.section--dark li { color: #cfcfcf; }

.section--gray { background: var(--gray-100); }

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p { font-size: 1.1rem; }

/* ---------- Buttons (core button block carrying .btn classes) ---------- */

.wp-block-buttons.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.wp-block-button.btn .wp-block-button__link {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.wp-block-button.btn .wp-block-button__link:hover { transform: translateY(-2px); }

.wp-block-button.btn--primary .wp-block-button__link {
  background: var(--red);
  color: var(--white);
}
.wp-block-button.btn--primary .wp-block-button__link:hover { background: var(--red-dark); }

.wp-block-button.btn--outline .wp-block-button__link {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.wp-block-button.btn--outline .wp-block-button__link:hover { background: var(--white); color: var(--black); }

.wp-block-button.btn--outline-dark .wp-block-button__link {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}
.wp-block-button.btn--outline-dark .wp-block-button__link:hover { background: var(--black); color: var(--white); }

/* ---------- Header ---------- */

header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
  display: block;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 24px;
}

.site-header .wp-block-site-logo img,
.site-header .brand-img img { height: 72px; width: auto; }
.site-header .wp-block-site-logo { margin: 0; }

.site-header .header-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-header .wp-block-navigation a {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--charcoal);
}
.site-header .wp-block-navigation a:hover { color: var(--red); text-decoration: none; }
.site-header .wp-block-navigation { gap: 32px; }

.site-header .wp-block-button.btn .wp-block-button__link { padding: 10px 22px; white-space: nowrap; }

/* Collapse to WordPress's hamburger overlay earlier than the nav block's
   hardcoded 600px breakpoint. Between ~600–900px the five links + CTA + logo
   no longer fit on one line and wrap to two; below 900px show the hamburger
   instead. The overlay's open/close is driven by the nav block's own script
   and works fine at these widths. `!important` beats the block's own
   `min-width:600px` rule where the two media queries overlap. To move the
   collapse point (e.g. after enlarging the nav font), change 900px below. */
@media (max-width: 732px) {
  .site-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex !important;
  }
  .site-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }
}

/* Mobile overlay menu inherits readable colors */
.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--white);
}
.wp-block-navigation__responsive-container.is-menu-open a { color: var(--charcoal); }

/* ---------- Hero (core cover block with .hero classes) ---------- */

.wp-block-cover.hero {
  padding: 110px 24px 90px;
  min-height: 0;
}

.hero .wp-block-cover__inner-container {
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}

.hero h1 { color: var(--white); }

.hero p.lead {
  font-size: 1.25rem;
  color: #d9d9d9;
  max-width: 620px;
}

.hero .tagline {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  font-size: 0.9rem;
  margin: 32px 0 0;
}

/* Gallery pages (custom "Gallery Page" template) */
.gallery-hero { padding: 72px 0; text-align: center; }
.gallery-hero .wp-block-post-title { color: var(--white); margin: 0; }
.gallery-back { margin-top: 48px; }

/* ---------- Cards & grids ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  border-color: var(--red);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

.card--photo { padding: 0; overflow: hidden; }
.card--photo .wp-block-image { margin: 0; }
.card--photo .wp-block-image img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.card--photo .card-body { padding: 24px 26px 30px; }

.gallery-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.gallery-card:hover { border-color: var(--red); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.gallery-card:hover, .gallery-card:hover h3, .gallery-card:hover p, .gallery-card:hover a {
  color: var(--red);
}

/* ---------- Gallery strip ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.gallery .wp-block-image { margin: 0; }
.gallery .wp-block-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Industry tags ---------- */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.tag-list p { margin: 0; }
.tag {
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 10px 22px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--charcoal) !important;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat p { margin: 0; }
.stat .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--red) !important;
  line-height: 1;
  margin-bottom: 6px;
}
.stat .label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  color: #cfcfcf !important;
}

/* ---------- Two-column split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
}

.split ul { padding-left: 20px; margin: 0; }
.split li { margin-bottom: 10px; color: var(--gray-700); }

/* ---------- Location cards ---------- */

.loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.loc-card {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
.loc-card h3 { color: var(--white); font-size: 1.6rem; }
.loc-card p { color: #d9d9d9; }
.loc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(227,30,36,0.25), transparent 60%);
}
.loc-card > * { position: relative; z-index: 1; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-item { margin-bottom: 20px; }
.contact-item .label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--red);
  display: block;
  margin-bottom: 4px;
}
.contact-note { margin-top: 16px; font-size: 0.9rem; color: var(--gray-500); }
.contact-note a { color: var(--red); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--black);
  color: #b8b8b8;
  padding: 48px 0 28px;
}
.site-footer p { color: #b8b8b8; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #333;
  margin-bottom: 24px;
}
.footer-brand .wp-block-image { margin: 0 0 12px; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand .sub {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--red) !important;
  margin: 0;
}
.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-links h4 {
  color: var(--white);
  font-size: 0.85rem;
  margin: 0 0 12px;
}
.footer-links p { margin: 0 0 8px; }
.footer-links a {
  font-size: 0.92rem;
  color: #b8b8b8;
}
.footer-links a:hover { color: var(--red); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-bottom p { margin: 0; color: #b8b8b8; }

/* ---------- Utilities ---------- */

.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }

/* Keep WP root padding from fighting full-bleed sections */
.wp-site-blocks { padding: 0; }
