/* Texas Service Rifle. Colors and type carried over from the original GoDaddy site. */

@font-face {
  font-family: "League Spartan";
  src: url("../fonts/LeagueSpartan.woff2") format("woff2");
  font-display: swap;
}

:root {
  --blue: rgb(47, 47, 204);
  --blue-dark: rgb(34, 34, 160);
  --blue-tint: rgb(236, 236, 252);
  --heading: rgb(27, 27, 27);
  --text: rgb(70, 70, 70);
  --muted: rgb(110, 110, 110);
  --gray-bg: rgb(246, 246, 246);
  --line: rgb(226, 226, 226);
  --dark: rgb(22, 22, 22);
  --sans: Helvetica, arial, sans-serif;
  --display: "League Spartan", arial, helvetica, sans-serif;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--text); background: #fff; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; color: var(--heading); font-weight: 400; }
h3 { font: 22px/1.3 var(--sans); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -10000px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.section { padding: 72px 0; }
.section.gray { background: var(--gray-bg); }
.section-title { font: 40px/1.2 var(--display); color: var(--blue); text-align: center; margin-bottom: 40px; }
.section-title.left { text-align: left; margin-bottom: 20px; }
.eyebrow { font: 700 13px/1.4 var(--sans); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 8px; }
.split .eyebrow { text-align: left; }
.lead { font-size: 20px; line-height: 1.6; color: var(--heading); }
.meta { color: var(--muted); font-size: 15px; }

/* buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 8px 24px; border: 2px solid var(--blue); border-radius: 4px; background: var(--blue); color: #fff;
  font: 700 13px/1.2 var(--sans); letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-light { background: #fff; border-color: #fff; color: var(--blue); }
.btn-light:hover { background: var(--blue-tint); border-color: var(--blue-tint); }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); border-color: #fff; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link::after { content: " →"; }
a.text-link:hover, a:hover .text-link { text-decoration: underline; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 24px; position: relative; }
.brand { font: 26px/1 var(--display); color: var(--blue); text-decoration: none; padding-top: 4px; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { padding: 8px 12px; border-radius: 4px; color: var(--heading); text-decoration: none; font-size: 15px; }
.site-nav a:hover { background: var(--gray-bg); }
.site-nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 24px; height: 2px; background: var(--heading); position: relative; content: "";
}
.nav-toggle-bars::before { position: absolute; top: -7px; }
.nav-toggle-bars::after { position: absolute; top: 7px; }

/* hero (home) and page header band (other pages) */
.hero {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 560px; height: 72vh; padding: 48px 24px;
  background: var(--dark) url("../img/hero.jpg") center 30% / cover no-repeat;
  color: #fff; text-align: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.55)); }
.hero-text { position: relative; max-width: 893px; }
.hero h1 { font: 62px/1.15 var(--display); color: #fff; }
.hero p { font: 22px/1.4 var(--sans); margin: 20px 0 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.page-head {
  position: relative; padding: 64px 0 56px; color: #fff;
  background: var(--dark) url("../img/hero.jpg") center 40% / cover no-repeat;
}
.page-head::before { content: ""; position: absolute; inset: 0; background: rgba(15, 15, 60, 0.68); }
.page-head .container { position: relative; }
.page-head h1 { font: 48px/1.15 var(--display); color: #fff; }
.page-head p { font-size: 19px; margin: 12px 0 0; max-width: 720px; opacity: 0.92; }

/* grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.gray .card { border-color: transparent; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h3 { margin-bottom: 4px; }
.card-body > .btn, .card-body > .text-link { margin-top: auto; align-self: flex-start; }
.feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* standings (place, name, score) */
.standings { list-style: none; counter-reset: place; margin: 12px 0 20px; padding: 0; }
.standings li {
  counter-increment: place; display: flex; align-items: baseline; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--heading);
}
.standings li::before {
  content: counter(place); flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: inline-grid; place-items: center; background: var(--blue-tint); color: var(--blue);
  font: 700 14px/1 var(--sans); align-self: center;
}
.standings li:first-child::before { background: var(--blue); color: #fff; }
.standings li > span:first-child { flex: 1; }
.score { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--heading); white-space: nowrap; }
.badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: var(--blue); color: #fff; font: 700 11px/1.6 var(--sans); letter-spacing: 0.5px; text-transform: uppercase; font-style: normal; vertical-align: 2px; }
.list-title { margin: 24px 0 0; font-size: 19px; }

/* image + text split */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.split-media { width: 100%; border-radius: var(--radius); }
.logo-square { max-width: 400px; justify-self: center; }
.spotlight { margin: 0 auto; max-width: 294px; }
.spotlight img { border-radius: var(--radius); }
.spotlight figcaption { margin-top: 16px; font: 24px/1.3 var(--display); color: var(--heading); }

/* explore tiles */
.explore { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.explore-tile {
  display: block; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--text); border-top: 4px solid var(--blue);
}
.explore-tile:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }
.explore-tile h3 { color: var(--blue); margin-bottom: 8px; font: 24px/1.2 var(--display); }
.explore-tile p { font-size: 15px; margin: 0; }

/* events */
.list-heading { font: 28px/1.2 var(--display); color: var(--blue); margin: 0 0 24px; }
#past-events .list-heading { margin-top: 56px; }
.events { display: grid; gap: 20px; }
.event { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.event-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: start;
  padding: 16px 8px; border-radius: var(--radius); background: var(--blue); color: #fff; text-align: center;
}
.event-date .month { font: 700 14px/1.2 var(--sans); letter-spacing: 1px; text-transform: uppercase; }
.event-date .days { font: 30px/1.1 var(--display); margin-top: 6px; }
.event-date .yy { font-size: 13px; opacity: 0.85; }
.event h3 { margin-bottom: 4px; }
.event .meta { margin: 0; }
.schedule { list-style: none; margin: 12px 0 0; padding: 0; }
.schedule li { padding: 4px 0; }
.schedule strong { display: inline-block; min-width: 96px; color: var(--heading); }
.event-links { display: flex; align-items: center; gap: 24px; margin: 20px 0 0; flex-wrap: wrap; }
.event-note { margin: 16px 0 0; color: var(--muted); font-style: italic; }
.events.past .event { opacity: 0.75; }
.events.past .event-date { background: var(--muted); }
.events.past .event-links .btn { display: none; }
.empty-note { color: var(--muted); }

/* results */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.jump a { padding: 8px 16px; border-radius: 99px; background: var(--gray-bg); color: var(--heading); text-decoration: none; font-size: 15px; }
.jump a:hover { background: var(--blue-tint); color: var(--blue); }
.results-group { margin-bottom: 48px; }
.results-group:last-child { margin-bottom: 0; }
.results-group h2 { font: 28px/1.2 var(--display); color: var(--blue); margin-bottom: 20px; }
.years { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-bottom: 16px; }
.year {
  display: block; padding: 12px 0; border: 1px solid var(--line); border-radius: 6px; text-align: center;
  color: var(--heading); text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums;
}
.year:hover { border-color: var(--blue); background: var(--blue); color: #fff; }
.footnote { color: var(--muted); font-size: 14px; margin: -32px 0 48px; }

/* trophies */
.trophies { display: block; columns: 2; column-gap: 32px; }
.trophies .card { break-inside: avoid; margin-bottom: 32px; }
.trophy-img { background: #fff; border-bottom: 1px solid var(--line); }
.trophy-img img { width: 100%; aspect-ratio: 2 / 1; object-fit: contain; }
.record { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--blue); background: var(--blue-tint); color: var(--heading); font-weight: 700; font-size: 15px; }
.winners { list-style: none; margin: 12px 0 0; padding: 0; }
.winners li { display: flex; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--heading); }
.winners li:last-child { border-bottom: 0; }
.winners .yr { flex: none; width: 44px; color: var(--muted); font-variant-numeric: tabular-nums; }
.winners li > span:nth-child(2) { flex: 1; }

/* articles */
.articles { list-style: none; margin: 0 0 40px; padding: 0; }
.article { padding: 24px 0; border-bottom: 1px solid var(--line); }
.article:first-child { padding-top: 0; }
.article-issue { margin: 0 0 4px; font: 700 13px/1.4 var(--sans); letter-spacing: 1px; text-transform: uppercase; color: var(--blue); }
.article h3 { margin-bottom: 6px; }
.article h3 a { color: var(--heading); text-decoration: none; }
.article h3 a:hover { color: var(--blue); text-decoration: underline; }
.article p { margin-bottom: 4px; }

/* clubs and links */
.club .when { color: var(--blue); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.club .card-body > p:not(.when) { margin-bottom: 20px; }
.link-card { text-decoration: none; color: var(--text); }
.link-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }
.link-card .logo { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin: 28px 24px 0; }
.link-card .card-body > .text-link { margin-top: auto; padding-top: 12px; }

/* contact form */
.contact-form { display: grid; gap: 20px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; color: var(--heading); font-size: 15px; }
.contact-form .req { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid rgb(200, 200, 200); border-radius: 4px; background: #fff;
  font: 17px/1.5 var(--sans); color: var(--heading);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.contact-form .actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.contact-form .status { margin: 0; color: var(--heading); }
.contact-form + p { margin-top: 40px; }

/* footer */
.footer { background: var(--dark); color: rgb(171, 171, 171); padding: 48px 0 32px; font-size: 15px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-name { color: #fff; font: 22px/1.2 var(--display); margin-bottom: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; max-width: 420px; }
.footer-nav a { color: rgb(200, 200, 200); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer .fb { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.footer .copy { margin: 32px 0 0; padding-top: 24px; border-top: 1px solid rgb(50, 50, 50); font-size: 14px; }

@media (max-width: 960px) {
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 8px; font-size: 17px; }
  .nav-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .split { gap: 40px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 30px; margin-bottom: 28px; }
  .brand { font-size: 22px; }
  .hero { height: auto; min-height: 460px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 18px; }
  .page-head { padding: 40px 0 36px; }
  .page-head h1 { font-size: 34px; }
  .page-head p { font-size: 17px; }
  .grid-2, .grid-3, .grid-4, .split { grid-template-columns: 1fr; }
  .trophies { columns: 1; }
  .logo-square { max-width: 240px; }
  .event { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .event-date { flex-direction: row; gap: 8px; align-items: baseline; justify-self: start; padding: 8px 14px; }
  .event-date .days { font-size: 18px; margin: 0; }
  .event-date .yy { font-size: 14px; }
  .schedule strong { min-width: 84px; }
  .years { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
  .footer-inner { flex-direction: column; }
}
