/*
Theme Name: Bradleys Bar & Kitchen
Theme URI: https://www.bradleysbarandkitchen.co.uk
Author: Bradleys Bar & Kitchen
Description: Custom theme for Bradleys Bar & Kitchen at Bradley Park Golf Course. Black and gold layout, editable menus and events, no page builder.
Version: 1.0.9
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: bradleys
*/

:root {
  --black: #111211;
  --gold: #b58a3a;
  --gold-deep: #8b672b;
  --cream: #f6f3ec;
  --paper: #fbfaf7;
  --white: #fff;
  --muted: #555850;
  --ink: #171717;
}

html { box-sizing: border-box; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  color: #111;
  padding: 8px 12px;
  z-index: 10000;
}
.skip-link:focus { left: 12px; }

.site-head {
  background: #fff;
  color: #171717;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid #e8e4db;
}
.head-inner {
  max-width: 1240px;
  margin: auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo, .custom-logo {
  display: block;
  width: 250px;
  max-width: 46vw;
  height: auto;
}
.custom-logo-link { display: block; line-height: 0; }
.nav-toggle {
  display: none;
  background: #111;
  color: #fff;
  border: 1px solid var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
}
.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(10px, 1.6vw, 26px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: inline-block;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  color: #171717;
  font-size: 11px;
  letter-spacing: .09em;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
  color: #6e5018;
  border-bottom-color: var(--gold);
}
.goldline { height: 3px; background: var(--gold); }

.eyebrow, .kicker {
  color: var(--gold-deep);
  font-size: 11px;
  letter-spacing: .2em;
  font-weight: 800;
  text-transform: uppercase;
}
.kicker { color: #e4c17d; letter-spacing: .24em; }

.button, .btn-dark, .btn-gold, .btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  min-height: 46px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--gold);
  font-weight: 800;
}
.button {
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .8);
}
.button.gold, .btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
}
.button:hover, .btn-gold:hover { filter: brightness(1.06); }
.btn-dark {
  background: #151515;
  color: #fff;
  font-size: .9rem;
}
.btn-dark:hover { background: var(--gold); color: #111; }
.btn-line {
  background: transparent;
  color: #fff;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.btn-line:hover { background: var(--gold); color: #111; }
.text-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  text-decoration: none;
}
.actions, .menu-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.home-hero {
  min-height: 610px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #28372a;
}
.home-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(9, 14, 10, .77) 0%, rgba(9, 14, 10, .48) 45%, rgba(9, 14, 10, .06) 100%), var(--hero);
  background-size: cover;
  background-position: center 54%;
}
.home-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 1240px;
  width: 100%;
  margin: auto;
  padding: 90px 36px;
}
.home-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(44px, 6.3vw, 78px);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 18px 0 20px;
  max-width: 740px;
}
.home-hero p { font-size: 17px; max-width: 570px; color: #f5f4ef; margin: 0 0 28px; }

.home-intro, .home-welcome {
  padding: 58px 24px 62px;
  text-align: center;
}
.home-intro { max-width: 930px; margin: auto; }
.home-intro h2, .home-features h2, .home-gather h2, .home-welcome h2,
.section h2, .whats-hero h1, .whats-cta h2, .society-hero h1, .society-cta h2,
.contact-hero h1, .contact-cta h2, .plain-inner h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}
.home-intro h2, .home-features h2, .home-gather h2 {
  font-size: clamp(31px, 4vw, 46px);
  line-height: 1.12;
  margin: 12px 0 16px;
}
.home-intro p, .home-welcome p { color: var(--muted); font-size: 16px; max-width: 800px; margin: 0 auto; }
.home-welcome h2 { font-size: clamp(29px, 3.5vw, 40px); margin: 0 0 12px; }
.home-features { padding: 58px 28px 70px; background: var(--cream); text-align: center; }
.home-features-inner { max-width: 1160px; margin: auto; }
.home-features h2 { margin-bottom: 32px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.card {
  background: #fff;
  min-height: 240px;
  padding: 30px 28px 27px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 8px 24px rgba(24, 24, 20, .04);
}
.card .num { font-size: 10px; letter-spacing: .14em; color: var(--gold-deep); font-weight: 800; text-transform: uppercase; }
.card h3 { font-family: Georgia, serif; font-size: 27px; font-weight: 500; line-height: 1.12; margin: 13px 0; }
.card p { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.home-gather { padding: 48px 24px; background: #181a17; color: #fff; text-align: center; }
.home-gather .eyebrow, .home-gather .kicker { color: #e4c17d; }
.home-gather p { max-width: 730px; color: #e2e2dc; margin: 0 auto 22px; }

.section { padding: 58px 6vw; max-width: 1250px; margin: auto; }
.section-heading, .intro { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.section h2, .intro h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; margin: 8px 0 12px; }
.section-heading p, .intro p { color: var(--muted); margin: 0 0 12px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.menu-card {
  background: #fff;
  box-shadow: 0 8px 28px #0000000d;
  border: 1px solid #eee7d8;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.menu-card img { width: 100%; height: 230px; object-fit: cover; display: block; }
.menu-card .copy { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.menu-card h3 { margin: 0 0 7px; font-size: 1.25rem; }
.menu-card p { margin: 0 0 18px; color: var(--muted); font-size: .94rem; }
.menu-actions { margin-top: auto; }
.food-hero, .contact-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  background: #171717;
  color: #fff;
}
.food-hero-copy, .contact-hero-copy {
  padding: clamp(32px, 6vw, 82px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.food-hero h1, .contact-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1.02;
  margin: 12px 0 18px;
}
.contact-hero h1 { font-weight: 400; }
.food-hero p, .contact-hero p { max-width: 500px; color: #e6e2d9; font-size: 1.05rem; }
.food-hero img, .contact-hero img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.contact-hero h1 span { color: var(--gold); }
.carvery { background: #eee9df; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.carvery img { width: 100%; height: 100%; min-height: 350px; object-fit: cover; }
.carvery .copy { padding: clamp(30px, 5vw, 68px); align-self: center; }
.carvery h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 10px 0 14px; line-height: 1.05; }
.carvery p { max-width: 500px; color: #444; }
.coming {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 11px;
  border: 1px solid #b38b32;
  color: #72530b;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.bar-strip { background: #151515; color: #fff; text-align: center; padding: 48px 7vw; }
.bar-strip .eyebrow { color: #e4c17d; }
.bar-strip h2 { margin: 8px 0 10px; font-family: Georgia, serif; font-weight: 500; }
.bar-strip p { max-width: 700px; margin: 0 auto; color: #dedbd4; }
.menu-previews { padding: 50px 6vw 30px; background: #fff; }
.preview-wrap { max-width: 1000px; margin: 0 auto 40px; }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.preview-head h3 { margin: 0; font-size: 1.35rem; }
.menu-poster { width: 100%; height: auto; display: block; border: 1px solid #e7e0d3; box-shadow: 0 6px 25px #00000010; }
.divider { height: 1px; background: #e9e1d2; margin: 28px auto; max-width: 1000px; }
.fineprint { color: #777; font-size: .82rem; text-align: center; padding: 8px 18px 28px; }

body.bbk-food, body.bbk-whats, body.bbk-contact, body.bbk-privacy { background: var(--paper); }

.whats-hero, .whats-cta { text-align: center; }
.whats-hero { background: #151515; color: #fff; padding: clamp(48px, 8vw, 90px) 7vw; }
.whats-hero .eyebrow { color: #e4c17d; }
.whats-hero h1 { font-size: clamp(2.6rem, 6vw, 4.7rem); line-height: 1.04; margin: 12px 0 18px; }
.whats-hero p { max-width: 760px; margin: 0 auto; color: #e7e3db; font-size: 1.08rem; }
.event-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.event-card { background: #fff; border: 1px solid #e9dfcd; box-shadow: 0 8px 28px #0000000d; overflow: hidden; }
.event-card img { display: block; width: 100%; height: auto; }
.event-copy { padding: 24px; }
.event-copy h3 { font-size: 1.45rem; margin: 0 0 8px; }
.event-text { color: #555; margin: 0 0 18px; }
.events-empty { text-align: center; color: var(--muted); }
.whats-cta { background: #eee8dc; padding: 48px 7vw; }
.whats-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 8px 0; }
.whats-cta p { max-width: 700px; margin: 0 auto 22px; color: #444; }

body.bbk-events { background: #101112; color: #fff; }
.society-hero { padding: 58px clamp(22px, 6vw, 84px) 48px; text-align: center; background: radial-gradient(ellipse at top, #27221a 0, #101112 65%); }
.society-hero h1, .bbk-events h2 { font-weight: 400; line-height: 1.08; text-transform: uppercase; margin: 10px 0 18px; }
.society-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.society-hero h1 span, .bbk-events h2 span { color: #c99a45; }
.society-hero .eyebrow, .bbk-events .eyebrow { color: #c99a45; }
.society-hero p { max-width: 820px; margin: 0 auto; color: #e5e0d8; font-size: 1.08rem; }
.bbk-events .section { max-width: 1400px; }
.society-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 68px); }
.society-split.reverse .bbk-photo { order: 2; }
.bbk-photo { width: 100%; min-height: 360px; max-height: 560px; object-fit: cover; display: block; border: 1px solid #9e7838; }
.bbk-events .copy h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); }
.subhead { letter-spacing: .17em; text-transform: uppercase; color: #eee; font-size: .95rem; }
.bbk-events .copy p { color: #e0ddd7; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.55; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; }
.feature { border-top: 1px solid #6d552d; padding: 14px 8px; color: #e5d3ad; text-align: center; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-box { border: 1px solid #c99a45; padding: 18px 20px; margin-top: 24px; }
.contact-box strong { color: #c99a45; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 8px; }
.contact-box p { margin: 0 0 8px; font-family: Arial, sans-serif; font-size: .95rem; }
.society-email a { color: #e4c17d; }
.sheet-section { max-width: 980px; }
.sheet-section h2 { margin-top: 0; }
.sheet-list { display: grid; gap: 28px; }
.sheet-card { background: #fff; color: #171717; padding: 16px; }
.sheet-card h3 { margin: 0 0 12px; color: #171717; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: 1.45rem; text-transform: none; }
.sheet-card img { width: 100%; height: auto; display: block; }
.sheet-card .text-link { color: #6e5018; }
.bbk-events .contact-box p { font-family: Arial, Helvetica, sans-serif; }
.bbk-food h1, .bbk-food h2, .bbk-food h3,
.bbk-whats h1, .bbk-whats h2, .bbk-whats h3 { font-family: Arial, Helvetica, sans-serif; }
.society-cta { background: var(--cream); color: #171717; text-align: center; padding: 54px 22px; }
.society-cta h2 { font-size: clamp(2rem, 4vw, 3.1rem); text-transform: uppercase; }
.society-cta p { max-width: 740px; margin: 0 auto 20px; color: #555; font-family: Arial, sans-serif; }
.society-cta .eyebrow { color: var(--gold-deep); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { background: #fff; border: 1px solid #e9e1d2; padding: 25px; box-shadow: 0 8px 24px #00000008; }
.contact-card .icon { font-size: 1.7rem; color: var(--gold); }
.contact-card h3 { margin: 8px 0; font-size: 1.1rem; }
.contact-card p { color: #555; margin: 0; }
.contact-card a, .card-link a { color: #7d5b17; overflow-wrap: anywhere; }
.card-link { margin-top: 12px; }
.notice { margin-top: 24px; padding: 16px 18px; background: #f0eadf; border-left: 3px solid var(--gold); font-size: .92rem; color: #555; }
.enquiry-form {
  position: relative;
  max-width: 820px;
  margin: 32px auto 0;
  background: #fff;
  border: 1px solid #e9e1d2;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 8px 24px #00000008;
}
.enquiry-form h2 { font-family: Georgia, serif; font-weight: 400; margin: 0 0 8px; }
.form-intro, .form-privacy { color: #666; }
.form-privacy a { color: #7d5b17; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.enquiry-form label { display: block; font-size: .92rem; margin-top: 16px; }
.form-row label { margin-top: 0; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #ccc;
  background: #fff;
}
.enquiry-form textarea { resize: vertical; }
.enquiry-form button { margin-top: 8px; }
.enquiry-form button:disabled { opacity: .65; cursor: wait; }
.form-status { min-height: 1.2em; }
.form-status.is-success, .form-status.is-error { padding: 12px 14px; margin: 8px 0 16px; }
.form-status.is-success { color: #0d5c2e; background: #e7f6ec; }
.form-status.is-error { color: #7a1420; background: #fdecee; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-cta { background: #121212; color: #fff; text-align: center; padding: 52px 22px; }
.contact-cta h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; margin: 8px 0 14px; }
.contact-cta p { max-width: 680px; margin: 0 auto 22px; color: #ddd; }
.contact-cta .eyebrow { color: #e4c17d; }
.contact-cta .actions, .contact-cta a { margin: 4px; }

.plain-page { padding: 58px 6vw 80px; }
.plain-inner { max-width: 760px; margin: 0 auto; }
.plain-inner h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 8px; }
.plain-inner h2 { font-family: Georgia, serif; font-weight: 500; font-size: 1.6rem; margin-top: 1.6em; }
.plain-inner a { color: #7d5b17; }
.plain-content p { color: #444; }

.site-footer { background: #0f100f; color: #f7f4ed; padding: 26px 28px; }
.foot-inner {
  max-width: 1160px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}
.foot-logo { width: 190px; max-width: 42vw; display: block; background: #fff; padding: 6px; }
.foot-copy { text-align: right; color: #d6d2c8; line-height: 1.7; }
.foot-copy strong { color: #d7b36c; letter-spacing: .08em; }
.foot-copy a { color: #d7b36c; }
.disclaimer { font-size: 12px; color: #aaa79f; margin-top: 7px; }
.foot-links { margin-top: 6px; }

.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: #111;
  color: #f6f3ec;
  padding: 14px 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .92rem; }
.cookie-banner a { color: #e4c17d; }
.cookie-banner button {
  background: var(--gold);
  color: #111;
  border: 0;
  font-weight: 800;
  padding: 10px 16px;
  cursor: pointer;
}

@media (max-width: 980px) {
  .has-js .nav-toggle { display: inline-flex; }
  .has-js .head-inner { flex-wrap: wrap; }
  .has-js .site-nav { display: none; width: 100%; }
  .has-js .site-nav.is-open { display: block; }
  .has-js .site-nav.is-open .nav-list { flex-direction: column; align-items: flex-start; gap: 2px; }
}
@media (max-width: 800px) {
  .head-inner { padding: 12px 18px; }
  .logo, .custom-logo { width: 210px; }
  .home-hero { min-height: 520px; }
  .home-hero:before {
    background-image: linear-gradient(90deg, rgba(9, 14, 10, .78), rgba(9, 14, 10, .42)), var(--hero);
    background-position: 58% center;
  }
  .home-hero-content { padding: 62px 22px; }
  .cards, .menu-grid, .event-grid, .contact-grid, .society-split, .features { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .food-hero, .contact-hero, .carvery { grid-template-columns: 1fr; }
  .food-hero img, .contact-hero img { min-height: 240px; max-height: 360px; }
  .carvery img { min-height: 240px; max-height: 340px; }
  .society-split.reverse .bbk-photo { order: 0; }
  .bbk-photo { min-height: 220px; max-height: 360px; }
  .feature { text-align: left; }
  .preview-head, .foot-inner, .cookie-banner { flex-direction: column; align-items: flex-start; }
  .foot-inner { align-items: center; text-align: center; }
  .foot-copy { text-align: center; }
  .section { padding: 42px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .site-head, .goldline, .cookie-banner, .nav-toggle, .enquiry-form, .site-footer { display: none !important; }
  .menu-poster { box-shadow: none; }
}

/* Keep the logged-in WordPress bar on its own styles. */
#wpadminbar,
#wpadminbar *,
#wpadminbar *::before,
#wpadminbar *::after {
  box-sizing: content-box;
}
#wpadminbar img,
#wpadminbar img.avatar,
#wpadminbar .photo {
  max-width: none;
  min-height: 0 !important;
  border: 0;
}
#wpadminbar a,
#wpadminbar a:hover {
  text-decoration: none;
}
#wpadminbar #wp-admin-bar-my-account.with-avatar > a img {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  border-radius: 50%;
}
#wpadminbar #wp-admin-bar-user-info .avatar {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
}
@media screen and (max-width: 782px) {
  #wpadminbar #wp-admin-bar-my-account.with-avatar > a img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
  }
}
