/*
Theme Name: Cars By The Creek
Theme URI: https://carsbythecreek.com/
Author: Cars By The Creek
Description: An editable, responsive recreation of the Cars By The Creek event website.
Version: 1.0.6
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: cars-by-the-creek
*/

:root {
  --cbtc-ink: #17202a;
  --cbtc-muted: #59636d;
  --cbtc-cream: #f4efe5;
  --cbtc-paper: #fffdf8;
  --cbtc-red: #b62025;
  --cbtc-red-dark: #86161a;
  --cbtc-gold: #d9a441;
  --cbtc-green: #233b32;
  --cbtc-line: rgba(23, 32, 42, .14);
  --cbtc-shadow: 0 20px 55px rgba(18, 26, 31, .16);
  --cbtc-radius: 18px;
  --cbtc-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cbtc-ink);
  background: var(--cbtc-paper);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.7;
}
body.admin-bar .site-header { top: 32px; }
a { color: var(--cbtc-red); text-underline-offset: 3px; }
a:hover { color: var(--cbtc-red-dark); }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(calc(100% - 40px), var(--cbtc-width)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: rgba(18, 25, 29, .96);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-brand { display: flex; align-items: center; color: #fff; text-decoration: none; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.site-brand.logo-home { width: 132px; height: 68px; padding: 0; overflow: hidden; background: #fff; border-radius: 7px; box-shadow: 0 3px 12px rgba(0,0,0,.18); }
.site-brand.logo-home img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.site-brand.logo-home:hover { background: #f4efe5; }
.site-brand.logo-home:focus-visible { outline: 3px solid var(--cbtc-gold); outline-offset: 3px; }
.custom-logo-link img { width: 158px; max-height: 56px; object-fit: contain; }
.primary-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 0; margin: 0; list-style: none; }
.primary-menu a { display: block; padding: 10px 13px; color: rgba(255,255,255,.86); font-size: .82rem; font-weight: 800; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; border-radius: 999px; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: #fff; background: var(--cbtc-red); }
.menu-toggle { display: none; width: 46px; height: 42px; padding: 9px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; }

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: end;
  color: #fff;
  background-position: right center;
  background-size: cover;
  isolation: isolate;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(9,16,18,.92) 0%, rgba(9,16,18,.72) 45%, rgba(9,16,18,.08) 76%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 7px; background: repeating-linear-gradient(90deg, var(--cbtc-red) 0 70px, var(--cbtc-gold) 70px 140px); }
.hero-content { padding: 110px 0 92px; }
.hero-logo {
  position: absolute;
  right: clamp(16px, 3vw, 48px);
  bottom: clamp(34px, 6vh, 68px);
  z-index: 1;
  width: clamp(155px, 17vw, 235px);
  height: auto;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.eyebrow { margin: 28px 0 8px; color: #f3c768; font-size: .9rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 840px; margin: 0; font-family: Georgia, serif; font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: .98; letter-spacing: -.045em; }
.hero-lede { max-width: 720px; margin: 22px 0 30px; color: rgba(255,255,255,.86); font-size: clamp(1rem, 2vw, 1.25rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 13px; }
.button, .wp-block-button__link, input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; color: #fff; background: var(--cbtc-red); border: 2px solid var(--cbtc-red); border-radius: 6px; font-weight: 900; letter-spacing: .035em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.button:hover, .wp-block-button__link:hover, input[type="submit"]:hover { color: #fff; background: var(--cbtc-red-dark); border-color: var(--cbtc-red-dark); }
.button-ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.7); }
.button-ghost:hover { background: #fff; color: var(--cbtc-ink); border-color: #fff; }

.event-strip { position: relative; z-index: 2; margin-top: -38px; }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; background: #fff; border-radius: var(--cbtc-radius); box-shadow: var(--cbtc-shadow); }
.event-item { padding: 26px 30px; border-right: 1px solid var(--cbtc-line); }
.event-item:last-child { border-right: 0; }
.event-label { display: block; margin-bottom: 4px; color: var(--cbtc-red); font-size: .72rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.event-value { font-family: Georgia, serif; font-size: 1.15rem; font-weight: 700; line-height: 1.35; }

.section { padding: 92px 0; }
.section-cream { background: var(--cbtc-cream); }
.section-dark { color: #fff; background: var(--cbtc-green); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading h2, .entry-header h1 { margin: 0 0 12px; font-family: Georgia, serif; font-size: clamp(2.1rem, 4vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; }
.section-heading p { margin: 0; color: var(--cbtc-muted); font-size: 1.08rem; }
.intro-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: center; }
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2, .prose h3 { font-family: Georgia, serif; line-height: 1.2; }
.prose h2 { font-size: 2.1rem; }
.prose img { border-radius: 12px; box-shadow: 0 12px 35px rgba(18,26,31,.13); }
.feature-card { position: relative; overflow: hidden; min-height: 390px; border-radius: var(--cbtc-radius); box-shadow: var(--cbtc-shadow); }
.feature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,15,17,.78), transparent 62%); }
.feature-card span { position: absolute; z-index: 1; left: 28px; bottom: 25px; color: #fff; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 700; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card { padding: 30px; color: inherit; background: #fff; border: 1px solid var(--cbtc-line); border-top: 5px solid var(--cbtc-red); border-radius: 10px; text-decoration: none; box-shadow: 0 8px 24px rgba(18,26,31,.07); transition: transform .2s ease, box-shadow .2s ease; }
.info-card:hover { color: inherit; transform: translateY(-5px); box-shadow: 0 17px 38px rgba(18,26,31,.14); }
.info-card h3 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 1.45rem; }
.info-card p { margin: 0; color: var(--cbtc-muted); }
.card-link { display: inline-block; margin-top: 22px; color: var(--cbtc-red); font-size: .8rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.cta { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; }
.cta p { margin: 0; color: rgba(255,255,255,.75); }

.page-hero { padding: 86px 0 60px; color: #fff; background: var(--cbtc-green); border-bottom: 7px solid var(--cbtc-gold); }
.page-hero .eyebrow { margin-top: 0; }
.page-content { width: min(calc(100% - 40px), 860px); margin: 0 auto; padding: 70px 0 100px; }
.page-content .wp-block-image { margin: 38px 0; }
.page-content iframe { width: 100%; max-width: 100%; border: 0; }
.page-content hr { margin: 46px 0; border: 0; border-top: 1px solid var(--cbtc-line); }
.page-content .wp-block-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.page-content .wp-block-gallery figure { margin: 0; }
.page-content .wp-block-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.notice { padding: 18px 22px; background: #fff4d9; border-left: 5px solid var(--cbtc-gold); border-radius: 4px; }

.site-footer { padding: 48px 0; color: rgba(255,255,255,.72); background: #11181c; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer-brand { color: #fff; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: rgba(255,255,255,.72); }

@media (max-width: 860px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 20px 20px; background: #12191d; }
  .site-nav.is-open { display: block; }
  .primary-menu { display: block; }
  .primary-menu a { padding: 12px 10px; border-radius: 5px; }
  .hero { min-height: 760px; }
  .hero-content { padding-bottom: 225px; }
  .hero-logo { right: 16px; bottom: 34px; width: clamp(150px, 34vw, 205px); }
  .event-grid { grid-template-columns: 1fr; }
  .event-item { border-right: 0; border-bottom: 1px solid var(--cbtc-line); }
  .event-item:last-child { border-bottom: 0; }
  .intro-grid, .cta { grid-template-columns: 1fr; gap: 34px; }
  .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .container { width: min(calc(100% - 28px), var(--cbtc-width)); }
  .section { padding: 68px 0; }
  .header-inner { min-height: 78px; }
  .site-brand.logo-home { width: 108px; height: 58px; }
  .hero { min-height: 780px; }
  .hero-content { padding: 70px 0 225px; }
  .hero-logo { right: 12px; bottom: 30px; width: clamp(145px, 44vw, 180px); }
  .event-strip { margin-top: -28px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .page-content .wp-block-gallery { grid-template-columns: 1fr; }
}
