/* ==========================================================================
   Plymouth Corinthian CC – stylesheet
   Layout modelled on the existing "Newsphere" WordPress theme:
   top bar > site banner > dark nav bar > content + sidebar
   Colours are CSS variables at the top – tweak them to match the live site exactly.
   ========================================================================== */

:root {
  --accent: #d8232a;          /* primary accent (links on hover, buttons, category tags) */
  --accent-dark: #a91b21;
  --nav-bg: #1c1c1e;          /* dark navigation bar */
  --nav-text: #ffffff;
  --banner-bg: #ffffff;
  --text: #212121;
  --muted: #6b6b6b;
  --border: #e5e5e5;
  --page-bg: #f4f4f4;
  --card-bg: #ffffff;
  --footer-bg: #1c1c1e;
  --max-width: 1200px;
  --font-body: 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-head: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--page-bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.3; margin: 0 0 .6em; }
ul { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 15px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Top bar ---------- */
.top-bar { background: var(--nav-bg); color: #ddd; font-size: 13px; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; }
.top-bar a { color: #ddd; }
.top-bar a:hover { color: #fff; }
.top-bar .social a { margin-left: 14px; }

/* ---------- Banner ---------- */
.site-banner { background: var(--banner-bg); border-bottom: 1px solid var(--border); }
.site-banner .container { padding-top: 26px; padding-bottom: 26px; display: flex; align-items: center; gap: 20px; }
.site-title { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; margin: 0; letter-spacing: -.5px; }
.site-title a { color: var(--text); }
.site-title a:hover { color: var(--accent); }
.site-tagline { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- Navigation ---------- */
.main-nav { background: var(--nav-bg); position: sticky; top: 0; z-index: 500; }
.main-nav .container { display: flex; justify-content: space-between; align-items: center; }

.nav-toggle {
  display: none; background: none; border: 0; color: #fff; font-size: 1rem; padding: 14px 0; cursor: pointer;
  font-family: var(--font-head);
}
.nav-toggle .bars { display: inline-block; width: 22px; height: 2px; background: #fff; position: relative; vertical-align: middle; margin-right: 10px; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: #fff; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }

.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; flex-wrap: wrap; }
.menu li { position: relative; }
.menu a {
  display: block; padding: 15px 16px; color: var(--nav-text);
  font-family: var(--font-head); font-size: .82rem; font-weight: 500; text-transform: uppercase; letter-spacing: .5px;
}
.menu a:hover, .menu li.current > a, .menu li:hover > a { background: var(--accent); color: #fff; }

.has-children > a::after { content: " \25BE"; font-size: .75em; }

/* dropdowns */
.menu ul {
  position: absolute; left: 0; top: 100%; min-width: 230px; background: #2a2a2d;
  display: none; box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.menu li:hover > ul, .menu li:focus-within > ul, .menu li.open > ul { display: block; }
.menu ul a { padding: 11px 16px; font-size: .78rem; border-bottom: 1px solid rgba(255,255,255,.07); text-transform: none; letter-spacing: 0; }
.menu ul ul { left: 100%; top: 0; }
.menu ul .has-children > a::after { content: " \25B8"; float: right; }

/* search */
.search-wrap { position: relative; }
.search-btn { background: none; border: 0; color: #fff; padding: 14px 6px; cursor: pointer; font-size: 1.05rem; }
.search-btn:hover { color: var(--accent); }
.search-form {
  display: none; position: absolute; right: 0; top: 100%; background: #fff; padding: 10px;
  box-shadow: 0 6px 14px rgba(0,0,0,.2); width: 280px;
}
.search-form.open { display: flex; gap: 6px; }
.search-form input { flex: 1; padding: 8px 10px; border: 1px solid var(--border); font: inherit; }
.search-form button { background: var(--accent); color: #fff; border: 0; padding: 8px 14px; cursor: pointer; }

/* ---------- Page layout ---------- */
.page-wrap { padding: 28px 0 40px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; }

.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span.sep { margin: 0 6px; }



/* ---------- Meta ---------- */
.meta { font-size: .82rem; color: var(--muted); }
.meta a { color: var(--muted); }
.meta a:hover { color: var(--accent); }
.meta .dot { margin: 0 6px; }



/* ---------- Sidebar ---------- */
.sidebar .widget { background: var(--card-bg); border: 1px solid var(--border); padding: 18px; margin-bottom: 24px; }
.widget-title {
  font-size: 1rem; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--accent);
}
.btn {
  display: inline-block; background: var(--accent); color: #fff; font-family: var(--font-head); font-size: .85rem; font-weight: 500;
  padding: 10px 20px; border: 0; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.widget iframe { width: 100%; border: 0; display: block; }

/* ---------- Article / page content ---------- */
.entry { background: var(--card-bg); border: 1px solid var(--border); padding: 30px 34px; }
.entry h1 { font-size: 2rem; margin-bottom: .7em; }
.entry h2 { font-size: 1.4rem; margin-top: 1.4em; }
.entry h3 { font-size: 1.15rem; margin-top: 1.2em; }
.entry p { margin: 0 0 1em; }
.entry img.alignright { float: right; margin: 0 0 14px 20px; max-width: 260px; }
.entry .lead { font-weight: 700; }
.entry ol li, .entry ul li { margin-bottom: .45em; }
.entry .note { background: #fff6f6; border-left: 4px solid var(--accent); padding: 12px 16px; margin: 1.2em 0; }
.entry .map { margin: 1.2em 0; }
.entry .map iframe { width: 100%; height: 320px; border: 0; }

.table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.table th, .table td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.table th { background: #fafafa; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #bbb; text-align: center; padding: 22px 0; font-size: .88rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .layout { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .main-nav .container { flex-wrap: wrap; }
  .menu-wrap { width: 100%; order: 3; display: none; }
  .menu-wrap.open { display: block; }
  .menu { flex-direction: column; }
  .menu a { border-bottom: 1px solid rgba(255,255,255,.08); }
  .menu ul { position: static; display: none; box-shadow: none; background: #2a2a2d; }
  .menu li.open > ul { display: block; }
  .menu li:hover > ul { display: none; }
  .menu li.open:hover > ul { display: block; }
  .menu ul a { padding-left: 32px; }
  .menu ul ul a { padding-left: 48px; }
  .menu ul ul ul a { padding-left: 64px; }
  .search-form { right: -10px; width: 240px; }
  .site-title { font-size: 1.5rem; }
  .entry { padding: 20px 18px; }
  .entry img.alignright { float: none; margin: 0 0 14px; max-width: 100%; }
}

@media (max-width: 520px) {
  .top-bar .social { display: none; }
}

/* ---------- Added: tables, search results, Instagram embed ---------- */
.table-wrap { overflow-x: auto; margin: 1em 0; }
.table-wrap .table { margin: 0; }
.table .section-row th { background: var(--nav-bg); color: #fff; font-family: var(--font-head); font-size: .85rem; text-transform: uppercase; letter-spacing: .4px; }
.table tbody tr:nth-child(even) td { background: #fafafa; }
.entry table.table th { width: 28%; }
.entry .table-wrap table.table th { width: auto; }
.entry img { margin: 1em 0; }
.entry img.alignright { margin: 0 0 14px 20px; }
.result-list { list-style: none; padding: 0; }
.result-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.entry .meta { margin: -.4em 0 1.2em; }
.instagram-embed iframe { width: 100%; height: 480px; border: 0; display: block; margin-bottom: 12px; }
.instagram-embed.instagram-large iframe { height: 720px; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ---------- Logo banner (club script logo on black) ---------- */
.site-banner { background: #040204; border-bottom: 0; }
.site-banner .container { padding-top: 0; padding-bottom: 0; display: block; text-align: center; }
.site-banner .site-title { margin: 0; line-height: 0; }
.site-banner .site-title img { display: inline-block; width: 100%; max-width: 900px; height: auto; margin: 0 auto; }

/* ---------- Photos and product grids ---------- */
.entry figure { margin: 0; }
.entry figure.photo.right { float: right; width: 320px; max-width: 45%; margin: 0 0 16px 22px; }
.entry figure.photo.inline { margin: 1em 0; }
.entry figure.photo img { margin: 0; width: 100%; height: auto; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 1.4em 0; clear: both; }
.photo-grid a { display: block; background: #eee; overflow: hidden; }
.photo-grid img { width: 100%; height: 150px; object-fit: cover; margin: 0; transition: transform .25s; }
.photo-grid a:hover img { transform: scale(1.05); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin: 1em 0 1.6em; clear: both; }
.product { border: 1px solid var(--border); background: #fff; display: flex; flex-direction: column; }
.product a { display: block; background: #fff; padding: 10px; }
.product img { width: 100%; height: 190px; object-fit: contain; margin: 0; }
.product figcaption { padding: 10px 12px 14px; border-top: 1px solid var(--border); font-size: .9rem; line-height: 1.4; display: flex; flex-direction: column; gap: 4px; }
.product .price { color: var(--accent); font-family: var(--font-head); font-weight: 600; }
.entry h2 { clear: both; }

@media (max-width: 800px) {
  .entry figure.photo.right { float: none; width: 100%; max-width: 100%; margin: 0 0 16px; }
}

/* ---------- On-site search page ---------- */
.page-search { display: flex; gap: 8px; margin-bottom: 1.4em; }
.page-search input { flex: 1; padding: 10px 12px; border: 1px solid var(--border); font: inherit; }
