/* =========================================================
   Rutschmania LLC — Landing page styles
   Layered on top of main.css + Bootstrap 3.
   Scoped to homepage section classes so gallery pages
   (group_index, photos, etc.) are unaffected.
   ========================================================= */

/* Bootstrap 3 sets html { font-size: 62.5% } making 1rem = 10px.
   Override here so rem values work at the standard 16px base. */
html {
  font-size: 100%;
}

:root {
  --rm-ink:        #111827;
  --rm-gold:       #F5C542;
  --rm-rust:       #B45309;
  --rm-warm-white: #FAFAF7;
  --rm-slate:      #64748B;
  --rm-white:      #FFFFFF;
  --rm-black:      #000000;
}

/* ── Container overrides ──────────────────────────────── */
#navContainer,
#headerContainer {
  padding-left: 0;
  padding-right: 0;
}

/* ── Nav ──────────────────────────────────────────────── */
.rm-navbar {
  background-color: var(--rm-ink);
  border: none;
  border-radius: 0;
  margin-bottom: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  min-height: 80px;
}

.nav-wordmark {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.nav-wordmark__img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-badge {
  display: block;
  flex-shrink: 0;
  margin-left: 1.5rem;
  text-decoration: none;
  line-height: 0;
}

.nav-badge__img {
  height: 60px;
  width: auto;
  display: block;
}

.nav-hamburger {
  display: none;
  margin-left: auto;
  flex-shrink: 0;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 9px 10px;
  cursor: pointer;
}

.nav-hamburger .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--rm-white);
  border-radius: 1px;
}

.nav-hamburger .icon-bar + .icon-bar {
  margin-top: 4px;
}

/* Desktop: links float to center between wordmark and badge */
@media (min-width: 768px) {
  .nav-collapse.navbar-collapse {
    display: flex !important;
    flex: 1;
    justify-content: flex-end;
    padding: 0;
    border: none;
    box-shadow: none;
    margin: 0;
    margin-right: 1rem;
  }

  .nav-collapse .navbar-nav {
    display: flex !important;
    align-items: center;
    gap: 2rem;
    float: none;
    margin: 0;
  }

  .nav-collapse .navbar-nav > li {
    float: none;
  }

  .nav-collapse .navbar-nav > li > a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.25rem 0;
    line-height: 1;
    white-space: nowrap;
    background: transparent;
  }

  .nav-collapse .navbar-nav > li > a:hover,
  .nav-collapse .navbar-nav > li > a:focus,
  .nav-collapse .navbar-nav > li.active > a,
  .nav-collapse .navbar-nav > li.active > a:hover {
    color: var(--rm-gold);
    background: transparent;
  }
}

/* Mobile: hamburger shows, badge hides, links collapse */
@media (max-width: 767px) {
  .nav-inner {
    flex-wrap: wrap;
    min-height: 64px;
    padding: 0.625rem 1rem;
  }

  .nav-wordmark__img {
    height: 36px;
  }

  .nav-badge {
    display: none;
  }

  .nav-hamburger {
    display: block;
    flex-shrink: 0;
    margin-left: auto;
  }

  .nav-collapse {
    width: 100%;
    padding: 0.5rem 0 1rem;
    background-color: var(--rm-ink);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Bootstrap adds margin: 7.5px -15px to .navbar-nav on mobile,
     pulling the list outside the padded container. Reset it. */
  .nav-collapse .navbar-nav {
    margin: 0;
  }

  .nav-collapse .navbar-nav > li > a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: block;
  }

  .nav-collapse .navbar-nav > li > a:hover,
  .nav-collapse .navbar-nav > li.active > a {
    color: var(--rm-gold);
    background: transparent;
  }
}

/* ── Global focus ─────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--rm-gold);
  outline-offset: 4px;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  padding: clamp(4rem, 10vw, 8rem) 1.5rem clamp(3rem, 8vw, 6rem);
  text-align: center;
  background: var(--rm-ink);
}

.hero__kicker {
  color: var(--rm-rust);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: var(--rm-white);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

/* Rust stripe accent under headline */
.rm-stripe {
  height: 5px;
  width: min(100%, 480px);
  background: var(--rm-rust);
  margin: 1.5rem auto 1.75rem;
  position: relative;
}

.rm-stripe::after {
  content: "";
  position: absolute;
  right: 12%;
  top: 0;
  width: 28px;
  height: 5px;
  background: var(--rm-ink);
  transform: skewX(-35deg);
}

.hero__lede {
  color: rgba(250, 250, 247, 0.72);
  font-size: 1.5rem;
  line-height: 1.55;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn-rm,
.btn-rm-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  cursor: pointer;
  letter-spacing: 0.01em;
}

/* Primary — on dark (hero): gold solid */
.hero .btn-rm {
  background: var(--rm-gold);
  color: var(--rm-ink);
  border: 2px solid var(--rm-gold);
}

.hero .btn-rm:hover,
.hero .btn-rm:focus {
  background: var(--rm-rust);
  border-color: var(--rm-rust);
  color: var(--rm-white);
  text-decoration: none;
}

/* Outline — on dark (hero): white ghost */
.hero .btn-rm-outline {
  background: transparent;
  color: var(--rm-white);
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.hero .btn-rm-outline:hover,
.hero .btn-rm-outline:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--rm-white);
  text-decoration: none;
}

/* Primary — on light sections: ink solid */
.light-section .btn-rm {
  background: var(--rm-ink);
  color: var(--rm-white);
  border: 2px solid var(--rm-ink);
}

.light-section .btn-rm:hover,
.light-section .btn-rm:focus {
  background: var(--rm-rust);
  border-color: var(--rm-rust);
  color: var(--rm-white);
  text-decoration: none;
}

/* Outline — on light sections: ink ghost */
.light-section .btn-rm-outline {
  background: transparent;
  color: var(--rm-ink);
  border: 2px solid rgba(17, 24, 39, 0.22);
}

.light-section .btn-rm-outline:hover,
.light-section .btn-rm-outline:focus {
  background: var(--rm-ink);
  border-color: var(--rm-ink);
  color: var(--rm-white);
  text-decoration: none;
}

/* ── Sections ─────────────────────────────────────────── */
.section {
  padding: 5rem 0;
  scroll-margin-top: 80px;
}

/* Light-background sections (Apps, Photography, About, Contact) */
.light-section {
  background: var(--rm-warm-white);
}

.light-section.section--alt {
  background: var(--rm-white);
}

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section__heading {
  color: var(--rm-ink);
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

/* Rust stripe under section headings (replaces gold underline bar) */
.section__heading::after {
  content: '';
  display: block;
  height: 4px;
  width: 64px;
  background: var(--rm-rust);
  margin: 0.75rem auto 2rem;
  border-radius: 0;
}

/* ── App Cards ─────────────────────────────────────────── */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.app-card {
  background: var(--rm-white);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, border-color 160ms ease;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(180, 83, 9, 0.35);
}

.app-card__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.app-card__icon-img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.75rem;
}

.app-card__title {
  color: var(--rm-ink);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.app-card__pitch {
  color: var(--rm-slate);
  font-size: 1.1rem;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1rem;
}

.app-card__focus {
  color: var(--rm-rust);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ── App Card Platform Buttons ─────────────────────────── */
.app-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-rm-platform {
  gap: 0.5rem;
  width: 100%;
}

.platform-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn-rm-platform--disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/* ── Status Badges ─────────────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.status-badge--live {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge--in-dev {
  background: rgba(245, 197, 66, 0.15);
  color: #92400e;
  border: 1px solid rgba(245, 197, 66, 0.4);
}

.status-badge--concept {
  background: rgba(100, 116, 139, 0.12);
  color: var(--rm-slate);
  border: 1px solid rgba(100, 116, 139, 0.25);
}

/* ── Photography Section ───────────────────────────────── */
/* Light-background variant of the .photoset-card component (base in main.css) */
.light-section .photoset-card {
  background: var(--rm-white);
  border-color: rgba(17, 24, 39, 0.08);
}

.light-section .photoset-card:hover,
.light-section .photoset-card:focus {
  border-color: rgba(180, 83, 9, 0.35);
}

.light-section .photoset-card__name {
  color: var(--rm-ink);
}

.light-section .photoset-card:hover .photoset-card__name {
  color: var(--rm-rust);
}

.light-section .photoset-card__date {
  color: var(--rm-slate);
}

#photography a {
  text-decoration: none;
}

.photography-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ── About Section ─────────────────────────────────────── */
.about__body {
  max-width: 700px;
  margin: 0 auto;
  color: var(--rm-slate);
  font-size: 1.5rem;
  line-height: 1.65;
  text-align: center;
}

.about__body strong {
  color: var(--rm-ink);
}

/* ── Contact Section ───────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  background: var(--rm-white);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--rm-slate);
  transition: border-color 0.16s ease;
  display: block;
}

.contact-card:hover {
  border-color: rgba(180, 83, 9, 0.35);
  color: var(--rm-slate);
  text-decoration: none;
}

.contact-card:hover .contact-card__label {
  color: var(--rm-rust);
}

.contact-card__emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.contact-card__label {
  font-weight: 700;
  color: var(--rm-ink);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.25rem;
  transition: color 0.16s ease;
}

.contact-card__desc {
  font-size: 0.82rem;
  color: var(--rm-slate);
}

.contact__socials {
  text-align: center;
  margin-top: 2rem;
}

.contact__socials a {
  margin: 0 0.5rem;
  opacity: 0.55;
  transition: opacity 0.16s ease;
  display: inline-block;
}

.contact__socials a:hover {
  opacity: 1;
}

.contact__socials img {
  width: 28px;
  height: 28px;
  /* Icons are white SVGs designed for dark bg; invert to black for light bg */
  filter: invert(1);
}

/* ── Footer ────────────────────────────────────────────── */
#footer {
  max-width: 100%;
  padding: 0;
}

.site-footer {
  background: var(--rm-ink);
  color: var(--rm-white);
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
}

.site-footer__wordmark {
  margin-bottom: 1rem;
}

.site-footer__wordmark img {
  width: 240px;
  height: auto;
  max-width: 80%;
}

.site-footer__tagline {
  color: var(--rm-gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.site-footer__desc {
  color: rgba(250, 250, 247, 0.6);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.site-footer__copy {
  color: rgba(250, 250, 247, 0.4);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--rm-gold);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--rm-white);
  text-decoration: none;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero {
    padding: 4rem 1.25rem 3rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero__lede {
    font-size: 1.25rem;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    border-radius: 20px;
    padding: 1.25rem;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 380px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
