/* BrewBox — landing
   Palette: Espresso · Amber · Warm Cream */

:root {
  --espresso: #1c0f0a;
  --roast: #2e1403;
  --amber: #c8860a;
  --amber-light: #e8a020;
  --cream: #faf6f0;
  --parchment: #f0e4cc;
  --tan: #f5e8c8;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Assistant", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--espresso);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.logo-brew {
  color: var(--espresso);
}

.logo-box {
  color: var(--amber);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ——— Header ——— */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
}

.site-header .logo-brew {
  color: var(--cream);
}

.site-header .logo-box {
  color: var(--amber-light);
}

.header-wa {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-light);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.header-wa:hover {
  color: var(--cream);
  border-bottom-color: var(--cream);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
  color: var(--cream);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(200, 134, 10, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 90%, rgba(46, 20, 3, 0.9), transparent 50%),
    linear-gradient(165deg, var(--espresso) 0%, var(--roast) 45%, #3d1a08 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 12px,
    rgba(250, 246, 240, 0.35) 12px,
    rgba(250, 246, 240, 0.35) 13px
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.hero-brand .logo-brew {
  color: var(--cream);
}

.hero-brand .logo-box {
  color: var(--amber-light);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.hero-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--amber);
  margin: 1rem auto 0;
  border-radius: 1px;
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 400;
  color: var(--tan);
  margin-bottom: 0.65rem;
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-meta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 1.75rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.cta {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 1.75rem;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cta-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--espresso);
}

.cta-primary:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--espresso);
}

.cta-secondary {
  background: transparent;
  border-color: rgba(250, 246, 240, 0.45);
  color: var(--cream);
}

.cta-secondary:hover {
  border-color: var(--cream);
  background: rgba(250, 246, 240, 0.08);
}

.cta-dark.cta-primary {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--cream);
}

.cta-dark.cta-primary:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--espresso);
}

.cta-dark.cta-secondary {
  border-color: rgba(28, 15, 10, 0.35);
  color: var(--espresso);
}

.cta-dark.cta-secondary:hover {
  border-color: var(--espresso);
  background: rgba(28, 15, 10, 0.05);
}

.cta-hint {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(245, 232, 200, 0.75);
}

/* ——— Products ——— */
.products {
  padding: 4.5rem 1.5rem 3.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--amber);
  margin: 0.85rem auto 0;
  border-radius: 1px;
}

.section-note {
  text-align: center;
  font-size: 0.95rem;
  color: rgba(28, 15, 10, 0.65);
  margin-bottom: 2.25rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1.25rem;
}

.product {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.product.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product:nth-child(2).is-visible { transition-delay: 0.08s; }
.product:nth-child(3).is-visible { transition-delay: 0.14s; }
.product:nth-child(4).is-visible { transition-delay: 0.2s; }
.product:nth-child(5).is-visible { transition-delay: 0.26s; }

.product-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    linear-gradient(145deg, var(--parchment), var(--tan));
  position: relative;
}

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

.product-link {
  display: block;
  color: inherit;
}

.product-link:hover .product-media img {
  transform: scale(1.03);
}

.product-link:hover .product-action {
  color: var(--amber);
}

.product-media.is-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(200, 134, 10, 0.2), transparent 45%),
    linear-gradient(160deg, var(--parchment), #e8d9b8 60%, var(--tan));
}

.product-media.is-placeholder::after {
  content: "Photo coming soon";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(28, 15, 10, 0.35);
}

.product-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 0.85rem;
  letter-spacing: -0.01em;
}

.product-action {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(28, 15, 10, 0.45);
  transition: color 0.2s ease;
}

/* ——— Promise ——— */
.promise {
  background: var(--amber);
  color: var(--espresso);
  text-align: center;
  padding: 2.75rem 1.5rem;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.promise.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.promise p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 28rem;
  margin: 0 auto;
}

.promise-sub {
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  margin-top: 0.85rem !important;
  opacity: 0.8;
}

/* ——— Contact ——— */
.contact {
  padding: 4.5rem 1.5rem;
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact .cta-group {
  margin-bottom: 2.25rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(28, 15, 10, 0.45);
}

.contact-details a {
  font-weight: 600;
  color: var(--espresso);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-details a:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--espresso);
  color: var(--cream);
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.site-footer .logo-brew {
  color: var(--cream);
}

.site-footer .logo-box {
  color: var(--amber-light);
}

.footer-domain {
  font-size: 0.9rem;
  color: var(--tan);
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.footer-links a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tan);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--amber-light);
}

/* ——— Floating WhatsApp ——— */
.wa-float {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 50;
  width: 3.35rem;
  height: 3.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(28, 15, 10, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(28, 15, 10, 0.35);
}

.wa-float svg {
  width: 1.55rem;
  height: 1.55rem;
}

/* ——— Responsive ——— */
@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
    width: 100%;
  }
}

@media (min-width: 960px) {
  .site-header {
    padding: 1.5rem 2.5rem;
  }

  .hero {
    padding: 7rem 2.5rem 5rem;
  }

  .products {
    padding: 5.5rem 2.5rem 4rem;
  }

  .product-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }

  .product:last-child {
    grid-column: auto;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .product,
  .promise,
  .section-title,
  .contact {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .product-media img,
  .wa-float {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
