/* ==========================================================================
   MOC Jídla — Style Sheet
   Palette: sage #6b7f5a, warm-white #faf9f6, sand #e8e2d6, dark #2a2a2a
   Accent: terracotta #c4856a
   Fonts: Playfair Display (headings), Montserrat (body)
   ========================================================================== */

:root {
  --sage: #6b7f5a;
  --sage-dark: #566a47;
  --sage-light: #e8ede3;
  --warm-white: #faf9f6;
  --sand: #e8e2d6;
  --dark: #2a2a2a;
  --terracotta: #c4856a;
  --text: #3d3d3d;
  --text-light: #6b6b6b;
  --radius: 8px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sage-dark); }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.05);
  padding: .7rem 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sage);
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: .45rem;
}

.brand:hover { color: var(--sage-dark); }

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: .85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sage);
  transition: width .25s;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links a:hover,
.nav-links a.active { color: var(--sage); }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 22px;
  position: relative;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  position: absolute;
  left: 0;
  transition: .3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .4);
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 0;
}

.hero h1 {
  font-size: 3.4rem;
  margin-bottom: 1.2rem;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.hero .subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: .8rem;
  color: rgba(255,255,255,.95);
}

.hero .subtitle-small {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  font-style: italic;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero .btn-primary {
  background: var(--sage);
  border: 2px solid var(--sage);
}

.hero .btn-primary:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
}

.hero .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.6);
}

.hero .btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  color: #fff;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: .75rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
  transition: all .25s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

.btn-primary:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--sage);
  border: 2px solid var(--sage);
}

.btn-outline:hover {
  background: var(--sage);
  color: #fff;
}

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: 4.5rem 0; }

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: .5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-size: .95rem;
}

/* ==========================================================================
   About teaser (home)
   ========================================================================== */
.about-teaser {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
}

.about-teaser .photo {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--sand);
}

.about-teaser .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-teaser .text h2 {
  margin-bottom: 1rem;
  color: var(--sage);
}

.about-teaser .text p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* ==========================================================================
   Recipe cards
   ========================================================================== */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

.recipe-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.recipe-card .card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--sand);
}

.recipe-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.recipe-card:hover .card-img img {
  transform: scale(1.04);
}

.recipe-card .card-body {
  padding: 1.1rem 1.3rem 1.3rem;
}

.recipe-card .card-body h3 {
  font-size: 1.05rem;
  margin-bottom: .3rem;
}

.recipe-card .card-body p {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  background: var(--sage);
  color: #fff;
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: 12px;
  margin: 2rem 0;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: .8rem;
  font-size: 1.8rem;
}

.cta-banner p {
  margin-bottom: 1.5rem;
  opacity: .9;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn {
  background: #fff;
  color: var(--sage);
  border-color: #fff;
  font-weight: 700;
}

.cta-banner .btn:hover {
  background: var(--warm-white);
  border-color: var(--warm-white);
}

/* ==========================================================================
   E-book section
   ========================================================================== */
.ebook-section {
  background: #fff;
}

.ebook-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.ebook-wrap .ebook-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.ebook-wrap .ebook-img img { width: 100%; }

.ebook-wrap .ebook-text h2 { margin-bottom: .8rem; }

.ebook-wrap .ebook-text p {
  margin-bottom: 1.2rem;
  color: var(--text-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--dark);
  color: #aaa;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: .8rem;
}

.footer-grid p {
  font-size: .85rem;
  line-height: 1.6;
}

.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: .4rem; }

.footer-grid ul a {
  color: #aaa;
  font-size: .85rem;
}

.footer-grid ul a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #3d3d3d;
  padding-top: 1rem;
  text-align: center;
  font-size: .8rem;
  color: #666;
}

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.page-header {
  padding: 3rem 0 2rem;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--warm-white) 100%);
}

.page-header h1 {
  font-size: 2.2rem;
  color: var(--sage);
  margin-bottom: .4rem;
}

.page-header p {
  color: var(--text-light);
  font-size: 1rem;
}

/* ==========================================================================
   About page
   ========================================================================== */
.about-content {
  max-width: 760px;
  margin: 0 auto;
}

.about-content .about-photo {
  float: right;
  width: 260px;
  margin: 0 0 1.5rem 2rem;
  border-radius: 12px;
  overflow: hidden;
}

.about-content .about-photo img { width: 100%; }

.about-content p {
  margin-bottom: 1.2rem;
  color: var(--text-light);
}

.about-content blockquote {
  border-left: 3px solid var(--sage);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--sage);
}

/* ==========================================================================
   Consultation page
   ========================================================================== */
.offerings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.offering-card {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
}

.offering-card .icon {
  font-size: 2.2rem;
  margin-bottom: .8rem;
}

.offering-card h3 {
  font-size: 1.05rem;
  margin-bottom: .5rem;
}

.offering-card p {
  font-size: .85rem;
  color: var(--text-light);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 10px rgba(0,0,0,.05);
}

.form-group { margin-bottom: 1.4rem; }

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--sand);
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  background: var(--warm-white);
  transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sage);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  text-align: center;
  margin-top: .5rem;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 { margin-bottom: 1rem; }

.contact-info p {
  margin-bottom: .8rem;
  color: var(--text-light);
  font-size: .95rem;
}

.contact-info a { color: var(--sage); }

/* ==========================================================================
   Utility
   ========================================================================== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* ==========================================================================
   Recipe Detail
   ========================================================================== */
.recipe-detail {
  max-width: 900px;
  margin: 0 auto;
}

.recipe-gallery {
  display: grid;
  gap: .75rem;
  margin-bottom: 2.5rem;
}

/* 1 image: full width */
.recipe-gallery img:only-child {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* 2 images: side by side */
.recipe-gallery:has(img:nth-child(2):last-child) {
  grid-template-columns: 1fr 1fr;
}

/* 3+ images: first one large, rest below */
.recipe-gallery:has(img:nth-child(3)) {
  grid-template-columns: 1fr 1fr;
}

.recipe-gallery:has(img:nth-child(3)) img:first-child {
  grid-column: 1 / -1;
  height: 400px;
}

.recipe-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

.recipe-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--sand);
}

.recipe-columns {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

.recipe-procedure h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--sage);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--sage-light);
}

.recipe-steps {
  padding-left: 1.4rem;
  margin-bottom: 2.5rem;
}

.recipe-steps li {
  margin-bottom: 1rem;
  line-height: 1.7;
  padding-left: .3rem;
}

.recipe-steps li::marker {
  color: var(--sage);
  font-weight: 700;
}

.recipe-notes {
  list-style: none;
  padding-left: 0;
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--sage);
}

.recipe-notes li {
  margin-bottom: .6rem;
  line-height: 1.6;
  color: var(--text-light);
  font-size: .92rem;
}

.recipe-notes li:last-child { margin-bottom: 0; }

.recipe-notes li::before {
  content: '\2022';
  color: var(--sage);
  margin-right: .5rem;
}

.ingredients-box {
  background: var(--sage-light);
  border-radius: 12px;
  padding: 1.5rem;
  position: sticky;
  top: 70px;
}

.ingredients-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--sage-dark);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid rgba(107,127,90,.2);
}

.ingredients-box ul {
  list-style: none;
  padding: 0;
}

.ingredients-box li {
  padding: .45rem 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
  line-height: 1.5;
  font-size: .9rem;
}

.ingredients-box li:last-child { border-bottom: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .about-teaser { grid-template-columns: 1fr; text-align: center; }
  .about-teaser .photo { max-width: 240px; margin: 0 auto; }
  .ebook-wrap { grid-template-columns: 160px 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .recipe-columns { grid-template-columns: 1fr; }
  .ingredients-box { position: static; }
}

@media (max-width: 768px) {
  .hamburger { display: block; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--warm-white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -4px 0 20px rgba(0,0,0,.08);
    transition: right .3s;
    z-index: 200;
  }

  .nav-links.open { right: 0; }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.25);
    z-index: 150;
  }

  .nav-overlay.open { display: block; }

  .hero { min-height: 50vh; }
  .hero h1 { font-size: 2.2rem; }
  .hero .subtitle { font-size: .95rem; }

  .recipe-gallery:has(img:nth-child(3)) { grid-template-columns: 1fr; }
  .recipe-gallery:has(img:nth-child(3)) img:first-child { height: 280px; }
  .recipe-gallery img { height: 200px; }

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

  .ebook-wrap { grid-template-columns: 1fr; text-align: center; }
  .ebook-wrap .ebook-img { max-width: 160px; margin: 0 auto; }

  .about-content .about-photo {
    float: none;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 1.5rem;
  }

  .page-header h1 { font-size: 1.8rem; }
}

@media (max-width: 500px) {
  .recipe-grid { grid-template-columns: 1fr; }
  .offerings-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .hero-content { padding: 2rem 0; }
  .contact-form { padding: 1.5rem; }
}
