/* =============================================
   Hiroshi Tanita Photography
   ============================================= */

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

:root {
  --bg: #0a0a0a;
  --surface: #111;
  --border: #1e1e1e;
  --text: #d8d8d8;
  --muted: #666;
  --accent: #f0f0f0;
  --header-h: 64px;
  --max-w: 1600px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Helvetica Neue', Arial, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* =============================================
   Header & Navigation
   ============================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.site-title {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin-left: auto;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.85rem;
  height: var(--header-h);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--accent);
}

/* Dropdown arrow */
.has-submenu > a::after {
  content: '▾';
  font-size: 0.6rem;
  margin-left: 0.2rem;
}

/* Submenu */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(12, 12, 12, 0.97);
  border: 1px solid var(--border);
  border-top: none;
  list-style: none;
  min-width: 160px;
}

.has-submenu:hover .submenu {
  display: block;
}

.submenu li a {
  display: block;
  padding: 0.65rem 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.submenu li a:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

/* =============================================
   Hero Section (Homepage only)
   ============================================= */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  padding: 3rem 3rem 5rem;
  max-width: 700px;
}

.hero-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 200;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
  line-height: 2;
}

.hero-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.7rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  transition: background 0.3s, border-color 0.3s;
}

.hero-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Hero navigation dots */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  right: 3rem;
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
  padding: 0;
}

.hero-dot.active {
  background: #fff;
}

/* =============================================
   Album Navigation Cards (Homepage)
   ============================================= */

.album-nav {
  padding: 4rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.album-nav-title {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

.album-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
}

.album-card {
  display: block;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface);
}

.album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.6);
}

.album-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.4);
}

.album-card-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.album-card-name {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
}

.album-card-count {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25rem;
}

/* =============================================
   Album / Gallery Pages
   ============================================= */

.page-content {
  padding-top: var(--header-h);
}

.album-header {
  padding: 3rem 2rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.album-breadcrumb {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.album-breadcrumb a:hover {
  color: var(--accent);
}

.album-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 200;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.album-meta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* =============================================
   Gallery Grid
   ============================================= */

.gallery-section {
  padding: 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.gallery-grid {
  column-count: 3;
  column-gap: 3px;
}

.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 3px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.75);
}

.gallery-item-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 0.85rem 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

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

/* =============================================
   Footer
   ============================================= */

.site-footer {
  padding: 3rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 2.5;
  letter-spacing: 0.05em;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-nav a:hover {
  color: var(--accent);
}

/* =============================================
   Loading State
   ============================================= */

.gallery-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gallery-loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 1rem;
  border: 1px solid var(--muted);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =============================================
   4our Seasons Index Page
   ============================================= */

.seasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.season-card {
  display: block;
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface);
}

.season-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.55);
}

.season-card:hover img {
  transform: scale(1.04);
  filter: brightness(0.38);
}

.season-card-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.season-card-name {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 200;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1024px) {
  .gallery-grid { column-count: 2; }
  .seasons-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 8, 8, 0.98);
    flex-direction: column;
    overflow-y: auto;
    padding: 1rem 0 2rem;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu > li > a {
    height: auto;
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
  }

  .has-submenu > a::after {
    content: '▾';
    margin-left: auto;
  }

  .submenu {
    position: static;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    padding-left: 1rem;
  }

  .has-submenu.is-open .submenu {
    display: block;
  }

  .menu-toggle { display: block; }

  .hero-content {
    padding: 2rem 1.5rem 4rem;
  }

  .hero-dots { right: 1.5rem; }

  .album-header,
  .album-nav,
  .gallery-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .gallery-grid { column-count: 2; }
  .album-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .gallery-grid { column-count: 1; }
  .album-cards { grid-template-columns: 1fr; }
  .seasons-grid { gap: 2px; }
}
