/* -------------------------------------------------------------
   Wellhouse Lane - Brand Stylesheet
   Fonts: DM Serif Display & Space Grotesk
   Aesthetics: Premium, Light, Editorial Minimalist
   ------------------------------------------------------------- */

/* Custom CSS variables */
:root {
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Color Palette */
  --bg-primary: #FAF9F5;      /* Warm Gallery White */
  --bg-secondary: #F4F2EC;    /* Soft Sand */
  --text-primary: #1A1917;    /* Ink Charcoal */
  --text-secondary: #686661;  /* Soft Slate */
  --accent-color: #B8860B;    /* Dark Muted Gold */
  --border-color: #E6E4DF;    /* Warm Gray Border */
  --grid-line-color: rgba(26, 25, 23, 0.04);
  
  /* Layout Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* -------------------------------------------------------------
   Background & Aesthetic Effects
   ------------------------------------------------------------- */

/* Accent light glow */
.ambient-glow {
  position: fixed;
  top: -10vw;
  left: 25vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(184, 134, 11, 0.04) 0%, rgba(250, 249, 245, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Designer grid background overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-image: 
    linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.8;
}

/* Page Container wrapper */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .app-container {
    padding: 0 24px;
  }
}

/* -------------------------------------------------------------
   Header Styling
   ------------------------------------------------------------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  border-bottom: 1px solid var(--border-color);
  opacity: 0;
  animation: fadeInDown 0.8s forwards 0.2s;
}

.brand-tag {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

.studio-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #2ECC71;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2.2s infinite;
}

/* -------------------------------------------------------------
   Hero Section & Centered Logo
   ------------------------------------------------------------- */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 0 40px 0;
}

/* Logo container designed to float and scale centered */
.logo-container {
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
  position: relative;
  display: inline-block;
}

.brand-logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 4px 12px rgba(26, 25, 23, 0.03));
}

.logo-container:hover .brand-logo {
  transform: scale(1.03);
}

/* Editorial Copy */
.hero-copy {
  max-width: 720px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
}

.hero-description {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

/* CTA Buttons & Interactive elements */
.cta-container {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 1s;
  margin-bottom: 32px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 100px;
  border: 1px solid var(--text-primary);
  transition: var(--transition-fast);
  box-shadow: 0 4px 20px rgba(26, 25, 23, 0.05);
}

.cta-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button:hover {
  background-color: transparent;
  color: var(--text-primary);
  box-shadow: 0 4px 25px rgba(26, 25, 23, 0.08);
}

.cta-button:hover .cta-arrow {
  transform: translateX(6px);
}

/* -------------------------------------------------------------
   Roster Grid Section
   ------------------------------------------------------------- */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: var(--border-color);
  gap: 1px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  margin: 60px 0 80px 0;
  opacity: 0;
  transform: translateY(25px);
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.2s;
}

.roster-item {
  background-color: var(--bg-primary);
  padding: 40px 28px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.roster-item:hover {
  background-color: var(--bg-secondary);
}

.roster-number {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.roster-label {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.roster-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 300;
}

@media (max-width: 992px) {
  .roster-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .roster-grid {
    grid-template-columns: 1fr;
    margin: 40px 0 60px 0;
  }
  .roster-item {
    padding: 32px 24px;
  }
}

/* -------------------------------------------------------------
   Footer Section
   ------------------------------------------------------------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--border-color);
  opacity: 0;
  animation: fadeInUp 0.8s forwards 1.4s;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.copyright-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.footer-address {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-secondary);
  opacity: 0.85;
  letter-spacing: 0.02em;
}

.footer-nav {
  display: flex;
  gap: 32px;
}

.footer-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text-primary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-link:hover::after {
  width: 100%;
}

.footer-link:hover {
  color: var(--text-primary);
}

@media (max-width: 576px) {
  .site-footer {
    flex-direction: column;
    gap: 20px;
    padding: 32px 0 48px 0;
    text-align: center;
  }
  .footer-nav {
    justify-content: center;
  }
}

/* -------------------------------------------------------------
   Animations Keyframes
   ------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 5px rgba(46, 204, 113, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

/* -------------------------------------------------------------
   404 Page Styling
   ------------------------------------------------------------- */
.error-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 0;
}

.error-logo-container {
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
  position: relative;
  display: inline-block;
}

.error-logo {
  width: 99%;
  max-width: 300px;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 4px 12px rgba(26, 25, 23, 0.03));
}

.error-logo-container:hover .error-logo {
  transform: scale(1.03);
}

.error-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
}

.error-subtitle {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--text-primary);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
}

.error-text {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 36px auto;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.7s;
}

