/*
Theme Name: Serpil Chef
Theme URI: https://serpilrantanen.com
Author: Serpil Rantanen
Description: A bespoke chef portfolio theme for private dining, events, and seasonal cooking.
Version: 1.4.4
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.1
Text Domain: serpil-chef
*/

:root {
  --paper: #f4eee5;
  --porcelain: #fff9f0;
  --ink: #15110e;
  --muted: #6d6258;
  --forest: #18261f;
  --forest-soft: #e4e8dc;
  --tomato: #8f3d2f;
  --brass: #c29a61;
  --steel: #516a6f;
  --line: rgba(21, 17, 14, 0.14);
  --shadow: 0 24px 70px rgba(21, 17, 14, 0.16);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

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

a:hover,
a:focus-visible {
  color: var(--tomato);
}

.skip-link {
  background: var(--ink);
  color: var(--porcelain);
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -4rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  left: 0;
  padding: 1.15rem 5vw;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 20;
}

body:not(.home) .site-header {
  background: var(--ink);
  position: relative;
}

body[class*="page-template-template-home-"] .site-header {
  background: transparent;
  position: absolute;
}

.brand {
  color: var(--porcelain);
  display: grid;
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.32);
}

.brand span {
  color: rgba(255, 250, 242, 0.74);
  font-size: 0.78rem;
  font-weight: 500;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.site-header .custom-logo {
  height: auto;
  max-height: 3.3rem;
  width: auto;
}

.site-nav ul {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  border: 1px solid rgba(255, 250, 242, 0.36);
  border-radius: 999px;
  color: var(--porcelain);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 700;
  min-height: 2.35rem;
  padding: 0.42rem 0.9rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--porcelain);
  color: var(--ink);
  text-shadow: none;
}

.language-switcher {
  align-items: center;
  display: flex;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.language-switcher a {
  align-items: center;
  border: 1px solid rgba(255, 250, 242, 0.3);
  border-radius: 999px;
  color: var(--porcelain);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  justify-content: center;
  min-height: 2.1rem;
  min-width: 2.1rem;
  padding: 0.25rem 0.5rem;
}

.language-switcher .is-current a,
.language-switcher a:hover,
.language-switcher a:focus-visible {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}

.hero {
  align-items: center;
  background: #120f0c;
  color: var(--porcelain);
  display: flex;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: 8.5rem 5vw 5.75rem;
  position: relative;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(18, 15, 12, 0.88) 0%, rgba(18, 15, 12, 0.58) 42%, rgba(18, 15, 12, 0.24) 100%),
    linear-gradient(180deg, rgba(18, 15, 12, 0.62) 0%, rgba(18, 15, 12, 0.12) 46%, rgba(18, 15, 12, 0.66) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero::after {
  background: linear-gradient(0deg, rgba(244, 238, 229, 0.96) 0%, rgba(244, 238, 229, 0.5) 42%, rgba(244, 238, 229, 0) 100%);
  bottom: -1px;
  content: "";
  height: 6.5rem;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 1;
}

.hero-slider,
.hero-media {
  inset: 0;
  position: absolute;
}

.hero-slider {
  background: #0f0c09;
  overflow: hidden;
  z-index: -3;
}

.hero-media {
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 900ms ease, transform 1400ms ease;
}

.hero-media.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-media img,
.hero-media video {
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  width: 100%;
}

.hero-feature-video {
  aspect-ratio: 9 / 16;
  bottom: 6.75rem;
  position: absolute;
  right: 5vw;
  width: min(21.5rem, 28vw);
  z-index: 3;
}

.hero-video-frame {
  background: #0f0c09;
  border: 1px solid rgba(255, 249, 240, 0.24);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  height: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.hero-video-frame video {
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  width: 100%;
}

.hero--editorial {
  align-items: center;
  background:
    radial-gradient(circle at 74% 30%, rgba(194, 154, 97, 0.17), transparent 24rem),
    linear-gradient(135deg, #15110e 0%, #211913 48%, #18261f 100%);
  padding: 8rem 5vw 5.5rem;
}

.hero--editorial::before {
  background:
    linear-gradient(90deg, rgba(255, 249, 240, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 249, 240, 0.04) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  opacity: 0.2;
}

.hero--editorial .hero-inner {
  align-items: center;
  display: grid;
  gap: 5vw;
  grid-template-columns: minmax(0, 0.92fr) minmax(20rem, 0.72fr);
}

.hero--editorial .hero-copy-panel {
  max-width: 760px;
}

.hero--editorial .hero-showcase {
  justify-self: end;
  max-width: min(34rem, 42vw);
  position: relative;
  width: 100%;
  z-index: 3;
}

.hero--editorial .hero-showcase::before {
  border: 1px solid rgba(255, 249, 240, 0.24);
  border-radius: var(--radius);
  content: "";
  inset: -1.15rem 1.15rem 1.15rem -1.15rem;
  position: absolute;
}

.hero--editorial .hero-showcase::after {
  background: linear-gradient(180deg, rgba(194, 154, 97, 0.8), rgba(143, 61, 47, 0.76));
  border-radius: 999px;
  content: "";
  height: 42%;
  position: absolute;
  right: -0.7rem;
  top: 14%;
  width: 0.42rem;
}

.hero--editorial .hero-slider {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  inset: auto;
  position: relative;
  z-index: 1;
}

.hero--editorial .hero-controls {
  bottom: 1rem;
  right: 1rem;
}

.hero--fullscreen {
  align-items: flex-end;
  padding: 10rem 5vw 6.25rem;
}

.hero--fullscreen .hero-slider {
  z-index: -2;
}

.hero--fullscreen .hero-media video {
  object-position: center 52%;
}

.hero--fullscreen .hero-controls {
  bottom: 4.8rem;
}

.hero-inner {
  margin: 0 auto;
  max-width: var(--max);
  position: relative;
  width: 100%;
  z-index: 3;
}

.eyebrow {
  color: var(--brass);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.36);
  text-transform: uppercase;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6.4rem;
  font-weight: 500;
  line-height: 0.92;
  margin: 0;
  max-width: 9ch;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.42);
}

.hero-copy {
  color: rgba(255, 250, 242, 0.9);
  font-size: 1.2rem;
  margin: 1.5rem 0 0;
  max-width: 38rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.42);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 38rem;
}

.hero-controls {
  bottom: 3.2rem;
  display: flex;
  gap: 0.5rem;
  position: absolute;
  right: 5vw;
  z-index: 4;
}

.hero-controls button {
  background: rgba(255, 250, 242, 0.3);
  border: 1px solid rgba(255, 250, 242, 0.55);
  border-radius: 999px;
  min-height: 0.75rem;
  padding: 0;
  width: 2.35rem;
}

.hero-controls button.is-active {
  background: var(--brass);
  border-color: var(--brass);
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.72rem 1.05rem;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button-primary,
.wp-block-button__link,
input[type="submit"] {
  background: var(--tomato);
  color: var(--porcelain);
}

.button-primary:hover,
.button-primary:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible {
  background: #823421;
  color: var(--porcelain);
  transform: translateY(-1px);
}

.button-ghost {
  background: rgba(255, 250, 242, 0.08);
  border-color: rgba(255, 250, 242, 0.42);
  color: var(--porcelain);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: var(--porcelain);
  color: var(--ink);
}

.section {
  padding: 5.5rem 5vw;
}

.section-inner {
  margin: 0 auto;
  max-width: var(--max);
}

.intro-band {
  background: var(--paper);
  margin-top: -1px;
  padding-top: 2.4rem;
}

.intro-grid {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1.6fr;
}

.section-label {
  color: var(--tomato);
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
}

.lead {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  line-height: 1.12;
  margin: 0;
}

.muted {
  color: var(--muted);
}

.services {
  background: var(--porcelain);
}

.recipe-feature {
  background: var(--forest);
  color: var(--porcelain);
}

.recipe-feature-grid {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr 0.9fr;
}

.recipe-feature h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.25rem;
  font-weight: 500;
  line-height: 1.04;
  margin: 0;
  max-width: 12ch;
}

.recipe-feature-card {
  align-content: center;
  background: rgba(255, 249, 240, 0.08);
  border: 1px solid rgba(255, 249, 240, 0.18);
  border-radius: var(--radius);
  display: grid;
  gap: 1.35rem;
  padding: 2rem;
}

.recipe-feature-card p {
  color: rgba(255, 249, 240, 0.82);
  margin: 0;
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr minmax(18rem, 0.55fr);
  margin-bottom: 2rem;
}

.section-heading h2,
.story-copy h2,
.contact-panel h2,
.journal h2,
.content-area h1,
.content-area h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.1rem;
  font-weight: 500;
  line-height: 1.04;
  margin: 0;
}

.service-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 19rem;
  padding: 1.35rem;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-card strong {
  color: var(--tomato);
  display: block;
  margin-bottom: 3.8rem;
}

.service-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 1rem;
}

.story {
  background: var(--forest);
  color: var(--porcelain);
}

.story-grid {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(19rem, 0.82fr) 1fr;
}

.story-media {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.story-media img {
  aspect-ratio: 4 / 5;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.story-copy .section-label {
  color: #dfb777;
}

.story-copy p {
  color: rgba(255, 250, 242, 0.82);
  font-size: 1.05rem;
  max-width: 42rem;
}

.signature-line {
  align-items: center;
  color: #dfb777;
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
}

.signature-line::before {
  background: #dfb777;
  content: "";
  height: 1px;
  width: 4rem;
}

.menu-band {
  background: var(--paper);
}

.menu-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 0.9fr 1.1fr;
}

.menu-board {
  background: var(--ink);
  border-radius: var(--radius);
  color: var(--porcelain);
  padding: 2rem;
}

.menu-board h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.06;
  margin: 0 0 1.5rem;
}

.menu-list {
  display: grid;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-list li {
  border-top: 1px solid rgba(255, 250, 242, 0.18);
  padding-top: 1rem;
}

.menu-list span {
  color: #dfb777;
  display: block;
  font-weight: 800;
}

.menu-image img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.gallery {
  background: var(--porcelain);
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 0.8fr 1fr;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-item img {
  aspect-ratio: 1 / 1;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.tall img {
  aspect-ratio: 4 / 5;
}

.journal {
  background: var(--forest-soft);
}

.journal-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
}

.post-card {
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 13rem;
  padding: 1.2rem;
}

.post-card time,
.post-card .post-meta {
  color: var(--tomato);
  font-size: 0.9rem;
  font-weight: 700;
}

.post-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.15;
  margin: 0.8rem 0;
}

.contact {
  background: var(--paper);
  padding-bottom: 7rem;
}

.contact-panel {
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 0.8fr;
  padding: 2rem;
}

.contact-details {
  align-self: end;
  display: grid;
  gap: 0.7rem;
}

.contact-details a {
  color: var(--tomato);
  font-weight: 800;
}

.contact-details .button-primary,
.contact-details .button-primary:hover,
.contact-details .button-primary:focus-visible {
  color: var(--porcelain);
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 250, 242, 0.78);
  padding: 2rem 5vw;
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
}

.footer-inner strong {
  color: var(--porcelain);
}

.content-area {
  margin: 0 auto;
  max-width: 840px;
  padding: 5rem 5vw;
}

.content-area img {
  border-radius: var(--radius);
}

.post-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.recipe-template {
  background: var(--paper);
}

.recipe-hero {
  align-items: end;
  background: var(--ink);
  color: var(--porcelain);
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr minmax(18rem, 0.72fr);
  padding: 5rem 5vw;
}

.recipe-hero__copy {
  max-width: 48rem;
}

.recipe-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.8rem;
  font-weight: 500;
  line-height: 0.98;
  margin: 0;
}

.recipe-hero p:not(.section-label) {
  color: rgba(255, 249, 240, 0.78);
  font-size: 1.08rem;
}

.recipe-hero__image {
  border-radius: var(--radius);
  overflow: hidden;
}

.recipe-hero__image img {
  aspect-ratio: 4 / 5;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.recipe-content {
  margin: 0 auto;
  max-width: 880px;
  padding: 4rem 5vw 6rem;
}

.recipe-content > * + * {
  margin-top: 1.35rem;
}

.wprm-recipe-container {
  margin: 2rem 0;
}

.wprm-recipe,
.wprm-recipe-template {
  background: var(--porcelain) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow);
  color: var(--ink) !important;
  overflow: hidden;
}

.wprm-recipe-name,
.wprm-recipe-header,
.wprm-recipe-ingredients-header,
.wprm-recipe-instructions-header {
  color: var(--ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 500 !important;
}

.wprm-recipe-summary,
.wprm-recipe-ingredient,
.wprm-recipe-instruction {
  color: var(--muted) !important;
}

.wprm-recipe-print,
.wprm-recipe-jump,
.wprm-recipe-template .wprm-recipe-link {
  background: var(--tomato) !important;
  border-radius: var(--radius) !important;
  color: var(--porcelain) !important;
  font-weight: 800 !important;
}

.wprm-recipe-meta-container,
.wprm-recipe-tags-container {
  border-color: var(--line) !important;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .language-switcher {
    justify-content: flex-start;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 9rem 5vw 5.5rem;
  }

  .hero-feature-video {
    bottom: 6rem;
    width: min(15.5rem, 32vw);
  }

  .hero--editorial .hero-inner {
    gap: 3rem;
    grid-template-columns: 1fr;
  }

  .hero--editorial .hero-showcase {
    justify-self: start;
    max-width: min(30rem, 100%);
  }

  .hero--hybrid .hero-copy,
  .hero--hybrid .hero-actions {
    max-width: 25rem;
  }

  .hero h1 {
    font-size: 4.2rem;
  }

  .intro-grid,
  .section-heading,
  .recipe-feature-grid,
  .story-grid,
  .menu-grid,
  .contact-panel,
  .recipe-hero {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .journal-list {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding: 1rem;
  }

  .site-nav a {
    font-size: 0.86rem;
    min-height: 2.2rem;
    padding: 0.36rem 0.72rem;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 8.5rem 1rem 5.75rem;
  }

  .hero--hybrid .hero-slider {
    display: none;
  }

  .hero--hybrid .hero-feature-video {
    aspect-ratio: auto;
    bottom: auto;
    height: auto;
    inset: 0;
    max-width: none;
    right: auto;
    width: auto;
    z-index: -2;
  }

  .hero--hybrid .hero-video-frame {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hero--editorial .hero-showcase {
    bottom: 0;
    height: 100%;
    left: 0;
    max-width: none;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    z-index: -2;
  }

  .hero--editorial .hero-inner {
    position: static;
  }

  .hero--editorial .hero-copy-panel {
    position: relative;
    z-index: 3;
  }

  .hero--editorial .hero-showcase::before,
  .hero--editorial .hero-showcase::after {
    display: none;
  }

  .hero--editorial .hero-showcase .hero-slider {
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .section {
    padding: 4rem 1rem;
  }

  .lead,
  .recipe-feature h2,
  .section-heading h2,
  .story-copy h2,
  .contact-panel h2,
  .journal h2,
  .content-area h1,
  .content-area h2 {
    font-size: 2.15rem;
  }

  .hero-controls {
    bottom: 1.25rem;
    left: 1rem;
    right: auto;
  }

  .hero--hybrid .hero-controls {
    display: none;
  }

  .recipe-hero {
    padding: 4rem 1rem;
  }

  .recipe-hero h1 {
    font-size: 3rem;
  }

  .recipe-content {
    padding: 3rem 1rem 4rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
