/*
Theme Name: Chef Marie Yamakawa
Theme URI: https://marieyamakawa.com
Author: Javier Lavandeira
Author URI: https://lavandeira.net
Description: Noir & Gold portfolio theme for Chef Marie Yamakawa. Single-page design with trilingual support (EN/JP/FR), gallery lightbox, and scroll reveal animations.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chef-yamakawa
Tags: one-page, portfolio, dark, custom-colors
*/

/* ==========================================================
   Chef Marie Yamakawa — Design 6 — "Noir & Gold"
   Dark luxurious theme with champagne gold accents,
   deep burgundy touches. Serif-forward typography.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&family=Noto+Serif+JP:wght@300;400;500;600;700&display=swap');

:root {
  --noir: #0c0c0c;
  --noir-light: #161616;
  --noir-card: #1c1c1c;
  --gold: #c9a96e;
  --gold-light: #dfc499;
  --gold-dim: rgba(201,169,110,.15);
  --burgundy: #6b2139;
  --cream: #f4f0ea;
  --cream-dark: #e8e2d8;
  --text-light: #c8c4bc;
  --text-dim: #7a7670;
  --white: #fff;

  --serif: 'Cormorant Garamond', 'Noto Serif JP', Georgia, serif;
  --sans: 'Inter', 'Noto Serif JP', system-ui, sans-serif;
}

/* --- Reset --- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--noir);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Typography --- */
h1,h2,h3,h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--cream);
}

/* --- Gold rule --- */
.gold-rule {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0;
}

/* ========== NAV ========== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1040;
  padding: .8rem 0;
  transition: background .4s, backdrop-filter .4s;
}

.site-nav.scrolled {
  background: rgba(12,12,12,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-nav .brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: .03em;
}

.site-nav .brand small {
  font-family: 'Noto Serif JP', serif;
  display: block;
  font-size: .6rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: .15em;
}

.site-nav .nav-link {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim) !important;
  padding: .4rem .8rem !important;
  transition: color .2s;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--gold) !important;
}

.lang-btn {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: .2rem .5rem;
  border: 1px solid var(--text-dim);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s;
}

.lang-btn:hover { border-color: var(--gold); color: var(--gold); }
.lang-btn.active { border-color: var(--gold); background: var(--gold); color: var(--noir); }

@media (max-width:991.98px) {
  .site-nav .navbar-collapse {
    background: var(--noir-light);
    padding: 1.25rem;
    margin-top: .5rem;
    border: 1px solid rgba(201,169,110,.1);
  }
  .site-nav .navbar-toggler { border-color: var(--text-dim); }
  .site-nav .navbar-toggler-icon { filter: invert(.7); }
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background: url('images/chef/portrait.jpg') center 20%/cover no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(12,12,12,.92) 0%, rgba(12,12,12,.6) 50%, rgba(12,12,12,.3) 100%);
}

.hero-inner {
  position: relative; z-index: 2;
  padding-top: 6rem;
}

.hero-label {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cream);
}

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

.hero-jp {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-dim);
  margin-top: .5rem;
  letter-spacing: .1em;
}

.hero-tagline {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-dim);
  margin-top: 2rem;
  max-width: 420px;
}

.hero-location {
  font-size: .75rem;
  color: var(--text-dim);
  margin-top: 1.5rem;
  letter-spacing: .05em;
}

.hero-location span { color: var(--gold); }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
}

.hero-scroll a {
  color: var(--gold);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.hero-scroll .line {
  width: 1px; height: 40px;
  background: var(--gold);
  animation: pulse-line 2s infinite;
}

@keyframes pulse-line {
  0%,100% { opacity: .3; }
  50% { opacity: 1; }
}

/* ========== SECTIONS ========== */
.sec { padding: 6rem 0; }

.sec-light {
  background: var(--cream);
  color: #3a3632;
}

.sec-light h2, .sec-light h3, .sec-light h4 { color: var(--noir); }

.sec-label {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
  display: block;
}

.sec-title {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.15;
}

.sec-title-jp {
  font-family: 'Noto Serif JP', serif;
  font-size: .9rem;
  font-weight: 300;
  color: var(--text-dim);
  display: block;
  margin-top: .25rem;
}

.sec-light .sec-title-jp { color: #8a857d; }

.sec-lead {
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dim);
  margin-top: 1rem;
}

.sec-light .sec-lead { color: #6a655d; }

/* ========== ABOUT ========== */
.about-text p { margin-bottom: 1rem; }

.about-text strong { color: var(--cream); }
.sec-light .about-text strong { color: var(--noir); }

.award-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(201,169,110,.12);
}

.award-item:last-child { border-bottom: none; }

.award-year {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  min-width: 55px;
}

.award-name {
  font-weight: 500;
  font-size: .85rem;
  color: var(--cream);
}

.sec-light .award-name { color: var(--noir); }
.sec-light .award-item { border-color: rgba(12,12,12,.08); }

.chef-portrait {
  border: 1px solid rgba(201,169,110,.15);
}

/* ========== INGREDIENTS ========== */
.ing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.ing-card {
  text-align: center;
}

.ing-img {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(201,169,110,.12);
  transition: border-color .3s;
}

.ing-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.9);
  transition: filter .3s, transform .3s;
}

.ing-card:hover .ing-img {
  border-color: var(--gold);
}

.ing-card:hover .ing-img img {
  filter: brightness(1);
  transform: scale(1.04);
}

.ing-name {
  margin-top: .75rem;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: .03em;
}

@media (max-width:767.98px) {
  .ing-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* ========== PROCESS ========== */
.process-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.process-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.process-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.process-item:hover img { transform: scale(1.06); }

.process-item .overlay {
  position: absolute; inset: 0;
  background: rgba(12,12,12,.5);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity .3s;
}

.process-item:hover .overlay { opacity: 1; }

.process-item .overlay .num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.process-item .overlay .name {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--cream);
  margin-top: .25rem;
}

@media (max-width:991.98px) {
  .process-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ========== CREATIONS ========== */
.award-dishes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.award-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201,169,110,.12);
  transition: border-color .3s;
}

.award-card:hover { border-color: var(--gold); }

.award-card img {
  width: 100%;
  display: block;
  transition: transform .5s;
}

.award-card:hover img { transform: scale(1.03); }

.award-card .card-body {
  padding: 1.5rem;
  background: var(--noir-card);
}

.award-card .badge-year {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: .5rem;
}

.award-card h4 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: .4rem;
}

.award-card p {
  font-size: .85rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.6;
}

@media (max-width:767.98px) {
  .award-dishes { grid-template-columns: 1fr; }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.gallery-cell {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-cell img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  filter: brightness(.85);
  transition: filter .3s, transform .4s;
}

.gallery-cell:hover img {
  filter: brightness(1);
  transform: scale(1.05);
}

.gallery-cell::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid transparent;
  transition: border-color .3s;
  pointer-events: none;
}

.gallery-cell:hover::after {
  border-color: var(--gold);
}

@media (max-width:991.98px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width:575.98px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ========== CONTACT ========== */
.contact-box {
  border: 1px solid rgba(201,169,110,.15);
  padding: 3rem;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--noir);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .8rem 2.5rem;
  transition: background .2s, transform .2s;
}

.btn-gold:hover {
  background: var(--gold-light);
  color: var(--noir);
  transform: translateY(-2px);
}

.contact-links {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.contact-links li {
  padding: .4rem 0;
  border-bottom: 1px solid rgba(201,169,110,.08);
}

.contact-links li:last-child { border-bottom: none; }

.contact-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s;
}

.contact-links a:hover { color: var(--gold); }
.contact-links .bi { color: var(--gold); margin-right: .5rem; }

/* ========== FOOTER ========== */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(201,169,110,.08);
  font-size: .75rem;
  color: var(--text-dim);
}

.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

/* ========== LIGHTBOX ========== */
#lightbox .modal-content { background: transparent; border: none; }
#lightbox .modal-body { padding: 0; text-align: center; }
#lightbox .btn-close {
  position: absolute;
  top: -2.5rem; right: 0;
  filter: invert(1); opacity: .7;
}
#lightbox .btn-close:hover { opacity: 1; }
#lightbox img {
  max-height: 88vh; max-width: 100%;
  border: 1px solid rgba(201,169,110,.2);
}

/* ========== REVEAL ========== */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

html.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width:767.98px) {
  .sec { padding: 3.5rem 0; }
  .hero h1 { font-size: 3rem; }
  .hero-jp { font-size: 1rem; }
  .hero-tagline { font-size: 1rem; }
  .sec-title { font-size: 2.2rem; }
  .contact-box { padding: 2rem 1.5rem; }
}

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