/*
Theme Name: Football Tavern
Theme URI: https://footballtaverns.com
Author: Hadi
Author URI: https://www.theherd.agency/
Description: A bold, modern child theme of Twenty Twenty-Five built for Football Tavern — the official fans bar. Brand-driven colour, cinematic hero, crafted for matchday.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: football-tavern
Tags: block-theme, full-site-editing, sports, restaurant, bar, custom-colors, custom-logo, custom-menu, featured-images, wide-blocks
*/

:root {
  --ft-orange: #ca6a1f;
  --ft-orange-bright: #e47a25;
  --ft-orange-glow: rgba(228, 122, 37, 0.45);
  --ft-black: #070707;
  --ft-ink: #12141a;
  --ft-panel: #16181d;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Montserrat", system-ui, sans-serif;
  background: var(--ft-black);
  color: #f3f3f3;
  -webkit-font-smoothing: antialiased;
}

/* ── subtle moving gradient accent across the page ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 800px at 85% -10%, rgba(228,122,37,.14), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(228,122,37,.10), transparent 60%);
  z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }

/* ── grain texture for warmth ── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  z-index: 2;
}

.ft-eyebrow {
  color: var(--ft-orange);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-size: 13px;
}

.ft-rule {
  width: 60px;
  height: 3px;
  background: var(--ft-orange);
  margin: 18px 0 26px;
  border: 0;
}

.has-text-align-center .ft-rule,
.ft-center .ft-rule { margin-left: auto; margin-right: auto; }

.ft-hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}

.ft-hero video,
.ft-hero img.ft-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.ft-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,7,7,0.55) 0%, rgba(7,7,7,0.75) 100%);
  z-index: 1;
}

.ft-hero > .ft-hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.ft-hero h1 {
  font-size: clamp(46px, 8vw, 128px);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  line-height: 0.95;
}

.ft-hero h1 span { color: var(--ft-orange); display: block; }

/* ── Hero cover video enhancements ── */
.wp-block-cover .wp-block-cover__video-background {
  filter: brightness(0.85) saturate(1.15);
}

.wp-block-cover .wp-block-cover__inner-container {
  animation: heroFadeIn 1.6s ease-out both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* hero title glow */
.wp-block-cover .wp-block-cover__inner-container h1 {
  text-shadow: 0 0 80px var(--ft-orange-glow), 0 4px 20px rgba(0,0,0,.5);
}

.ft-btn,
.wp-block-button__link {
  display: inline-block;
  background: var(--ft-orange) !important;
  color: #fff !important;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-size: 13px;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease, box-shadow .35s ease;
  box-shadow: 0 4px 24px rgba(202,106,31,.0);
}

.ft-btn:hover,
.wp-block-button__link:hover {
  background: var(--ft-orange-bright) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(228,122,37,.45);
}

.ft-section { padding: 110px 0; }
.ft-section.dark { background: var(--ft-black); }
.ft-section.panel { background: var(--ft-panel); }

/* ── card treatment for column image+text combos ── */
.ft-card,
.wp-block-column {
  transition: transform .4s cubic-bezier(.22,1,.36,1), border-color .3s ease;
}

.wp-block-columns .wp-block-column:hover {
  transform: translateY(-8px);
}

.wp-block-column .has-panel-background-color {
  border: 1px solid rgba(255,255,255,.06);
  transition: border-color .3s ease, box-shadow .4s ease;
}

.wp-block-column:hover .has-panel-background-color {
  border-color: var(--ft-orange);
  box-shadow: 0 12px 48px rgba(202,106,31,.15);
}

.wp-block-column .wp-block-image img {
  transition: transform .5s cubic-bezier(.22,1,.36,1), filter .4s ease;
}
.wp-block-column:hover .wp-block-image img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.ft-card {
  background: var(--ft-panel);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}

.ft-card:hover { transform: translateY(-6px); border-color: var(--ft-orange); }

.ft-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.ft-card-body { padding: 26px 24px 30px; }
.ft-card h3 { margin: 0 0 10px; color: var(--ft-orange); text-transform: uppercase; font-size: 20px; letter-spacing: 1px; }
.ft-card p { margin: 0; color: rgba(255,255,255,.78); line-height: 1.55; font-size: 15px; }

/* ── gallery grid images ── */
.ft-gallery-grid img,
.wp-block-gallery .wp-block-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform .5s cubic-bezier(.22,1,.36,1), filter .4s ease, box-shadow .4s ease;
}
.ft-gallery-grid img:hover,
.wp-block-gallery .wp-block-image img:hover {
  transform: scale(1.06);
  filter: brightness(1.12) saturate(1.1);
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
}

.ft-faq details {
  background: var(--ft-panel);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 22px 28px;
  margin-bottom: 16px;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.ft-faq details:hover {
  border-color: rgba(202,106,31,.35);
  box-shadow: 0 4px 24px rgba(202,106,31,.08);
}
.ft-faq details[open] {
  border-color: var(--ft-orange);
  background: rgba(202,106,31,.06);
}
.ft-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ft-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ft-faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: rgba(255,255,255,.4);
  transition: transform .3s ease, color .3s ease;
}
.ft-faq details[open] summary::after {
  content: "−";
  color: var(--ft-orange);
  transform: rotate(180deg);
}
.ft-faq summary::-webkit-details-marker { display: none; }
.ft-faq details[open] summary { margin-bottom: 14px; }
.ft-faq p { margin: 0; color: rgba(255,255,255,.82); line-height: 1.7; font-size: 15px; }

/* FAQ on orange background (About page) */
.ft-faq--orange details {
  background: rgba(0,0,0,.85);
  border-color: rgba(0,0,0,.2);
}
.ft-faq--orange details:hover {
  border-color: #111;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.ft-faq--orange details[open] {
  border-color: #111;
  background: #0a0a0a;
}
.ft-faq--orange summary { color: #fff; }
.ft-faq--orange summary::after { color: rgba(255,255,255,.6); }
.ft-faq--orange details[open] summary::after { color: var(--ft-orange); }
.ft-faq--orange p { color: rgba(255,255,255,.85); }

/* About page hero image */
.ft-about-image img {
  width: 100%;
  height: auto;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.ft-about-image:hover img { transform: translateY(-6px); }

.ft-hours {
  background: var(--ft-panel);
  border-radius: 12px;
  padding: 30px;
  color: rgba(255,255,255,.85);
}
.ft-hours h3 { color: var(--ft-orange); margin: 0 0 18px; text-transform: uppercase; letter-spacing: 1px; }
.ft-hours ul { list-style: none; padding: 0; margin: 0; }
.ft-hours li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px; }
.ft-hours li:last-child { border-bottom: 0; }

.wp-block-site-title a,
.wp-block-site-title { color: #fff !important; text-transform: uppercase; letter-spacing: 1px; }

/* Navigation */
.wp-block-navigation__container a,
.wp-block-navigation a {
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 12px;
  font-weight: 600;
  transition: color .2s ease;
}
.wp-block-navigation__container a:hover,
.wp-block-navigation a:hover { color: var(--ft-orange) !important; }

/* ── scroll reveal ── */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wp-block-group.alignfull > .wp-block-group__inner-container > *,
.wp-block-columns,
.wp-block-gallery,
.wp-block-cover + .wp-block-group h2,
.ft-faq {
  animation: revealUp .8s cubic-bezier(.22,1,.36,1) both;
}

/* ── eyebrow label style ── */
.has-orange-color[style*="letter-spacing: 3px"],
.has-orange-color[style*="letter-spacing:3px"],
.has-orange-color[style*="letter-spacing: 4px"],
.has-orange-color[style*="letter-spacing:4px"] {
  position: relative;
  display: inline-block;
}
.has-orange-color[style*="letter-spacing: 3px"]::before,
.has-orange-color[style*="letter-spacing:3px"]::before,
.has-orange-color[style*="letter-spacing: 4px"]::before,
.has-orange-color[style*="letter-spacing:4px"]::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: var(--ft-orange);
  margin: 0 auto 12px;
  border-radius: 2px;
}

/* ── section heading underline ── */
.wp-block-heading.has-text-align-center {
  position: relative;
  padding-bottom: 20px;
}
.wp-block-heading.has-text-align-center::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--ft-orange), var(--ft-orange-bright));
  border-radius: 2px;
}

/* ── links glow on hover ── */
a[href*="mailto"],
a[href*="theherd"] {
  transition: color .2s ease, text-shadow .3s ease;
}
a[href*="mailto"]:hover,
a[href*="theherd"]:hover {
  text-shadow: 0 0 18px var(--ft-orange-glow);
}

/* ── opening hours card glow ── */
.has-ink-background-color[style*="border-radius: 12px"],
.has-ink-background-color[style*="border-radius:12px"] {
  transition: border-color .3s ease, box-shadow .4s ease;
  border: 1px solid rgba(255,255,255,.06);
}
.has-ink-background-color[style*="border-radius: 12px"]:hover,
.has-ink-background-color[style*="border-radius:12px"]:hover {
  border-color: rgba(202,106,31,.3);
  box-shadow: 0 8px 40px rgba(202,106,31,.12);
}

/* ── separator styling ── */
.wp-block-separator {
  background: linear-gradient(90deg, transparent, rgba(202,106,31,.3), transparent) !important;
  border: none !important;
  height: 1px !important;
}

/* ── footer glow ── */
footer.has-ink-background-color {
  border-top: 1px solid rgba(202,106,31,.15);
}

/* ── header backdrop blur ── */
header.has-ink-background-color {
  background: rgba(18,20,26,.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

/* ── image border radius consistency ── */
.wp-block-image img {
  border-radius: 14px;
}
.wp-block-gallery .wp-block-image img {
  border-radius: 10px;
}

/* ── cover overlay vignette ── */
.wp-block-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(7,7,7,.4) 100%);
}

/* ── Opening hours list (contact section) ── */
.ft-hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ft-hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
  font-size: 14px;
  letter-spacing: .5px;
}
.ft-hours-list li:last-child { border-bottom: 0; }
.ft-hours-list li span {
  color: var(--ft-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
}

/* ── Contact Form 7 styling ── */
.wpcf7-form .ft-form-field {
  margin: 0 0 14px;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  background: #0b0d11;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: #f1f1f1;
  font-family: inherit;
  font-size: 14px;
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: rgba(255,255,255,.42);
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: var(--ft-orange);
  box-shadow: 0 0 0 3px rgba(202,106,31,.12);
}
.wpcf7-form textarea {
  min-height: 130px;
  resize: vertical;
}
.wpcf7-form .ft-form-submit {
  margin: 6px 0 0;
}
.wpcf7-form input[type="submit"] {
  width: 100%;
  background: var(--ft-orange);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .3s;
}
.wpcf7-form input[type="submit"]:hover {
  background: var(--ft-orange-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(228,122,37,.4);
}
.wpcf7 .wpcf7-response-output {
  border-radius: 8px;
  border-width: 1px;
  padding: 10px 14px;
  font-size: 13px;
  margin: 14px 0 0;
}
.wpcf7-not-valid-tip {
  color: #ffb3b3;
  font-size: 12px;
  margin-top: 4px;
}

/* ── Social links block ── */
.wp-block-social-links .wp-social-link {
  background: transparent !important;
  transition: transform .25s ease;
}
.wp-block-social-links .wp-social-link:hover {
  transform: translateY(-4px) scale(1.15);
}
.wp-block-social-links .wp-social-link svg {
  fill: var(--ft-orange) !important;
  width: 34px;
  height: 34px;
}

/* ── Chat floating button (FAB) ── */
.ft-chat-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: var(--ft-orange);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 0 0 rgba(228,122,37,.6);
  cursor: pointer;
  z-index: 90;
  padding: 0;
  transition: transform .2s ease, background .2s ease;
  animation: ftPulse 2.4s ease-out infinite;
}
.ft-chat-fab:hover { transform: scale(1.1); background: var(--ft-orange-bright); }
.ft-chat-fab.is-open { background: #444; animation: none; }
.ft-chat-fab svg { width: 26px; height: 26px; }

@keyframes ftPulse {
  0%   { box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 0 0 rgba(228,122,37,.55); }
  70%  { box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 0 16px rgba(228,122,37,0); }
  100% { box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 0 0 rgba(228,122,37,0); }
}

.ft-chat-panel {
  position: fixed;
  right: 20px;
  bottom: 92px;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: #16181d;
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(0,0,0,.55);
  z-index: 89;
  overflow: hidden;
  display: none;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.06);
}
.ft-chat-panel.is-open { display: flex; animation: ftPanelIn .25s ease-out; }
@keyframes ftPanelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ft-chat-panel-header {
  background: var(--ft-orange);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ft-chat-panel-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  opacity: .9;
}
.ft-chat-panel-body { padding: 16px; }
.ft-chat-panel-body .wpcf7-form input[type="submit"] {
  font-size: 11px;
  padding: 11px 18px;
}
