/* ============================================
   KATAGI.DE - Japan Vanlife & Travel
   Minimal, photo-first design
   ============================================ */

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

:root {
  --color-bg: #f5f5f0;
  --color-bg-dark: #1a1a2e;
  --color-text: #2c2c2c;
  --color-text-light: #6b6b6b;
  --color-text-on-dark: #e8e8e3;
  --color-accent: #c9a96e;
  --color-accent-hover: #b8944d;
  --color-border: #ddd;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Georgia', 'Times New Roman', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --max-width: 1200px;
  --nav-height: 64px;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  transition: background 0.3s ease;
}

.nav--transparent {
  background: transparent;
  backdrop-filter: none;
}

.nav--scrolled {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.05em;
}

.nav__logo span {
  color: var(--color-accent);
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-accent);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav__hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease;
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero__image {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Subpage hero: image flows naturally, no cropping */
.hero--subpage {
  height: auto;
  min-height: 0;
  max-height: 80vh;
  display: block;
}

.hero--subpage .hero__image {
  position: relative;
  inset: auto;
  object-fit: none;
  width: 100%;
  height: auto;
}

.hero--subpage .hero__overlay {
  position: absolute;
  inset: 0;
}

.hero--subpage .hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 0 0 2rem 2rem;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,26,46,0.1) 0%,
    rgba(26,26,46,0.3) 50%,
    rgba(26,26,46,0.7) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 3rem 3.5rem;
  max-width: 700px;
  background: rgba(26, 26, 46, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  margin: 0 0 4rem 4rem;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero__jp {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2rem;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* --- Section Commons --- */
.section {
  padding: 6rem 2rem;
}

.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.3;
}

.section__jp {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

.section--dark .section__jp {
  color: rgba(255,255,255,0.4);
}

/* --- Photo Grid --- */
.photo-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1;
  cursor: pointer;
}

.photo-card--wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.photo-card--tall {
  grid-row: span 2;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-card:hover img {
  transform: scale(1.05);
}

.photo-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.photo-card:hover .photo-card__overlay {
  opacity: 1;
}

.photo-card__title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
}

.photo-card__location {
  color: var(--color-accent);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* --- Feature Cards (Destinations, Blog, Vanlife) --- */
.features {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3/4;
  display: flex;
  align-items: flex-end;
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature-card:hover img {
  transform: scale(1.05);
}

.feature-card__content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  width: 100%;
  background: linear-gradient(to top, rgba(26,26,46,0.85) 0%, transparent 100%);
}

.feature-card__label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  font-weight: 400;
}

.feature-card__desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* --- Blog Preview --- */
.blog-list {
  max-width: 800px;
  margin: 0 auto;
}

.blog-preview {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.blog-preview:hover {
  opacity: 0.85;
}

.blog-preview__image {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.blog-preview__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-preview__date {
  font-size: 0.8rem;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.blog-preview__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
  margin: 0.5rem 0;
  font-weight: 400;
}

.blog-preview__excerpt {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Footer --- */
.footer {
  background: var(--color-bg-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 3rem 2rem;
  text-align: center;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer__links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

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

.footer__copy {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* --- Page Header (for subpages) --- */
.page-header {
  position: relative;
  max-height: 80vh;
  overflow: hidden;
}

.page-header img {
  width: 100%;
  height: auto;
  display: block;
}

.page-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,26,46,0.1) 0%, rgba(26,26,46,0.6) 100%);
  pointer-events: none;
}

.page-header__content {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 3rem 4rem;
}

.page-header__title {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: #fff;
  font-weight: 400;
}

.page-header__jp {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
}

/* --- CTA Button --- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.btn:hover {
  background: var(--color-accent);
  color: var(--color-bg-dark);
}

/* --- Legal Pages --- */
.legal-page p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  margin: 2.5rem 0 1rem;
}

.legal-subheading {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.legal-page a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero__title {
    font-size: 2.5rem;
  }
  .hero__content {
    padding: 2rem;
    margin: 0 0 2rem 2rem;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .feature-card {
    aspect-ratio: 16/9;
  }
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .photo-card--wide {
    grid-column: span 1;
    aspect-ratio: 1;
  }
  .blog-preview {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .section__title {
    font-size: 2rem;
  }
  .page-header__title {
    font-size: 2.2rem;
  }
  .page-header__content {
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  .nav__links {
    display: none;
  }
  .nav__hamburger {
    display: flex;
  }
  .nav__links--open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(26,26,46,0.98);
    padding: 2rem;
    gap: 1.5rem;
  }
  .hero__title {
    font-size: 2rem;
  }
  .hero {
    min-height: 500px;
  }
  .hero__content {
    margin: 0 1rem 2rem 1rem;
    padding: 1.5rem;
  }
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 4rem 1.5rem;
  }
}
