/* ========================================
   Seeking Flavors — Style
   Warm & Cozy palette
   ======================================== */

:root {
  --cream: #FFF8F0;
  --warm-white: #FFFDF9;
  --sand: #F5E6D3;
  --caramel: #D4A574;
  --brown: #8B6914;
  --dark-brown: #3D2B1F;
  --charcoal: #2C2C2C;
  --soft-black: #1A1A1A;
  --red-accent: #C0392B;
  --gold: #C8A96E;
  --shadow: rgba(61, 43, 31, 0.08);
  --shadow-md: rgba(61, 43, 31, 0.12);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', 'Noto Sans JP', -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Playfair Display', 'Noto Sans JP', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--soft-black);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

/* ========================================
   Language Toggle
   ======================================== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.lang-toggle {
  background: var(--warm-white);
  border: 1.5px solid var(--sand);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-weight: 400;
  color: var(--dark-brown);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.lang-toggle:hover {
  background: var(--sand);
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(255, 248, 240, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 165, 116, 0.15);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 12px 40px;
  box-shadow: 0 4px 30px var(--shadow);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 64px;
  width: auto;
  transition: var(--transition);
  mix-blend-mode: multiply;
}

.navbar.scrolled .nav-logo-img {
  height: 50px;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--dark-brown);
  position: relative;
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--caramel);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--dark-brown);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    160deg,
    var(--cream) 0%,
    var(--sand) 40%,
    #EAD5BD 70%,
    var(--caramel) 100%
  );
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(200, 169, 110, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="rgba(61,43,31,0.03)"/><circle cx="75" cy="75" r="0.5" fill="rgba(61,43,31,0.03)"/><circle cx="50" cy="10" r="0.3" fill="rgba(61,43,31,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 24px;
  animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 20px rgba(61, 43, 31, 0.15));
  animation: fadeUp 1s ease-out 0.1s both;
  mix-blend-mode: multiply;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: var(--soft-black);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  animation: fadeUp 1s ease-out 0.2s both;
}

.hero-tagline {
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dark-brown);
  opacity: 0.7;
  margin-bottom: 24px;
  font-weight: 400;
  animation: fadeUp 1s ease-out 0.3s both;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--dark-brown);
  opacity: 0.85;
  margin-bottom: 40px;
  line-height: 1.8;
  animation: fadeUp 1s ease-out 0.4s both;
}

.btn-primary {
  display: inline-block;
  background: var(--soft-black);
  color: var(--cream);
  padding: 16px 40px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: var(--transition);
  animation: fadeUp 1s ease-out 0.5s both;
}

.btn-primary:hover {
  background: var(--dark-brown);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(61, 43, 31, 0.2);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: fadeUp 1s ease-out 0.8s both;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 1.5px solid var(--dark-brown);
  border-bottom: 1.5px solid var(--dark-brown);
  transform: rotate(45deg);
  opacity: 0.4;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
  50% { transform: rotate(45deg) translate(5px, 5px); opacity: 0.8; }
}

/* ========================================
   About
   ======================================== */
.about {
  padding: 120px 0;
  background: var(--warm-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

/* Stylish photo frames */
.photo-frame {
  position: relative;
}

.photo-frame-accent {
  position: absolute;
  inset: -12px;
  border: 2px solid var(--caramel);
  border-radius: 20px;
  opacity: 0.3;
  z-index: -1;
  transform: rotate(3deg);
}

.about-photo {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: 0 25px 60px rgba(61, 43, 31, 0.18);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-frame:hover .about-photo {
  transform: scale(1.02) rotate(-1deg);
}

.image-placeholder {
  background: linear-gradient(135deg, var(--sand) 0%, #EAD5BD 100%);
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--caramel);
  border: 2px dashed rgba(212, 165, 116, 0.3);
}

.image-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.image-placeholder span {
  font-size: 0.85rem;
  opacity: 0.6;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--caramel);
  font-weight: 500;
  margin-bottom: 16px;
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.about-text > p {
  font-size: 1rem;
  color: var(--charcoal);
  opacity: 0.8;
  margin-bottom: 40px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  border-radius: 12px;
}

.feature strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.feature p {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ========================================
   Cookies
   ======================================== */
.cookies {
  padding: 120px 0;
  background: var(--cream);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.section-header > p {
  font-size: 1rem;
  opacity: 0.7;
  max-width: 500px;
  margin: 0 auto;
}

.cookies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.cookie-card {
  background: var(--warm-white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(212, 165, 116, 0.1);
}

.cookie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px var(--shadow-md);
}

.cookie-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.cookie-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.cookie-card-wide .cookie-image {
  aspect-ratio: auto;
}

.cookie-card-wide .cookie-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.cookie-info {
  padding: 24px;
}

.cookie-info h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
}

.cookie-info p {
  font-size: 0.88rem;
  opacity: 0.65;
  line-height: 1.6;
}

/* ========================================
   Marquee
   ======================================== */
.marquee {
  background: var(--soft-black);
  color: var(--cream);
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  font-weight: 300;
  padding-right: 8px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========================================
   Videos
   ======================================== */
.videos {
  padding: 120px 0;
  background: var(--cream);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.videos-loading,
.videos-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.5;
  padding: 60px 0;
}

.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--warm-white);
  border: 1px solid rgba(212, 165, 116, 0.1);
  transition: var(--transition);
  display: block;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px var(--shadow-md);
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: var(--transition);
}

.video-card:hover .video-play {
  opacity: 1;
}

.video-play svg {
  width: 48px;
  height: 48px;
  color: white;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.video-info {
  padding: 16px 20px;
}

.video-info h4 {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--soft-black);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-views {
  font-size: 0.75rem;
  opacity: 0.45;
  margin-top: 6px;
  display: block;
}

.videos-cta {
  text-align: center;
}

/* ========================================
   Story
   ======================================== */
.story {
  padding: 120px 0;
  background: var(--warm-white);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 24px;
}

.story-text p {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 16px;
  line-height: 1.8;
}

.story-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.story-photo {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(61, 43, 31, 0.15);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-frame-1 {
  position: relative;
  transform: rotate(-2deg);
}

.story-frame-1:hover .story-photo {
  transform: rotate(2deg) scale(1.02);
}

.story-frame-2 {
  position: relative;
  margin-top: 48px;
  transform: rotate(2deg);
}

.story-frame-2:hover .story-photo {
  transform: rotate(-2deg) scale(1.02);
}

.photo-frame figcaption {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--dark-brown);
  opacity: 0.55;
  margin-top: 12px;
  text-align: center;
  letter-spacing: 0.01em;
}

.story-img-1 {
  aspect-ratio: 3/4;
  object-position: center 20%;
}

.story-img-2 {
  aspect-ratio: 3/4;
  object-position: center 30%;
}

/* ========================================
   Contact
   ======================================== */
.contact {
  padding: 120px 0;
  background: var(--cream);
}

.contact-card {
  text-align: center;
  background: linear-gradient(135deg, var(--sand) 0%, #EAD5BD 50%, rgba(212, 165, 116, 0.3) 100%);
  border-radius: 24px;
  padding: 80px 40px;
  max-width: 700px;
  margin: 0 auto;
}

.contact-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 24px;
  opacity: 0.85;
  mix-blend-mode: multiply;
}

.contact-card h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.contact-card > p {
  font-size: 1.05rem;
  opacity: 0.75;
  margin-bottom: 36px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.contact-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 400;
  transition: var(--transition);
}

.btn-social svg {
  width: 20px;
  height: 20px;
}

.btn-social:hover {
  transform: translateY(-2px);
}

.btn-instagram {
  background: var(--soft-black);
  color: var(--cream);
}

.btn-instagram:hover {
  background: var(--dark-brown);
  box-shadow: 0 8px 30px rgba(61, 43, 31, 0.2);
}

.btn-youtube {
  background: transparent;
  color: var(--soft-black);
  border: 1.5px solid var(--dark-brown);
}

.btn-youtube:hover {
  background: var(--soft-black);
  color: var(--cream);
  border-color: var(--soft-black);
  box-shadow: 0 8px 30px rgba(61, 43, 31, 0.2);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--soft-black);
  color: var(--cream);
  padding: 60px 0 40px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--cream);
  opacity: 0.9;
  margin-bottom: 4px;
}

.footer-brand p {
  font-size: 0.85rem;
  opacity: 0.5;
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--cream);
  opacity: 0.6;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
}

.footer-links svg {
  width: 22px;
  height: 22px;
}

.footer-copy {
  font-size: 0.78rem;
  opacity: 0.35;
  margin-top: 8px;
}

/* ========================================
   Scroll Animations
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Mobile Responsive
   ======================================== */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 248, 240, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1.5rem;
    font-weight: 400;
  }

  .nav-hamburger {
    display: flex;
    z-index: 1002;
  }

  .nav-right {
    z-index: 1002;
  }

  .lang-toggle {
    z-index: 1002;
  }

  .nav-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .cookies-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 100%;
  }

  .videos-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .story-images {
    max-width: 500px;
  }

  .hero-logo {
    width: 120px;
    height: 120px;
  }

  .navbar {
    padding: 14px 20px;
  }

  .contact-card {
    padding: 60px 24px;
  }
}

@media (max-width: 600px) {
  .cookies-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cookie-card-wide {
    grid-template-columns: 1fr;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }

  .story-images {
    grid-template-columns: 1fr 1fr;
  }

  .story-img-2 {
    margin-top: 24px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-logo {
    width: 100px;
    height: 100px;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .about, .cookies, .story, .contact {
    padding: 80px 0;
  }
}
