/*
Theme Name: Tummy Twenty Six
Theme URI: https://example.com/
Author: Tummies Not Trash
Description: Responsive classic theme for Tummies Not Trash (Landing, News index, Normal pages).
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tummytwentysix
Tags: custom-logo, one-column, blog, accessibility-ready
*/

:root {
    --tnt-background: #FFF9DE;
	--tnt-primary: #1A5632;
	--tnt-secondary: #AADF43;
	--tnt-button-bg: #A7C3E5;
    --tnt-background-secondary: #F9C53E;
	--tnt-max-width: 1200px;
	--tnt-content-width: 700px;
	--tnt-radius: 10px;
}

/* Fonts */
@font-face {
	font-family: 'Museo Sans Rounded';
	src: url('assets/fonts/museo-sans-rounded/MuseoSansRounded300.otf') format('opentype');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Museo Sans Rounded';
	src: url('assets/fonts/museo-sans-rounded/MuseoSansRounded700.otf') format('opentype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* Base */
* {
	box-sizing: border-box;
}

html { 
    height: 100%;
}

body {
	background-color: var(--tnt-background);
    color: var(--tnt-primary);
    display: flex;
    flex-direction: column;
	font-family: 'Museo Sans Rounded', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
	font-weight: 300;
	line-height: 1.6;
	margin: 0;
    height: 100%;
}

img,
svg,
iframe,
embed,
object {
	max-width: 100%;
	height: auto;
}

strong {
	font-weight: 700;
}

a {
	color: inherit;
}

a:focus-visible,

.menu-item {
	white-space: nowrap;
}

.wp-block-button__link {
	color: var(--tnt-primary);
    border: 1px solid var(--tnt-primary);
	background: transparent;
}

.wp-block-button__link:hover {
    background: var(--tnt-primary);
    color: white;
}

.tnt-btn--blue {
    background-color: var(--tnt-button-bg);
	border: none;
	color: var(--tnt-primary);
}

button:focus-visible {
	outline: 2px solid var(--tnt-secondary);
	outline-offset: 2px;
}

.tnt-container {
	max-width: var(--tnt-max-width);
	margin: 0 auto;
	padding: 0 16px;
}

.tnt-footer > .tnt-container {
	padding: 0;
}

.tnt-main {
	padding: 24px 0 48px;
    flex: 1 1 auto;
}

.tnt-content {
	max-width: var(--tnt-content-width);
    margin: 0 auto;
}

/* Header */
.tnt-header {
    padding: 20px;
}

h1, h2 {
    color: var(--tnt-primary);
    text-align: center;
}

h1 { font-size: 46px; }
h2 { font-size: 32px; }
h3 { font-size: 20px; }

.sticker.sticker-logo {
    --bg-image: url('assets/images/sticker-logo.svg');
    --width: 14.3vw;
    --height: 15.7vh;
    --angle: -12.23deg;
}

.sticker.sticker-warrior {
    --bg-image: url('assets/images/sticker-food-waste-warrior.svg');
    --width: 105px;
    --height: 112px;
    --angle: -12.23deg;
}
.sticker.sticker-calendar {
    --bg-image: url('assets/images/sticker-calendar.svg');
    --width: 120px;
    --height: 120px;
    --angle: -12.23deg;
}

.sticker.sticker-clipboard {
	--bg-image: url('assets/images/sticker-clipboard.svg');
	--width: 81px;
	--height: 107px;
	--angle: -12.23deg;
}

.sticker.sticker-delicioso {
	--bg-image: url('assets/images/sticker-delicioso.svg');
	--width: 167px;
	--height: 77px;
	--angle: -12.23deg;
}

.sticker.sticker-juicy-fruity {
	--bg-image: url('assets/images/sticker-juicy-fruity.svg');
	--width: 106px;
	--height: 106px;
	--angle: -12.23deg;
}

.sticker.sticker-still-tasty {
	--bg-image: url('assets/images/sticker-still-tasty.svg');
	--width: 107px;
	--height: 106px;
	--angle: -12.23deg;
}

.sticker.sticker-thumbs-up {
	--bg-image: url('assets/images/sticker-thumbs-up.svg');
	--width: 90px;
	--height: 90px;
	--angle: -12.23deg;
}

.sticker.sticker-try-something-new {
	--bg-image: url('assets/images/sticker-try-something-new.svg');
	--width: 168px;
	--height: 46px;
	--angle: -12.23deg;
}

.sticker.sticker-volunteer {
	--bg-image: url('assets/images/sticker-volunteer.svg');
	--width: 157px;
	--height: 198px;
	--angle: -12.23deg;
}

.sticker.sticker-yummy-in-my-tummy {
	--bg-image: url('assets/images/sticker-yummy-in-my-tummy.svg');
	--width: 104px;
	--height: 68px;
	--angle: -12.23deg;
}

.sticker.sticker-zero-waste-world {
	--bg-image: url('assets/images/sticker-zero-waste-world.svg');
	--width: 80px;
	--height: 80px;
	--angle: -12.23deg;
}

.sticker.sticker-open-for-everyone {
	--bg-image: url('assets/images/sticker-open-for-everyone.svg');
	--width: 234px;
	--height: 64px;
	--angle: -12.23deg;
}

.sticker {
	display: none;
    position: absolute;
    left: 0;
    top: 0;
}
.sticker::before {
    background-image: var(--bg-image);
    background-repeat: no-repeat;
    background-size: contain;
    content: '';
    filter: drop-shadow(3px 4px 4px rgba(0,0,0,0.25));
    position: absolute;
    top: var(--y);
    left: var(--x);
    width: var(--width);
    height: var(--height);
    transform: rotate(var(--angle));
    z-index: 21;
}

.tnt-header .tnt-container {
    background-color: var(--tnt-secondary);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
	position: relative;
}

.tnt-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
}

.tnt-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.tnt-brand__logo {
	display: block;
	height: 32px;
	width: auto;
}

.tnt-nav-toggle {
	appearance: none;
	background-image: url('assets/images/menu.svg');
	background-size: 24px 24px;
	background-repeat: no-repeat;
	background-position: center;
	background-color: transparent;
	border: none;
	height: 24px;
	padding: 10px 12px;
	cursor: pointer;
	font: inherit;
	line-height: 1;
	width: 24px;

	&[aria-expanded="true"] {
		background-image: url('assets/images/x.svg');
	}

	span { display: none;}
}

.tnt-nav {
	background-color: var(--tnt-secondary);
    border-radius: 0 0 15px 15px;
	display: none;
	padding: 0 0 16px;
	position: absolute;
    left: 0;
    padding: 10px;
    top: 55px;
    width: 100%;
	z-index: 20;
}

.tnt-nav.is-open {
	display: block;
}

.tnt-nav a {
	text-decoration: none;
}

.tnt-nav .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.tnt-nav__ctas {
	margin-top: 14px;
	display: grid;
	gap: 10px;
}

.tnt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	padding: 10px 14px;
	text-decoration: none;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
	font-weight: 600;
	white-space: nowrap;
}

.tnt-btn--primary {
    border: 1px solid var(--tnt-primary);
	background: transparent;
}

.tnt-btn--primary:hover {
    background: var(--tnt-primary);
    color: white;
}

.tnt-btn--secondary {
	border: 1px solid var(--tnt-primary);
	background: var(--tnt-button-bg);
}

.tnt-btn--donate {
	background: var(--tnt-primary);
    color: white;
}

@media (min-width: 900px) {
	.tnt-nav-toggle {
		display: none;
	}

	.tnt-header__bar {
		gap: 24px;
	}

	.tnt-nav {
		display: flex;
        flex-direction: row;
		padding: 0;
		margin-left: 18px;
		position: static;
		width: auto;
		border-radius: none;
	}

	.tnt-nav .menu {
		display: flex;
		gap: 18px;
		align-items: center;
	}

	.tnt-nav__ctas {
		margin-top: 0;
		display: inline-flex;
		gap: 10px;
		margin-left: 18px;
		align-items: center;
	}

	.sticker {
		display: block;
	}

	body .is-layout-flex.workflow {
		flex-direction: row;

		.wp-block-group {
			&&::before {
				margin-bottom: 30px;
			}

			&&:not(:last-child)::after {
				content: '→';
				flex: 1 1 auto;
				position: absolute;
				top: 35%;
				right: -25px;
				font-size: 50px;
			}
		}
	}

	body .outlined-groups {
		position: relative;
		left: 50%;
		transform: translateX(-50%);
		margin: 0 auto;
		max-width: var(--tnt-max-width);
		padding: 0;
		width: min(100vw, var(--tnt-max-width));

		.wp-block-group__inner-container {
			flex-direction: row;
		}
	}
}

/* Footer */
.tnt-footer {
	padding: 32px 0 40px 0;
}

.tnt-footer__card {
	background: var(--tnt-primary);
	color: #fff;
	border-radius: var(--tnt-radius);
	padding: 20px 16px 0;
	font-size: 13px;
}

.tnt-footer__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(3, 1fr);
	gap: 18px;
	align-items: start;
}

.tnt-footer__col a {
	color: #fff;
}

.tnt-footer--logo { grid-area: 1 / 1 / 2 / 3; }
.tnt-footer--address { grid-area: 2 / 1 / 3 / 2; }
.tnt-footer--menu { grid-area: 3 / 1 / 4 / 2; }
.tnt-footer--social { grid-area: 4 / 1 / 5 / 2; }
.tnt-footer--oscr  { grid-area: 2 / 2 / 5 / 3; }

.tnt-footer__col--media {
	display: flex;
	align-self: stretch;
}

.tnt-footer--oscr {
	height: 100%;
	align-content: start;
}

.tnt-footer-disclaimer {
	display: none;
}

.tnt-footer--social {
	display: flex;
	gap: 10px;
	
	& a {
		display: inline-flex;
		width: 24px;
		height: 24px;
	}
}

.tnt-footer--menu {
	& .menu {
		list-style: none;
		margin: 0;
		padding: 0;
		display: grid;
	}

	& a {
		text-decoration: underline;
	}
}

.tnt-footer__right {
	text-align: left;
}

.tnt-footer--oscr {
	gap: 10px;
	justify-content: flex-end;
    align-items: flex-end;
}

.tnt-footer__logo,
.tnt-footer--oscr img {
	display: block;
	height: 80px;
	max-height: 100%;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

@media (min-width: 900px) {
	.tnt-header .tnt-container {
		flex-direction: row;
	}

	.tnt-footer__grid {
		grid-template-columns: repeat(4, 1fr);
		grid-template-rows: 1fr 24px;
	}

	.tnt-footer__right {
		text-align: right;
		justify-self: end;
	}

	.tnt-footer--oscr {
		justify-items: end;
	}

	.tnt-footer--logo { grid-area: 1 / 1 / 2 / 2; }
	.tnt-footer--address  { grid-area: 1 / 2 / 2 / 3; }
	.tnt-footer--menu { grid-area: 1 / 3 / 2 / 4; }
	.tnt-footer--social { grid-area: 2 / 1 / 3 / 2; }
	.tnt-footer--oscr { grid-area: 1 / 4 / 2 / 5; }
	.tnt-footer-disclaimer { grid-area: 2 / 2 / 3 / 5;
		display: block;
	}

	.is-layout-grid:has(.wp-block-group) {
		margin: 0 calc((var(--tnt-content-width) - var(--tnt-max-width))/2);
		grid-template-columns: 1fr 1fr 1fr;
	}
}

/* WordPress content */
.alignwide {
	max-width: min(100%, calc(var(--tnt-max-width) - 32px));
}

.alignfull {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.wp-block-image img {
	max-width: 100%;
	height: auto;
}

.wp-block-group {
    position: relative;
    padding: 16px 0;
}

.tnt-content > .orange-background,
.tnt-content > .green-outline {
	--tnt-content-width: 100%;
    align-items: center;
    padding-bottom: 50px;
    padding-top: 25px;
    width: min(100vw, var(--tnt-max-width));
    transform: translateX(-50%);
    position: relative;
    left: 50%;
    Margin-top: 50px;
    padding: 25px 50px 50px;
    border-radius: 15px;

	& > div {
		--tnt-content-width: 700px;
		max-width: var(--tnt-content-width);
		margin: 0 auto;
	}
}

.tnt-content > .orange-background {
    background: var(--tnt-background-secondary);
}

.tnt-content > .green-outline {
    border: 1px solid var(--tnt-primary);
}

.is-layout-grid .wp-block-group {
    background-color: var(--tnt-background-secondary);
    border-radius: 15px;
    padding: 30px;

	& .wp-block-group-is-layout-constrained {
		display: flex;
		flex-direction: column;		
		height: 100%;
	}

	& .wp-block-buttons {
        flex: 1 1 auto;
        align-items: end;
		justify-content: center;
	}
}

.outlined-groups {
	.wp-block-group__inner-container {
		display: flex;
		flex-direction: column;
		gap: 30px;
	}

	.wp-block-group.is-vertical {
		border: 1px solid var(--tnt-primary);
		border-radius: 15px;
		padding: 46px;

		.wp-block-buttons {
			align-content: flex-end;
			align-self: center;
			flex: 1 1 auto;
			margin-top: 10px;
		}
	}

	& h3 {
		margin: 0 0 40px;
		text-align: left;
	}
}

.is-layout-grid h2 {
	font-size: 20px;
    margin: 0 0 40px;
    text-align: left;
}

.home main {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}


.workflow {
    align-items: stretch;
	counter-reset: line-number;
    justify-content: center;
	flex-direction: column;
	gap: 32px;

	img {
		max-width: 100px;
		transform: rotate(-5deg);
		margin-bottom: 20px;
	}

	.wp-block-group {
		counter-increment: line-number;
		align-items: center;
		position: relative;

		&::before {
			content: counter(line-number);
			display: flex;
			font-size: 32px;
			font-weight: 700;
			justify-content: center;
			align-items: center;
			border-radius: 50%;
			border: 1px solid var(--tnt-primary);
			margin-bottom: 10px;
			height: 50px;
			width:50px;
		}
	}

	.wp-block-image {
		flex: 1 1 auto;
	}
}