/* ============================================
   JAPZ COFFEE HOUSE — Stylesheet
   ============================================ */

:root {
  --bg: #F8F4EE;
  --brown: #4B3228;
  --brown-dark: #2F1F17;
  --latte: #D8C3A5;
  --text: #2C2C2C;
  --white: #FFFFFF;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;

  --radius: 16px;
  --shadow-soft: 0 12px 30px rgba(43, 31, 23, 0.08);
  --shadow-hover: 0 18px 40px rgba(43, 31, 23, 0.14);

  --container-width: 1180px;
  --transition: 0.35s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--brown-dark);
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 600;
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 110px 0; }

:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--latte);
  color: var(--brown-dark);
}
.btn-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.btn-secondary {
  border: 1.5px solid rgba(255,255,255,0.75);
  color: var(--white);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

/* ============================================
   HEADER
   ============================================ */
.site-header{
    position:fixed;
    top:18px;
    left:50%;
    right:auto;
    width:min(1180px,92%);
    transform:translateX(-50%);

    z-index:1000;

    background:rgba(255,255,255,.10);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.20);
    border-radius:18px;

    transition:
        background .35s ease,
        box-shadow .35s ease,
        top .35s ease;
}
.site-header.scrolled{
    background:rgba(248,244,238,.92);
    border-color:rgba(75,50,40,.10);
    box-shadow:0 10px 30px rgba(0,0,0,.10);
}
.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: color var(--transition);
}
.logo span { font-weight: 500; }

.site-header.scrolled .logo { color: var(--brown-dark); }

.main-nav {
  display: flex;
  gap: 40px;
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--white);
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width var(--transition);
}
.nav-link:hover::after { width: 100%; }

.site-header.scrolled .nav-link { color: var(--text); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
}
.site-header.scrolled .hamburger span { background: var(--brown-dark); }

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content{
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1{
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 7vw, 5.8rem);
    line-height: 1.05;
    color: #fff;
    margin: 18px 0;
    letter-spacing: -1px;
}

.hero-sub{
    font-size: 1.15rem;
    color: rgba(255,255,255,.92);
    line-height: 1.8;
    max-width: 620px;
    margin: 0 auto 35px;
}

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--latte);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  color: var(--white);
  margin-bottom: 0.35em;
}

.hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  max-width: 480px;
  margin: 0 auto 2.2em;
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--white);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease infinite;
}
@keyframes scrollDot {
  0% { top: 8px; opacity: 1; }
  70% { top: 24px; opacity: 0; }
  100% { top: 24px; opacity: 0; }
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-text h2 { font-size: 2.4rem; }
.about-text p { max-width: 46ch; color: var(--text); }

.roasting-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.roasting-strip img {
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

/* ============================================
   SECTION HEADING
   ============================================ */
.section-heading {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}
.section-heading h2 { font-size: 2.3rem; }
.section-heading p { color: #6b5f55; }

/* =========================================
   MENU
========================================= */

.menu{
    background:var(--white);
}

.menu-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:24px;
    margin-top:40px;
}

.menu-card{
    background:var(--bg);
    border-radius:var(--radius);
    overflow:hidden;
    box-shadow:var(--shadow-soft);
    padding-bottom:24px;

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.menu-card:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadow-hover);
}

.menu-card-img{
    aspect-ratio:4 / 3;
    overflow:hidden;
}

.menu-card-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;

    transition:transform .6s ease;
}

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

.menu-card h3{
    font-family:var(--font-heading);
    font-size:1.45rem;
    color:var(--brown-dark);
    margin:22px 22px 8px;
}

.menu-card p{
    margin:0 22px;
    font-size:.95rem;
    line-height:1.7;
    color:#5c5048;
}


/* Tablet */

@media (max-width:900px){

    .menu-grid{
        grid-template-columns:repeat(2,1fr);
        gap:20px;
    }

}


/* Mobile */

@media (max-width:600px){

    .menu-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .menu-card h3{
        font-size:1.3rem;
    }

}
/* =========================================
   WHY CHOOSE US
========================================= */

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

.why-card{
    background:var(--white);
    border-radius:var(--radius);
    padding:40px 30px;
    text-align:center;

    box-shadow:var(--shadow-soft);

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.why-card:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadow-hover);
}

.why-icon{
    width:58px;
    height:58px;
    margin:0 auto 20px;

    color:var(--brown);
}

.why-icon svg{
    width:100%;
    height:100%;
}

.why-card h3{
    font-family:var(--font-heading);
    font-size:1.25rem;
    color:var(--brown-dark);
    margin:0 0 10px;
}

.why-card p{
    color:#5c5048;
    font-size:.95rem;
    line-height:1.7;
    margin:0;
}


/* Tablet */

@media (max-width:900px){

    .why-grid{
        grid-template-columns:repeat(2,1fr);
    }

}


/* Mobile */

@media (max-width:600px){

    .why-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

}
/* ============================================
   GALLERY
   ============================================ */
.gallery-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin-top:45px;
}

.gallery-grid img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    border-radius:18px;
    transition:.35s ease;
    cursor:pointer;
    box-shadow:0 10px 24px rgba(0,0,0,.08);
}

.gallery-grid img:hover{
    transform:scale(1.04);
    box-shadow:0 18px 35px rgba(0,0,0,.15);
}

@media(max-width:768px){

    .gallery-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

/* ============================================
   TEAM
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-soft);
  border: 4px solid var(--white);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 { font-size: 1.2rem; margin-bottom: 2px; }
.team-card p { color: var(--brown); font-size: 0.9rem; margin: 0; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--brown-dark);
  color: rgba(255,255,255,0.85);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-logo {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.footer-block h4 {
  color: var(--latte);
  font-size: 1rem;
  margin-bottom: 14px;
}
.footer-block p { margin: 0 0 6px; font-size: 0.92rem; }
.footer-block a:hover { color: var(--latte); }

.social-icons {
  display: flex;
  gap: 14px;
}
.social-icons a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: var(--white);
  transition: background var(--transition), border-color var(--transition);
}
.social-icons a svg { width: 18px; height: 18px; }
.social-icons a:hover {
  background: var(--latte);
  border-color: var(--latte);
  color: var(--brown-dark);
}

.footer-bottom {
  text-align: center;
  padding: 26px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* ============================================
   FADE-IN ON SCROLL
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  section { padding: 90px 0; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image img { aspect-ratio: 16 / 10; }

  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }

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

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(320px, 78%);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.12);
    transition: right var(--transition);
  }
  .main-nav.open { right: 0; }
  .main-nav .nav-link { color: var(--brown-dark); font-size: 1.1rem; }

  .hamburger { display: flex; }

  .menu-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .header-inner { padding: 0 20px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .roasting-strip { gap: 10px; }

  .hero-actions { flex-direction: column; width: 100%; }
  .btn { text-align: center; }
}
/* HERO SLIDESHOW */

.hero{
    position:relative;
    height:100vh;
    overflow:hidden;
}

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

.slide{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    opacity:0;
    transform:scale(1.08);
    transition:opacity 1s ease-in-out,
               transform 3s ease;
}

.slide.active{
    opacity:1;
    transform:scale(1);
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
}

.hero-content{
    position:relative;
    z-index:2;
}
/* ===== ABOUT ===== */

.about{
    padding:110px 8%;
    background:#F8F4EE;
}

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

.about-image img{
    width:100%;
    height:560px;
    object-fit:cover;
    border-radius:20px;
    box-shadow:0 20px 40px rgba(0,0,0,.12);
}

.section-tag{
    display:inline-block;
    color:#8B5E3C;
    font-size:.8rem;
    letter-spacing:2px;
    font-weight:600;
    margin-bottom:14px;
}

.about-content h2{
    font-size: 3.2rem;
    line-height: 1.1;
    color:#4B3228;
    margin-bottom:22px;
}

.about-content p{
    color:#555;
    line-height:1.9;
    margin-bottom:18px;
}

.about-gallery{
    display:flex;
    gap:14px;
    margin-top:25px;
}

.about-gallery img{
    width:110px;
    height:110px;
    object-fit:cover;
    border-radius:14px;
    transition:.35s;
    cursor:pointer;
}

.about-gallery img:hover{
    transform:translateY(-6px);
    box-shadow:0 12px 25px rgba(0,0,0,.15);
}

@media (max-width:900px){

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

    .about-image img{
        height:380px;
    }

    .about-gallery{
        justify-content:center;
    }

}.about-quote{
    font-style:italic;
    color:#8B5E3C;
    margin-bottom:14px;
}
.about-gallery img:hover{
    transform:translateY(-8px) scale(1.05);
    transition:.35s ease;
}