/*
Theme Name: Julecountry
Theme URI: https://julecountry.no
Author: Julecountry Eiken
Author URI: https://julecountry.no
Description: Eget WordPress-tema for Julecountry i Eiken – countryjul arrangert av Betesda Eiken. Mørk furugrønn palett, rav-gule lyslenker som gjennomgående motiv, og en "billett-stub" for dato/sted/tid.
Version: 1.2.3
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: julecountry
*/

/* Self-hosted display font. Add the two files from dafont.com/western-bang-bang.font
   to assets/fonts/ — filenames match the download exactly. See OPPSETT.md
   for the license note (free for personal use; check with the author for
   a public/commercial site) before publishing. */
@font-face{
  font-family:'Western Bang Bang';
  src:url('assets/fonts/WesternBangBang-Regular.ttf') format('truetype');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'Western Bang Bang';
  src:url('assets/fonts/WesternBangBang-Italic.ttf') format('truetype');
  font-weight:400;
  font-style:italic;
  font-display:swap;
}

:root{
  --red-950:#210404;
  --red-900:#380707;
  --red-800:#530b0b;
  --red-700:#7a1414;
  --linen-100:#fdf4e4;
  --linen-200:#f3e2c0;
  --gold-500:#e7a339;
  --gold-300:#f4cf7a;
  --gold-muted:#c7ab74;
  --cranberry-600:#c81d2c;
  --barnwood-700:#5b4230;
  --ink-soft:rgba(253,244,228,0.70);
  --ink-faint:rgba(253,244,228,0.44);
  --radius-card:2px;
  --max:1180px;
  /* kept as aliases so the rest of the sheet (written against the old
     pine/amber names) repaints in the new palette without a full rewrite */
  --pine-950:var(--red-950);
  --pine-900:var(--red-900);
  --pine-800:var(--red-800);
  --pine-700:var(--red-700);
  --amber-500:var(--gold-500);
  --amber-300:var(--gold-300);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  color:var(--linen-100);
  font-family:'Inter',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  background:var(--red-950) url('assets/img/bakgrunn.jpg') center top / cover no-repeat fixed;
  position:relative;
}
/* darkens toward the bottom of the viewport so body text stays legible
   over the busy background as the page scrolls */
body::before{
  content:"";
  position:fixed;inset:0;z-index:-1;
  background:linear-gradient(to bottom, rgba(20,2,2,0.1) 0%, rgba(20,2,2,0.55) 55%, rgba(20,2,2,0.88) 100%);
  pointer-events:none;
}
@media (max-width:900px){
  body{background-attachment:scroll;}
}
h1,h2,h3{
  font-family:'Fraunces',serif;
  font-weight:600;
  margin:0;
  letter-spacing:-0.01em;
}
/* the signature display face — used sparingly, only for the wordmark
   and the very top-level page titles (see .logo / .hero h1 / .page-hero h1) */
.display-western{
  font-family:'Western Bang Bang','Fraunces',serif;
  font-weight:400;
  letter-spacing:0.01em;
  text-shadow:0 6px 26px rgba(0,0,0,0.55);
}
.mono{
  font-family:'IBM Plex Mono',monospace;
  text-transform:uppercase;
  letter-spacing:0.14em;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
.wrap{max-width:var(--max);margin:0 auto;padding:0 32px;}
.screen-reader-text{position:absolute;left:-9999px;}

/* string-light divider — signature motif, seeded by inline style from PHP or JS */
.lights{
  position:relative;
  height:34px;
  margin:0 auto;
  max-width:var(--max);
}
.lights::before{
  content:"";
  position:absolute;
  left:32px;right:32px;top:16px;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(231,163,57,0.35) 8%, rgba(231,163,57,0.35) 92%, transparent);
}
.lights .bulb{
  position:absolute;
  top:9px;
  width:7px;height:7px;
  border-radius:50%;
  background:var(--amber-500);
  box-shadow:0 0 8px 2px rgba(231,163,57,0.55);
}

/* ---------- nav ---------- */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(33,4,4,0.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(253,244,228,0.1);
}
.nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 32px;max-width:var(--max);margin:0 auto;
}
.logo{
  font-family:'Western Bang Bang','Fraunces',serif;
  font-size:30px;font-weight:400;letter-spacing:0.02em;
  display:flex;align-items:baseline;gap:10px;
}
.logo img{height:38px;width:auto;}
.logo span{
  font-family:'IBM Plex Mono',monospace;
  font-size:11px;font-weight:400;letter-spacing:0.12em;
  color:var(--amber-300);text-transform:uppercase;
}
nav.links{display:flex;gap:34px;}
nav.links ul{list-style:none;display:flex;gap:34px;margin:0;padding:0;}
nav.links a{
  font-size:14px;color:var(--ink-soft);
  position:relative;padding-bottom:4px;
  transition:color .2s ease;
}
nav.links a:hover, nav.links a:focus-visible{color:var(--amber-300);}
nav.links a::after{
  content:"";position:absolute;left:0;bottom:0;width:0;height:1px;
  background:var(--amber-500);transition:width .25s ease;
}
nav.links a:hover::after{width:100%;}
.menu-btn{display:none;background:none;border:0;color:var(--linen-100);font-size:20px;cursor:pointer;}

@media (max-width:900px){
  .menu-btn{display:block;}
  nav.links{display:none;}
  nav.links.is-open{
    display:block;position:absolute;top:100%;left:0;right:0;
    background:var(--pine-900);padding:24px 32px;
  }
  nav.links.is-open ul{flex-direction:column;gap:18px;}
}

/* ---------- hero ---------- */
.hero{position:relative;padding:80px 0 80px;overflow:hidden;}
.hero-glow{
  position:absolute;inset:0;
  background:radial-gradient(720px 480px at 30% 20%, rgba(20,2,2,0) 0%, rgba(20,2,2,0.35) 75%);
  pointer-events:none;
}
.hero-grid{position:relative;display:grid;grid-template-columns:1.1fr 0.9fr;gap:56px;align-items:center;}
.eyebrow{font-size:12px;color:var(--gold-muted);margin-bottom:18px;display:inline-block;}
.hero h1{
  font-family:'Western Bang Bang','Fraunces',serif;
  font-weight:400;
  font-size:clamp(64px,10vw,132px);
  line-height:0.86;
  color:var(--linen-100);
  text-shadow:0 8px 30px rgba(0,0,0,0.6);
}
.hero h1 em{font-style:normal;color:var(--linen-100);}
.hero-tagline{font-family:'Fraunces',serif;font-weight:400;font-style:italic;font-size:22px;color:var(--linen-200);margin-top:18px;}
.hero p.lede{margin-top:22px;max-width:46ch;font-size:16px;line-height:1.7;color:var(--ink-soft);}
.hero-ctas{display:flex;gap:16px;margin-top:34px;align-items:center;flex-wrap:wrap;}

.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:14px 26px;font-size:14px;font-weight:600;
  border-radius:2px;cursor:pointer;border:1px solid transparent;
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn-primary{background:var(--amber-500);color:var(--pine-950);}
.btn-primary:hover{transform:translateY(-2px);background:var(--amber-300);}
.btn-ghost{border-color:rgba(241,233,216,0.28);color:var(--linen-100);}
.btn-ghost:hover{border-color:var(--amber-500);color:var(--amber-300);}

/* ticket stub — signature card */
.ticket{
  position:relative;background:var(--linen-100);color:var(--pine-950);
  border-radius:var(--radius-card);display:grid;grid-template-columns:1fr auto;
  box-shadow:0 30px 60px -20px rgba(0,0,0,0.55);
}
.ticket-main{padding:30px 26px;}
.ticket-stub{
  padding:30px 20px;background:var(--pine-900);color:var(--linen-100);
  display:flex;align-items:center;justify-content:center;
  writing-mode:vertical-rl;text-orientation:mixed;letter-spacing:0.18em;font-size:11px;
}
.ticket::before{content:"";position:absolute;width:20px;height:20px;border-radius:50%;background:var(--pine-950);top:50%;transform:translateY(-50%);left:calc(72% - 10px);}
.perf{position:absolute;top:8px;bottom:8px;left:72%;border-left:1.5px dashed rgba(11,24,21,0.25);}
.ticket-label{font-size:11px;letter-spacing:0.14em;color:var(--barnwood-700);margin-bottom:6px;}
.ticket-date{font-family:'Fraunces',serif;font-weight:700;font-size:28px;line-height:1.15;}
.ticket-venue{margin-top:14px;font-size:14px;line-height:1.6;color:rgba(11,24,21,0.72);}
.ticket-note{margin-top:16px;padding-top:14px;border-top:1px dashed rgba(11,24,21,0.2);font-size:12.5px;color:var(--cranberry-600);font-weight:600;}

/* ---------- section shell ---------- */
section, .page-section{padding:100px 0;text-shadow:0 2px 12px rgba(0,0,0,0.4);}

/* callout — Nashville competition / ticket price banner */
.callout{padding:0;}
.callout-grid{
  display:grid;grid-template-columns:1fr auto 1fr;gap:40px;align-items:center;
  padding:44px 32px;
  background:linear-gradient(90deg, rgba(200,29,44,0.22), rgba(231,163,57,0.14));
  border-top:1px solid rgba(253,244,228,0.12);
  border-bottom:1px solid rgba(253,244,228,0.12);
}
.callout-block h3{font-size:22px;color:var(--linen-100);margin:6px 0 8px;}
.callout-block p{margin:0;color:var(--ink-soft);font-size:14.5px;line-height:1.7;}
.callout-divider{width:1px;align-self:stretch;background:rgba(253,244,228,0.18);}
@media (max-width:700px){
  .callout-grid{grid-template-columns:1fr;text-align:left;}
  .callout-divider{width:100%;height:1px;}
}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:56px;flex-wrap:wrap;}
.section-head h2{font-size:clamp(32px,4vw,44px);}
.section-head .eyebrow{margin-bottom:10px;}
.section-head p{max-width:44ch;color:var(--ink-soft);font-size:15px;line-height:1.7;margin-top:8px;}

.page-hero{padding:80px 0 40px;position:relative;}
.page-hero h1{
  font-family:'Western Bang Bang','Fraunces',serif;
  font-weight:400;
  font-size:clamp(44px,7vw,76px);
  text-shadow:0 6px 24px rgba(0,0,0,0.55);
}

/* about */
.about{background:rgba(56,7,7,0.72);backdrop-filter:blur(6px);}
.about-grid{display:grid;grid-template-columns:0.9fr 1.1fr;gap:64px;align-items:center;}
.about-figure{position:relative;aspect-ratio:4/5;border-radius:2px;overflow:hidden;background:var(--pine-800);}
.about-figure img{width:100%;height:100%;object-fit:cover;}
.about-copy p{font-size:16px;line-height:1.8;color:var(--ink-soft);margin:0 0 18px;}
.about-copy strong{color:var(--linen-100);font-weight:600;}
.stat-row{display:flex;gap:44px;margin-top:32px;flex-wrap:wrap;}
.stat .num{font-family:'Fraunces',serif;font-size:34px;font-weight:600;color:var(--gold-muted);}
.stat .label{font-size:12px;color:var(--ink-faint);margin-top:4px;}

/* artists */
.artist-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;background:rgba(241,233,216,0.08);}
.artist{position:relative;aspect-ratio:3/4;overflow:hidden;background:var(--pine-800);}
.artist img{width:100%;height:100%;object-fit:cover;filter:grayscale(45%) brightness(0.82);transition:filter .35s ease, transform .5s ease;}
.artist:hover img{filter:grayscale(0%) brightness(1);transform:scale(1.05);}
.artist-tag{position:absolute;left:0;right:0;bottom:0;padding:16px;background:linear-gradient(to top, rgba(11,24,21,0.92), transparent);}
.artist-tag .name{font-family:'Fraunces',serif;font-size:15px;font-weight:600;}
.artist-tag .year{font-size:10px;color:var(--gold-muted);letter-spacing:0.1em;margin-top:2px;}
.artist-year-heading{margin:56px 0 20px;font-size:13px;}
.artist-year-heading:first-child{margin-top:0;}

/* sponsors */
.sponsors{background:rgba(56,7,7,0.72);backdrop-filter:blur(6px);}
.sponsor-row{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:rgba(241,233,216,0.08);margin-bottom:1px;}
.sponsor-box{background:var(--pine-900);aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;padding:20px;color:var(--ink-faint);font-size:12px;letter-spacing:0.08em;font-family:'IBM Plex Mono',monospace;text-transform:uppercase;}

.sponsor-row--stor{grid-template-columns:repeat(3,1fr);margin-bottom:2px;}
.sponsor-box--stor{aspect-ratio:16/10;padding:36px;background:var(--linen-100);}
.sponsor-box--stor img{max-height:75%;}

.sponsor-row--medium{grid-template-columns:repeat(4,1fr);margin-bottom:2px;}
.sponsor-box--medium{aspect-ratio:16/9;padding:26px;background:rgba(241,233,216,0.94);}
.sponsor-box--medium img{max-height:68%;}

.sponsor-row--liten{grid-template-columns:repeat(6,1fr);}
@media (max-width:900px){
  .sponsor-row--stor{grid-template-columns:repeat(2,1fr);}
  .sponsor-row--liten{grid-template-columns:repeat(3,1fr);}
}
.sponsor-box img{max-height:60%;width:auto;opacity:.96;transition:transform .25s ease, opacity .25s ease;}
.sponsor-box:hover img{transform:scale(1.04);opacity:1;}

/* image gallery page */
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;}
.gallery-grid img{aspect-ratio:1/1;object-fit:cover;width:100%;height:100%;border-radius:2px;}
@media (max-width:700px){.gallery-grid{grid-template-columns:repeat(2,1fr);}}

.gallery-page{max-width:var(--max);}
.gallery-page .wp-block-gallery img, .gallery-page .blocks-gallery-image img{border-radius:2px;}
.gallery-page figcaption{color:var(--ink-faint);font-size:12px;margin-top:6px;}

/* contact */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:64px;}
.contact-item{margin-bottom:30px;}
.contact-item .label{font-size:11px;color:var(--gold-muted);letter-spacing:0.12em;margin-bottom:6px;}
.contact-item .val{font-size:17px;font-family:'Fraunces',serif;}
.contact-item .val a:hover{color:var(--amber-300);}
.social-row{display:flex;gap:14px;margin-top:8px;}
.social-row a{width:40px;height:40px;border:1px solid rgba(241,233,216,0.25);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;transition:border-color .2s ease, color .2s ease;}
.social-row a:hover{border-color:var(--amber-500);color:var(--amber-300);}

form.card{background:var(--pine-800);padding:36px;border-radius:2px;}
.field{margin-bottom:18px;}
.field label{display:block;font-size:12px;color:var(--ink-faint);margin-bottom:8px;letter-spacing:0.06em;text-transform:uppercase;}
.field input, .field textarea{width:100%;background:transparent;border:0;border-bottom:1px solid rgba(241,233,216,0.25);color:var(--linen-100);font-family:'Inter',sans-serif;font-size:15px;padding:10px 2px;outline:none;transition:border-color .2s ease;}
.field input:focus, .field textarea:focus{border-color:var(--amber-500);}
.field textarea{resize:vertical;min-height:90px;}
.form-notice{padding:14px 18px;margin-bottom:20px;border-radius:2px;font-size:14px;}
.form-notice.success{background:rgba(231,163,57,0.15);color:var(--amber-300);}
.form-notice.error{background:rgba(156,43,58,0.18);color:#f0a4ad;}

/* generic page content (e.g. Om arrangementet edited in block editor) */
.entry-content{font-size:16px;line-height:1.8;color:var(--ink-soft);max-width:70ch;}
.entry-content h2, .entry-content h3{color:var(--linen-100);margin:36px 0 14px;}
.entry-content img{border-radius:2px;margin:20px 0;}
.entry-content a{color:var(--amber-300);text-decoration:underline;}

/* footer */
.site-footer{padding:0 0 44px;border-top:1px solid rgba(253,244,228,0.08);font-size:12.5px;color:var(--ink-faint);}
.footer-sitemap{padding:36px 32px 28px;}
.footer-sitemap ul{list-style:none;display:flex;gap:28px;flex-wrap:wrap;margin:0;padding:0;}
.footer-sitemap a{font-size:13px;color:var(--ink-soft);}
.footer-sitemap a:hover{color:var(--gold-300);}
.footer-row{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:0 32px;max-width:var(--max);margin:0 auto;}
.site-footer a:hover{color:var(--amber-300);}

/* reveal-on-scroll */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease, transform .7s ease;}
.reveal.in{opacity:1;transform:translateY(0);}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1;transform:none;transition:none;}
  html{scroll-behavior:auto;}
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:2px solid var(--amber-500);outline-offset:3px;
}

@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr;}
  .about-grid{grid-template-columns:1fr;}
  .about-figure{aspect-ratio:16/10;}
  .contact-grid{grid-template-columns:1fr;}
  .artist-grid{grid-template-columns:repeat(2,1fr);}
  .sponsor-row{grid-template-columns:repeat(2,1fr);}
  .ticket{grid-template-columns:1fr;}
  .ticket-stub{writing-mode:horizontal-tb;padding:14px;}
  .perf{display:none;}
  .ticket::before{display:none;}
}
