/* Gatavo.com custom styles (Gatavo Customizations plugin) — survives theme/plugin updates. */

:root {
	--gs-red: #e3262d;
	--gs-text: #1f1f1f;
	--gs-muted: #6b6b6b;
	--gs-line: #e8e8e8;
	--gs-soft: #f6f6f6;
}

/* ---------- Search page ---------- */
.gatavo-search { max-width: 1100px; margin: 0 auto 60px; font-family: inherit; color: var(--gs-text); }
.gatavo-search .gs-form { margin-bottom: 18px; }
.gatavo-search .gs-box { position: relative; display: flex; align-items: center; background: #fff; border: 2px solid var(--gs-line); border-radius: 12px; transition: border-color .15s; }
.gatavo-search .gs-box:focus-within { border-color: var(--gs-red); }
.gatavo-search .gs-icon { width: 22px; height: 22px; margin-left: 18px; fill: var(--gs-muted); flex: none; }
.gatavo-search .gs-box input[type=search] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 18px; padding: 16px 14px; height: auto; box-shadow: none; color: var(--gs-text); }
.gatavo-search .gs-box button { margin: 6px; border: 0; border-radius: 8px; background: var(--gs-red); color: #fff; font-weight: 700; font-size: 16px; padding: 12px 22px; cursor: pointer; }
.gatavo-search .gs-box button:hover { filter: brightness(.92); }
.gatavo-search .gs-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; font-size: 15px; }
.gatavo-search .gs-filters label { color: var(--gs-muted); margin: 0; }
.gatavo-search .gs-filters select { border: 1px solid var(--gs-line); border-radius: 8px; padding: 8px 12px; background: #fff; font-size: 15px; max-width: 100%; height: auto; }
.gatavo-search .gs-adv { margin-left: auto; color: var(--gs-muted); font-size: 14px; text-decoration: underline; }
.gatavo-search .gs-adv:hover { color: var(--gs-red); }

.gatavo-search .gs-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--gs-line); margin: 8px 0 14px; overflow-x: auto; scrollbar-width: none; }
.gatavo-search .gs-tabs::-webkit-scrollbar { display: none; }
.gatavo-search .gs-tab { padding: 10px 16px; font-size: 16px; line-height: 1.4; font-weight: 700; color: var(--gs-muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.gatavo-search .gs-tab span { display: inline-block; min-width: 24px; padding: 1px 8px; margin-left: 4px; border-radius: 20px; background: var(--gs-soft); font-size: 13px; text-align: center; }
.gatavo-search .gs-tab:hover { color: var(--gs-text); }
.gatavo-search .gs-tab.is-active { color: var(--gs-red); border-bottom-color: var(--gs-red); }
.gatavo-search .gs-tab.is-active span { background: var(--gs-red); color: #fff; }
.gatavo-search .gs-tab.is-disabled { opacity: .45; }
.gatavo-search .gs-summary { color: var(--gs-muted); margin: 0 0 18px; font-size: 15px; }

.gatavo-search .gs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.gatavo-search .gs-card { display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: box-shadow .15s, transform .15s; }
.gatavo-search .gs-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-2px); }
.gatavo-search .gs-thumb { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--gs-soft); overflow: hidden; }
.gatavo-search .gs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gatavo-search .gs-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: var(--gs-red); color: #fff; }
.gatavo-search .gs-post .gs-badge { background: #1f1f1f; }
.gatavo-search .gs-body { padding: 14px 16px 18px; }
.gatavo-search .gs-body h3 { font-size: 18px; line-height: 1.3; margin: 0 0 6px; }
.gatavo-search .gs-body h3 a { color: var(--gs-text); text-decoration: none; }
.gatavo-search .gs-body h3 a:hover { color: var(--gs-red); }
.gatavo-search .gs-meta { font-size: 13px; color: var(--gs-muted); margin: 0 0 8px; }
.gatavo-search .gs-excerpt { font-size: 14px; line-height: 1.5; color: #444; margin: 0; }

.gatavo-search .gs-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.gatavo-search .gs-pages a, .gatavo-search .gs-pages span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--gs-line); color: var(--gs-text); text-decoration: none; font-weight: 700; }
.gatavo-search .gs-pages span { border: 0; }
.gatavo-search .gs-pages a:hover { border-color: var(--gs-red); color: var(--gs-red); }
.gatavo-search .gs-pages a.is-active { background: var(--gs-red); border-color: var(--gs-red); color: #fff; }

@media (max-width: 991px) { .gatavo-search .gs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 575px) {
	.gatavo-search .gs-grid { grid-template-columns: 1fr; }
	.gatavo-search .gs-box input[type=search] { font-size: 16px; padding: 13px 10px; }
	.gatavo-search .gs-box button { padding: 10px 14px; }
	.gatavo-search .gs-adv { margin-left: 0; }
}

/* ---------- Live suggestions dropdown ---------- */
.gs-live-host { position: relative; }
.gs-suggest { position: absolute; z-index: 99999; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.18); overflow: hidden; max-height: 70vh; overflow-y: auto; text-align: left; }
.gs-suggest[hidden] { display: none; }
.gs-suggest .gs-sug { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: #1f1f1f; text-decoration: none; border-bottom: 1px solid #f0f0f0; }
.gs-suggest .gs-sug:hover, .gs-suggest .gs-sug.is-active { background: #f6f6f6; }
.gs-suggest img, .gs-suggest .gs-noimg { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex: none; background: #eee; }
.gs-suggest .gs-sug-text { display: flex; flex-direction: column; min-width: 0; }
.gs-suggest .gs-sug-title { font-weight: 700; font-size: 15px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-suggest .gs-sug-meta { font-size: 12px; color: #6b6b6b; }
.gs-suggest .gs-sug-meta em { font-style: normal; color: var(--gs-red); font-weight: 700; }
.gs-suggest .gs-all { display: block; padding: 12px 14px; font-size: 15px; line-height: 1.4; font-weight: 700; color: var(--gs-red); text-decoration: none; background: #fafafa; }
.gs-suggest .gs-all.is-active, .gs-suggest .gs-all:hover { background: #f1f1f1; }
.gs-suggest .gs-empty { padding: 14px; color: #6b6b6b; font-size: 14px; }

/* ---------- Mobile horizontal overflow fix ---------- */
/* Theme rows with 60px gutters use -30px margins, wider than the 15px container padding. */
@media (max-width: 991px) {
	.row.gutters-60 { margin-left: -15px; margin-right: -15px; }
	.row.gutters-60 > [class*="col"] { padding-left: 15px; padding-right: 15px; }
}
/* Safety net: no sideways page scroll on small screens (clip keeps position: sticky working). */
@media (max-width: 767px) {
	html, body { overflow-x: clip; max-width: 100%; }
}

/* ---------- Visitor logins off: hide login/account buttons ---------- */
.header-login-icon, .login-btn, a[href*="/login-page"], a[href*="/registration-page"], a[href*="/submit-recipe"] { display: none !important; }

/* ---------- Mobile / tablet header (theme shows .mean-bar below desktop width) ---------- */
.rt-header-menu.mean-container { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 999; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.05); }
.mean-container .mean-bar { display: flex !important; align-items: center; gap: 4px; height: 64px; min-height: 64px; padding: 0 8px 0 16px !important; background: #fff; float: none; width: auto; }
.mean-container .mean-bar > a:first-child { display: flex; align-items: center; height: 100%; margin-right: auto; padding: 0; width: auto !important; }
.mean-container .mean-bar > a:first-child img { height: 48px !important; width: auto !important; max-width: 160px !important; max-height: 48px !important; object-fit: contain; }
.mean-container .mean-bar .gs-m-search,
.mean-container .mean-bar .sidebarBtn { display: inline-flex !important; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; color: #1f1f1f; cursor: pointer; position: static !important; float: none !important; margin: 0 !important; padding: 0 !important; transition: background .15s; }
.mean-container .mean-bar .gs-m-search { background: #f4f4f4; }
.mean-container .mean-bar .gs-m-search:active, .mean-container .mean-bar .sidebarBtn:active { background: #e9e9e9; }
.mean-container .mean-bar .gs-m-search svg { width: 22px; height: 22px; fill: currentColor; }
.mean-container .mean-bar .sidebarBtn .fa { font-size: 24px; line-height: 1; color: #1f1f1f; }

@media (max-width: 1199px) {
	.gatavo-search .gs-tab, .gatavo-search .gs-pages a { min-height: 44px; display: inline-flex; align-items: center; }
	.gatavo-search .gs-filters select { min-height: 44px; }
}

/* ---------- Mobile slide-down menu: bigger tap targets ---------- */
.rt-slide-nav .offscreen-navigation { padding: 4px 0 12px; }
.rt-slide-nav .offscreen-navigation ul.menu > li { border-bottom: 1px solid #f0f0f0; margin: 0; }
.rt-slide-nav .offscreen-navigation ul.menu > li:last-child { border-bottom: 0; }
.rt-slide-nav .offscreen-navigation ul.menu > li > a { display: flex !important; align-items: center; min-height: 52px; padding: 0 20px !important; font-size: 18px !important; font-weight: 700; color: #1f1f1f; }
.rt-slide-nav .offscreen-navigation ul.menu > li.current-menu-item > a { color: var(--gs-red); }
.rt-slide-nav .offscreen-navigation ul.menu > li > a:active { background: #f6f6f6; }

/* ================================================================
   New homepage [gatavo_home]
   ================================================================ */
body.gatavo-home-page .entry-banner,
body.gatavo-home-page .breadcrumbs-area,
body.gatavo-home-page .page-title-area { display: none !important; }
body.gatavo-home-page .site-content,
body.gatavo-home-page #content { padding-top: 0 !important; }
body.gatavo-home-page .content-area,
body.gatavo-home-page .entry-content { padding-top: 0; margin-top: 0; }

.gatavo-home { color: var(--gs-text); padding-bottom: 40px; }
.gatavo-home h2 { font-size: 28px; line-height: 1.2; margin: 0; font-weight: 700; color: var(--gs-text); }

/* Hero — full-bleed */
.gatavo-home .gh-hero { position: relative; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); min-height: 460px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #2b1d14; }
.gatavo-home .gh-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gatavo-home .gh-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 100%); }
.gatavo-home .gh-hero-inner { position: relative; z-index: 2; width: 100%; max-width: 760px; padding: 64px 16px; text-align: center; color: #fff; }
.gatavo-home .gh-hero h1 { color: #fff; font-size: 48px; line-height: 1.1; margin: 0 0 10px; font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.gatavo-home .gh-hero p { color: rgba(255,255,255,.92); font-size: 18px; margin: 0 0 26px; }
.gatavo-home .gh-search .gs-box { position: relative; display: flex; align-items: center; background: #fff; border: 0; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.gatavo-home .gh-search .gs-icon { width: 22px; height: 22px; margin-left: 18px; fill: var(--gs-muted); flex: none; }
.gatavo-home .gh-search input[type=search] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 18px; padding: 18px 14px; height: auto; box-shadow: none; color: var(--gs-text); }
.gatavo-home .gh-search button { margin: 7px; border: 0; border-radius: 10px; background: var(--gs-red); color: #fff; font-weight: 700; font-size: 16px; padding: 13px 24px; cursor: pointer; }
.gatavo-home .gh-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.gatavo-home .gh-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 40px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.45); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; backdrop-filter: blur(4px); transition: background .15s; }
.gatavo-home .gh-chips a:hover { background: rgba(255,255,255,.32); color: #fff; }
.gatavo-home .gh-hero-credit { position: absolute; z-index: 2; right: 16px; bottom: 12px; font-size: 12px; color: rgba(255,255,255,.8); text-decoration: none; }
.gatavo-home .gh-hero-credit:hover { color: #fff; }

/* Sections */
.gatavo-home .gh-section { margin-top: 56px; }
.gatavo-home .gh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.gatavo-home .gh-sub { margin: 6px 0 0; color: var(--gs-muted); font-size: 15px; }
.gatavo-home .gh-more { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 16px; line-height: 1.3; font-weight: 700; color: var(--gs-red); text-decoration: none; white-space: nowrap; }
.gatavo-home .gh-more:hover { text-decoration: underline; color: var(--gs-red); }
.gatavo-home .gh-season { position: relative; isolation: isolate; padding: 40px 0 44px; }
.gatavo-home .gh-season::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; background: #fff6ef; }

/* Grids (reuse search cards) */
.gatavo-home .gh-grid { display: grid; gap: 24px; }
.gatavo-home .gh-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gatavo-home .gh-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gatavo-home .gs-card { display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: box-shadow .15s, transform .15s; }
.gatavo-home .gs-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-2px); }
.gatavo-home .gs-thumb { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--gs-soft); overflow: hidden; }
.gatavo-home .gs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gatavo-home .gs-body { padding: 12px 14px 16px; }
.gatavo-home .gs-body h3 { font-size: 17px; line-height: 1.3; margin: 0 0 6px; }
.gatavo-home .gs-body h3 a { color: var(--gs-text); text-decoration: none; }
.gatavo-home .gs-body h3 a:hover { color: var(--gs-red); }
.gatavo-home .gs-meta { font-size: 13px; color: var(--gs-muted); margin: 0 0 6px; }
.gatavo-home .gs-excerpt { font-size: 14px; line-height: 1.5; color: #444; margin: 0; }

/* Category tiles */
.gatavo-home .gh-cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.gatavo-home .gh-cat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 8px; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.gatavo-home .gh-cat:hover { box-shadow: 0 8px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.gatavo-home .gh-cat-img { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--gs-soft); margin-bottom: 10px; }
.gatavo-home .gh-cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gatavo-home .gh-cat-name { font-weight: 700; font-size: 16px; color: var(--gs-text); line-height: 1.25; }
.gatavo-home .gh-cat-count { font-size: 13px; color: var(--gs-muted); margin-top: 2px; }

/* Ad anchors: invisible until something is placed inside */
.gatavo-home .gh-ad:empty { display: none; }
.gatavo-home .gh-ad { margin-top: 48px; text-align: center; }

/* Tablet */
@media (max-width: 1199px) {
	.gatavo-home .gh-cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.gatavo-home .gh-cols-4 > :nth-child(n+7) { display: none; }
	.gatavo-home .gh-cols-4 > :nth-child(4):last-child { display: none; } /* no lonely 4th card in 3 columns */
}
@media (max-width: 991px) {
	.gatavo-home .gh-hero { min-height: 400px; }
	.gatavo-home .gh-hero h1 { font-size: 38px; }
	.gatavo-home .gh-cols-4, .gatavo-home .gh-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
	.gatavo-home .gh-cols-4 > :nth-child(n+7),
	.gatavo-home .gh-cols-4 > :nth-child(4):last-child { display: flex; }
	.gatavo-home .gh-cols-3 > :nth-child(3) { display: none; }
	/* Category tiles become a swipeable row */
	.gatavo-home .gh-cats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; }
	.gatavo-home .gh-cats::-webkit-scrollbar { display: none; }
	.gatavo-home .gh-cat { flex: 0 0 120px; scroll-snap-align: start; padding: 12px 6px; }
	.gatavo-home .gh-cat-img { width: 80px; height: 80px; }
	.gatavo-home .gh-cat-name { font-size: 14px; }
}
/* Phone */
@media (max-width: 575px) {
	.gatavo-home .gh-hero { min-height: 360px; }
	.gatavo-home .gh-hero-inner { padding: 44px 16px 52px; }
	.gatavo-home .gh-hero h1 { font-size: 30px; }
	.gatavo-home .gh-hero p { font-size: 15px; margin-bottom: 18px; }
	.gatavo-home .gh-search input[type=search] { font-size: 16px; padding: 14px 10px; }
	.gatavo-home .gh-search button { padding: 11px 14px; }
	.gatavo-home .gh-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 16px -16px 0; padding: 0 16px; scrollbar-width: none; }
	.gatavo-home .gh-chips::-webkit-scrollbar { display: none; }
	.gatavo-home .gh-chips a { flex: none; }
	.gatavo-home .gh-section { margin-top: 40px; }
	.gatavo-home h2 { font-size: 22px; }
	.gatavo-home .gh-head { align-items: center; }
	.gatavo-home .gh-more { font-size: 14px; }
	.gatavo-home .gh-grid { gap: 14px; }
	.gatavo-home .gs-body { padding: 10px 10px 12px; }
	.gatavo-home .gs-body h3 { font-size: 15px; }
	.gatavo-home .gh-cols-3 { grid-template-columns: 1fr; }
	.gatavo-home .gh-cols-3 > :nth-child(3) { display: flex; }
	.gatavo-home .gh-season { padding: 32px 0 36px; }
}
