/* ============================================================
   NAKA COFFEE — /order Styles
   Visual language: warm, premium, modern, minimal
   Reference: Landing page Hero, Product, Story, Location sections
   ============================================================ */

/* ---------- Core Layout ---------- */
body.order-page {
  background-color: var(--color-background);
  color: var(--color-text-dark);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 70px;
}

/* ---------- Header (User Design — Preserved) ---------- */
.order-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: #0C5B46;
  z-index: 100;
  border-bottom: none;
}
.order-header__inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.order-header__logo {
  display: flex;
  align-items: center;
  height: 100%;
}
.order-header__logo img {
  height: 60px;
  width: auto;
  transition: opacity var(--transition-fast);
}
.order-header__logo:hover img {
  opacity: 0.85;
}
.order-header__back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 0.85rem var(--font-heading);
  color: rgba(255, 249, 244, 0.85);
  padding: 0.4rem 0;
  transition: all var(--transition-fast);
  position: relative;
}
.order-header__back-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-text-white);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}
.order-header__back-btn:hover {
  color: #fff;
}
.order-header__back-btn:hover::after {
  width: 100%;
}

/* ---------- Hero Section ---------- */
.order-hero {
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
}
.order-hero__container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Hero Card — styled like product layout with premium soft shadows and thin border */
.order-hero-card {
  background-color: var(--color-background-alt);
  border-radius: 20px;
  padding: clamp(var(--space-lg), 4vw, var(--space-2xl));
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
  border: 1px solid rgba(12, 91, 70, 0.08);
  box-shadow: 
    0 15px 40px rgba(12, 91, 70, 0.04),
    0 2px 10px rgba(0, 0, 0, 0.02);
}
.order-hero-card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.order-hero__badge {
  display: inline-block;
  background-color: rgba(12, 91, 70, 0.08);
  color: var(--color-primary);
  font: 700 0.7rem var(--font-heading);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
  border: 1px solid rgba(12, 91, 70, 0.15);
}
.order-hero__heading {
  font: 800 clamp(2rem, 5vw, 2.6rem)/1.2 var(--font-heading);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}
.order-hero__subtitle {
  font: 400 clamp(0.95rem, 1.8vw, 1.05rem)/1.65 var(--font-body);
  color: var(--color-text-dark);
  opacity: 0.8;
  max-width: 440px;
  margin-bottom: var(--space-lg);
}

/* CTA Wrapper */
.order-hero__cta-wrapper {
  width: 100%;
}
.order-hero__cta-micro {
  font: 300 0.8rem var(--font-body);
  color: var(--color-text-dark);
  opacity: 0.55;
  margin-top: var(--space-sm);
  font-style: italic;
}

/* ---------- CTA Buttons ---------- */
/* Matches .hero__cta and .btn-primary from landing page (no border, soft shadows) */
.order-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font: 600 0.95rem var(--font-heading);
  text-decoration: none;
  padding: 0.8rem 2.2rem;
  border-radius: 12px;
  border: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.order-btn-cta--primary {
  background: var(--color-primary);
  color: var(--color-text-white);
  box-shadow: 0 4px 15px rgba(12, 91, 70, 0.2);
}
.order-btn-cta--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12, 91, 70, 0.3);
}
.order-btn-cta--primary:active {
  transform: translateY(0);
}
.order-btn-cta svg {
  flex-shrink: 0;
  display: block;
}

.order-btn-cta--secondary {
  background: var(--color-primary);
  color: var(--color-text-white);
  box-shadow: 0 4px 15px rgba(12, 91, 70, 0.2);
}
.order-btn-cta--secondary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12, 91, 70, 0.3);
}
.order-btn-cta--secondary:active {
  transform: translateY(0);
}
.order-btn-cta--secondary svg {
  transition: transform var(--transition-fast);
}
.order-btn-cta--secondary:hover svg {
  transform: translateX(3px);
}

/* ---------- Visual Placeholder ---------- */
.order-hero-card__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.order-hero-visual-wrapper {
  width: 100%;
  max-width: 190px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.order-hero-placeholder-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(12, 91, 70, 0.08);
  box-shadow: 
    0 10px 30px rgba(12, 91, 70, 0.04),
    0 2px 10px rgba(0, 0, 0, 0.02);
  transition: transform var(--transition-normal);
}
.order-hero-placeholder-img:hover {
  transform: translateY(-2px);
}

/* ---------- Container ---------- */
.order-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ---------- Section Titles ---------- */
.order-section-title {
  font: 800 clamp(1.75rem, 3.5vw, 2.15rem) var(--font-heading);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-sm);
}
.order-section-subtitle {
  font: 300 0.95rem/1.6 var(--font-body);
  color: var(--color-text-dark);
  opacity: 0.75;
  text-align: center;
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
}

/* ---------- Tutorial Section ---------- */
.order-tutorial {
  padding: var(--space-3xl) 0;
  background-color: var(--color-background-alt);
}

/* Tutorial Card Grid */
.tutorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

/* Tutorial Card — matches .product-card style: accent bg, rounded, subtle shadow, no border */
.tutorial-card {
  background-color: var(--color-accent);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  opacity: 0.95;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}
.tutorial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  opacity: 1;
}

/* Step Badge — matches .product-card__badge */
.tutorial-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-primary);
  color: #fff;
  padding: 4px 12px;
  font: 700 0.72rem var(--font-heading);
  border-radius: var(--radius-full);
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Screenshot Image Area — matches .product-card__img */
.tutorial-card__image-wrapper {
  width: 100%;
  height: 170px;
  overflow: hidden;
  position: relative;
  background-color: #f0ece6;
  border-bottom: 1px solid rgba(12, 91, 70, 0.05);
}
.tutorial-screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  cursor: zoom-in;
  transition: transform 0.5s ease;
  pointer-events: auto;
}
.tutorial-card:hover .tutorial-screenshot-img {
  transform: scale(1.04);
}
.tutorial-screenshot-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.45));
  color: #fff;
  font: 500 0.72rem var(--font-heading);
  text-align: center;
  padding: 20px 8px 8px;
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}
.tutorial-card:hover .tutorial-screenshot-overlay {
  opacity: 1;
}

/* Card Content Area — matches .product-card__content */
.tutorial-card__content {
  padding: 14px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tutorial-card__title {
  font: 700 1.05rem var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 4px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.tutorial-card__desc {
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--color-text-dark);
  opacity: 0.85;
}

/* ---------- Payment Section ---------- */
.order-payment {
  padding: var(--space-3xl) 0;
}

/* Payment Card — styled like .break__quote (Quote Card): background-alt, rounded, soft shadow */
.payment-card {
  background-color: var(--color-background-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid rgba(12, 91, 70, 0.05);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.03),
    0 2px 8px rgba(0, 0, 0, 0.01);
  max-width: 700px;
  margin: 0 auto;
}
.payment-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
}
.payment-card__icon {
  color: var(--color-primary);
  stroke-width: 2;
}
.payment-card__title {
  font: 700 clamp(1.2rem, 3vw, 1.45rem) var(--font-heading);
  color: var(--color-primary);
}
.payment-card__intro {
  font: 500 0.95rem/1.6 var(--font-body);
  margin-bottom: var(--space-md);
  color: var(--color-text-dark);
}
.payment-card__desc {
  font: 400 0.92rem/1.65 var(--font-body);
  color: var(--color-text-dark);
  opacity: 0.8;
  margin-top: var(--space-sm);
}

/* ---------- Bottom CTA Section ---------- */
.order-bottom-cta {
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
  background-color: var(--color-background-alt);
}
.order-bottom-cta__heading {
  font: 700 clamp(1.5rem, 3.5vw, 2rem) var(--font-heading);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}
.order-bottom-cta__sub {
  font: 300 0.95rem/1.6 var(--font-body);
  color: var(--color-text-dark);
  opacity: 0.75;
  margin-bottom: var(--space-xl);
}
.order-bottom-cta .order-btn-cta {
  margin: 0 auto var(--space-md);
}
.order-bottom-cta__micro {
  font: 300 0.82rem/1.5 var(--font-body);
  font-style: italic;
  opacity: 0.55;
  color: var(--color-text-dark);
  max-width: 340px;
  margin: var(--space-md) auto 0;
}

/* ---------- Footer ---------- */
.order-footer {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background-color: var(--color-primary-dark);
  color: var(--color-text-white);
}
.order-footer p {
  font-size: 0.8rem;
  opacity: 0.45;
  letter-spacing: 0.02em;
}

/* ============================================================
   Lightbox Modal
   ============================================================ */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 20px;
}
.lightbox-modal--open {
  display: flex !important;
  animation: lightboxFadeIn 0.25s ease-out forwards;
}
.lightbox-content {
  display: block;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}
.lightbox-modal--open .lightbox-content {
  transform: scale(1);
}
.lightbox-caption {
  display: block;
  width: 80%;
  max-width: 600px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  padding: 14px 0;
  font: 500 0.9rem var(--font-heading);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  color: #fff;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  z-index: 1010;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  transition: all var(--transition-fast);
  line-height: 1;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   Keyframes
   ============================================================ */
@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet */
@media (min-width: 600px) {
  .order-hero-card {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
  }
  .tutorial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .payment-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 992px) {
  body.order-page {
    padding-top: 82px;
  }
  .order-header {
    height: 82px;
  }
  .order-hero-card {
    grid-template-columns: 1.4fr 1fr;
  }
  .tutorial-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .payment-card {
    padding: var(--space-2xl);
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .order-hero {
    padding: var(--space-xl) var(--space-md) var(--space-md);
  }
  .order-header__inner {
    padding: 0 var(--space-md);
  }
  .order-container {
    padding: 0 var(--space-md);
  }
  .tutorial-card__image-wrapper {
    height: 150px;
  }
}
