@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ==========================================================================
   DESIGN TOKENS & STYLING SYSTEM
   ========================================================================== */
:root {
  --obsidian-bg: hsl(240, 6%, 4%);
  --obsidian-deep: hsl(240, 6%, 2%);
  --charcoal-panel: hsl(240, 5%, 9%);
  --charcoal-panel-hover: hsl(240, 5%, 12%);
  
  --toyosu-gold: hsl(45, 60%, 53%);
  --toyosu-gold-bright: hsl(45, 75%, 60%);
  --toyosu-gold-dark: hsl(45, 45%, 35%);
  --toyosu-gold-glow: hsla(45, 60%, 53%, 0.15);
  --toyosu-gold-glow-strong: hsla(45, 60%, 53%, 0.35);
  
  --silk-cream: hsl(30, 20%, 93%);
  --silk-cream-muted: hsl(30, 10%, 70%);
  --silk-cream-dark: hsl(30, 10%, 40%);
  
  --border-subtle: hsla(0, 0%, 100%, 0.05);
  --border-gold-subtle: hsla(45, 60%, 53%, 0.15);
  --border-gold-focus: hsla(45, 60%, 53%, 0.5);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  scroll-behavior: smooth;
}

/* Custom Selection Highlight */
::selection {
  background-color: var(--toyosu-gold);
  color: var(--obsidian-bg);
}

/* ==========================================================================
   CSS RESET & CORE LAYOUT
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--obsidian-bg);
  color: var(--silk-cream);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--obsidian-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--charcoal-panel);
  border-radius: 4px;
  border: 2px solid var(--obsidian-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--toyosu-gold-dark);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.gold-text {
  color: var(--toyosu-gold);
  background: linear-gradient(135deg, var(--silk-cream) 30%, var(--toyosu-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.sub-header {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--toyosu-gold);
  margin-bottom: 0.8rem;
  display: block;
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
  /* Disabled Dot to keep original cursor fully active and avoid feeling slow */
  .custom-cursor-dot {
    display: none !important;
  }
  
  /* Outline acts as a beautiful, responsive lag trail behind the native fast cursor */
  .custom-cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid var(--toyosu-gold);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
    mix-blend-mode: screen;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s, background-color 0.3s;
  }
  
  body.cursor-hover .custom-cursor-outline {
    width: 44px;
    height: 44px;
    border-color: var(--toyosu-gold-bright);
    background-color: var(--toyosu-gold-glow);
    opacity: 0.85;
  }
  
  body.cursor-active .custom-cursor-outline {
    transform: translate(-50%, -50%) scale(0.85);
    background-color: var(--toyosu-gold-glow-strong);
  }
}

/* ==========================================================================
   LAYOUT STRUCTURE & CONTAINER
   ========================================================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 8rem 0;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   NAVIGATION / HEADER (Shrinking on Scroll)
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 100px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background-color: transparent;
  transition: var(--transition-smooth);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--toyosu-gold);
  border: 1px solid var(--toyosu-gold);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

nav {
  display: flex;
  gap: 2.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  color: var(--silk-cream-muted);
}

nav a:hover, nav a.active {
  color: var(--toyosu-gold);
}

/* Primary Luxury Button */
.btn-primary {
  position: relative;
  background: transparent;
  border: 1px solid var(--toyosu-gold);
  color: var(--toyosu-gold);
  padding: 0.8rem 1.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  overflow: hidden;
  transition: var(--transition-smooth);
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--toyosu-gold);
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn-primary:hover {
  color: var(--obsidian-bg);
  box-shadow: 0 0 20px var(--toyosu-gold-glow-strong);
}

.btn-primary:hover::before {
  width: 100%;
}

/* Native Scroll-driven Animation for Header */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes shrink-header {
      to {
        height: 70px;
        background-color: hsla(240, 6%, 4%, 0.85);
        backdrop-filter: blur(16px);
        border-bottom-color: var(--border-subtle);
        box-shadow: 0 4px 30px rgba(0,0,0,0.5);
      }
    }
    header {
      animation: shrink-header auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 120px;
    }
  }
}

/* ==========================================================================
   HERO SECTION (Cinematic Entrance)
   ========================================================================== */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  overflow: hidden;
  background: radial-gradient(circle at center, hsla(240, 6%, 8%, 0.4) 0%, var(--obsidian-bg) 100%);
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: brightness(0.7) contrast(1.1) grayscale(0.2);
  transform: scale(1.12); /* Initial cinematic zoom in */
  transition: transform 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.loaded .hero-bg-image {
  transform: scale(1.04); /* Cinematic pull out when preloader disappears */
}

#hero:hover .hero-bg-image {
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, var(--obsidian-bg) 100%),
              linear-gradient(to right, var(--obsidian-deep) 0%, transparent 50%, var(--obsidian-deep) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 2rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.8s; /* Start sliding up after the preloader swept away */
}

body.loaded .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-size: clamp(3rem, 7.5vw, 6rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-content .kanji {
  display: block;
  font-size: 2.2rem; /* Larger, more elegant and visible size */
  font-family: var(--font-serif);
  letter-spacing: 0.6em;
  text-indent: 0.6em;
  color: var(--toyosu-gold);
  margin-bottom: 1.8rem;
  opacity: 0.8;
  filter: drop-shadow(0 0 8px var(--toyosu-gold-glow));
}

@media (max-width: 768px) {
  .hero-content {
    padding-top: 110px; /* Safe padding to prevent crowding the fixed header on phone viewports */
  }
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--silk-cream-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-meta-value {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--toyosu-gold);
  margin-bottom: 0.2rem;
}

.hero-meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--silk-cream-dark);
}

/* ==========================================================================
   SCROLL-DRIVEN ENTRY/EXIT REVEALS
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(50px) scale(0.98);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Native CSS Scroll-driven animations for reveals */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fade-up {
      from {
        opacity: 0;
        transform: translateY(60px) scale(0.96);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
    .reveal-on-scroll {
      animation: fade-up auto linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 40%;
      /* Reset transition so they don't clash with native keyframes */
      transition: none;
    }
  }
}

/* ==========================================================================
   THE STORY (Chef & Importer)
   ========================================================================== */
.grid-two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

@media (max-width: 992px) {
  .grid-two-col {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

.story-text h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 2rem;
}

.story-lead {
  font-size: 1.15rem;
  color: var(--silk-cream);
  font-weight: 300;
  margin-bottom: 1.8rem;
  line-height: 1.7;
}

.story-p {
  color: var(--silk-cream-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.importer-badge {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--charcoal-panel);
  border-left: 3px solid var(--toyosu-gold);
  padding: 1.5rem;
  margin-top: 2.5rem;
  border-radius: 0 4px 4px 0;
}

.importer-badge-icon {
  font-size: 1.8rem;
  color: var(--toyosu-gold);
  line-height: 1;
}

.importer-badge-text h4 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
  color: var(--silk-cream);
}

.importer-badge-text p {
  font-size: 0.8rem;
  color: var(--silk-cream-muted);
  font-weight: 300;
}

.story-media {
  position: relative;
}

.story-image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.95);
  transition: var(--transition-smooth);
}

.story-media::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-top: 1px solid var(--toyosu-gold);
  border-right: 1px solid var(--toyosu-gold);
  z-index: -1;
  opacity: 0.6;
}

.story-media::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  border-bottom: 1px solid var(--toyosu-gold);
  border-left: 1px solid var(--toyosu-gold);
  z-index: -1;
  opacity: 0.6;
}

/* ==========================================================================
   THE OMAKASE EXPERIENCE
   ========================================================================== */
#experience {
  background: linear-gradient(180deg, var(--obsidian-bg) 0%, var(--obsidian-deep) 100%);
}

.experience-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

.experience-intro h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 1.5rem;
}

.experience-intro p {
  color: var(--silk-cream-muted);
  font-weight: 300;
  font-size: 1rem;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.experience-card {
  background-color: var(--charcoal-panel);
  border: 1px solid var(--border-subtle);
  padding: 3rem 2rem;
  border-radius: 4px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--toyosu-gold), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.experience-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold-subtle);
  background-color: var(--charcoal-panel-hover);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.experience-card:hover::before {
  transform: translateX(100%);
}

.card-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--silk-cream-dark);
  line-height: 1;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}

.experience-card:hover .card-num {
  color: var(--toyosu-gold);
  opacity: 0.6;
}

.experience-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--silk-cream);
}

.experience-card p {
  font-size: 0.9rem;
  color: var(--silk-cream-muted);
  font-weight: 300;
  line-height: 1.6;
}

/* Highlights panel (Weekend restriction) */
.exclusivity-banner {
  margin-top: 6rem;
  background: radial-gradient(ellipse at center, hsla(45, 60%, 53%, 0.08) 0%, transparent 80%), var(--charcoal-panel);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 4px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

@media (max-width: 768px) {
  .exclusivity-banner {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.5rem;
    gap: 2rem;
  }
}

.banner-content {
  flex: 1;
}

.banner-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.banner-content p {
  color: var(--silk-cream-muted);
  font-size: 0.95rem;
  font-weight: 300;
  max-width: 600px;
}

.banner-cta {
  flex-shrink: 0;
}

/* ==========================================================================
   THE DIRECTORY / GALLERY
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.85) contrast(1.05);
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: opacity 0.4s ease;
}

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

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

.gallery-item-overlay h4 {
  font-size: 1.2rem;
  color: var(--toyosu-gold);
  margin-bottom: 0.2rem;
}

.gallery-item-overlay p {
  font-size: 0.8rem;
  color: var(--silk-cream-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Elegant Grid layout for different images */
.gallery-item.col-6-row-2 {
  grid-column: span 6;
  grid-row: span 2;
}

.gallery-item.col-6-row-1 {
  grid-column: span 6;
  grid-row: span 1;
}

.gallery-item.col-3-row-1 {
  grid-column: span 3;
  grid-row: span 1;
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 1.5rem;
  }
  
  .gallery-item.col-6-row-2,
  .gallery-item.col-6-row-1,
  .gallery-item.col-3-row-1 {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item.col-6-row-2,
  .gallery-item.col-6-row-1,
  .gallery-item.col-3-row-1 {
    grid-column: span 1;
  }
}

/* ==========================================================================
   RESERVATIONS & BOOKING SYSTEM
   ========================================================================== */
#reservations {
  background: radial-gradient(circle at bottom, hsla(45, 60%, 53%, 0.05) 0%, var(--obsidian-bg) 60%);
  text-align: center;
}

.res-box {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border-subtle);
  background-color: var(--charcoal-panel);
  padding: 5rem 3rem;
  border-radius: 6px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.res-box::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid hsla(45, 60%, 53%, 0.04);
  pointer-events: none;
}

.res-box h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 1.5rem;
}

.res-box p {
  color: var(--silk-cream-muted);
  font-size: 1rem;
  max-width: 550px;
  margin: 0 auto 2.5rem auto;
  font-weight: 300;
}

.res-notes {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 3rem;
}

@media (max-width: 768px) {
  .res-notes {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.res-note-item h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--toyosu-gold);
  margin-bottom: 0.4rem;
}

.res-note-item p {
  font-size: 0.85rem;
  color: var(--silk-cream-dark);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   INTERACTIVE BOOKING MODAL (Glassmorphism)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(2, 2, 3, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  width: 90%;
  max-width: 550px;
  background: hsla(240, 5%, 9%, 0.85);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 6px;
  padding: 3rem 2.5rem;
  position: relative;
  transform: translateY(40px) scale(0.97);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 70px rgba(0,0,0,0.8), inset 0 1px 0 hsla(0, 0%, 100%, 0.05);
  box-shadow: 0 0 40px var(--toyosu-gold-glow);
}

.modal-backdrop.open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--silk-cream-muted);
  cursor: none;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--toyosu-gold);
}

.modal-header {
  margin-bottom: 2rem;
  text-align: center;
}

.modal-header h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.modal-header p {
  font-size: 0.85rem;
  color: var(--silk-cream-muted);
  font-weight: 300;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.form-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--silk-cream-muted);
  font-weight: 500;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  background: rgba(2, 2, 3, 0.5);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1rem;
  border-radius: 4px;
  color: var(--silk-cream);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  border-color: var(--border-gold-focus);
  box-shadow: 0 0 10px var(--toyosu-gold-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.weekend-warning {
  font-size: 0.75rem;
  color: var(--toyosu-gold);
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.85;
}

.btn-submit {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
}

/* Success panel state inside modal */
.success-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 0;
}

.success-panel.visible {
  display: flex;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--toyosu-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--toyosu-gold);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 20px var(--toyosu-gold-glow);
}

.success-panel h4 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.success-panel p {
  color: var(--silk-cream-muted);
  font-size: 0.9rem;
  font-weight: 300;
  max-width: 350px;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background-color: var(--obsidian-deep);
  padding: 5rem 0;
  font-size: 0.85rem;
  color: var(--silk-cream-dark);
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.footer-brand h3 {
  color: var(--silk-cream);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-weight: 300;
  max-width: 300px;
  line-height: 1.6;
}

.footer-links h4, .footer-contact h4 {
  font-family: var(--font-sans);
  color: var(--silk-cream);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a:hover {
  color: var(--toyosu-gold);
}

.footer-contact p {
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-link {
  font-size: 1.1rem;
  color: var(--silk-cream-dark);
  transition: var(--transition-fast);
}

.social-link:hover {
  color: var(--toyosu-gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

.footer-bottom p {
  margin: 0;
}

/* ==========================================================================
   CINEMATIC INTRO PRELOADER
   ========================================================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--obsidian-bg);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1), opacity 1.2s ease;
}

body.loaded #preloader {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-kanji {
  font-family: var(--font-serif);
  font-size: 5.5rem;
  color: var(--toyosu-gold);
  line-height: 1;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: scale(0.85);
  filter: drop-shadow(0 0 15px var(--toyosu-gold-glow));
  animation: preloader-kanji-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.preloader-line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--toyosu-gold), transparent);
  margin-bottom: 1.5rem;
  animation: preloader-line-expand 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

.preloader-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  color: var(--silk-cream);
  opacity: 0;
  transform: translateY(10px);
  animation: preloader-fade-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.2s;
  font-weight: 400;
}

.preloader-subtitle {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--silk-cream-dark);
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  animation: preloader-fade-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.4s;
  font-weight: 500;
}

@keyframes preloader-kanji-in {
  to {
    opacity: 0.95;
    transform: scale(1);
  }
}

@keyframes preloader-line-expand {
  to {
    width: 140px;
  }
}

@keyframes preloader-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
