/* ============================================
   MO15 Brands - Black & White Glass Morphism
   ============================================ */

:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --gray-100: #e5e5e5;
  --gray-200: #a3a3a3;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: rgba(0, 0, 0, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* Subtle noise texture overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  z-index: 1000;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Glass morphism base */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 
    0 8px 32px var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.tagline {
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--gray-200);
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport - better on mobile */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 1.5rem 5rem; /* Extra bottom padding for fixed footer */
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-image-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: grayscale(100%) contrast(1.1);
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--gray-200);
  font-size: 1.25rem;
}

.hero-image-placeholder small {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Dark gradient overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.7) 50%,
    rgba(10, 10, 10, 0.95) 100%
  );
  pointer-events: none;
}

/* Hero content card - glass morphism */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 2.5rem;
  border-radius: 24px;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--gray-200);
  margin-bottom: 2.5rem;
}

/* Social buttons */
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 12px;
  transition: all 0.3s ease;
  touch-action: manipulation;
  white-space: nowrap; /* Prevent button text from wrapping */
}

.btn-social svg {
  width: 20px;
  height: 20px;
}

.btn-social:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.btn-social:active {
  transform: translateY(0);
}

/* Coming Soon - Connect button */
.hero-content--compact .hero-subtitle {
  margin-bottom: 2rem;
}

.btn-connect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  border-radius: 12px;
  transition: all 0.3s ease;
  touch-action: manipulation;
}

.btn-connect:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.btn-connect:active {
  transform: translateY(0);
}

/* ============ SUB-BRANDS ============ */
.sub-brands {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.sub-brands-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gray-200);
  margin-bottom: 1.25rem;
}

.sub-brand-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sub-brand-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: 12px;
}

.sub-brand-name {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.sub-brand-links {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0; /* Prevent icons from wrapping */
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  color: var(--white);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  touch-action: manipulation;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* ============ LOCATION CARD ============ */
.location-card {
  margin-top: 2rem;
  padding: 1.5rem 1.5rem 1.75rem;
  border-radius: 16px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.location-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gray-200);
  margin-bottom: 0.75rem;
}

.location-address {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.btn-location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: 10px;
  transition: all 0.3s ease;
  touch-action: manipulation;
}

.btn-location:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* ============ FOOTER ============ */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  text-align: center;
}

.footer p {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--gray-200);
}

/* ============ RESPONSIVE ============ */

/* Large desktop & ultrawide - constrain content */
@media (min-width: 1400px) {
  .hero-content {
    max-width: 600px;
    padding: 4rem 3rem;
  }

  .hero-content h1 {
    font-size: clamp(3rem, 4vw, 4.5rem);
  }
}

/* Desktop */
@media (min-width: 1024px) and (max-width: 1399px) {
  .hero-content {
    max-width: 580px;
  }
}

/* Tablet landscape */
@media (max-width: 1024px) {
  .hero {
    padding: 5.5rem 1.5rem 5rem;
  }

  .hero-content {
    padding: 2.75rem 2.25rem;
  }
}

/* Tablet & small desktop */
@media (max-width: 900px) {
  .hero {
    padding: 5rem 1.25rem 5rem;
  }

  .hero-content {
    padding: 2.5rem 2rem;
    max-width: 100%;
    margin: 0 0.5rem;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.08em;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
  }

  .social-buttons {
    gap: 0.75rem;
  }

  .btn-social {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .header {
    padding: 1rem 1.5rem;
  }

  .hero {
    padding: 5rem 1rem 5rem;
    align-items: center;
  }

  .hero-content {
    padding: 1.5rem 1.25rem;
    border-radius: 20px;
    margin: 0;
  }

  /* Social buttons stacked vertically on tablet */
  .social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-social {
    width: 100%;
    justify-content: center;
  }

  .sub-brands {
    margin-top: 1.25rem;
    padding-top: 1rem;
  }

  .sub-brands-title {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }

  .footer {
    padding: 0.75rem 1rem;
  }

  .footer p {
    font-size: 0.7rem;
  }
}

/* Mobile - compact layout to fit without scrolling */
@media (max-width: 640px) {
  .header {
    padding: 0.5rem 0.75rem;
  }

  .logo {
    font-size: 1.25rem;
    letter-spacing: 0.08em;
  }

  .tagline {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .hero {
    padding: 4rem 0.5rem 3.5rem;
    align-items: center;
  }

  /* Compact hero-content - fits in viewport, no page scroll */
  .hero-content {
    padding: 1rem 1rem;
    border-radius: 14px;
    max-height: calc(100dvh - 7rem);
    overflow-y: auto; /* Scroll within card only if needed */
    -webkit-overflow-scrolling: touch;
  }

  .hero-content h1 {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
  }

  .hero-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
  }

  /* Social buttons stacked vertically */
  .social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .btn-social {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    min-height: 44px;
    gap: 0.5rem;
  }

  .btn-social svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .btn-connect {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
    min-height: 40px;
  }

  .hero-content--compact .hero-subtitle {
    margin-bottom: 1rem;
  }

  /* Sub-brands - compact row layout */
  .sub-brands {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top-width: 1px;
  }

  .sub-brands-title {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
  }

  .sub-brand-list {
    gap: 0.4rem;
  }

  .sub-brand-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
  }

  .sub-brand-name {
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  .btn-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }

  .btn-icon svg {
    width: 16px;
    height: 16px;
  }

  .footer {
    padding: 0.5rem 0.5rem;
  }

  .footer p {
    font-size: 0.6rem;
  }

  .location-card {
    margin-top: 1rem;
    padding: 1rem 1rem 1.25rem;
    border-radius: 12px;
  }

  .location-title {
    font-size: 0.65rem;
    margin-bottom: 0.5rem;
  }

  .location-address {
    font-size: 0.75rem;
    margin-bottom: 1rem;
    line-height: 1.5;
  }

  .btn-location {
    padding: 0.5rem 1.25rem;
    font-size: 0.7rem;
  }
}

/* Small mobile */
@media (max-width: 380px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .tagline {
    display: none;
  }
}

/* Extra small - oldest phones */
@media (max-width: 320px) {
  .header {
    padding: 0.75rem 0.5rem;
  }

  .logo {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
  }

  .hero {
    padding: 4.5rem 0.5rem 5rem;
  }

  .hero-content {
    padding: 1.5rem 1rem;
    border-radius: 12px;
  }

  .hero-content h1 {
    font-size: 1.35rem;
  }

  .hero-subtitle {
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .btn-connect,
  .btn-social {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }

  .sub-brand-item {
    padding: 0.875rem;
  }

  .sub-brand-name {
    font-size: 0.85rem;
  }

  .footer p {
    font-size: 0.65rem;
  }
}

/* Short viewport - mobile landscape, foldables */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 5rem 1rem 4rem;
    align-items: flex-start;
    overflow-y: auto;
  }

  .hero-content {
    margin: 1rem 0;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    margin-bottom: 1rem;
  }

  .sub-brands {
    margin-top: 1rem;
    padding-top: 1rem;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Safe area for notched devices (iPhone X+, etc.) */
@supports (padding: env(safe-area-inset-top)) {
  .header {
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }

  .footer {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .hero {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}
