/* Kiewa Valley Ski Club – site styles */
:root {
  --ink: #222;
  --text: #333;
  --muted: #666;
  --bg: #f8f8f8;
  --paper: #fff;
  --line: #e7e7e7;
  --accent: #008cba;
  --accent-dark: #006688;
  --deep: #0c405a;
  --nav-top: #346882;
  --nav-bottom: #0c405a;
  --footer: #222;
  --radius: 6px;
  --wrap: 1100px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: "Lato", system-ui, sans-serif; color: var(--ink); line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 900; margin: 1.5rem 0 1.25rem; color: var(--deep); }
h2 { font-size: 1.35rem; font-weight: 700; margin: 2rem 0 .6rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: var(--gutter); }

/* Banner slider */
.site-header { background: #fff; }
.banner {
  display: grid; max-width: 1200px; margin: 0 auto;
  aspect-ratio: 1200 / 326; overflow: hidden; background: #dfe9ef;
}
.banner img {
  grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.banner img.is-active { opacity: 1; }

/* Navigation – blue gradient bar (from the original KVSC design) */
.site-nav {
  background: linear-gradient(to bottom, var(--nav-top), var(--nav-bottom) 85%);
  position: sticky; top: 0; z-index: 5;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 55px; }
.nav-brand { color: #fff; font: 900 1.15rem "Lato", sans-serif; letter-spacing: .08em; text-decoration: none; display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-list a {
  display: block; padding: 0 1rem; line-height: 55px; color: #fff; text-decoration: none;
  font: 700 .85rem/55px "Lato", sans-serif; text-transform: uppercase; letter-spacing: .06em;
}
.nav-list a:hover, .nav-list a:focus-visible { background: rgba(255,255,255,.14); color: #fff; }
.nav-list a[aria-current="page"] { background: #fff; color: var(--deep); }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; border-radius: var(--radius);
  font: 700 .85rem "Lato", sans-serif; text-transform: uppercase; letter-spacing: .06em; padding: .45rem .8rem; cursor: pointer;
}

/* Layout */
main { padding-bottom: 3rem; }
.cols { display: grid; gap: 2rem; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.cols-pics-left { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.col-pics { display: grid; gap: 1rem; }
.col-main > h2:first-child { margin-top: 0; }
.col-side { display: grid; gap: 1.25rem; }
.narrow { max-width: 640px; }

figure { margin: 0; }
figure img { border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0,0,0,.15); width: 100%; }
figcaption { font-size: .85rem; color: var(--muted); font-style: italic; margin-top: .4rem; }
.pics { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.pics-2 { grid-template-columns: 1fr 1fr; }
.pics-2 img { aspect-ratio: 3 / 2; object-fit: cover; }
.history img { aspect-ratio: auto; }

.lead { font-size: 1.1rem; color: var(--ink); }
.big { font-size: 1.15rem; }
.small { font-size: .875rem; color: var(--muted); }
.motto { font: italic 400 1.3rem "Lato", sans-serif; color: var(--deep); }
.note { background: #e4f7f3; border-left: 4px solid #43ac6a; padding: .8rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; }

.ticks { padding-left: 0; list-style: none; margin: 0 0 1.25rem; }
.ticks li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; }
.ticks li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); }

/* Cards & buttons */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.card h2 { margin-top: 0; }
.card-logo { text-align: center; }
.card-logo img { margin: 0 auto 1rem; max-width: 260px; }
.guide img { margin: 0 auto 1rem; max-width: 180px; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.links { display: flex; flex-wrap: wrap; gap: .6rem; }
.callout { background: var(--deep); color: #fff; border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.callout a { color: #fff; }
.callout p:last-child { margin-bottom: 0; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font: 700 .85rem "Lato", sans-serif; text-transform: uppercase; letter-spacing: .05em;
  padding: .7rem 1.1rem; border-radius: var(--radius); border: 2px solid var(--accent); margin: .2rem .2rem .2rem 0;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.downloads ul { list-style: none; margin: 0; padding: 0; }
.downloads li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.downloads li:first-child { border-top: 0; }
.downloads span { font-size: .75rem; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.tel { font-size: 1.25rem; font-weight: 600; text-decoration: none; }

/* Footer */
.site-footer { background: var(--footer); color: #bbb; font-size: .875rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 860px) {
  .cols, .cols-pics-left { grid-template-columns: 1fr; }
  .cols-pics-left .col-pics { order: 2; grid-template-columns: 1fr 1fr; }
  .cols-pics-left .col-pics .card { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-brand, .nav-toggle { display: inline-block; }
  .nav-list { display: none; width: 100%; flex-direction: column; padding-bottom: .5rem; }
  .nav-list.is-open { display: flex; }
  .nav-list a { line-height: 46px; }
  .nav-inner { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .pics-2, .contact-grid, .cols-pics-left .col-pics { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .banner img { transition: none; }
}
