/* =========================================================
   Rhythm Radius – Master Stylesheet
   Shared across index.html and design-gallery.html
   ========================================================= */

/* ----------------------
   Root + Global Defaults
   ---------------------- */

:root {
  --rr-bg: #1e1e1e;
  --rr-bg-soft: #222222;
  --rr-bg-panel: #2b2b2b;
  --rr-bg-panel-soft: #303030;

  --rr-accent: #ff8d03;
  --rr-accent-soft: #ffcf7a;

  --rr-text-main: #f2f2f2;
  --rr-text-soft: #bababa;
  --rr-text-muted: #888888;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* Base body for main site pages */
body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--rr-bg);
  color: var(--rr-text-main);
  line-height: 1.5;
}

/* Optional body modifier for gallery page background */
body.gallery-page {
  background:
    radial-gradient(circle at top left, #3a2400 0, #050505 55%),
    radial-gradient(circle at bottom right, #1b1b1b 0, #050505 55%);
}

/* Optional body modifier for simple thank-you page */
body.thankyou-page {
  background-color: #121212;
  color: #d6d6d6;
}

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

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

a:hover {
  text-decoration: underline;
}

/* General layout container for sections */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Main content offset so fixed header doesn’t overlap */
main {
  padding-top: 150px;
}

/* Utility heading styles (optional use) */
.heading-accent {
  font-family: 'Montserrat', sans-serif;
  color: var(--rr-accent);
}

/* Simple primary and outline buttons (optional use)
   (you can replace inline button styles later) */
.btn-primary {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  background-color: var(--rr-accent);
  color: #1e1e1e;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #e67c00;
}

.btn-outline {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  border: 1px solid var(--rr-accent);
  color: var(--rr-text-main);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.btn-outline:hover {
  background-color: rgba(255, 141, 3, 0.08);
}

/* ----------------------
   Header & Navigation
   (used on index + gallery)
   ---------------------- */

/* Base desktop header */
header {
  padding: 20px;
  background-color: rgba(40, 40, 40, 0.9);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo block – image path set via CSS so HTML stays clean */
.logo {
  width: 300px;
  height: 100px;
  background-image: url('img/rr-wide-logo-dark.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Desktop nav links – orange “pill” buttons */
.nav-links {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-links a {
  color: #f2f2f2;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  background-color: var(--rr-accent);
  transition: background-color 0.3s;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

.nav-links a:hover {
  background-color: #e67c00;
}

/* Hamburger for mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background-color: #f2f2f2;
  margin: 4px 0;
}

/* Mobile nav behavior */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* hidden by default on small screens */
    position: absolute;
    top: 80px;
    right: 20px;
    background-color: rgba(40, 40, 40, 0.97);
    flex-direction: column;
    padding: 0;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    min-width: 160px;
  }

  /* Shown when JS adds .nav-active */
  .nav-links.nav-active {
    display: flex;
  }

  /* Clean text-only links inside dropdown */
  .nav-links a {
    background-color: transparent;
    color: #f2f2f2;
    padding: 10px 14px;
    border-radius: 0;
    text-align: left;
    width: 100%;
    font-size: 14px;
    border: none;
    box-sizing: border-box;
  }

  .nav-links a + a {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links a:hover,
  .nav-links a:focus {
    background-color: rgba(255, 141, 3, 0.12);
    color: var(--rr-accent);
    text-decoration: none;
  }

  .menu-toggle {
    display: flex;
  }
}

/* ----------------------
   Hero Section (Home)
   ---------------------- */

.hero-section {
  padding: 70px 20px 60px 20px;
  min-height: 40vh;
  background-image:
    linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.75)),
    url('img/BG3D-Background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* parallax effect on desktop */
}

#hero {
    background-image: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.75)), url('img/BG3D-Background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Mobile fallback – fixed is often ignored anyway */
@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
  }
}

/* If you want a generic hero layout class later:
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}
*/

/* ----------------------
   Footer – shared across pages
   ---------------------- */

.site-footer {
  background-color: #2a2a2a;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  color: #f2f2f2;
  box-sizing: border-box;
}

.site-footer > div {
  flex: 1 1 240px;
  padding: 20px;
  box-sizing: border-box;
}

.footer-about h3,
.footer-quick-links h3,
.footer-contact h3,
.footer-newsletter h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  color: var(--rr-accent);
  margin: 0 0 10px 0;
}

.site-footer p {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: var(--rr-text-soft);
  margin: 0 0 10px 0;
  line-height: 1.6;
}

/* Quick links list */
.footer-quick-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-quick-links li {
  margin-bottom: 10px;
}

.footer-quick-links a {
  color: #f2f2f2;
  text-decoration: none;
  display: block;
  font-size: 14px;
}

.footer-quick-links a:hover {
  text-decoration: underline;
}

/* Social icons row */
.social-icons {
  margin-top: 20px;
  display: flex;             
  align-items: center;
  gap: 10px;             
}

.social-icons img {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  margin-right: 0;          
  vertical-align: middle;
  display: block;            
}

/* Bottom strip */
.footer-bottom {
  background-color: #111;
  padding: 10px 20px;
  box-sizing: border-box;
}

.footer-bottom-inner {
  max-width: 1100px;
  margin: 0 auto;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: #8c8c8c;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-meta {
  opacity: 0.9;
}

.footer-cta-button {
  display: inline-block;
  padding: 10px 18px;
  background-color: var(--rr-accent);
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-top: 8px;
}

.footer-cta-button:hover {
  background-color: #e67c00;
}

.footer-cta-link {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #bababa;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
}

.footer-cta-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 30px 20px;
  }

  .site-footer > div {
    padding: 15px 10px;
  }
}

@media (max-width: 600px) {
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ----------------------
   Gallery Page Layout
   (design-gallery.html)
   ---------------------- */

/* Main wrapper */
.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
  box-sizing: border-box;
}

/* Hero section at top of gallery */
.portfolio-hero {
  text-align: left;
  margin-top: 20px;
  margin-bottom: 26px;
}

.hero-kicker {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rr-accent-soft);
  margin-bottom: 6px;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: var(--rr-text-main);
  margin: 0 0 8px 0;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--rr-text-soft);
  max-width: 640px;
  line-height: 1.7;
  margin: 0;
}

/* Category chips (album covers, print, etc.) */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 12px 0;
}

.category-chip {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--rr-text-main);
  background: rgba(0, 0, 0, 0.45);
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.category-chip:hover {
  background: var(--rr-accent);
  color: #1a1308;
  border-color: transparent;
}

/* Section band */
.portfolio-section {
  margin-top: 40px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 141, 3, 0.04), rgba(0, 0, 0, 0.88));
  padding: 24px 24px 26px 24px;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* Section header row */
.portfolio-section-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}

.section-heading-wrap {
  max-width: 520px;
}

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--rr-accent-soft);
  margin-bottom: 4px;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--rr-text-main);
  margin: 0 0 4px 0;
}

.section-desc {
  font-size: 13px;
  color: var(--rr-text-soft);
  line-height: 1.7;
  margin: 0;
}

.section-meta {
  font-size: 12px;
  color: rgba(200, 200, 200, 0.9);
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Thumbnail grid */
.portfolio-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.thumb-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #101010;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  cursor: pointer;
  isolation: isolate;
}

.thumb-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: grayscale(18%);
}

.thumb-card:hover img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

/* Thumbnail overlay */
.thumb-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 8px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #f5f5f5;
  font-family: 'Montserrat', sans-serif;
}

.thumb-overlay span.tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 141, 3, 0.6);
  color: var(--rr-accent-soft);
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* ----------------------
   Lightbox (Gallery)
   ---------------------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none; /* toggled via JS */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.lightbox-overlay.is-visible {
  display: flex;
}

.lightbox-image {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
  border-radius: 10px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  font-family: 'Montserrat', sans-serif;
}

.lightbox-close:hover {
  color: var(--rr-accent);
}
