/* ==========================================================
   JOKINISU — Shared stylesheet
   Loaded by every page. Page-specific rules stay in-page.
   ========================================================== */

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

:root {
  --gold: #B8965A;
  --gold-light: #D4AF78;
  --dark: #0A0D14;
  --dark2: #0D1018;
  --text: #E6E2D8;
  --muted: #6B6760;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Jost', sans-serif;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 56px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,13,20,0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.4s ease, border-color 0.4s ease;
}

nav.scrolled {
  background: rgba(10,13,20,0.92);
  border-bottom-color: rgba(184,150,90,0.15);
}

.logo { display: flex; align-items: center; text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(230,226,216,0.65);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--gold);
  border: none;
  padding: 11px 26px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease, transform 0.2s ease;
}

.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(10,13,20,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.open { display: flex; opacity: 1; }

.mobile-menu a {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 200;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu a:hover { color: var(--gold); }
.mobile-menu a.active { color: var(--gold); }

.mobile-menu .mobile-cta {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--gold);
  border: none;
  padding: 14px 40px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 16px;
}

/* ── SHARED SECTION TYPE ── */
.section-label {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-heading {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 200;
  letter-spacing: 0.03em;
  color: var(--text);
  line-height: 1.25;
}

/* ── SHARED BUTTONS ── */
.btn-primary {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--gold);
  border: none;
  padding: 16px 40px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-secondary {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(230,226,216,0.25);
  padding: 16px 40px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ── SHARED CTA SECTION ── */
.cta-section {
  background: var(--dark2);
  border-top: 1px solid rgba(184,150,90,0.12);
  padding: 100px 10vw;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(184,150,90,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 200;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
}

.cta-section h2 em { font-style: italic; color: var(--gold); }

.cta-section p {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: rgba(230,226,216,0.5);
  margin-bottom: 44px;
  position: relative;
}

/* ── MASTHEAD (index, rebate, services, how-we-work) ── */
.masthead {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  isolation: isolate;
}

.masthead video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
}

.masthead-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,13,20,0.35) 0%,
    rgba(10,13,20,0.15) 35%,
    rgba(10,13,20,0.55) 75%,
    rgba(10,13,20,1) 100%
  );
}

.masthead-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 40px;
  max-width: 940px;
  width: 100%;
  animation: fadeUp 1.1s ease 0.4s both;
}

.masthead-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.masthead-headline {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(20px, 5.5vw, 58px);
  font-weight: 200;
  line-height: 1.1;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 50px rgba(0,0,0,0.55);
}

.masthead-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-light);
}

.masthead-divider {
  width: 52px;
  height: 1px;
  background: var(--gold);
  opacity: 0.65;
  margin: 28px auto;
}

.masthead-sub {
  font-family: 'Jost', sans-serif;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 300;
  line-height: 1.85;
  color: rgba(230,226,216,0.68);
  margin-bottom: 44px;
}

.masthead-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.masthead-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.masthead-scroll span {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(230,226,216,0.28);
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(184,150,90,0.7), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%      { opacity: 0.35; transform: scaleY(0.55); }
}

.masthead-location {
  position: absolute;
  bottom: 36px;
  left: 56px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.masthead-location .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
}

.masthead-location span {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(230,226,216,0.32);
}

@media (max-width: 768px) {
  .masthead-content { padding: 0 24px; }
  .masthead-headline { font-size: clamp(28px, 8vw, 48px); }
  .masthead-sub br { display: none; }
  .masthead-sub { font-size: 14px; }
  .masthead-location { left: 24px; }
  .masthead-ctas { flex-direction: column; align-items: center; }
}

/* Masthead buttons */
.cta-primary {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--gold);
  border: none;
  padding: 14px 34px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cta-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.cta-secondary {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(230,226,216,0.8);
  background: transparent;
  border: 1px solid rgba(230,226,216,0.3);
  padding: 14px 34px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.cta-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* ── CONTACT MODAL ── */
.contact-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 8, 13, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-backdrop.open { opacity: 1; visibility: visible; }

.contact-panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--dark2);
  border: 1px solid rgba(184,150,90,0.28);
  padding: 48px 44px 44px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-backdrop.open .contact-panel { transform: translateY(0) scale(1); }

.contact-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.contact-close::before,
.contact-close::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 13px; height: 1px;
  background: rgba(230,226,216,0.55);
  transition: background 0.3s ease;
}

.contact-close::before { transform: translate(-50%,-50%) rotate(45deg); }
.contact-close::after  { transform: translate(-50%,-50%) rotate(-45deg); }
.contact-close:hover::before,
.contact-close:hover::after { background: var(--gold); }

.contact-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.contact-title {
  font-family: 'Raleway', sans-serif;
  font-size: 30px;
  font-weight: 200;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 10px;
}

.contact-intro {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(230,226,216,0.55);
  margin-bottom: 32px;
}

.contact-options { display: flex; flex-direction: column; gap: 12px; }

.contact-option {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(184,150,90,0.22);
  text-decoration: none;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}

.contact-option:hover {
  border-color: var(--gold);
  background: rgba(184,150,90,0.06);
  transform: translateY(-1px);
}

.contact-option svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-option-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.contact-option-label {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(230,226,216,0.45);
}

.contact-option-value {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-option:hover .contact-option-value { color: var(--gold-light); }

@media (max-width: 480px) {
  .contact-panel { padding: 40px 26px 32px; }
  .contact-title { font-size: 25px; }
  .contact-option { padding: 16px; gap: 14px; }
  .contact-option-value { font-size: 14px; }
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 10vw 28px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

footer span {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(230,226,216,0.3);
  text-transform: uppercase;
}

footer a {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
}

footer a:hover { color: var(--gold-light); }

.footer-links { display: inline-flex; gap: 22px; align-items: center; }

.footer-legal {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-family: 'Jost', sans-serif;
  font-size: 10.5px;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.07em;
  color: rgba(230,226,216,0.22);
}

.footer-legal b { font-weight: 400; color: rgba(230,226,216,0.32); }
.footer-legal .sep { margin: 0 8px; opacity: 0.4; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── SHARED RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .cta-section { padding: 60px 24px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  footer { padding: 24px; flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  nav { padding: 0 32px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 10px; }
}

/* ── ACCESSIBILITY ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1; transform: none; }
}
