/*
Theme Name: I Homes Cafe
Theme URI: https://ihomescafe.com/
Author: I Homes Cafe
Description: Official theme for I Homes Cafe — easy homemade recipes, desserts, milkshakes, smoothies, coffee and baking.
Version: 2.8
License: Private
Text Domain: ihomes-cafe
*/
:root {
  --cream: #f8f6f1;
  --cream-2: #faf9f6;
  --brown: #92785d;
  --brown-dark: #7a6248;
  --dark: #302e29;
  --muted: #77736c;
  --border: #eae7e0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Arial, sans-serif;
  color: var(--dark);
  background: #fff;
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1160px; margin: auto; padding: 0 22px; }
[hidden] { display: none !important; }

/* Header */
.topbar {
  background: var(--cream);
  text-align: center;
  padding: 7px;
  font-size: 12px;
  letter-spacing: 1px;
}

header {
  border-bottom: 1px solid var(--border);
  background: white;
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo { font-family: Georgia, serif; font-size: 29px; font-weight: bold; letter-spacing: -1px; }
.logo span { color: var(--brown); }

nav { display: flex; gap: 25px; align-items: center; }
nav a { font-size: 13px; font-weight: 600; padding: 8px 2px; }
nav a:hover, nav a.active { color: var(--brown); }

.header-right { display: flex; align-items: center; gap: 22px; }

/* Social links — cute round buttons matching the cream/brown theme */
.social-links { display: flex; align-items: center; gap: 9px; }
.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--brown);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.social-links a:hover {
  background: var(--brown);
  border-color: var(--brown);
  color: #fff;
  transform: translateY(-2px);
}
.social-links svg { width: 16px; height: 16px; fill: currentColor; display: block; }

/* Hero */
.hero { background: var(--cream); padding: 55px 0; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 45px; }

.eyebrow {
  color: var(--brown);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.2;
  margin: 17px 0;
  font-weight: normal;
}

.hero p { color: var(--muted); font-size: 15px; max-width: 470px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.primary-btn {
  display: inline-block;
  background: var(--brown);
  color: white;
  padding: 12px 25px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 3px;
  border: 1px solid var(--brown);
}
.primary-btn:hover { background: var(--brown-dark); }

.ghost-btn {
  display: inline-block;
  background: transparent;
  color: var(--dark);
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 3px;
  border: 1px solid #cfc9bd;
}
.ghost-btn:hover { border-color: var(--brown); color: var(--brown); }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 6px;
}
.hero-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(255,255,255,.95);
  border-radius: 4px;
  padding: 9px 14px;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 4px 18px rgba(48,46,41,.14);
}
.hero-badge strong { font-family: Georgia, serif; font-size: 14px; display: block; }

/* Sections */
section { padding: 65px 0; }
.section-heading { text-align: center; margin-bottom: 35px; }
.section-heading h2 { font-family: Georgia, serif; font-size: 34px; font-weight: normal; }
.section-heading p { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* Categories — small compact tiles, like a normal category strip */
.category-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }

.category {
  background: var(--cream);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color .15s ease, transform .15s ease;
}
.category:hover { border-color: var(--brown); transform: translateY(-2px); }
.category img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.category-body { padding: 9px 6px 11px; text-align: center; }
.category h3 { font-family: Georgia, serif; font-size: 15px; font-weight: normal; line-height: 1.3; }
.category p { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* Recipe toolbar */
.recipe-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: white;
  border: 1px solid var(--border);
  color: var(--dark);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
}
.chip:hover { border-color: var(--brown); color: var(--brown); }
.chip.on { background: var(--brown); border-color: var(--brown); color: white; }

.search-box { position: relative; }
.search-box input {
  font-family: inherit;
  font-size: 13.5px;
  padding: 10px 14px 10px 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 240px;
  max-width: 100%;
  color: var(--dark);
  background: white;
}
.search-box input:focus { outline: 2px solid var(--brown); outline-offset: 1px; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* Recipes */
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.recipe-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
.recipe-card .tag {
  color: var(--brown);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 12px;
}
.recipe-card h3 { font-family: Georgia, serif; font-size: 22px; font-weight: normal; line-height: 1.35; margin: 5px 0; }
.recipe-card a:hover h3 { color: var(--brown); }
.recipe-card p { font-size: 13px; color: var(--muted); }
.card-meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.empty-note { text-align: center; color: var(--muted); font-size: 14px; padding: 30px 0; grid-column: 1 / -1; }

/* About / closing */
.about { background: var(--cream); text-align: center; }
.about-content { max-width: 680px; margin: auto; }
.about h2 { font-family: Georgia, serif; font-size: 33px; font-weight: normal; margin-bottom: 15px; }
.about p { color: var(--muted); font-size: 14px; }
.about .primary-btn { margin-top: 20px; }

.closing { text-align: center; padding: 55px 20px; }
.closing h2 { font-family: Georgia, serif; font-size: 30px; font-weight: normal; }
.closing p { color: var(--muted); font-size: 14px; }

/* Homepage SEO content — plain text sections, same simple theme */
.guide { background: #fff; }
.guide-inner { max-width: 820px; margin: auto; }
.guide h2 { font-family: Georgia, serif; font-size: 30px; font-weight: normal; margin-bottom: 14px; }
.guide h3 { font-family: Georgia, serif; font-size: 21px; font-weight: normal; margin: 26px 0 6px; }
.guide p { font-size: 14.5px; color: #4c4a44; margin: 10px 0; }
.guide a { color: var(--brown-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.guide a:hover { color: var(--brown); }
.collection-list { list-style: none; margin: 14px 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 34px; }
.collection-list li { padding: 9px 2px 9px 20px; position: relative; border-bottom: 1px dashed var(--border); font-size: 14.5px; }
.collection-list li::before { content: ""; position: absolute; left: 3px; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: var(--brown); }
.faq { background: var(--cream-2); }
.faq-inner { max-width: 820px; margin: auto; }
.faq h2 { font-family: Georgia, serif; font-size: 30px; font-weight: normal; text-align: center; margin-bottom: 8px; }
.faq .faq-sub { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 2px; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-family: Georgia, serif; font-size: 19px; font-weight: normal; margin-bottom: 5px; }
.faq-item p { font-size: 14px; color: #4c4a44; }
.faq-item a { color: var(--brown-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.footer-cats { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; margin-top: 6px; }
.footer-cats a:hover { color: #e8ddcb; }
.footer-about { max-width: 520px; margin-top: 8px; line-height: 1.65; }

/* Category + article pages */
.page-head { background: var(--cream); padding: 46px 0 40px; }
.crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.crumb a:hover { color: var(--brown); }
.page-head h1 { font-family: Georgia, serif; font-weight: normal; font-size: clamp(30px, 4vw, 42px); line-height: 1.25; }
.page-head p.lead { color: var(--muted); font-size: 15px; margin-top: 10px; max-width: 640px; }

.article-wrap { max-width: 840px; margin: auto; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); margin: 14px 0 24px; }
.article-meta .tag {
  color: var(--brown); text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: 1px;
}

figure { margin: 0; }
.featured-figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
figcaption { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 9px; }

.article-body { font-size: 15.5px; }
.article-body p { margin: 18px 0; }
.article-body h2 { font-family: Georgia, serif; font-weight: normal; font-size: 27px; margin: 34px 0 6px; }
.article-body h3 { font-family: Georgia, serif; font-weight: normal; font-size: 21px; margin: 26px 0 4px; }
.article-body ul { margin: 10px 0 6px 22px; }
.article-body li { margin: 6px 0; }
.article-body a { color: var(--brown-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--brown); }

.recipe-facts.five { grid-template-columns: repeat(5, 1fr); }

.step-figure { margin: 20px 0 6px; }
.step-figure img { width: 100%; height: auto; border-radius: 6px; }
.portrait-figure { max-width: 430px; margin: 24px auto 6px; }
.portrait-figure img { width: 100%; height: auto; border-radius: 6px; }

.data-table { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: 14px; }
.data-table th, .data-table td { text-align: left; padding: 9px 12px; border: 1px solid var(--border); vertical-align: top; }
.data-table th { background: var(--cream); font-family: Georgia, serif; font-weight: normal; font-size: 14.5px; }

.editorial-note { font-size: 13.5px; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 14px; margin-top: 30px; }
.editorial-note p { margin: 10px 0; }

@media (max-width: 768px) {
  .recipe-facts.five { grid-template-columns: repeat(2, 1fr); }
  .data-table th, .data-table td { padding: 7px 8px; font-size: 12.5px; }
}

.recipe-box {
  background: var(--cream);
  border-radius: 6px;
  padding: 24px 26px;
  margin: 28px 0;
}
.recipe-box h2 { font-family: Georgia, serif; font-weight: normal; font-size: 24px; margin-bottom: 14px; }
.recipe-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fact { background: white; border: 1px solid var(--border); border-radius: 4px; padding: 10px 12px; text-align: center; }
.fact span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.fact strong { font-size: 14.5px; }

.ingredients { list-style: none; margin: 10px 0 4px; }
.ingredients li { padding: 8px 2px 8px 24px; position: relative; border-bottom: 1px dashed var(--border); font-size: 14.5px; }
.ingredients li::before {
  content: ""; position: absolute; left: 4px; top: 16px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brown);
}
.ingredients li:last-child { border-bottom: none; }

.steps { list-style: none; counter-reset: step; margin-top: 8px; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 18px 52px; font-size: 15px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brown); color: white;
  font-family: Georgia, serif; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}

.gallery-23 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0 6px; }
.gallery-23 img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; }

.tip-box {
  border: 1px solid var(--border);
  border-left: 4px solid var(--brown);
  border-radius: 4px;
  padding: 16px 20px;
  margin: 26px 0;
  background: var(--cream-2);
  font-size: 14.5px;
}
.tip-box strong { font-family: Georgia, serif; }

.article-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 36px; }

/* Author box — sits at the end of every article, in the cream/brown theme */
.author-box {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brown);
  border-radius: 6px;
  padding: 26px 28px;
  margin: 40px 0 6px;
}
.author-avatar {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--brown);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 30px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--border), 0 4px 14px rgba(48,46,41,.12);
}
.author-info { flex: 1 1 auto; min-width: 0; }
.author-label {
  color: var(--brown);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.author-name {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: normal;
  line-height: 1.3;
  margin: 3px 0 6px;
}
.author-role { font-size: 12.5px; color: var(--brown-dark); font-weight: 600; margin-bottom: 8px; }
.author-bio { font-size: 14px; color: var(--muted); line-height: 1.65; }
.author-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.author-count { font-size: 12.5px; color: var(--muted); }
.author-count strong { color: var(--dark); font-family: Georgia, serif; font-size: 14px; }
.author-social { display: flex; align-items: center; gap: 8px; }
.author-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--brown);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.author-social a:hover { background: var(--brown); border-color: var(--brown); color: #fff; transform: translateY(-2px); }
.author-social svg { width: 15px; height: 15px; fill: currentColor; display: block; }

.related { background: var(--cream-2); }

/* Simple text pages */
.text-page { max-width: 760px; margin: auto; }
.text-page p { margin: 14px 0; font-size: 15px; color: #4c4a44; }
.text-page h2 { font-family: Georgia, serif; font-weight: normal; font-size: 24px; margin: 26px 0 4px; }

/* Footer */
footer { background: #302e29; color: white; padding: 45px 0 20px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 25px; }
footer h3 { font-family: Georgia, serif; font-size: 25px; margin-bottom: 10px; }
footer p { color: #d2cec6; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; }
.footer-links a { padding: 6px 0; }
.footer-links a:hover { color: #e8ddcb; }
.copyright { border-top: 1px solid #514e47; margin-top: 35px; padding-top: 18px; text-align: center; }

/* Tablet */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; padding: 18px 0; min-height: 0; }
  .header-right { flex-direction: column; gap: 12px; width: 100%; }
  nav { justify-content: center; flex-wrap: wrap; gap: 10px 18px; width: 100%; }
  .social-links { justify-content: center; }
  .hero { padding: 38px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 25px; }
  .hero-media img { height: 250px; }
  section { padding: 48px 0; }
  .category-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .category h3 { font-size: 12.5px; }
  .category-body { padding: 7px 4px 9px; }
  .recipe-grid { grid-template-columns: 1fr; gap: 28px; }
  .recipe-tools { flex-direction: column; align-items: stretch; }
  .search-box input { width: 100%; }
  .recipe-facts { grid-template-columns: repeat(2, 1fr); }
  .gallery-23 { gap: 10px; }
  .author-box { flex-direction: column; align-items: center; text-align: center; padding: 24px 20px; }
  .author-meta-row { flex-direction: column; justify-content: center; text-align: center; }
  .collection-list { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media print {
  header, footer, .topbar, .article-nav, .related { display: none; }
  body { line-height: 1.5; }
}
