/* Base reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff7f0;
  color: #2c1a12;
  line-height: 1.6;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: rgba(255, 247, 240, 0.97);
  border-bottom: 1px solid #f0d1b5;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-mark {
  background: #e94b2f;
  color: white;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: #5b3522;
  padding-bottom: 0.1rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-bottom-color: #e94b2f;
}

/* Hero */
.hero {
  padding: 3rem 0 2.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin-bottom: 0.75rem;
}

.hero-text p {
  max-width: 32rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: #e94b2f;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary:hover {
  filter: brightness(0.95);
}

.hero-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #f0d1b5;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.hero-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Sections */
.section {
  padding: 2.75rem 0;
}

.section-alt {
  background: #fff0e0;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.section-intro {
  margin-bottom: 1.5rem;
  max-width: 34rem;
}

/* Two column layout */
.two-column {
  display: grid;
  gap: 2rem;
}

@media (min-width: 760px) {
  .two-column {
    grid-template-columns: 2fr 1.3fr;
  }
}

/* Cards */
.card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid #f0d1b5;
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.card ul {
  list-style: disc;
  padding-left: 1.2rem;
}

.card li + li {
  margin-top: 0.25rem;
}

/* Philosophy pills */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-top: 0.75rem;
}

.pill-list li {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #e94b2f33;
  background: #fff;
  font-size: 0.9rem;
}

/* Recipes (legacy recipe cards, if used) */
.recipe-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .recipe-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.recipe-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid #f0d1b5;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.recipe-card h3 {
  font-size: 1.2rem;
}

.recipe-tagline {
  font-size: 0.95rem;
  color: #7b4c34;
  margin-bottom: 0.2rem;
}

.recipe-card h4 {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.recipe-card ul,
.recipe-card ol {
  font-size: 0.9rem;
  padding-left: 1.1rem;
}

.recipe-card li + li {
  margin-top: 0.25rem;
}

.note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #7b4c34;
}

/* Contact */
#contact p + p {
  margin-top: 0.5rem;
}

#contact a {
  color: #e94b2f;
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid #f0d1b5;
  padding: 1rem 0;
  background: #fff7f0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #7b4c34;
}

.footer-sub {
  opacity: 0.9;
}

/* Responsive tweaks */
@media (max-width: 700px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none; /* keep it simple for now */
  }

  .hero {
    padding-top: 2rem;
  }
}

/* ---------------------------
   DARK THEME OVERRIDES
----------------------------*/

/* Main background + base text */
body {
  background: #0f0f0f;       /* deep black charcoal */
  color: #f2e4d8;            /* warm off-white/tan */
}

/* Header + footer */
.site-header, .site-footer {
  background: #0f0f0f;
  border-color: #3a2b20;     /* warm subtle line */
}

.nav a {
  color: #f2e4d8;
}

.nav a:hover {
  border-bottom-color: #e94b2f;
}

/* Hero section */
.hero {
  background: #0f0f0f;
}

.hero-text p {
  color: #e7d6c7;
}

/* Buttons */
.btn-primary {
  background: #e94b2f;
  color: #fff;
}

/* Cards (hero cards, info cards, recipe cards) */
.card,
.hero-card,
.recipe-card {
  background: #1a1a1a;         /* slightly lighter black */
  border: 1px solid #3a2b20;   /* warm tan border */
  color: #f2e4d8;
}

/* Section backgrounds */
.section {
  background: #0f0f0f;
}

.section-alt {
  background: #1a1a1a;         /* soft contrast */
}

/* Section headers & text styling */
.section h2,
.recipe-card h3,
.recipe-card h4,
.card h3,
.hero-card h2 {
  color: #f8e8d7;              /* warm highlight tone */
}

.section-intro,
.recipe-tagline,
.footer-sub {
  color: #d9c4b4;
}

/* Pill list */
.pill-list li {
  background: #1a1a1a;
  border-color: #e94b2f55;
  color: #f2e4d8;
}

/* Recipe lists */
.recipe-card ul,
.recipe-card ol {
  color: #e7d6c7;
}

/* Links */
a {
  color: #e94b2f;
}

a:hover {
  color: #ff7759;
}

/* Footer text */
.site-footer span, .footer-sub {
  color: #d9c4b4;
}

/* Logo */
.logo-mark {
  background: #e94b2f;
}

.logo-text {
  color: #f2e4d8;
}

/* ---------------------------
   Sauce logo grid
----------------------------*/

.sauce-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

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

@media (min-width: 960px) {
  .sauce-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Clickable logo cards */
.sauce-logo-card {
  text-decoration: none;
  color: inherit;
}

.sauce-logo-inner {
  background: radial-gradient(circle at top, #22130d 0, #0f0f0f 55%);
  border-radius: 1.2rem;
  border: 1px solid #3a2b20;
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.18s ease-out,
    background 0.18s ease-out;
}

/* The sauce logo images */
.sauce-logo-inner img {
  width: 140px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(0.9);
  transition:
    filter 0.18s ease-out,
    transform 0.18s ease-out;
}

/* Name under each logo */
.sauce-name {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f8e8d7;
  opacity: 0.9;
}

/* Hover and focus states: "light up" effect */
.sauce-logo-card:hover .sauce-logo-inner,
.sauce-logo-card:focus-visible .sauce-logo-inner {
  transform: translateY(-3px);
  border-color: #e94b2f;
  box-shadow: 0 0 18px rgba(233, 75, 47, 0.5);
  background: radial-gradient(circle at top, #341910 0, #0f0f0f 60%);
}

.sauce-logo-card:hover img,
.sauce-logo-card:focus-visible img {
  filter: brightness(1.15);
  transform: scale(1.04);
}

.sauce-logo-card:hover .sauce-name,
.sauce-logo-card:focus-visible .sauce-name {
  opacity: 1;
}

/* Keyboard focus outline for accessibility */
.sauce-logo-card:focus-visible {
  outline: 2px solid #e94b2f;
  outline-offset: 4px;
}

/* ---------------------------
   Recipe page layout
----------------------------*/

.recipe-hero{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
}

.recipe-hero__media{
  display: flex;
  justify-content: flex-end; /* align bottle to right edge */
  align-items: flex-start;
}

.recipe-title{ margin: 0 0 0.5rem 0; }

.recipe-badges{
  display:flex;
  flex-wrap:wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.badge{
  display:inline-flex;
  gap: 0.5rem;
  align-items:center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  font-size: 0.9rem;
}

/* Image placeholder */
.image-placeholder{
  height: 100%;
  min-height: 260px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
  display:flex;
  align-items:center;
  justify-content:center;
}

.image-placeholder__inner{
  text-align:center;
  padding: 1rem;
  color: rgba(255,255,255,0.85);
}

.image-placeholder__icon{
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

/* Grid */
.recipe-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.recipe-left, .recipe-right{
  display:flex;
  flex-direction:column;
  gap: 1.25rem;
}

/* Lists */
.ingredient-list{
  list-style:none;
  padding-left:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap: 0.55rem;
}

.ingredient-list li{
  display:flex;
  justify-content:space-between;
  gap: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.method-list{ margin:0; padding-left: 1.1rem; }
.method-list li{ margin: 0.55rem 0; }

.spec-list{ margin:0; padding-left: 1.1rem; }

.fact-note{
  display:block;
  font-size: 0.9rem;
  margin-top: 0.25rem;
  opacity: 0.85;
}

.backlink{ margin-top: 1.25rem; }
.backlink a{ color: inherit; text-decoration:none; opacity:0.85; }
.backlink a:hover{ opacity:1; }

/* Mobile */
@media (max-width: 900px){
  .recipe-hero{ grid-template-columns: 1fr; }
  .recipe-hero__media{ justify-content: center; }
  .recipe-grid{ grid-template-columns: 1fr; }
  .image-placeholder{ min-height: 220px; }
}

/* ---------------------------
   Inspired by section
----------------------------*/

.inspired-grid{
  margin-top: 0.75rem;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.inspired-item{
  display:block;
  padding: 0.9rem;
  border-radius: 16px;
  text-decoration:none;
  color: inherit;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.inspired-item:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}

.inspired-item__name{
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.inspired-item__note{
  opacity: 0.8;
  font-size: 0.95rem;
}

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

/* =========================================================
   HOMEPAGE REDESIGN STYLES (new layout)
   These only activate when you use the new homepage HTML.
========================================================= */

/* Slightly tighter section option for homepage */
.section-tight{
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* New hero variant */
.hero--new{
  padding: 4.5rem 0 3rem 0;
}

.hero-inner--new{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
  align-items: start;
}

/* Eyebrow/kicker pill */
.kicker{
  display:inline-block;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  opacity: 0.9;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  margin-bottom: 0.9rem;
}

.hero-sub{
  opacity: 0.9;
  max-width: 52ch;
}

.hero-cta{
  display:flex;
  gap: 0.75rem;
  flex-wrap:wrap;
  margin-top: 1rem;
}

/* Ghost button */
.btn-ghost{
  display:inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  text-decoration:none;
  color: inherit;
  background: rgba(255,255,255,0.03);
}

.btn-ghost:hover{
  background: rgba(255,255,255,0.06);
}

.btn-ghost--sm{
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
}

/* Hero metrics */
.hero-metrics{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.metric{
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

.metric__num{
  font-weight: 800;
  font-size: 1.15rem;
  color: #f8e8d7;
}

.metric__label{
  opacity: 0.8;
  font-size: 0.92rem;
  margin-top: 0.2rem;
  color: #d9c4b4;
}

/* Right hero panel stack */
.hero-stack{
  display:flex;
  flex-direction:column;
  gap: 0.9rem;
}

.hero-panel{
  padding: 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

.hero-panel__title{
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #f8e8d7;
}

.hero-panel__foot{
  margin-top: 0.85rem;
  opacity: 0.85;
  font-size: 0.95rem;
  color: #d9c4b4;
}

/* Featured mini list */
.hero-mini-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.mini-sauce{
  display:grid;
  grid-template-columns: 44px 1fr;
  gap: 0.75rem;
  align-items:center;
  padding: 0.7rem;
  border-radius: 16px;
  text-decoration:none;
  color: inherit;
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.10);
}

.mini-sauce:hover{
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.16);
}

.mini-sauce__media{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.03);
}

.mini-sauce__name{
  font-weight: 750;
  line-height: 1.1;
  color: #f8e8d7;
}

.mini-sauce__meta{
  opacity: 0.75;
  font-size: 0.92rem;
  margin-top: 0.15rem;
  color: #d9c4b4;
}

/* Glassy “what you get” row */
.hero-glass{
  padding: 0.9rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
}

.glass-row{
  display:flex;
  flex-wrap:wrap;
  gap: 0.5rem;
  align-items:center;
}

.glass-label{
  opacity: 0.9;
  margin-right: 0.25rem;
  color: #d9c4b4;
}

.glass-pill{
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.12);
  font-size: 0.92rem;
  color: #f2e4d8;
}

/* Section headers with actions */
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.section-actions{
  display:flex;
  gap: 0.5rem;
  align-items:center;
}

/* Make homepage sauce grid feel more “featured” without changing your JS */
.sauce-grid--featured{
  gap: 1rem;
}

.sauce-grid--featured > *{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  overflow:hidden;
}

/* How it works */
.how-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.how-card h3{
  margin-top: 0.75rem;
  color: #f8e8d7;
}

.how-card p{
  color: #d9c4b4;
}

.how-icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: #f2e4d8;
}

/* About split */
.about-split{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}

.about-pills{
  margin-top: 0.9rem;
  display:flex;
  gap: 0.5rem;
  flex-wrap:wrap;
}

.pill{
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  font-size: 0.92rem;
  opacity: 0.95;
  color: #f2e4d8;
}

.check-list{
  margin: 0;
  padding-left: 1.1rem;
}

.check-list li{
  margin: 0.5rem 0;
  color: #e7d6c7;
}

/* Contact card */
.contact-card{
  display:flex;
  justify-content:space-between;
  gap: 1.25rem;
  align-items:center;
  padding: 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

.contact-action{
  text-align:right;
}

.contact-sub{
  margin-top: 0.5rem;
  opacity: 0.9;
}

.contact-sub a{
  color: inherit;
  text-decoration: none;
}

.contact-sub a:hover{
  text-decoration: underline;
}

/* Mobile for new homepage */
@media (max-width: 950px){
  .hero-inner--new{ grid-template-columns: 1fr; }
  .hero--new{ padding-top: 3.5rem; }
  .hero-metrics{ grid-template-columns: 1fr; }
  .how-grid{ grid-template-columns: 1fr; }
  .about-split{ grid-template-columns: 1fr; }
  .contact-card{ flex-direction:column; align-items:flex-start; }
  .contact-action{ text-align:left; }
}

.mini-sauce__media{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.mini-sauce__media img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* use contain if you don't want cropping */
  display: block;
}
/* Sauce hero media (bottle + logo badge) */
/* Bottle container: no visible frame */
.sauce-bottle-wrap{
  width: 100%;
  display: flex;
  justify-content: flex-end; /* keep it lined up */
  align-items: center;
  height: auto;             /* IMPORTANT: don't stretch */
  padding: 0.5rem 0;
}

/* Bottle image */
.sauce-bottle{
  display: block;

  /* Keep aspect ratio and prevent the natural 1024x1536 PNG from dominating */
  width: auto;
  height: auto;
  max-height: clamp(180px, 24vh, 260px);
  max-width: clamp(140px, 18vw, 210px);

  object-fit: contain;

  /* Rounded corners (no gradient) */
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);

  transition: transform 120ms ease;
}
/* Logo badge overlay */
.sauce-logo-badge{
  position:absolute;
  bottom: 16px;
  right: 16px;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.9);
  background: #000;
  box-shadow:
    0 6px 18px rgba(0,0,0,0.55),
    0 0 0 4px rgba(0,0,0,0.35);
}

/* Optional subtle hover lift */
.sauce-bottle-wrap:hover .sauce-bottle{
  transform: translateY(-2px);
}

.sauce-bottle-wrap:hover .sauce-logo-badge{
  transform: scale(1.04);
}

/* Recipe title with logo */
.recipe-title-row{
  display:flex;
  align-items:center;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.recipe-logo{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.9);
  background: #000;
  box-shadow:
    0 6px 18px rgba(0,0,0,0.55),
    0 0 0 4px rgba(0,0,0,0.35);
}

/* Keep title aligned visually with logo */
.recipe-title{
  margin: 0;
  line-height: 1.1;
}
