/* ============================================================
   BOTTLED SPARK — Global Stylesheet
   Measurements sourced directly from aurel-patched theme CSS
   ============================================================ */

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

html { font-size: 16px; }

:root {
  --color-bg:     #0a0a0a;
  --color-header: #171717;
  --color-footer: #161616;
  --color-accent: #82a853;
  --font-logo:    'Oswald', sans-serif;
  --font-body:    'Roboto', sans-serif;
  /* Header = logo(48px) + padding-top(40px) + padding-bottom(40px) = 128px */
  --header-h:     128px;
  --transition:   0.25s ease;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  background: #0a0a0a;
  color: #d1d1d1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection      { background: rgba(130,168,83,0.99); color: #fff; }
::-moz-selection { background: #82a853; color: #fff; }

/* ================================================================
   HEADER
   logo 48px + padding 40px top + 40px bottom = 128px total
   ================================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  background: var(--color-header);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background var(--transition);
}

/* White line on Films, About, Contact pages */
.page-films .site-header,
.page-about .site-header,
.page-contact .site-header {
  border-bottom: 1px solid rgba(255,255,255,0.55);
}

.site-header.header-gradient {
  background: linear-gradient(to bottom, rgba(23,23,23,1) 0%, rgba(23,23,23,0) 100%);
  border-bottom-color: transparent;
}

.site-header.scrolled {
  background: rgba(23,23,23,0.92) !important;
  border-bottom-color: rgba(255,255,255,0.05) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 100%;
  margin: 0;
  padding: 0 40px 0 30px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---- LOGO ---- */
/* Header logo: 48px with 40px top/bottom padding built into header height */
.text-logo {
  font-family: var(--font-logo);
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 2px;
  transition: opacity var(--transition);
  white-space: nowrap;
}
.text-logo:hover { opacity: 0.8; }

.site-header .text-logo {
  font-size: 48px;
  line-height: 48px;
}

/* Footer logo */
.site-footer .text-logo {
  font-size: 48px;
  line-height: 48px;
  padding-bottom: 8px;
  display: block;
}

/* ---- NAV — 13px per theme CSS (patch fixed the 20px bug) ---- */
.main-nav ul { display: flex; gap: 28px; align-items: center; }

.main-nav a {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  transition: color var(--transition);
}
.main-nav a:hover,
.main-nav a.active { color: var(--color-accent); }

/* ---- HAMBURGER ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 1000;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: #fff;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- MOBILE NAV ---- */
.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 800;
}
.mobile-nav-overlay.open { display: block; }

.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: min(300px, 85vw);
  height: 100vh;
  background: #1c1d1f;
  z-index: 850;
  padding: 120px 40px 40px;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 24px; }
.mobile-nav a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #c8c8c8;
  letter-spacing: 1px;
  transition: color var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--color-accent); }

/* ---- PAGE STRUCTURE ---- */
main { flex: 1; }

/* ================================================================
   HOME — full-screen hero
   ================================================================ */
.page-home main { display: flex; flex-direction: column; flex: 1; }

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/honeycomb_background_homepage_JPEG.jpg');
  background-size: cover;
  background-position: center 8%;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 80%, rgba(10,10,10,1) 100%);
}

/* ================================================================
   ABOUT PAGE
   ================================================================ */
.about-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 80px 30px 60px;
  padding-top: calc(var(--header-h) + 80px);
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 50px;
  align-items: center;
}

.about-photo {
  width: 100%;
  display: block;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.about-text-col p {
  font-family: 'Times New Roman', Times, serif;
  font-size: 18px;
  line-height: 1.75;
  color: #d1d1d1;
  margin-bottom: 20px;
}

/* ================================================================
   FOOTER — padding: 30px 0 26px per theme.css
   ================================================================ */
.site-footer {
  background: var(--color-footer);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 30px 0 26px;
}

.footer-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  flex-direction: column;
  text-align: center;
}

.copyright {
  font-size: 14px;
  line-height: 16px;
  color: #fff;
}

/* ================================================================
   BACK TO TOP
   ================================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 40px; height: 40px;
  background: #3a3e43;
  border: none;
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
  z-index: 500;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--color-accent); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  :root { --header-h: 80px; }

  .site-header .text-logo { font-size: 28px; line-height: 28px; }
  .site-footer .text-logo { font-size: 28px; line-height: 28px; padding-bottom: 10px; }

  .hamburger { display: flex; }
  .main-nav  { display: none; }
  .header-inner { padding: 0 16px 0 20px; }

  .about-container {
    grid-template-columns: 1fr;
    padding: calc(var(--header-h) + 24px) 20px 48px;
    gap: 24px;
  }
  .about-photo { max-width: 60%; }
  .about-text-col p { font-size: 16px; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; padding: 0 20px; }
  .back-to-top { bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
  .about-photo { max-width: 80%; }
}
