/*
Theme Name: SoodleNoop Fresh
Theme URI: https://soodlenoop.com
Description: Fresh modern bento-grid redesign for SoodleNoop. Child theme of SoodleNoop — all content, plugins and admin tools are preserved.
Author: Lovable
Template: soodlenoop
Version: 1.0.0
Text Domain: soodlenoop-fresh
*/

/* ============ TOKENS ============ */
:root {
  --bg: #FCFDFB;
  --ink: #1A2E22;
  --green: #2E9E6B;
  --green-dark: #238056;
  --sand: #E8DFC8;
  --sand-soft: #F4EFE2;
  --muted: rgba(26, 46, 34, 0.58);
  --line: rgba(26, 46, 34, 0.08);
  --text: var(--ink);
  --green-light: var(--sand);
  --border: var(--line);
  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --radius: 18px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --maxw: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.15;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 999;
  width: auto; height: auto; clip: auto;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(252, 253, 251, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.site-branding a {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.045em;
  color: var(--ink);
}
.site-branding span { color: var(--green); }
.site-branding img { max-height: 44px; width: auto; }

.main-navigation ul {
  list-style: none; display: flex; gap: 26px; margin: 0; padding: 0;
}
.main-navigation a {
  font-size: 0.76rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--green); }

.header-search-form {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line);
  background: rgba(232, 223, 200, 0.28);
  border-radius: 999px;
  padding: 7px 8px 7px 18px;
  transition: border-color 0.2s var(--ease);
}
.header-search-form:focus-within, .header-search-form:hover { border-color: var(--green); }
.header-search-form input {
  border: 0; background: transparent; outline: none;
  width: 160px; font-family: var(--font-sans);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--ink);
}
.header-search-form input::placeholder { color: var(--muted); }
.header-search-form button {
  border: 0; cursor: pointer; border-radius: 999px;
  background: var(--green); color: #fff;
  width: 30px; height: 30px; font-size: 0.8rem; line-height: 1;
}
.menu-toggle {
  display: none; border: 1px solid var(--line); background: transparent;
  border-radius: 10px; padding: 6px 12px; font-size: 1.1rem; cursor: pointer; color: var(--ink);
}

/* ============ LAYOUT ============ */
.site-main, .page-wrap, .single-recipe-wrap, .archive-header,
.search-header, .error-404-wrap, .category-filter, .hero-section, main > .gallery-section {
  max-width: var(--maxw);
  margin-left: auto; margin-right: auto;
  padding-left: 24px; padding-right: 24px;
}
.site-main { padding-top: 8px; padding-bottom: 64px; }

/* ============ HERO ============ */
.hero-section { padding-top: 56px; padding-bottom: 8px; }
.hero-eyebrow {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--green); margin-bottom: 14px;
}
.hero-section h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  max-width: 14ch;
}
.hero-section p {
  margin-top: 16px; max-width: 52ch; color: var(--muted); font-size: 1.02rem;
}
.hero-search { display: none; }

/* ============ CUISINE RAIL ============ */
.category-filter {
  display: flex; gap: 10px; overflow-x: auto;
  padding-top: 26px; padding-bottom: 26px;
  scrollbar-width: none;
}
.category-filter::-webkit-scrollbar { display: none; }
.cat-pill {
  white-space: nowrap; border-radius: 999px;
  padding: 9px 22px; font-size: 0.85rem; font-weight: 600;
  background: var(--sand); color: var(--ink);
  transition: all 0.2s var(--ease);
}
.cat-pill:hover { background: var(--sand-soft); }
.cat-pill.active { background: var(--green); color: #fff; }

/* ============ BENTO GRID ============ */
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 8px 0 20px;
}
.section-title { font-size: 1.35rem; }
.section-link {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--green);
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.tile {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex; flex-direction: column;
  animation: snFadeUp 0.7s var(--ease) both;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(26,46,34,0.10); }
.tile .thumb { overflow: hidden; background: var(--sand-soft); }
.tile .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.tile:hover .thumb img { transform: scale(1.05); }
.tile .body { padding: 16px 18px 20px; }
.tile .kicker {
  display: block; font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--green);
}
.tile h3, .tile h2 { font-size: 1.02rem; margin-top: 6px; }
.tile p { margin: 8px 0 0; font-size: 0.82rem; color: var(--muted); line-height: 1.55; }
.tile .meta {
  margin-top: 12px; display: flex; gap: 14px;
  font-size: 0.72rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* square tile */
.tile-square .thumb { aspect-ratio: 1 / 1; }

/* featured 2x2 */
.tile-hero {
  grid-column: span 2; grid-row: span 2;
  border: 0; background: var(--sand);
}
.tile-hero .thumb { aspect-ratio: 1 / 1; height: 100%; }
.tile-hero .overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 34px;
  background: linear-gradient(to top, rgba(26,46,34,0.9) 0%, rgba(26,46,34,0.25) 45%, rgba(26,46,34,0) 75%);
  color: #fff;
}
.tile-hero .kicker { color: #8FE3BA; margin-bottom: 8px; }
.tile-hero h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: #fff; }
.tile-hero p { color: rgba(255,255,255,0.82); max-width: 44ch; font-size: 0.9rem; }
.tile-hero .meta { color: rgba(255,255,255,0.7); }

/* wide 2x1 */
.tile-wide { grid-column: span 2; }
.tile-wide .inner { display: flex; height: 100%; background: var(--sand); }
.tile-wide .thumb { width: 50%; }
.tile-wide .thumb img { height: 100%; min-height: 220px; }
.tile-wide .body { width: 50%; display: flex; flex-direction: column; justify-content: center; padding: 26px; }
.tile-wide h2 { font-size: 1.35rem; }
.tile-wide .kicker { color: rgba(26,46,34,0.45); }

/* strip / seasonal */
.strip {
  grid-column: span 4;
  border-radius: var(--radius);
  background: var(--ink); color: var(--bg);
  padding: 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  flex-wrap: wrap;
  animation: snFadeUp 0.7s var(--ease) both;
}
.strip h3 { font-size: 1.85rem; color: #fff; }
.strip p { color: rgba(252,253,251,0.62); margin: 8px 0 0; max-width: 52ch; }
.strip .links { display: flex; gap: 12px; flex-wrap: wrap; }
.strip .links a {
  width: 132px; padding: 16px; border-radius: 12px; text-align: center;
  border: 1px solid rgba(252,253,251,0.14); background: rgba(252,253,251,0.08);
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.35;
  transition: background 0.2s var(--ease);
}
.strip .links a:hover { background: rgba(252,253,251,0.18); }

.card-no-image {
  display: flex; align-items: center; justify-content: center;
  height: 100%; min-height: 180px; font-size: 2rem; color: var(--muted);
}

@keyframes snFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ PAGINATION ============ */
.pagination { margin-top: 44px; display: flex; justify-content: center; }
.pagination ul { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--line);
  font-size: 0.85rem; font-weight: 700;
}
.pagination .current { background: var(--green); color: #fff; border-color: var(--green); }
.pagination a:hover { border-color: var(--green); color: var(--green); }

/* ============ ARCHIVE / SEARCH HEADERS ============ */
.archive-header, .search-header { padding-top: 52px; }
.archive-eyebrow {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--green); margin-bottom: 10px;
}
.archive-header h1, .search-header h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.search-header h1 span { color: var(--green); }

/* ============ SINGLE RECIPE ============ */
.breadcrumb {
  font-size: 0.74rem; font-weight: 600; color: var(--muted);
  letter-spacing: 0.04em; margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--green); }

.single-recipe-wrap { padding-top: 40px; padding-bottom: 72px; max-width: 940px; }
.recipe-title { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 18px; }

.recipe-meta-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 22px 0 28px;
}
.recipe-meta-item {
  flex: 1 1 110px;
  background: var(--sand-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.meta-val { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; }
.meta-lbl {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}

.recipe-featured-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 34px; }
.recipe-content { font-size: 1.05rem; line-height: 1.78; }
.recipe-content h2 { font-size: 1.6rem; margin: 38px 0 12px; }
.recipe-content h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.recipe-content ul, .recipe-content ol { padding-left: 22px; }
.recipe-content li { margin-bottom: 8px; }
.recipe-content img { border-radius: 14px; margin: 22px 0; }
.recipe-content blockquote {
  margin: 26px 0; padding: 18px 24px;
  border-left: 3px solid var(--green); background: var(--sand-soft);
  border-radius: 0 12px 12px 0; font-style: italic;
}
.recipe-content a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

.related-recipes .recipe-grid { grid-template-columns: repeat(3, 1fr); }

/* ============ PAGES ============ */
.page-wrap { padding-top: 48px; padding-bottom: 72px; max-width: 860px; }
.page-title { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 20px; }
.page-content { font-size: 1.03rem; line-height: 1.78; }
.page-content a { color: var(--green); }

/* ============ GALLERY ============ */
.gallery-section { padding-top: 34px; padding-bottom: 64px; }
.gallery-masonry { columns: 4 240px; column-gap: 18px; }
.gallery-item {
  display: block; position: relative; break-inside: avoid;
  margin-bottom: 18px; border-radius: 14px; overflow: hidden;
}
.gallery-item img { width: 100%; transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  padding: 16px; color: #fff; opacity: 0;
  background: linear-gradient(to top, rgba(26,46,34,0.85), transparent 60%);
  transition: opacity 0.3s var(--ease);
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ============ 404 / EMPTY ============ */
.error-404-wrap, .no-results-wrap { text-align: center; padding: 90px 24px; }
.error-code { font-family: var(--font-display); font-size: 5rem; font-weight: 800; color: var(--green); }
.btn-primary {
  display: inline-block; margin-top: 20px;
  background: var(--green); color: #fff;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 0.88rem;
}
.btn-primary:hover { background: var(--green-dark); }

/* ============ FOOTER ============ */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: rgba(232,223,200,0.22); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 62px 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px;
}
.footer-logo {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.045em;
}
.footer-logo span { color: var(--green); }
.footer-tagline { color: var(--muted); max-width: 40ch; margin-top: 12px; }
.footer-col h4 {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 0.9rem; font-weight: 500; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 24px; text-align: center;
  font-size: 0.78rem; color: var(--muted);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .bento, .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-column: span 2; }
  .related-recipes .recipe-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .main-navigation { display: none; }
  .main-navigation.toggled { display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 18px 24px; }
  .main-navigation.toggled ul { flex-direction: column; gap: 14px; }
  .menu-toggle { display: inline-block; order: 3; }
  .header-search-form input { width: 110px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .bento, .recipe-grid, .related-recipes .recipe-grid { grid-template-columns: 1fr; }
  .tile-hero, .tile-wide, .strip { grid-column: span 1; }
  .tile-hero { grid-row: span 1; }
  .tile-wide .inner { flex-direction: column; }
  .tile-wide .thumb, .tile-wide .body { width: 100%; }
  .tile-hero .overlay { padding: 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .header-inner { gap: 14px; }
}

/* single-recipe image + content refinements */
.recipe-featured-image img { width: 100%; object-fit: cover; }
.recipe-content hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.recipe-content h2:first-child { margin-top: 0; }
.recipe-content h2 {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.recipe-featured-image { aspect-ratio: 16 / 10; max-height: 540px; }
.recipe-featured-image img { height: 100%; }
