/* 
  Komorebi Cafe - CSS Stylesheet
  Color Palette:
  Ivory: #F9F8F6
  Beige: #EFEBE4
  Brown: #8B6B5D
  Dark Gray: #333333
  Accent: #A68B7C
*/

:root {
  --color-ivory: #F9F8F6;
  --color-beige: #EFEBE4;
  --color-brown: #8B6B5D;
  --color-dark-gray: #333333;
  --color-accent: #A68B7C;
  --color-white: #FFFFFF;
  
  --font-main: 'Zen Kaku Gothic New', sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
  font-family: var(--font-main);
  color: var(--color-dark-gray);
  background-color: var(--color-ivory);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 100px 0;
}

.bg-beige {
  background-color: var(--color-beige);
}

.bg-dark {
  background-color: var(--color-dark-gray);
  color: var(--color-ivory);
}

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

.mt-4 {
  margin-top: 2rem;
}

.w-100 {
  width: 100%;
}

/* Typography */
h1, h2, h3, h4, .logo-text, .font-serif {
  font-family: var(--font-serif);
  font-weight: 400;
}

.section-title {
  font-size: 2.5rem;
  color: var(--color-brown);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  font-family: var(--font-main);
  font-weight: 500;
}

.section-subtitle {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.bg-dark .section-title {
  color: var(--color-ivory);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline, .btn-outline-sm {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  border: none;
}

.btn-primary {
  background-color: var(--color-brown);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-dark-gray);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-brown);
}

.btn-secondary:hover {
  background-color: var(--color-beige);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-brown);
  border: 1px solid var(--color-brown);
}

.btn-outline:hover {
  background-color: var(--color-brown);
  color: var(--color-white);
}

.btn-outline-sm {
  background-color: transparent;
  color: var(--color-dark-gray);
  border: 1px solid var(--color-dark-gray);
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-outline-sm:hover {
  background-color: var(--color-brown);
  color: var(--color-white);
  border-color: var(--color-brown);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background-color: rgba(249, 248, 246, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-size: 1.8rem;
  color: var(--color-brown);
  letter-spacing: 1px;
}

.navbar.scrolled .logo-text {
  color: var(--color-dark-gray);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a:not(.btn-outline-sm) {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  position: relative;
  color: var(--color-dark-gray);
}

.nav-links a:not(.btn-outline-sm)::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-brown);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn-outline-sm):hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-dark-gray);
  margin: 5px 0;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--color-dark-gray);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--color-dark-gray);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--color-ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 999;
}

.mobile-menu.active {
  right: 0;
}

.mobile-link {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  color: var(--color-dark-gray);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--color-ivory);
  overflow: hidden;
  padding-top: 80px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-text {
  padding-right: 30px;
}

.hero-title {
  font-size: clamp(1.5rem, 6.5vw, 3.5rem);
  color: var(--color-brown);
  margin-bottom: 25px;
  line-height: 1.3;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: clamp(0.85rem, 3.5vw, 1.2rem);
  color: var(--color-dark-gray);
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.hero-cta {
  display: flex;
  gap: 20px;
}

.hero-images {
  position: relative;
  height: 600px;
  width: 100%;
}

.hero-img-main {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  height: 85%;
  border-radius: 20px 0 20px 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(139, 107, 93, 0.15);
  z-index: 2;
}

.hero-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img-sub {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 50%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  z-index: 3;
  border: 10px solid var(--color-ivory);
}

.hero-img-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80%;
  height: 85%;
  border-radius: 20px 0 20px 20px;
  border: 2px solid var(--color-accent);
  z-index: 1;
}

/* Concept Section */
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.concept-desc {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
}

.concept-list li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 15px;
}

.concept-list span {
  font-family: var(--font-serif);
  color: var(--color-accent);
  font-size: 1.5rem;
  font-style: italic;
}

.concept-image {
  position: relative;
}

.concept-image img {
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.concept-image-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-brown);
  z-index: -1;
  border-radius: 4px;
}

/* Menu Section */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.menu-card {
  background-color: var(--color-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  transition: var(--transition);
}

.menu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.menu-img-wrapper {
  overflow: hidden;
  height: 220px;
}

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

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

.menu-info {
  padding: 25px;
  text-align: center;
}

.menu-name {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-brown);
}

.menu-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.menu-price {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-dark-gray);
}

.menu-note {
  margin-top: 40px;
  font-size: 0.9rem;
  color: #777;
}

/* Gallery Section */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 15px;
  margin-top: 50px;
}

.gallery-item {
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

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

.item-large {
  grid-column: span 2;
  grid-row: span 2;
}

.item-tall {
  grid-column: span 1;
  grid-row: span 2;
}

.item-wide {
  grid-column: span 2;
  grid-row: span 1;
}

.item-square {
  grid-column: span 1;
  grid-row: span 1;
}

/* Reviews Section */
.reviews-container {
  display: flex;
  gap: 30px;
  margin-top: 50px;
  overflow-x: auto;
  padding-bottom: 20px;
  scrollbar-width: thin;
}

.reviews-container::-webkit-scrollbar {
  height: 6px;
}

.reviews-container::-webkit-scrollbar-thumb {
  background-color: var(--color-accent);
  border-radius: 10px;
}

.review-card {
  min-width: 320px;
  background-color: var(--color-white);
  padding: 30px;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.review-stars {
  color: var(--color-brown);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.review-text {
  font-style: italic;
  margin-bottom: 20px;
  color: #555;
}

.review-author {
  text-align: right;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Instagram Section */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 40px;
}

.insta-item {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 4px;
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.insta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(139, 107, 93, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.insta-icon {
  color: var(--color-white);
  font-size: 2rem;
  transform: scale(0.5);
  transition: transform 0.3s ease;
}

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

.insta-item:hover .insta-icon {
  transform: scale(1);
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 50px auto 0;
}

.faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(139, 107, 93, 0.2);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 1.1rem;
  font-family: var(--font-main);
  font-weight: 500;
  color: var(--color-dark-gray);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--color-brown);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding-bottom: 20px;
  color: #555;
}

/* Access Section */
.access-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}

.info-table th, .info-table td {
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.info-table th {
  width: 30%;
  color: var(--color-brown);
  font-weight: 500;
}

.map-placeholder {
  width: 100%;
  height: 70vh;
  min-height: 400px;
  background-color: var(--color-beige);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-accent);
  border-radius: 4px;
}

/* Contact Section */
.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .hero {
    height: 100vh;
    max-height: 750px;
  }
}

.contact-form {
  margin-top: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-ivory);
  font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: var(--color-white);
  font-family: var(--font-main);
  transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* Footer */
.footer {
  background-color: var(--color-ivory);
  padding: 50px 0 20px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-brown);
  display: block;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.footer-links::-webkit-scrollbar {
  display: none;
}

.footer-links a {
  font-size: 0.9rem;
  color: #666;
}

.copyright {
  font-size: 0.8rem;
  color: #999;
}

/* Animations & Reveal */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s ease;
}

.reveal-up.active, .reveal-left.active, .reveal-right.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
    padding-top: 40px;
  }
  
  .hero-text {
    padding-right: 0;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-images {
    height: 400px;
    width: 90%;
    margin: 0 auto 30px;
  }
  
  .concept-grid, .access-wrapper {
    grid-template-columns: 1fr;
  }
  
  .concept-image {
    order: -1;
  }
  
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  
  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2rem;
  }
  
  .gallery-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }
  
  .item-large, .item-tall, .item-wide, .item-square {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .footer-links {
    gap: 10px;
    justify-content: flex-start;
    padding-bottom: 5px;
  }
  
  .footer-links a {
    font-size: 0.8rem;
  }
}
