/* ==========================================================================
   Sol Maior Studio — Shared Design System
   Apple Design Language • Monochromatic B&W
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --black:        #1D1D1F;
  --black-soft:   #2C2C2E;
  --gray-dark:    #3A3A3C;
  --gray-mid:     #636366;
  --gray-light:   #AEAEB2;
  --off-white:    #F5F5F7;
  --white:        #FFFFFF;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --radius-sm:   8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-pill: 9999px;

  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:  0.2s;
  --dur-med:   0.45s;
  --dur-slow:  0.8s;

  --navbar-h: 68px;

  --glass-bg:       rgba(255,255,255,0.06);
  --glass-bg-hover: rgba(255,255,255,0.12);
  --glass-border:   rgba(255,255,255,0.12);
  --glass-blur:     blur(16px);

  --shadow-sm:  0 2px  8px rgba(0,0,0,0.25);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.35);
  --shadow-lg:  0 16px 60px rgba(0,0,0,0.5);
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* --------------------------------------------------------------------------
   Background System
   -------------------------------------------------------------------------- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: opacity 0.8s var(--ease-apple);
}

.page-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    160deg,
    rgba(29,29,31,0.5) 0%,
    rgba(29,29,31,0.6) 60%,
    rgba(29,29,31,0.75) 100%
  );
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 100px; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.display {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.subhead {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  color: var(--gray-light);
  line-height: 1.55;
}

.body-text {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: 300;
  color: var(--off-white);
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Glass Surfaces
   -------------------------------------------------------------------------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

.glass-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--dur-fast) var(--ease-apple);
  white-space: nowrap;
}

.btn-glass {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.20);
  color: var(--white);
}

.btn-glass:hover {
  background: rgba(255,255,255,0.20);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--white);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-h);
  z-index: 900;
  background: rgba(29,29,31,0.70);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background var(--dur-fast);
}

.navbar.scrolled {
  background: rgba(29,29,31,0.92);
}

.nav-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* Left group */
.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity var(--dur-fast);
  flex-shrink: 0;
}

.nav-logo-link:hover { opacity: 0.8; }

.nav-logo-svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.nav-logo-img {
  width: auto;
  height: 32px;
  flex-shrink: 0;
  display: block;
}

.hero-logo {
  max-width: 700px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.nav-logo-wordmark {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
  white-space: nowrap;
}

.nav-sep {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.15);
  margin-inline: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--gray-light);
  transition: var(--dur-fast) var(--ease-apple);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.10);
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  color: var(--gray-light);
  transition: var(--dur-fast);
  font-size: 0;
}

.nav-icon-btn:hover {
  color: var(--white);
  background: rgba(255,255,255,0.10);
}

.nav-icon-btn svg {
  width: 17px;
  height: 17px;
}

/* Right group */
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav-right .nav-icons {
  display: flex;
  margin-left: 8px;
}

.nav-home-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-light);
  border: 1px solid rgba(255,255,255,0.12);
  transition: var(--dur-fast) var(--ease-apple);
}

.nav-home-btn:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
}

.nav-home-btn svg { width: 14px; height: 14px; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--dur-fast) var(--ease-apple);
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--navbar-h);
  left: 0;
  right: 0;
  background: rgba(29,29,31,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  flex-direction: column;
  padding: 20px 24px 28px;
  gap: 8px;
  z-index: 899;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: var(--dur-med) var(--ease-apple);
}

.nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nav-drawer .nav-link { font-size: 1rem; padding: 10px 14px; }

.drawer-icons {
  display: flex;
  gap: 8px;
  padding-inline: 14px;
  margin-top: 8px;
}

.drawer-icons .nav-icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--glass-border);
}

.drawer-icons .nav-icon-btn svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Piano Component (Navbar Center)
   -------------------------------------------------------------------------- */
.piano-wrap {
  display: flex;
  justify-content: center;
}

.piano {
  display: flex;
  height: 42px;
  position: relative;
  border-radius: 0 0 6px 6px;
  overflow: visible;
  user-select: none;
}

.piano-white {
  width: 22px;
  height: 42px;
  background: var(--white);
  border: 1px solid #D0D0D0;
  border-top: none;
  border-radius: 0 0 4px 4px;
  position: relative;
  cursor: pointer;
  transition: background 0.08s, transform 0.08s;
  transform-origin: top center;
  box-shadow: inset -1px 0 0 rgba(0,0,0,0.06), 0 3px 6px rgba(0,0,0,0.25);
}

.piano-white:hover,
.piano-white.pressed {
  background: #E8E8E8;
  transform: scaleY(0.96);
}

.piano-black {
  width: 14px;
  height: 26px;
  background: linear-gradient(180deg, #3A3A3A 0%, #111 100%);
  border-radius: 0 0 3px 3px;
  position: absolute;
  top: 0;
  z-index: 2;
  cursor: pointer;
  transition: background 0.08s, transform 0.08s;
  transform-origin: top center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.piano-black:hover,
.piano-black.pressed {
  background: linear-gradient(180deg, #555 0%, #222 100%);
  transform: scaleY(0.94);
}

/* --------------------------------------------------------------------------
   DJ Mixer Component (Navbar Center)
   -------------------------------------------------------------------------- */
.nav-center-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 80px;
}

.dj-mixer {
  display: flex;
  gap: 6px;
  height: 50px;
  background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 50%, #0f0f0f 100%);
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid #222;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 8px rgba(0,0,0,0.5);
}

.dj-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 26px;
  padding: 4px;
  background: linear-gradient(180deg, #252525 0%, #1a1a1a 100%);
  border-radius: 3px;
  border: 1px solid #333;
}

.dj-knob {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #555 0%, #2a2a2a 50%, #1a1a1a 100%);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
  border: 1px solid #444;
}

.dj-knob::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 6px;
  background: linear-gradient(180deg, #666 0%, #444 100%);
  border-radius: 50% 50% 30% 30%;
}

.dj-knob::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 6px;
  background: var(--white);
  border-radius: 1px;
  box-shadow: 0 0 2px rgba(255,255,255,0.5);
}

.dj-fader-track {
  width: 8px;
  height: 24px;
  background: linear-gradient(90deg, #111 0%, #222 50%, #111 100%);
  border-radius: 2px;
  position: relative;
  border: 1px solid #333;
}

.dj-fader-track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 2px;
  bottom: 2px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #444 0%, #222 100%);
  border-radius: 1px;
}

.dj-fader-knob {
  width: 16px;
  height: 8px;
  background: linear-gradient(180deg, #777 0%, #444 50%, #333 100%);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 40%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.6);
  border: 1px solid #555;
}

.dj-fader-knob::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 2px;
  right: 2px;
  height: 1px;
  background: #555;
  transform: translateY(-50%);
}

.dj-channel-label {
  font-size: 0.55rem;
  color: var(--gray-light);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.dj-led {
  width: 6px;
  height: 6px;
  background: #222;
  border-radius: 50%;
  border: 1px solid #333;
  margin-bottom: 2px;
}

.dj-led.on {
  background: #2ecc71;
  box-shadow: 0 0 4px #2ecc71, 0 0 8px rgba(46,204,113,0.5);
}

/* --------------------------------------------------------------------------
   Scroll Reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity var(--dur-slow) var(--ease-apple),
              transform var(--dur-slow) var(--ease-apple);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   Gallery Grid
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
  background: var(--gray-dark);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-med) var(--ease-apple);
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--dur-fast);
}

.gallery-item:hover .gallery-caption { opacity: 1; }

.gallery-caption span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Contact Form
   -------------------------------------------------------------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 300;
  transition: var(--dur-fast);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-mid);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.04);
}

.form-group textarea { resize: vertical; min-height: 130px; }

/* --------------------------------------------------------------------------
   Floating back-to-home button (shown on inner pages)
   -------------------------------------------------------------------------- */
.fab-home {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-light);
  background: rgba(29,29,31,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow-md);
  transition: var(--dur-fast) var(--ease-apple);
  text-decoration: none;
}

.fab-home:hover {
  color: var(--white);
  background: rgba(29,29,31,0.96);
  transform: translateY(-2px);
}

.fab-home svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root { --navbar-h: 60px; }

  .nav-links,
  .nav-icons,
  .nav-sep,
  .nav-home-btn,
  .piano-wrap,
  .dj-mixer-wrap,
  .nav-center-wrap { display: none !important; }

  .nav-hamburger { display: flex; }

  .nav-drawer { display: flex; }

  .nav-inner { grid-template-columns: 1fr auto; }

  .nav-right { display: none; }

  .gallery-grid { grid-template-columns: 1fr; gap: 16px; }

  .form-row { grid-template-columns: 1fr; }

  .section { padding-block: 64px; }
}

@media (max-width: 480px) {
  .display { font-size: 2.2rem; }
  .headline { font-size: 1.8rem; }
}
