/*
Theme Name:  Michael's Sports Pub & Grill
Theme URI:   https://24x7wpsupport.com/
Description: Custom WordPress theme for Michael's Sports Pub & Grill, Westminster CA. Built with ACF, custom post types for Events and Team, and a registered navigation menu.
Author:      Moses
Version:     1.0.0
License:     GPL-2.0-or-later
Text Domain: michaels-pub
*/

/* ============================================================
   CSS VARIABLES & RESET
============================================================ */
:root {
  --gold:         #eba61f;
  --gold-light:   #f5c842;
  --dark:         #0a0a0a;
  --dark-2:       #141414;
  --dark-3:       #1e1e1e;
  --dark-4:       #262626;
  --white:        #ffffff;
  --gray:         #a8a8a8;
  --gray-light:   #f5f5f5;
  --font-display: 'Bebas Neue', cursive;
  --font-body:    'Montserrat', sans-serif;
  --font-accent:  'Playfair Display', serif;
  --header-h:     85px;
  --transition:   0.3s ease;
  --radius:       8px;
  --shadow:       0 4px 30px rgba(0,0,0,0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  background:  var(--white);
  color:       var(--dark);
  line-height: 1.6;
  overflow-x:  hidden;
}
a   { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }

/* ============================================================
   HEADER
============================================================ */
#site-header {
  position:    fixed;
  top: 0; left: 0; right: 0;
  z-index:     9999;
  background:  #000;
  height:      var(--header-h);
  display:     flex;
  align-items: center;
  border-bottom: 2px solid rgba(235,166,31,0.3);
  transition:  box-shadow 0.3s;
}
#site-header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.6); }

.header-inner {
  max-width:       1280px;
  margin:          0 auto;
  padding:         0 24px;
  width:           100%;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             20px;
}
.header-logo img {
  height:     55px;
  width:      auto;
  object-fit: contain;
  transition: opacity 0.2s;
}
.header-logo:hover img { opacity: 0.85; }

/* Desktop Nav */
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav ul li a {
  font-family:     var(--font-body);
  font-weight:     600;
  font-size:       12px;
  letter-spacing:  1.5px;
  text-transform:  uppercase;
  color:           var(--white);
  padding:         8px 14px;
  border-radius:   4px;
  transition:      color var(--transition), background var(--transition);
  position:        relative;
}
.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--gold);
  transition: left 0.25s, right 0.25s;
  border-radius: 2px;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a,
.main-nav ul li.current_page_item a { color: var(--gold); }
.main-nav ul li a:hover::after,
.main-nav ul li.current-menu-item a::after,
.main-nav ul li.current_page_item a::after { left: 14px; right: 14px; }

/* Hamburger */
.hamburger {
  display:         none;
  flex-direction:  column;
  gap:             5px;
  cursor:          pointer;
  padding:         8px;
  background:      none;
  border:          none;
}
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--white); border-radius: 2px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: #000; padding: 20px 0;
  border-top: 1px solid rgba(235,166,31,0.2);
  z-index: 9998;
  transform: translateY(-10px); opacity: 0;
  transition: all 0.3s; pointer-events: none;
}
.mobile-nav.open {
  transform: translateY(0); opacity: 1;
  pointer-events: all; display: block;
}
.mobile-nav ul li a {
  display: block; padding: 14px 30px;
  font-family: var(--font-body); font-weight: 600;
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav ul li a:hover { color: var(--gold); background: rgba(235,166,31,0.05); }

/* ============================================================
   GLOBAL UTILITIES
============================================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.btn-gold {
  display: inline-block; background: var(--gold); color: var(--dark);
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 13px 28px; border-radius: var(--radius);
  border: 2px solid var(--gold); cursor: pointer;
  transition: background var(--transition), color var(--transition), transform 0.2s;
}
.btn-gold:hover { background: transparent; color: var(--gold); transform: translateY(-1px); }

.btn-outline {
  display: inline-block; background: transparent; color: var(--white);
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 13px 28px; border-radius: var(--radius);
  border: 2px solid var(--white); cursor: pointer; transition: all var(--transition);
}
.btn-outline:hover { background: var(--white); color: var(--dark); }

.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 {
  font-family: var(--font-display); font-size: clamp(42px,6vw,72px);
  letter-spacing: 4px; color: var(--dark); line-height: 1;
  position: relative; display: inline-block;
}
.section-head h2::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: var(--gold); margin: 12px auto 0; border-radius: 2px;
}
.section-head.light h2 { color: var(--white); }



/* ============================================================
   INNER BANNER (shared across inner pages)
============================================================ */
.inner-banner-sec {
  position: relative; height: 380px; overflow: hidden;
  display: flex; align-items: flex-end;
}
.inner-banner-bg { position: absolute; inset: 0; }
.inner-banner-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.inner-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right,rgba(0,0,0,0.75) 0%,rgba(0,0,0,0.45) 50%,rgba(0,0,0,0.2) 100%);
}
.inner-banner-content { position: relative; z-index: 1; padding-bottom: 50px; }
.inner-banner-title {
  font-family: var(--font-display); font-size: clamp(52px,8vw,96px);
  letter-spacing: 6px; color: var(--white); line-height: 1;
  position: relative; display: inline-block;
}
.inner-banner-title::after {
  content: ''; display: block; width: 80px; height: 4px;
  background: var(--gold); margin-top: 12px; border-radius: 2px;
}

/* ============================================================
   NEWSLETTER (footer.php)
============================================================ */
.newsletter-sec { background: var(--dark-3); padding: 50px 0; }
.newsletter-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.newsletter-left { display: flex; align-items: center; gap: 20px; }
.newsletter-left .plane-icon {
  width: 50px; height: 50px; background: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.newsletter-left .plane-icon i { color: var(--dark); font-size: 20px; }
.newsletter-left h2 { font-family: var(--font-display); font-size: 32px; letter-spacing: 3px; color: var(--white); }
.newsletter-right { display: flex; flex: 1; min-width: 280px; max-width: 480px; }
.newsletter-right input[type="email"] {
  flex: 1; padding: 14px 20px; font-family: var(--font-body); font-size: 14px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-right: none; color: var(--white);
  border-radius: var(--radius) 0 0 var(--radius); outline: none; transition: border-color 0.2s;
}
.newsletter-right input[type="email"]::placeholder { color: var(--gray); }
.newsletter-right input[type="email"]:focus { border-color: var(--gold); }
.newsletter-right button {
  padding: 14px 26px; background: var(--gold); color: var(--dark);
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase;
  border: none; border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer; transition: background 0.2s;
}
.newsletter-right button:hover { background: var(--gold-light); }

/* ============================================================
   SITE FOOTER
============================================================ */
#site-footer { background: var(--dark-4); padding: 60px 0 0; }
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px 50px;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 50px;
}
.footer-col h5 {
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--white);
  margin-bottom: 24px; padding-left: 14px; border-left: 3px solid var(--gold);
}
.quick-links li { margin-bottom: 10px; }
.quick-links li a { font-size: 13px; color: var(--gray); transition: color 0.2s, padding-left 0.2s; display: inline-block; }
.quick-links li a:hover { color: var(--gold); padding-left: 5px; }
.foot-contact a { display: block; font-size: 13px; color: var(--gray); margin-bottom: 10px; transition: color 0.2s; }
.foot-contact a:hover { color: var(--gold); }
.foot-contact p { font-size: 13px; color: var(--gray); line-height: 1.7; margin-top: 10px; }
.foot-timing { display: flex; flex-direction: column; gap: 10px; }
.foot-timing li {
  display: flex; justify-content: space-between; gap: 10px;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 4px;
  padding: 8px 14px; font-size: 12px; color: var(--gray);
}
.foot-timing li span:first-child { font-weight: 600; color: var(--white); }
.foot-timing li span.highlight { color: var(--gold); font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 24px;
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 15px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.social-links a:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.footer-copy { font-size: 12px; color: var(--gray); letter-spacing: 0.5px; }
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 44px; height: 44px; background: var(--gold); color: var(--dark);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s; z-index: 999; border: none;
  box-shadow: 0 4px 15px rgba(235,166,31,0.4);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-light); }

@media (max-width: 900px) { .main-nav { display: none; } .hamburger { display: flex; } }
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-right { max-width: 100%; width: 100%; }
  .inner-banner-sec { height: 280px; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
