/* Countryside Music styles
   Dark / country aesthetic. Not a Wix clone. */

:root {
  --bg: #0b0b0b;
  --bg-alt: #111111;
  --surface: #181818;
  --border: #2a2a2a;
  --text: #f4f1ea;
  --muted: #b0aba3;
  --accent: #d4a017;
  --accent-2: #c45c26;
  --green: #6b8f3c;
  --danger: #c44;
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.site-header {
  background: rgba(11, 11, 11, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.logo:hover { color: var(--accent); text-decoration: none; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}
.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.nav a:hover, .nav a.active { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--accent-2);
  color: #fff !important;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}
.nav-cta:hover { filter: brightness(1.08); text-decoration: none; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.25rem;
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
}

/* Home: header sits over the full-bleed photo */
.page-home .site-header {
  position: absolute;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(11,11,11,0.82), rgba(11,11,11,0.45) 60%, rgba(11,11,11,0.12) 88%, transparent);
  border-bottom: none;
  backdrop-filter: none;
}
.page-home .site-header:has(.nav.open) {
  background: rgba(11, 11, 11, 0.96);
}
.page-home .logo,
.page-home .nav a {
  text-shadow: 0 1px 2px rgba(0,0,0,0.85), 0 0 14px rgba(0,0,0,0.7);
}
.page-home .nav a {
  color: #f4f1ea;
}
.page-home .nav a:hover,
.page-home .nav a.active {
  color: #fff;
}
.page-home .nav-cta {
  text-shadow: none;
}

.hero-fullbleed {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0;
  background: #111111;
}
.hero-fullbleed::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 9.5rem;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(11,11,11,0.62), rgba(11,11,11,0.28) 55%, transparent);
}
.hero-fullbleed picture {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-fullbleed .hero-bg {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: 50% 50%;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.hero-fullbleed .hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 8rem 0 3.5rem;
  background: linear-gradient(
    to top,
    rgba(11,11,11,0.94) 0%,
    rgba(11,11,11,0.78) 38%,
    rgba(11,11,11,0.28) 70%,
    transparent 100%
  );
}
.hero-fullbleed .hero-copy { max-width: 42rem; }
.hero-fullbleed .lede {
  color: #f0ebe3;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}
.hero-fullbleed h1 {
  text-shadow: 0 2px 18px rgba(0,0,0,0.5);
}
.hero-fullbleed .eyebrow {
  text-shadow: 0 1px 2px rgba(0,0,0,0.9), 0 0 10px rgba(11,11,11,0.95), 0 2px 16px rgba(0,0,0,0.75);
}
.hero-fullbleed .btn-ghost {
  border-color: rgba(244,241,234,0.55);
  background: rgba(11,11,11,0.45);
  backdrop-filter: blur(4px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.hero h1, .page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}
.lede { font-size: 1.1rem; color: var(--muted); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  text-decoration: none !important;
}
.btn-primary { background: var(--accent); color: #111; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.section { padding: 2.75rem 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section h2, .page-hero + .section h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
}
.section-intro { color: var(--muted); margin: 0 0 1.5rem; max-width: 40rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.card-muted { opacity: 0.85; }
.price { color: var(--accent); font-weight: 700; margin: 0 0 0.75rem; }
.text-link { font-weight: 700; }

.page-hero { padding: 2.25rem 0 0.5rem; }
/* About page: close the extra gap between "The Full Story" and the opening paragraph. */
.page-hero:has(+ .about-grid) {
  padding-bottom: 0;
}
.page-hero:has(+ .about-grid) h1 {
  margin-bottom: 0;
}
.page-hero + .about-grid {
  padding-top: 0.7rem;
}
.page-hero + .about-grid > div > p:first-child {
  margin-top: 0;
}
.about-grid, .contact-grid, .tip-grid {
  display: grid;
  gap: 1.5rem;
}
.about-grid { grid-template-columns: 1.3fr 0.9fr; }
.about-img, .portrait {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.contact-grid {
  grid-template-columns: 1fr 0.9fr;
  align-items: start;
}
.tip-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact-social { margin-top: 1.5rem; }
.contact-photo {
  margin: 0;
}
.contact-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.aside-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
}
.aside-card.big h2 { margin-top: 0; }
.plain-list { padding-left: 1.1rem; }
.muted { color: var(--muted); }

.tip-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.tip-card:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}
.tip-card h3 { margin: 0 0 0.35rem; }
.tip-card .qr { margin-top: 0.75rem; max-width: 180px; border-radius: 8px; }

.video-row { margin-bottom: 1.5rem; }
.video-row:last-child { margin-bottom: 0; }
.video-row-feature {
  max-width: 52rem;
}
.video-row-shorts,
.video-row-pair {
  display: grid;
  gap: 1.25rem 1.1rem;
}
.video-row-shorts { grid-template-columns: repeat(4, 1fr); }
.video-row-pair { grid-template-columns: 1fr 1fr; }
.video-card { margin: 0; }
.video-card h3 {
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.35;
  margin: 0.7rem 0 0;
}
.video-frame {
  position: relative;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.video-16x9 { aspect-ratio: 16 / 9; }
.video-9x16 { aspect-ratio: 9 / 16; }
.video-facade,
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-facade {
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: #000;
  color: inherit;
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border-radius: 14px;
  background: #c00;
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
  pointer-events: none;
}
.video-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent #fff;
}
.video-facade:hover .video-play,
.video-facade:focus-visible .video-play {
  background: #f00;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 0.95rem;
}
.page-home .site-footer { margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(200px, 1fr) minmax(260px, 1.35fr);
  gap: 1.5rem;
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  align-items: center;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}
.social-link:hover { color: var(--accent); text-decoration: none; }
.social-icon { display: block; flex-shrink: 0; }
.footer-note { font-size: 0.85rem; line-height: 1.55; }
.footer-loc { white-space: nowrap; }
.footer-note a { font-weight: 600; }
.footer-photog { white-space: nowrap; }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-photog { white-space: normal; }
}

@media (max-width: 800px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .video-row-shorts { grid-template-columns: 1fr 1fr; }
  .video-row-feature { max-width: none; }
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 0.75rem;
  }
  .nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .hero-fullbleed {
    min-height: 100svh;
  }
  .hero-fullbleed .hero-bg {
    object-position: 50% 0%;
  }
  .hero-fullbleed .hero-overlay {
    padding: 2.15rem 0 1.5rem;
    background: linear-gradient(
      to top,
      rgba(11,11,11,0.96) 0%,
      rgba(11,11,11,0.86) 40%,
      rgba(11,11,11,0.28) 76%,
      transparent 100%
    );
  }
  .hero-fullbleed h1 {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
    margin-bottom: 0.5rem;
  }
  .hero-fullbleed .eyebrow { margin-bottom: 0.4rem; }
  .hero-fullbleed .lede { font-size: 0.95rem; }
  .hero-fullbleed .hero-actions { margin-top: 1rem; }
}

@media (max-width: 560px) {
  .video-row-shorts,
  .video-row-pair { grid-template-columns: 1fr; }
  .video-9x16 { max-width: 22rem; margin-inline: auto; }
}


/* Share a Video form and private admin list */
.share-form { max-width: 38rem; }
.share-field { margin: 0 0 1.15rem; }
.share-field label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.share-field input[type="text"],
.share-field input[type="email"],
.share-field input[type="password"],
.share-field input[type="file"] {
  width: 100%;
  max-width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  font: inherit;
}
.share-field input[type="file"] { padding: 0.55rem; }
.share-hint, .share-wait { color: var(--muted); font-size: 0.95rem; margin: 0.45rem 0 0; }
.share-agreement {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  max-height: 16rem;
  overflow: auto;
  font-size: 0.95rem;
  margin: 0 0 1rem;
}
.share-agreement p { margin: 0 0 0.85rem; }
.share-agreement p:last-child { margin-bottom: 0; }
.share-check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0 0 1.15rem;
  font-weight: 700;
}
.share-check input { margin-top: 0.2rem; }
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.progress-wrap { margin: 1rem 0; }
.progress-bar {
  height: 0.55rem;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.2s ease;
}
.progress-label { margin: 0.4rem 0 0; font-size: 0.95rem; color: var(--muted); }
.share-error { color: #e07060; margin: 0.75rem 0; }
#share-complete { max-width: 38rem; }
.admin-label { color: var(--muted); font-size: 0.9rem; }
.upload-list { display: grid; gap: 1.25rem; }
.upload-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
}
.upload-card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.upload-card video {
  width: 100%;
  max-width: 42rem;
  margin: 0.75rem 0;
  background: #000;
  border-radius: var(--radius);
}
.upload-meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 0.5rem; }

.usage-meter { max-width: 38rem; margin: 0 0 1.5rem; }
.usage-label { margin: 0 0 0.45rem; color: var(--muted); font-size: 0.95rem; }
