/*
Theme Name: Bara & Rempah
Author: WordPress Telex
Description: A cinematic, dark-toned chef portfolio theme inspired by Indonesian spice kitchens. Features warm turmeric accents, elegant serif typography, and dramatic imagery.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: bara-rempah
Tags: block-theme, full-site-editing, dark, portfolio, food

Bara & Rempah — Where fire meets spice.
*/

/* Equal-height card system */
.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}

.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.equal-cards .cta-bottom {
  margin-top: auto;
  justify-content: center;
}

/* Reset footer top margin */
.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* Nav link hover underline */
.nav-turmeric-underline a {
  position: relative;
  transition: color 0.3s ease;
}

.nav-turmeric-underline a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--wp--preset--color--turmeric);
  transition: width 0.3s ease;
}

.nav-turmeric-underline a:hover::after {
  width: 100%;
}

.nav-turmeric-underline a:hover {
  color: var(--wp--preset--color--turmeric) !important;
}

/* Hero CTA button style */
.hero-cta-outline a.wp-block-button__link {
  background: transparent !important;
  border: 1px solid rgba(245, 237, 216, 0.6);
  transition: all 0.4s ease;
}

.hero-cta-outline a.wp-block-button__link:hover {
  border-color: var(--wp--preset--color--turmeric);
  color: var(--wp--preset--color--turmeric) !important;
  background: rgba(26, 18, 8, 0.8) !important;
}

/* Turmeric left border accent */
.turmeric-left-border {
  border-left: 2px solid var(--wp--preset--color--turmeric);
  padding-left: 1rem;
}

/* Menu card image treatment */
.menu-card-img img {
  height: 240px;
  object-fit: cover;
  width: 100%;
  border-radius: 2px;
}

/* Certification badge styling */
.cert-badge {
  border: 1px solid rgba(200, 136, 42, 0.3);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.cert-badge:hover {
  border-color: var(--wp--preset--color--turmeric);
  transform: translateY(-4px);
}

/* Client/partner logo card */
.partner-logo-card {
  border: 1px solid rgba(200, 136, 42, 0.15);
  transition: border-color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo-card:hover {
  border-color: var(--wp--preset--color--turmeric);
  transform: translateY(-4px);
}

.partner-logo-card img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  filter: grayscale(100%) brightness(2);
}

.partner-logo-card:hover img {
  opacity: 1;
  filter: grayscale(0%) brightness(1);
}

/* Booking section divider line */
.booking-divider {
  width: 60px;
  height: 1px;
  background-color: var(--wp--preset--color--turmeric);
  margin: 0 auto;
}

/* Scroll fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-section {
  animation: fadeInUp 0.8s ease both;
}

/* Grain overlay for atmosphere */
.grain-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0,0,0,0) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 1;
}

/* Footer credit link styling */
.footer-credit a {
  color: var(--wp--preset--color--turmeric);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-credit a:hover {
  opacity: 0.8;
}