/* ============================================================
   CHEF RAJESH ABRAHAM — Global Stylesheet v2
   Aesthetic: Refined Luxury Editorial
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ─── CSS VARIABLES ─── */
:root {
  --cream:       #F5F0E8;
  --warm-white:  #FAF8F4;
  --charcoal:    #1C1C1A;
  --brown:       #6B4226;
  --gold:        #C49A3C;
  --gold-light:  #E8C870;
  --terracotta:  #B5522A;
  --sage:        #7B8C6E;
  --smoke:       #7A7470;
  --mist:        #B8B2AC;
  --line:        rgba(107,66,38,0.14);
  --line-light:  rgba(245,240,232,0.12);

  --ff-display:  'Cormorant Garamond', Georgia, serif;
  --ff-body:     'DM Sans', system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --transition:  0.35s var(--ease-out);

  --shadow-card: 0 2px 24px rgba(28,28,26,0.09);
  --shadow-lift: 0 8px 40px rgba(28,28,26,0.13);

  /* Spacing scale */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 6rem;
  --sp-2xl: 8rem;

  /* Section vertical padding */
  --section-py: clamp(4rem, 8vw, 7rem);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--warm-white);
  color: var(--charcoal);
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ─── SCROLLBAR (desktop only) ─── */
@media (min-width: 768px) {
  ::-webkit-scrollbar { width: 5px; }
  ::-webkit-scrollbar-track { background: var(--cream); }
  ::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
}

/* ─── LAYOUT ─── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}
.section { padding: var(--section-py) 0; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }

.eyebrow {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.lead {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.85;
  color: var(--smoke);
}

/* ─── DIVIDER ─── */
.divider {
  display: flex; align-items: center; gap: 1.25rem;
  margin: 1.5rem 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.divider-icon { color: var(--gold); font-size: 1rem; flex-shrink: 0; }

/* ─── NAVIGATION ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  padding: 1.2rem 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(250,248,244,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
  padding: 0.75rem 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.45rem; font-weight: 500;
  color: var(--charcoal);
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 1001;
}
.nav-logo span { color: var(--gold); }

/* Desktop links */
.nav-links {
  display: flex; align-items: center; gap: 2.25rem;
}
.nav-links a {
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--charcoal); position: relative;
  transition: color var(--transition);
  white-space: nowrap;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: var(--gold); }

.nav-cta {
  background: var(--charcoal); color: var(--cream) !important;
  padding: 0.55rem 1.3rem; letter-spacing: 0.15em;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--charcoal) !important; }
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none;
  padding: 6px; z-index: 1001;
  width: 38px; height: 38px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--charcoal);
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 998;
  background: var(--warm-white);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.open {
  display: flex;
  opacity: 1; pointer-events: auto;
}
.mobile-menu a {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 400; color: var(--charcoal);
  transition: color var(--transition);
  text-align: center;
}
.mobile-menu a:hover { color: var(--gold); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--ff-body);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  border: none; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--charcoal); color: var(--cream); }
.btn-primary:hover { background: var(--gold); color: var(--charcoal); }
.btn-outline { background: transparent; color: var(--charcoal); border: 1px solid currentColor; }
.btn-outline:hover { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--brown); color: var(--cream); }
.btn-arrow::after { content: '→'; font-size: 0.95rem; margin-left: 0.1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ─── IMAGE PLACEHOLDER ─── */
.img-placeholder {
  background: linear-gradient(135deg, var(--cream) 0%, #E0D5C4 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.65rem; color: var(--mist);
  font-family: var(--ff-body);
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px dashed rgba(107,66,38,0.18);
  position: relative; overflow: hidden;
  text-align: center; padding: 1.5rem;
}
.img-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 12px,
    rgba(107,66,38,0.025) 12px, rgba(107,66,38,0.025) 24px
  );
}
.img-placeholder svg { width: 36px; height: 36px; opacity: 0.35; position: relative; z-index: 1; flex-shrink: 0; }
.img-placeholder span { position: relative; z-index: 1; line-height: 1.5; }
.img-placeholder .ph-note {
  font-size: 0.6rem; opacity: 0.55; margin-top: 0.1rem;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: clamp(3rem, 6vw, 5rem) 0 1.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.footer-brand p {
  margin-top: 1rem; font-size: 0.88rem;
  color: rgba(245,240,232,0.45); line-height: 1.8;
  max-width: 320px;
}
.footer-brand .nav-logo { font-size: 1.8rem; color: var(--cream); }
.footer-col h5 {
  font-family: var(--ff-body); font-size: 0.65rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem;
}
.footer-col a {
  display: block; color: rgba(245,240,232,0.5);
  font-size: 0.88rem; margin-bottom: 0.6rem;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--gold); padding-left: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(245,240,232,0.08);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  font-size: 0.78rem; color: rgba(245,240,232,0.3);
}

/* ─── FOOTER SOCIAL ICONS ─── */
.footer-social {
  display: flex; gap: 0.6rem; margin-top: 1.25rem;
}
.footer-social-link {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(245,240,232,0.12);
  transition: var(--transition);
}
.footer-social-link:hover { border-color: var(--gold); background: rgba(196,154,60,0.1); }
.footer-social-link svg { width: 16px; height: 16px; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* fade-in: CSS-only, runs on page load — no JS needed */
.fade-in {
  animation: fadeUp 0.85s var(--ease-out) both;
}
.fade-in:nth-child(1) { animation-delay: 0.08s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.32s; }
.fade-in:nth-child(4) { animation-delay: 0.44s; }

/* reveal: ALWAYS VISIBLE — no hiding, no animation dependency */
.reveal,
.reveal.js-ready,
.reveal.visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* ─── RECIPE CARD (shared) ─── */
.recipe-card { background: var(--warm-white); overflow: hidden; display: flex; flex-direction: column; }
.recipe-card-link { display: flex; flex-direction: column; flex: 1; }
.recipe-card-img {
  position: relative; width: 100%;
  padding-top: 66.66%; /* 3:2 ratio */
  overflow: hidden; flex-shrink: 0;
}
.recipe-card-img > * {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.recipe-card-img img {
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
  z-index: 2; /* img sits above placeholder */
}
/* Hide placeholder as soon as the img element exists and hasn't errored */
.recipe-card-img img:not([style*="display:none"]) ~ .img-placeholder { display: none; }
.recipe-card:hover .recipe-card-img img { transform: scale(1.06); }
.recipe-card-overlay {
  background: rgba(28,28,26,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.recipe-card:hover .recipe-card-overlay { opacity: 1; }
.recipe-card-body { padding: 1.1rem 1.35rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.recipe-card-cats { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.recipe-tag {
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.18rem 0.55rem;
  background: var(--cream); color: var(--smoke);
}
.recipe-tag.breakfast   { background: #FEF3E2; color: #B5522A; }
.recipe-tag.anytime     { background: #E8F0E8; color: #3D6338; }
.recipe-tag.express     { background: #E8EEF5; color: #2A5280; }
.recipe-tag.worth-the-wait { background: #F3EBF8; color: #6B3D8A; }
.recipe-card-body h3 {
  font-family: var(--ff-display); font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 400; line-height: 1.3; margin-bottom: 0.45rem;
  transition: color var(--transition);
}
.recipe-card:hover h3 { color: var(--gold); }
.recipe-card-chef { font-size: 0.72rem; color: var(--mist); margin-top: auto; padding-top: 0.5rem; }

/* ─── PAGE HEADER (shared) ─── */
.page-header {
  background: var(--charcoal);
  padding: clamp(7rem, 14vw, 10rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative; overflow: hidden; text-align: center;
}
.page-header-bg-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-size: clamp(5rem, 16vw, 14rem);
  font-weight: 300; color: rgba(245,240,232,0.038); letter-spacing: 0.08em;
  pointer-events: none; user-select: none; white-space: nowrap;
}
.page-header .eyebrow { color: var(--gold-light); justify-content: center; }
.page-header h1 { color: var(--cream); font-size: clamp(2.2rem, 5vw, 4rem); }
.page-header p { color: rgba(245,240,232,0.48); margin-top: 0.75rem; font-size: 0.95rem; }

/* ─── MOBILE RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .btn { padding: 0.8rem 1.4rem; font-size: 0.7rem; }
}

@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── TOUCH DEVICE HINTS ─── */
@media (hover: none) {
  .recipe-card-overlay { display: none; }
}
