/*
 * Project: NomFoods - Portfolio Template
 * Author: Valtteri Henttinen
 * Author URL: https://www.kukola.fi/valthent/
 * Year: Original 2016. Updated 2026.
 * License: Free for personal and commercial use
 */
html,
body {
	font-family: 'Nunito', sans-serif;
	height: 100%;
}
:root {
	--brand-btn: #95BD4D;
	--brand-btn-hover: #6f9333;
	--brand-btn-text: #17300c;
}
.clr-orange {
	color: #f47723;
}

.btn-success {
	background-color: var(--brand-btn);
	border-color: var(--brand-btn);
	color: var(--brand-btn-text);
}
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active,
.show > .btn-success.dropdown-toggle {
	background-color: var(--brand-btn-hover);
	border-color: var(--brand-btn-hover);
	color: #ffffff;
}
.btn-success:focus,
.btn-outline-success:focus {
	box-shadow: 0 0 0 0.2rem rgba(149, 189, 77, 0.3);
}
.btn-outline-success {
	color: var(--brand-btn-hover);
	border-color: var(--brand-btn);
}
.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active,
.btn-outline-success.active,
.show > .btn-outline-success.dropdown-toggle {
	background-color: var(--brand-btn-hover);
	border-color: var(--brand-btn-hover);
	color: #ffffff;
}

.top-links-bar {
	padding-top: 5.75rem;
	padding-bottom: 1rem;
}
.toplist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1.75rem;
	flex-wrap: wrap;
}
.toplist li {
	margin: 0;
}
.toplist a {
	display: inline-block;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: #7a7a7a;
}
.toplist a:hover {
	color: var(--brand-btn-hover);
}
/* ------------------Header------------------ */
header .header-input-group button {
    border:0;
    background:transparent;
}
header #logo-main {
	font-family: 'Permanent Marker', cursive;
}
header #logo-main h1 {
	font-size: 50px;
	color: #95bd4d;
}
header .login-box {
	margin-top: 50px;
	font-size: 15px;
	font-weight: bold;
}
.no-padding {
	padding-right: 0;
}
header .login-box p,
header .login-box a {
	color: #B6B6B6;
}
header .login-box a:hover {
	color: #B6B6B6;
	text-decoration: none;
}
/* ------------------Navbar------------------ */
#navbar-primary .container {
	border-top: solid #B6B6B6 2px;
	padding-left: 0;
	padding-right: 0;
}
#navbar-primary {
	background: transparent;
	border: none;
}
#navbar-primary .navbar-nav {
	width: 100%;
	font-size: 16px;
	font-weight: bold;
	text-align: justify;
	text-transform: uppercase;
	padding: 0px;
	float: none;
	margin-right: 0px;
}
.navbar-collapse {
	padding-left: 0px;
	padding-right: 0px;
}
#navbar-primary .navbar-nav > ul {
	padding: 0px;
}
#navbar-primary .navbar-nav > li {
	float: left;
}
#navbar-primary .navbar-nav > li > a {
	padding-left: 34px;
	padding-right: 34px;
}
#navbar-primary .navbar-nav > .first > a {
	padding-left: 0px;
}
#navbar-primary .navbar-nav > .last > a {
	padding-right: 0px;
	margin-right: 0px;
}
.navbar .navbar-nav > .active > a,
.navbar .navbar-nav > .active > a:hover,
.navbar .navbar-nav > .active > a:focus {
	color: var(--brand-btn);
	background-color: transparent;
}
#navbar-primary .navbar-nav > li > a:hover {
	color: var(--brand-btn-hover);
}

/* ------------------Secondary navbar------------------ */
#navbar-secondary {
	background-color: #FFFFFF;
}
#navbar-secondary .navbar-brand {
	font-family: 'Permanent Marker', cursive;
	font-size: 30px;
	color: #95bd4d;
	margin-right: 20px;
}
#navbar-secondary li > a {
	padding-left: 10px;
	padding-right: 10px;
	font-size: 14px;
	font-weight: bold;
	text-transform: uppercase;
}
#navbar-secondary li > a:hover,
#navbar-secondary li > a:focus {
	color: var(--brand-btn-hover);
}
#line {
	padding-top: 14px;
}
/* ----------------Dropdown menu--------------------- */
.dropdown-large {
	position: static !important;
}
.dropdown-menu-large {
	width: 100%;
	padding: 20px 0px;
	overflow: hidden;
	background-color: transparent;
	border: none;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
}
.dropdown-lg {
	background-color: #FFFFFF;
	padding-top: 20px;
	padding-bottom: 20px;
}
.dropdown-lg .row {
	border-bottom: solid #BFBFBF 1px;
	margin-bottom: 10px;
}
.dropdown-lg h3 {
	margin-top: 0px;
	margin-right: 20px;
	margin-left: 49px;
	margin-bottom: 15px;
}
.dropdown-lg > li > ul {
  padding: 0;
  margin: 0;
}
.dropdown-lg > li > ul > li {
  list-style: none;
}
.dropdown-lg > li > ul > li > a {
  display: block;
  padding: 3px 20px;
  clear: both;
  font-weight: normal;
  line-height: 1.428571429;
  color: #333333;
  white-space: normal;
}
.dropdown-lg > li ul > li > a:hover,
.dropdown-lg > li ul > li > a:focus {
  text-decoration: none;
	color: #1f3b12;
	background-color: #edf5df;
}
.dropdown-lg .disabled > a,
.dropdown-lg .disabled > a:hover,
.dropdown-lg .disabled > a:focus {
  color: #999999;
}
.dropdown-lg .disabled > a:hover,
.dropdown-lg .disabled > a:focus {
  text-decoration: none;
  background-color: transparent;
  background-image: none;
  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  cursor: not-allowed;
}
.dropdown-lg .dropdown-header {
	color: var(--brand-btn-hover);
  font-size: 18px;
}
@media (max-width: 768px) {
	.top-links-bar {
		padding-top: 4.75rem;
	}
	.toplist {
		gap: 0.9rem 1.2rem;
	}
	.toplist a {
		font-size: 0.85rem;
	}
  .dropdown-menu-large {
    margin-left: 0 ;
    margin-right: 0 ;
  }
  .dropdown-lg > li {
    margin-bottom: 30px;
  }
  .dropdown-lg > li:last-child {
    margin-bottom: 0;
  }
  .dropdown-lg .dropdown-header {
    padding: 3px 15px !important;
  }
}

/* Login */
.link-btn {
	border: none;
	background: none;
}
/* modal window styles */
#lean_overlay {
    position: fixed;
    z-index:100;
    top: 0px;
    left: 0px;
    height:100%;
    width:100%;
    background: #000;
	display: none;
}
#loginmodal {
	  width: 300px;
	  padding: 15px 20px;
	  background: #f3f6fa;
	  -webkit-border-radius: 6px;
	  -moz-border-radius: 6px;
	  border-radius: 6px;
	  -webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
	  -moz-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
	  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}
#login-dp .help-block {
    font-size:12px    
}
#login-dp .bottom {
    background-color:rgba(255,255,255,.8);
    border-top:1px solid #ddd;
    clear:both;
    padding:14px;
}
#login-dp .social-buttons {
    margin:12px 0    
}
#login-dp .social-buttons a {
    width: 49%;
}
#login-dp .form-group {
    margin-bottom: 10px;
}
.btn-fb {
    color: #fff;
    background-color:#3b5998;
}
.btn-fb:hover {
    color: #fff;
    background-color:#496ebc 
}
.btn-tw {
    color: #fff;
    background-color:#55acee;
}
.btn-tw:hover {
    color: #fff;
    background-color:#59b5fa;
}

/* ------------------Carousel------------------ */
.carousel {
    height: 50%;
	margin-bottom: 4.5rem;
	position: relative;
}
.carousel-item,
.carousel-item.active,
.carousel-inner {
    height: 100%;
}
.carousel-indicators {
	bottom: -30px;
	left: 0px;
	margin: 0px;
	width: 100%;
	height: auto;
	background-color: #95bd4d;
	display: flex;
	align-items: stretch;
	justify-content: center;
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}
.carousel-indicators [data-bs-target],
.carousel-indicators .active {
	width: auto;
	min-height: 30px;
	border: none;
	text-indent: 0;
	padding-top: 3px;
	padding-right: 9px;
	padding-left: 12px;
	padding-bottom: 3px;
	margin: 0;
	border-radius: 0;
	background: transparent;
	opacity: 1;
	white-space: nowrap;
	font-size: 13px;
	line-height: 1.3;
	scroll-snap-align: start;
	flex: 0 0 auto;
}
.carousel-indicators .active {
	background: none;
	color: #FFFFFF;
}
.carousel-control-prev,
.carousel-control-next {
	top: 50%;
	bottom: auto;
	transform: translateY(-50%);
	width: 5rem;
	z-index: 3;
}

@media (max-width: 768px) {
	.carousel {
		height: 56%;
		margin-bottom: 6rem;
	}
	.carousel-indicators {
		bottom: -58px;
		padding-bottom: 4px;
	}
	.carousel-indicators [data-bs-target],
	.carousel-indicators .active {
		min-height: 36px;
		padding: 8px 10px;
		font-size: 12px;
	}
	.carousel-control-prev,
	.carousel-control-next {
		width: 3rem;
	}
	.carousel-search-overlay {
		align-items: flex-start;
		padding-top: 2.6rem;
	}
	.carousel-search-title {
		margin-bottom: 0.6rem;
	}
	.search-caption {
		border-radius: 14px;
	}
	.search-caption .btn {
		padding-left: 0.8rem;
		padding-right: 0.8rem;
	}
	.carousel-caption {
		bottom: 1.35rem;
	}
	.carousel-caption h2 {
		padding: 0.35rem 0.6rem;
		border-radius: 8px;
	}
}
.fill {
    width: 100%;
    height: 100%;
	position: relative;
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
}
.fill::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(8, 12, 6, 0.12) 0%, rgba(8, 12, 6, 0.6) 100%);
	pointer-events: none;
}
.carousel-caption {
	bottom: 2.75rem;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.carousel-caption h2 {
	display: inline-block;
	background-color: rgba(18, 29, 13, 0.62);
	padding: 0.45rem 0.8rem;
	border-radius: 10px;
	font-size: clamp(1rem, 2vw, 1.55rem);
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
}
.carousel-search-overlay {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 1rem;
	pointer-events: none;
}
.carousel-search-box {
	width: min(760px, 92%);
	text-align: center;
	color: #ffffff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
	pointer-events: auto;
}
.carousel-search-title {
	font-size: clamp(1.6rem, 3.4vw, 2.6rem);
	font-weight: 800;
	margin-bottom: 0.9rem;
}
.search-caption {
	background-color: rgba(255, 255, 255, 0.9);
	padding: 0.4rem;
	margin: 0;
	border-radius: 999px;
	box-shadow: 0 10px 22px rgba(22, 43, 16, 0.2);
}
.search-caption .input-group .form-control {
	border: none;
	padding: 0.7rem 0.95rem;
	background: transparent;
}
.search-caption .input-group .form-control:focus {
	box-shadow: none;
}
.search-caption .btn {
	border-radius: 999px;
	font-weight: 700;
	padding-left: 1rem;
	padding-right: 1rem;
}
.carousel-input-group .input-group-addon {
    background: white !important; 
}
.carousel-input-group .form-control {
	border: solid #FFFFFF 1px !important;
	-webkit-border-radius: 0px;
	-moz-border-radius: 0px;
	border-radius: 0px;
}
.carousel-input-group button {
	border: solid #FFFFFF 1px !important;
	-webkit-border-radius: 0px;
	-moz-border-radius: 0px;
	border-radius: 0px;
    background:transparent;
}

/* Recipe cards */
.popular-recipes {
	margin-top: 1rem;
	padding: 2rem 1.25rem;
	background: linear-gradient(180deg, #f8fdf1 0%, #ffffff 100%);
	border: 1px solid #e7efdb;
	border-radius: 18px;
}
.popular-recipes .section-header {
	font-size: 2rem;
	font-weight: 800;
	color: #264b1e;
	margin-bottom: 0.35rem;
}
.popular-recipes .section-lead {
	font-size: 1.03rem;
	color: #5e6f57;
	margin-bottom: 0;
}
.popular-recipes .recipe-filters {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}
.popular-recipes .recipe-filter {
	border: 1px solid #cfe3bc;
	background-color: #ffffff;
	color: #426538;
	border-radius: 999px;
	padding: 0.35rem 0.8rem;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.2;
}
.popular-recipes .recipe-filter.active {
	background-color: var(--brand-btn);
	border-color: var(--brand-btn);
	color: var(--brand-btn-text);
}
.popular-recipes .recipe-filter:hover {
	background-color: var(--brand-btn-hover);
	border-color: var(--brand-btn-hover);
	color: #ffffff;
}
.recipe-grid .recipe-card {
	height: 100%;
	border: 0;
	border-radius: 14px;
	box-shadow: 0 10px 26px rgba(31, 61, 23, 0.08);
	overflow: hidden;
	opacity: 0;
	transform: translateY(12px);
	animation: recipeCardReveal 0.55s ease forwards;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.recipe-grid > [class*="col"]:nth-child(2) .recipe-card { animation-delay: 0.08s; }
.recipe-grid > [class*="col"]:nth-child(3) .recipe-card { animation-delay: 0.16s; }
.recipe-grid > [class*="col"]:nth-child(4) .recipe-card { animation-delay: 0.24s; }
.recipe-grid > [class*="col"]:nth-child(5) .recipe-card { animation-delay: 0.32s; }
.recipe-grid > [class*="col"]:nth-child(6) .recipe-card { animation-delay: 0.40s; }
.recipe-grid .recipe-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(31, 61, 23, 0.14);
}
.recipe-grid .recipe-card-featured .card-img-top {
	height: 280px;
}
.recipe-grid .recipe-card-featured .card-title {
	font-size: 1.35rem;
}
.recipe-grid .recipe-card .card-img-top {
	width: 100%;
	height: 220px;
	object-fit: cover;
}
.recipe-grid .recipe-card-body {
	display: flex;
	flex-direction: column;
}
.recipe-grid .recipe-card .card-title {
	min-height: 2.5rem;
	font-weight: 700;
	color: #253820;
}
.recipe-grid .recipe-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}
.recipe-grid .recipe-meta span {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.55rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #2d5f22;
	background-color: #ebf6e0;
	border-radius: 999px;
}
.recipe-grid .recipe-card .card-text {
	min-height: 6rem;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
}
.recipe-grid .recipe-card .btn {
	margin-top: auto;
	align-self: flex-start;
}
.recipe-grid .recipe-btn {
	border-width: 2px;
	font-weight: 700;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
}

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

@media (max-width: 768px) {
	.popular-recipes {
		padding: 1.4rem 0.9rem;
		border-radius: 14px;
	}
	.popular-recipes .section-header {
		font-size: 1.65rem;
	}
	.popular-recipes .recipe-filters {
		justify-content: flex-start;
	}
	.recipe-grid .recipe-card-featured .card-img-top {
		height: 220px;
	}
}

.recipes {
	margin-top: 1.25rem;
	padding: 1.5rem 1.25rem;
	background-color: #fbfdf8;
	border: 1px solid #e6eed9;
	border-radius: 18px;
}
.recipes .section-header {
	font-size: 1.9rem;
	font-weight: 800;
	color: #2b4623;
	margin-bottom: 0.3rem;
}
.recipes .section-lead {
	color: #607058;
	margin-bottom: 0;
}
.recipes .small-recipe-card {
	border: 1px solid #e4ebd8;
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(27, 52, 22, 0.06);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.recipes .small-recipe-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(27, 52, 22, 0.12);
}
.recipes .small-recipe-card .card-body {
	padding: 0.95rem;
}
.recipes .small-recipe-card .card-title {
	min-height: 2.35rem;
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 0.55rem;
}
.recipes .small-recipe-card .recipe-meta {
	margin-bottom: 0.6rem;
}
.recipes .small-recipe-card .recipe-meta span {
	font-size: 0.68rem;
	padding: 0.15rem 0.45rem;
}
.recipes .small-recipe-card .card-text {
	min-height: 4.2rem;
	font-size: 0.9rem;
	line-height: 1.4;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}
.recipes .small-recipe-card .recipe-btn {
	font-size: 0.82rem;
	padding: 0.35rem 0.75rem;
}

@media (max-width: 768px) {
	.recipes {
		padding: 1.1rem 0.85rem;
		border-radius: 14px;
	}
}

.newsletter-signup {
	margin-top: 3rem;
	margin-bottom: 3rem;
}

.about-us {
	margin-top: 3rem;
	margin-bottom: 3rem;
}
.newsletter-signup .newsletter-panel {
	padding: 2rem 1.25rem;
	background: radial-gradient(circle at top right, #f4fbe9 0%, #e9f6d6 42%, #f7fbef 100%);
	border: 1px solid #dcebc7;
	border-radius: 18px;
	box-shadow: 0 14px 32px rgba(35, 66, 25, 0.08);
}
.newsletter-signup .newsletter-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #3d6d2e;
	margin-bottom: 0.6rem;
}
.newsletter-signup .section-header {
	font-size: 2rem;
	font-weight: 800;
	color: #29461f;
	margin-bottom: 0.45rem;
}
.newsletter-signup .section-lead {
	font-size: 1.02rem;
	color: #586b4e;
	margin-bottom: 1rem;
}
.newsletter-signup .newsletter-form {
	max-width: 640px;
	margin: 0 auto;
}
.newsletter-signup .newsletter-input-group {
	box-shadow: 0 8px 18px rgba(33, 60, 25, 0.08);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 0.55rem;
}
.newsletter-signup .newsletter-input-group .form-control {
	border: none;
	padding: 0.75rem 1rem;
	font-size: 0.97rem;
}
.newsletter-signup .newsletter-input-group .form-control:focus {
	box-shadow: inset 0 0 0 2px rgba(73, 133, 49, 0.2);
}
.newsletter-signup .newsletter-btn {
	border: none;
	padding: 0.75rem 1.15rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	background-color: var(--brand-btn);
	color: var(--brand-btn-text);
}
.newsletter-signup .newsletter-btn:hover {
	background-color: var(--brand-btn-hover);
	color: #ffffff;
}
.newsletter-signup .newsletter-note {
	font-size: 0.85rem;
	color: #5c6f54;
	margin: 0;
}

.auth-modal-content {
	border: 1px solid #d9e8c3;
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(34, 62, 25, 0.18);
}
.auth-tabs .nav-link {
	font-weight: 700;
	color: #48643b;
	border-radius: 999px;
}
.auth-tabs .nav-link.active {
	background-color: var(--brand-btn);
	color: var(--brand-btn-text);
}
.auth-tabs .nav-link.active:hover {
	background-color: var(--brand-btn-hover);
	color: #ffffff;
}
.auth-form .form-label {
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #55734b;
}
.auth-form .form-control {
	border-color: #d9e8c3;
	padding: 0.65rem 0.75rem;
}
.auth-form .form-control:focus {
	border-color: #7db467;
	box-shadow: 0 0 0 0.2rem rgba(78, 154, 54, 0.18);
}
.auth-link {
	color: var(--brand-btn-hover);
	text-decoration: none;
}
.auth-link:hover {
	color: var(--brand-btn-hover);
	text-decoration: underline;
}

@media (max-width: 768px) {
	.newsletter-signup .newsletter-panel {
		padding: 1.35rem 0.9rem;
		border-radius: 14px;
	}
	.newsletter-signup .section-header {
		font-size: 1.55rem;
	}
	.newsletter-signup .newsletter-input-group {
		border-radius: 14px;
	}
	.newsletter-signup .newsletter-btn {
		border-radius: 0;
	}
}

/* Footer section */
footer {
    margin: 50px 0;
}
footer a {
	color: #49633a;
	text-decoration: none;
}
footer a:hover,
footer a:focus {
	color: var(--brand-btn-hover);
	text-decoration: underline;
}
