/* ==========================================================================
   Kings of Leon — Official Site
   ========================================================================== */

:root {
  --bg: #506481;
  --bg-deep: #3b4c63;
  --bg-deeper: #2e3c4f;
  --cream: #eaebdb;
  --cream-fill: #fdf8ee;
  --peach: #f1e2db;
  --ink: #456484;
  --edge: clamp(48px, 8.5vw, 160px);
  --content-edge: var(--edge);
  --max-width: 1800px;
  --header-h: 92px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: 'Old Standard TT', Georgia, serif;
  font-weight: 700;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cream-fill);
  color: var(--ink);
  padding: 12px 18px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

.mono {
  font-family: 'Courier New', Courier, monospace;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--edge);
}

/* ---------------- Background texture ---------------- */
body {
  background-image:
    radial-gradient(ellipse 1200px 800px at 15% -10%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(ellipse 1000px 700px at 100% 10%, rgba(0, 0, 0, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 55%, var(--bg-deep) 100%);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 34px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}

.main-nav ul { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }

.nav-link {
  font-family: 'Courier New', Courier, monospace;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--cream);
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--peach);
  transition: right 0.35s var(--ease);
}
.nav-link:hover::after,
.nav-link:focus-visible::after { right: 0; }

.social-links { display: flex; align-items: center; gap: 10px; }
.main-nav .social-links { gap: 14px; }
.social-links img { width: 18px; height: 18px; opacity: 0.88; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.social-links a:hover img, .social-links a:focus-visible img { opacity: 1; transform: translateY(-2px); }

.social-links--large img { width: 24px; height: 24px; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 32px;
  padding: 0;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 600;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cream);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.menu-toggle.is-active span:nth-child(1) { transform: translateY(13px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-13px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0 80px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--edge);
  display: grid;
  grid-template-columns: minmax(0, clamp(300px, 34vw, 680px)) minmax(260px, 1fr);
  align-items: center;
  justify-content: start;
  gap: clamp(32px, 6vw, 160px);
}

.hero-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  will-change: transform;
}
.hero-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.hero-art:hover img { transform: scale(1.04); }

.hero-promo {
  text-align: right;
  max-width: clamp(320px, 30vw, 620px);
  margin-left: auto;
  margin-right: clamp(8px, 2vw, 40px);
}
.promo-title {
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(36px, 3.4vw, 84px);
  letter-spacing: 0.01em;
  white-space: nowrap;
  margin: 0 0 12px;
  color: var(--cream);
}
.promo-sub {
  font-family: 'Courier New', Courier, monospace;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(17px, 1.3vw, 30px);
  letter-spacing: 0.04em;
  color: var(--cream);
  margin: 0 0 28px;
  opacity: 0.9;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: 'Old Standard TT', Georgia, serif;
  font-style: italic;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--cream-fill);
  border: 1px solid var(--cream);
  padding: 12px 32px;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.25s var(--ease);
}
.btn:hover, .btn:focus-visible {
  background: var(--ink);
  color: var(--cream-fill);
  border-color: var(--ink);
  transform: translateY(-3px);
}
.btn--small { padding: 10px 22px; font-size: 14px; }

/* ==========================================================================
   Sections / Titles
   ========================================================================== */
.section { padding: clamp(60px, 6.5vw, 104px) 0; position: relative; }
.section-tour { padding-top: clamp(32px, 3.5vw, 56px); }

.section-title {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  margin: 0 0 clamp(28px, 3.5vw, 40px);
  text-transform: uppercase;
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal-up, .reveal-scale {
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-up { transform: translateY(42px); }
.reveal-scale { transform: scale(0.92); }
.reveal-up.in-view, .reveal-scale.in-view {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Carousel (shared) — bleeds off the right edge of the viewport
   ========================================================================== */
.carousel-bleed {
  width: min(100vw, var(--max-width));
  position: relative;
  left: 50%;
  margin-left: calc(min(100vw, var(--max-width)) / -2);
}

.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: clamp(18px, 2.4vw, 32px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px clamp(24px, 5vw, 64px) 22px var(--content-edge);
  scroll-padding-left: var(--content-edge);
  scroll-padding-right: clamp(24px, 5vw, 64px);
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-item { scroll-snap-align: start; flex: 0 0 auto; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--cream);
  background: rgba(60, 76, 98, 0.65);
  backdrop-filter: blur(4px);
  color: var(--cream);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.carousel-arrow--prev { left: 14px; }
.carousel-arrow--next { right: 14px; }
.carousel-arrow:hover:not(:disabled) { background: var(--cream-fill); color: var(--ink); transform: translateY(-50%) scale(1.08); }
.carousel-arrow:disabled { opacity: 0; pointer-events: none; }

/* Store */
.store-item { width: 23vw; min-width: 190px; }
.store-image {
  display: block;
  width: 100%;
  aspect-ratio: 380 / 430;
  overflow: hidden;
}
.store-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.store-item:hover .store-image img { transform: scale(1.06); }
.store-name {
  font-family: 'Courier New', Courier, monospace;
  text-transform: uppercase;
  font-size: 14px;
  margin: 18px 0 4px;
}
.store-price {
  font-style: italic;
  font-size: 20px;
  margin: 0 0 14px;
}

/* Videos */
.feature-video {
  display: grid;
  grid-template-columns: 2.15fr 1fr;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: clamp(32px, 4vw, 52px);
}
.feature-video:last-child { margin-bottom: 0; }
.feature-video--reverse { grid-template-columns: 1fr 2.15fr; }

.feature-video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
}
.feature-video-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s var(--ease); }
.feature-video-thumb:hover img { transform: scale(1.06); }

.feature-video-info h3 {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 35px);
  margin: 0 0 22px;
}

/* ==========================================================================
   Tour — restyles the live Seated widget to match the design
   ========================================================================== */
.tour-widget-wrap {
  min-height: 160px;
}

.tour-widget-wrap .seated-events-table {
  display: flex;
  flex-direction: column;
}

.tour-widget-wrap .seated-event-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0 !important;
  background: none !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(234, 235, 219, 0.14) !important;
}
.tour-widget-wrap .seated-event-row:first-child { border-top: 1px solid rgba(234, 235, 219, 0.14) !important; }

.tour-widget-wrap .seated-event-description-cells {
  display: flex !important;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  flex: 1 1 auto;
  min-width: 0;
}

.tour-widget-wrap .seated-event-date-cell {
  font-family: 'Courier New', Courier, monospace !important;
  text-transform: uppercase !important;
  color: var(--peach) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  width: 190px;
  flex: 0 0 auto;
}

.tour-widget-wrap .seated-event-venue-cell {
  display: flex !important;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  flex: 1 1 auto;
  min-width: 0;
}
.tour-widget-wrap .seated-event-venue-name,
.tour-widget-wrap .seated-event-venue-location {
  font-family: 'Courier New', Courier, monospace !important;
  text-transform: uppercase !important;
  color: var(--peach) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  background: none !important;
}
.tour-widget-wrap .seated-event-details-cell { display: none !important; }

.tour-widget-wrap .seated-event-link-cells { flex: 0 0 auto; }
.tour-widget-wrap .seated-event-link {
  display: inline-block !important;
  font-family: 'Old Standard TT', Georgia, serif !important;
  font-style: italic !important;
  text-transform: uppercase !important;
  font-size: 15px !important;
  letter-spacing: 0.03em;
  color: var(--ink) !important;
  background: var(--cream-fill) !important;
  border: 1px solid var(--cream) !important;
  border-radius: 0 !important;
  padding: 10px 28px !important;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.tour-widget-wrap .seated-event-link:hover { background: var(--ink) !important; color: var(--cream-fill) !important; }

.tour-widget-wrap .seated-follow-text {
  font-family: 'Courier New', Courier, monospace !important;
  color: var(--cream) !important;
  text-align: center;
  text-transform: uppercase;
  font-size: 14px !important;
  margin-top: 40px;
}
.tour-widget-wrap .seated-follow-link {
  display: inline-block !important;
  margin-top: 16px;
  font-family: 'Old Standard TT', Georgia, serif !important;
  font-style: italic !important;
  text-transform: uppercase !important;
  color: var(--ink) !important;
  background: var(--cream-fill) !important;
  border: 1px solid var(--cream) !important;
  padding: 10px 28px !important;
}

/* ==========================================================================
   Sign up / Footer section
   ========================================================================== */
.signup-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.signup-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.signup-logo { width: clamp(300px, 32vw, 460px); }
.signup-brand .social-links { justify-content: flex-start; }

.signup-form-col {
  width: 100%;
  margin-left: auto;
}

.signup-label {
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  margin: 0 0 18px;
  text-align: right;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup-form-row {
  display: flex;
  gap: 12px;
}

.signup-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 1px solid var(--cream);
  color: var(--cream);
  font-family: 'Courier New', Courier, monospace;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 12px 14px;
  outline: none;
  appearance: none;
  border-radius: 0;
  transition: border-color 0.25s var(--ease);
}
.signup-input::placeholder { color: var(--peach); opacity: 0.85; }
.signup-input:focus { border-color: var(--peach); }
select.signup-input { color: var(--peach); cursor: pointer; }
select.signup-input option { color: var(--ink); }

.field-email { flex: 1.5; }
.field-country { flex: 1; }
.field-zip { flex: 0.65; }
.field-phone { flex: 1; }

.signup-submit {
  width: 100%;
  text-align: center;
  margin-top: 4px;
}

.signup-form-note {
  min-height: 18px;
  margin: 10px 0 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--peach);
  text-align: right;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.signup-form-note.is-visible { opacity: 1; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 26px 0 40px;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(234, 235, 219, 0.55);
}

/* ==========================================================================
   Mobile nav overlay
   ========================================================================== */
@media (max-width: 860px) {
  :root {
    --edge: clamp(20px, 5vw, 48px);
  }
  .menu-toggle {
    display: flex;
    width: 30px;
    height: 20px;
    justify-content: center;
    gap: 5px;
  }
  .menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--bg-deeper);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 48px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s var(--ease), opacity 0.4s var(--ease), visibility 0.5s;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .main-nav > ul { flex-direction: column; gap: 28px; }
  .nav-link { font-size: 22px; }
  .main-nav .social-links { flex-direction: row; gap: 10px; }
  .social-links img { width: 22px; height: 22px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; max-width: 560px; justify-content: center; }
  .hero-art { max-width: 460px; margin: 0 auto; }
  .hero-promo { text-align: center; }
  .promo-title { white-space: normal; }
  .promo-sub { margin-bottom: 24px; }

  .feature-video, .feature-video--reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .feature-video-thumb { order: 0; }
  .feature-video-info { order: 1; }
  .feature-video-info .btn { font-size: 13px; padding: 8px 20px; }

  .signup-inner { grid-template-columns: 1fr; text-align: center; }
  .signup-brand { align-items: center; }
  .signup-form-col { margin: 0 auto; }
  .signup-label, .signup-form-note { text-align: center; }
  .signup-form-row { flex-direction: column; }
  .field-email, .field-country, .field-zip, .field-phone { flex: 1; }

  .section-title { text-align: center; }
  .tour-widget-wrap .seated-event-row {
    flex-direction: column;
    align-items: center;
    row-gap: 4px;
    text-align: center;
  }
  .tour-widget-wrap .seated-event-description-cells {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .tour-widget-wrap .seated-event-venue-cell {
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }
  .tour-widget-wrap .seated-event-date-cell,
  .tour-widget-wrap .seated-event-venue-name,
  .tour-widget-wrap .seated-event-venue-location {
    font-size: 13px !important;
  }
  .tour-widget-wrap .seated-event-link-cells { width: auto; display: flex; justify-content: center; margin-top: 10px; }
  .tour-widget-wrap .seated-event-link {
    display: inline-block !important;
    text-align: center;
    font-size: 13px !important;
    padding: 7px 20px !important;
  }
  .tour-widget-wrap .seated-follow-text,
  .tour-widget-wrap .seated-follow-link { margin-left: auto; margin-right: auto; }
}

@media (max-width: 560px) {
  .hero { padding-top: 16px; }
  .carousel-arrow { width: 38px; height: 38px; font-size: 20px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal-up, .reveal-scale { opacity: 1; transform: none; }
}
