/* ==========================================================================
   MUSABO COFFEE — Premium Coffee Boutique
   Design tokens
   ========================================================================== */

:root {
  --dark-brown: #2C1810;
  --coffee: #4E342E;
  --caramel: #A97142;
  --gold: #D4AF37;
  --gold-soft: #E8C766;
  --cream: #F8F4EC;
  --white: #FFFFFF;

  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;

  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 1.1s var(--ease-lux);
  --transition-med: 0.6s var(--ease-lux);
  --transition-fast: 0.35s var(--ease-lux);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--dark-brown);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection { background: var(--gold); color: var(--dark-brown); }

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

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 6vw;
}

.eyebrow {
  font-family: var(--font-body);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gold);
}

.gold-rule {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 22px auto;
}

/* ==========================================================================
   LOADER
   ========================================================================== */

#loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--dark-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.9s var(--ease-lux), visibility 0.9s var(--ease-lux);
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  position: relative;
  width: 74px;
  height: 74px;
  margin-bottom: 26px;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.loader-ring::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--gold);
  animation: spin 1.4s linear infinite;
}

.loader-ring::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.85;
}

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

.loader-word {
  font-family: var(--font-display);
  color: var(--cream);
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ==========================================================================
   NAV
   ========================================================================== */

#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 6vw;
  background: transparent;
  transition: background var(--transition-med), padding var(--transition-med), box-shadow var(--transition-med);
}

#site-nav.scrolled {
  background: rgba(44, 24, 16, 0.85);
  backdrop-filter: blur(14px);
  padding: 14px 6vw;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--cream);
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 38px;
  list-style: none;
}

.nav-links a {
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition-fast);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: 9px 22px;
  border-radius: 2px;
  font-size: 0.72rem !important;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-cta:hover { background: var(--gold); color: var(--dark-brown) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 501;
}
.nav-toggle span {
  width: 24px; height: 1px; background: var(--cream);
}

/* ==========================================================================
   HERO
   ========================================================================== */

#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--dark-brown);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transform: scale(1.12);
  filter: saturate(0.9) brightness(0.65);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(44,24,16,0.15) 0%, rgba(44,24,16,0.92) 78%),
    linear-gradient(180deg, rgba(44,24,16,0.55) 0%, rgba(44,24,16,0.35) 40%, var(--dark-brown) 100%);
}

.steam {
  position: absolute;
  bottom: -10%;
  width: 2px;
  border-radius: 50%;
  background: linear-gradient(180deg, transparent, rgba(248,244,236,0.18), transparent);
  filter: blur(6px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 0 6vw;
}

.hero-content .eyebrow { display: block; margin-bottom: 20px; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cream);
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  margin: 26px auto 0;
  max-width: 520px;
  color: rgba(248,244,236,0.75);
  font-size: 1.02rem;
  line-height: 1.75;
  font-weight: 300;
}

.btn-primary {
  display: inline-block;
  margin-top: 42px;
  padding: 17px 44px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-med);
  z-index: -1;
}
.btn-primary:hover { color: var(--dark-brown); }
.btn-primary:hover::before { transform: scaleX(1); }

@keyframes steamRise {
  0% { opacity: 0; transform: translateY(0) scaleY(0.7); }
  30% { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-260px) scaleY(1.3); }
}

.scroll-cue {
  position: absolute;
  bottom: 38px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(248,244,236,0.55);
  z-index: 2;
}
.scroll-cue .line {
  width: 1px; height: 42px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   SECTION HEADERS (shared)
   ========================================================================== */

.section {
  position: relative;
  padding: 140px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 80px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--dark-brown);
  line-height: 1.2;
}

.section-title.on-dark { color: var(--cream); }

.section-desc {
  margin-top: 18px;
  color: rgba(44,24,16,0.62);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
}
.section-desc.on-dark { color: rgba(248,244,236,0.65); }

/* ==========================================================================
   FLOATING GALLERY (signature section)
   ========================================================================== */

#gallery {
  background: var(--coffee);
  overflow: hidden;
}

.gallery-stage {
  position: relative;
  height: 640px;
  max-width: 1000px;
  margin: 0 auto;
}

.float-item {
  position: absolute;
  will-change: transform;
  transition: box-shadow var(--transition-med), border-color var(--transition-med);
  cursor: pointer;
}

.float-item .frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,0.35);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
  background: var(--dark-brown);
}

.float-item.round .frame { border-radius: 50%; }
.float-item.square .frame { border-radius: 4px; }
.float-item.card .frame { border-radius: 10px; }

.float-item .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-lux);
}

.float-item:hover .frame {
  transform: scale(1.08);
  border-color: var(--gold);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px var(--gold);
}
.float-item:hover .frame img { transform: scale(1.1); }

.gallery-center-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
  pointer-events: none;
}
.gallery-center-label .eyebrow { color: var(--gold); }
.gallery-center-label p {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(248,244,236,0.5);
  font-size: 1.1rem;
  margin-top: 10px;
}

/* ==========================================================================
   PRODUCTS
   ========================================================================== */

#products { background: var(--cream); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 42px;
}

.product-card {
  background: var(--white);
  border: 1px solid rgba(169,113,66,0.18);
  border-radius: 6px;
  overflow: hidden;
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 40px 70px rgba(44,24,16,0.14);
  border-color: var(--gold);
}

.product-photo {
  position: relative;
  aspect-ratio: 4/3.4;
  overflow: hidden;
  background: var(--dark-brown);
}
.product-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-lux);
}
.product-card:hover .product-photo img { transform: scale(1.07); }

.product-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(44,24,16,0.5) 100%);
}

.product-body { padding: 34px 32px 32px; }

.product-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--dark-brown);
  margin-bottom: 12px;
}

.product-desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(44,24,16,0.65);
  margin-bottom: 22px;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(169,113,66,0.2);
}

.product-meta div {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}
.product-meta .label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--caramel);
  font-weight: 500;
}
.product-meta .value { color: var(--dark-brown); font-weight: 400; text-align: right; }

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background: var(--dark-brown);
  color: var(--cream);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.btn-whatsapp:hover { background: var(--gold); color: var(--dark-brown); }
.btn-whatsapp svg { width: 16px; height: 16px; }

/* ---- Sipariş CTA (ürünler kategorisinin altında, dikkat çekici) ---- */
.order-cta {
  margin-top: 56px;
  padding: 46px 32px;
  border-radius: 8px;
  text-align: center;
  background: linear-gradient(135deg, var(--dark-brown), var(--coffee));
  border: 1px solid rgba(212,175,55,0.35);
  box-shadow: 0 30px 60px rgba(44,24,16,0.18);
}

.order-cta-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--cream);
  margin-bottom: 22px;
}

.btn-order-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 46px;
  background: linear-gradient(120deg, var(--gold-soft), var(--gold));
  color: var(--dark-brown);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(212,175,55,0.55);
  animation: ctaPulse 2.2s ease-in-out infinite;
  transition: transform var(--transition-fast);
}
.btn-order-cta:hover { transform: translateY(-3px) scale(1.03); }
.btn-order-cta svg { width: 20px; height: 20px; transition: transform var(--transition-fast); }
.btn-order-cta:hover svg { transform: translateX(4px); }

@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(212,175,55,0.55); }
  70% { box-shadow: 0 0 0 18px rgba(212,175,55,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
}

@media (max-width: 600px) {
  .order-cta { padding: 36px 20px; }
  .btn-order-cta { width: 100%; justify-content: center; padding: 18px 24px; }
}

/* ==========================================================================
   WHY US
   ========================================================================== */

#why { background: var(--dark-brown); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.why-card {
  background: rgba(248,244,236,0.03);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 8px;
  padding: 44px 30px;
  text-align: center;
  transition: transform var(--transition-med), border-color var(--transition-med), background var(--transition-med);
}
.why-card:hover {
  transform: translateY(-12px);
  border-color: var(--gold);
  background: rgba(212,175,55,0.05);
}

.why-icon { font-size: 2rem; margin-bottom: 20px; display: block; }

.why-card h3 {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 1.15rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.why-card p {
  color: rgba(248,244,236,0.55);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

#about {
  background: var(--cream);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.about-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle, var(--coffee) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  pointer-events: none;
}

.about-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.about-eyebrow {
  color: var(--caramel);
}

.about-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--coffee);
  line-height: 1.65;
  margin: 26px 0 48px;
}

.about-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, #b8862f 10%, var(--gold) 35%, #fff6d8 50%, var(--gold) 65%, #8a6423 90%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}

.about-title {
  margin-top: 16px;
  color: var(--caramel);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   FOOTER / CONTACT
   ========================================================================== */

#contact {
  background: var(--dark-brown);
  padding: 130px 0 0;
  position: relative;
}

.contact-inner {
  text-align: center;
  padding-bottom: 90px;
  border-bottom: 1px solid rgba(212,175,55,0.2);
}

.contact-title {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 20px;
}

.contact-sub {
  color: rgba(248,244,236,0.6);
  max-width: 460px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

.btn-whatsapp-lg {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 46px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.btn-whatsapp-lg:hover { background: var(--gold); color: var(--dark-brown); }
.btn-whatsapp-lg svg { width: 20px; height: 20px; }

.contact-phone {
  display: block;
  margin-top: 26px;
  color: rgba(248,244,236,0.4);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 1.1rem;
}
.footer-logo span { color: var(--gold); }

.footer-copy {
  color: rgba(248,244,236,0.35);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 400;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(212,175,55,0.4);
  transition: transform var(--transition-fast);
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 26px; height: 26px; color: var(--dark-brown); }

/* ==========================================================================
   SCROLL REVEAL UTILITY CLASSES (animated via JS)
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(48px); }
.reveal-blur { opacity: 0; filter: blur(14px); transform: translateY(20px); }
.reveal-zoom { opacity: 0; transform: scale(0.85); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 860px) {
  .nav-links { 
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 72%;
    max-width: 320px;
    background: var(--dark-brown);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 46px;
    transform: translateX(100%);
    transition: transform var(--transition-med);
    gap: 30px;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }

  .gallery-stage { height: 480px; }
  .section { padding: 90px 0; }
  .section-header { margin-bottom: 54px; }
  .contact-inner { padding-bottom: 60px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
  .gallery-stage { height: 400px; }
  .why-grid { gap: 18px; }
  .product-body { padding: 26px 22px 24px; }
}
