:root {
	/* Colours */
	--color-primary: #000;
	--color-primary--faded: #171717;
	--color-primary--light: #c2c2c2;
	--color-secondary: #00A651;
	--color-secondary--light: #81d5aa;
    --color-tertiary: #FFF200;
    --color-tertiary--light: #f8f39f;
	--color-accent: #EC008C;
	--color-accent--light: #de8bbd;

    /* Font */
    --font-primary: 'Open Sans', sans-serif;
    --font-secondary: 'Agbalumo', sans-serif;

	/* banner height */
	--banner-height: 80vh;
}

/* ============================================
   RESET
   Adapted from: https://piccalil.li/blog/a-more-modern-css-reset/
   ============================================ */

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

/* Prevent font size inflation */
html {
	-moz-text-size-adjust: none;
	-webkit-text-size-adjust: none;
	text-size-adjust: none;
	line-height: 1.5;
	font-family: var(--font-primary);
}

/* Remove default margin in favour of better control in authored CSS */
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
ol,
ul,
dl,
dd {
	margin: 0 0 1.5rem;
}

/* Remove list styles on ul, ol elements with a list role,
   which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
	list-style: none;
}

/* Set core body defaults */
body {
	min-height: 100vh;   /* fallback for older browsers */
	min-height: 100dvh;  /* honours mobile toolbars */
	margin: 0;
    background-color: var(--color-primary--faded);
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
	line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
	text-wrap: balance;
}

/* Prevent typographic orphans in body copy */
p {
	text-wrap: pretty;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
	text-decoration-skip-ink: auto;
	color: var(--color-secondary);
}

a:not([class]):hover,
a:not([class]):focus-visible {
	color: #d96666;
}

/* Make images and embeds easier to work with */
img,
picture,
svg,
iframe {
	max-width: 100%;
	display: block;
}

svg {
	fill: currentColor;
}

svg:not(:root) {
	overflow: hidden;
}

/* Inherit fonts and colour for inputs and buttons */
input,
button,
textarea,
select {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

/* Update default button cursor to indicate interactivity */
button {
	cursor: pointer;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
	min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
	scroll-margin-block: 3rem;
}

/* Remove all animations, transitions and smooth scroll
   for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
	html:focus-within {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ============================================
   LAYOUT / CONTAINERS
   ============================================ */

.container {
	width: min(65rem, 100%);
	margin: 0 auto;
	padding-inline: 1.5rem;
}

.container--text {
	width: min(40em, 100%);
}

/* ============================================
   TYPE HIERARCHY
   ============================================ */

h1 {
	color: var(--color-secondary);
    font-family: var(--font-secondary);
	font-size: clamp(1.802rem, 4.854vw, 3.052rem);
	line-height: 1.3;
}

h2 {
	color: var(--color-tertiary--light);
    font-family: var(--font-primary);
	font-size: clamp(1.602rem, 4.043vw, 2.441rem);
	line-height: 1.2;
}

h3 {
	color: var(--color-secondary);
	font-size: clamp(1.424rem, 3.377vw, 1.953rem);
	margin-block-end: 0.25rem;
	line-height: 1.3;
}

h4 {
	font-size: clamp(1.266rem, 2.829vw, 1.563rem);
	margin-block-end: 0;
}

h5 {
	font-size: clamp(1.125rem, 2.375vw, 1.25rem);
	font-weight: normal;
}

h6 {
	font-size: 1rem;
	margin-block-end: 0.45rem;
}

/* ============================================
   NAVBAR STYLES
   ============================================ */

.navbar {
	background-color: var(--color-primary);
	color: #fff;
	border-block-start: 0.25rem solid var(--color-secondary);

	.container {
		display: flex;
		flex-direction: column;
		padding: 0;
	}

	.navbar__headline {
        margin: 0;
        white-space: nowrap;
	}

	.navbar__logo {
		display: flex;
		justify-content: center;
		padding-block: 0.5rem;
        padding-inline: 1rem;
		color: #fff;
		text-decoration: none;

		&:hover,
		&:focus {
			color: var(--color-secondary);
		}
	}

	.navbar__icon {
		width: auto;
        min-width: 16rem;
	}

	.navbar__title {
		font-size: 1.5rem;
		line-height: 1.3;
		margin-block-start: 0.5rem;
	}

	.navbar__list {
		display: flex;
		flex-direction: column;
		margin: 0;
		padding: 0;
	}

	.navbar__link {
		display: flex;
		justify-content: center;
		padding-block: 0.5rem;
		color: #fff;
		text-decoration: none;
		white-space: nowrap; /* so links don't break into two lines */

		&:hover,
		&:focus {
			background-color: var(--color-secondary);
		}
	}

	@media only screen and (min-width: 60rem) {
		.container {
			flex-direction: row;
			justify-content: space-between;
			padding-inline: 1.5rem;
		}

		.navbar__nav {
			display: flex;
		}
        .navbar__headline {
            margin-block: 0;
            margin-inline-end: 4rem;
        }

		.navbar__list {
			flex-direction: row;
		}

		.navbar__li {
			display: flex;
			align-items: stretch;
		}

		.navbar__link {
			align-items: center;
			padding-inline: 1.5rem;
		}
	}
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn {
	color: #fff;
	background-color: var(--color-primary);
	text-decoration: none;
	line-height: 1.5;
	border-radius: 0.25rem;
	display: inline-block;
	padding-block: 0.5em;
	padding-inline: 1.5em;
	writing-mode: horizontal-tb;
	border: 0.125rem solid var(--color-primary);
}

.btn:where(:hover, :focus-visible) {
	background-color: var(--color-primary--light);
	border-color: var(--color-primary--light);
}

.btn--secondary {
	color: #000;
	background-color: var(--color-secondary);
	border-color: var(--color-secondary);

	&:where(:hover, :focus-visible) {
		background-color: var(--color-secondary--light);
		border-color: var(--color-secondary--light);
	}
}

.btn--outline {
	color: var(--color-primary);
	background-color: #fff;
	border: 0.125rem solid var(--color-primary);
}

.btn--outline:hover {
	color: #ffffff;
	background-color: var(--color-primary);
}

.btn--small {
	font-size: 0.8em;
}

.btn--large {
	font-size: 1.4em;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.footer {
	background-color: var(--color-primary);
	color: #fff;
	border-bottom: 0.5rem solid var(--color-secondary);

	.container {
		padding-block: 3rem;
		display: flex;
		flex-direction: column;
		gap: 1.5rem;
	}

	.footer__logo {
		display: flex;
		gap: 0.75rem;
		align-items: center;
		color: #fff;
		text-decoration: none;

		/* &:hover,
		&:focus {
			color: var(--color-secondary);
		} */
	}

	.footer__icon {
		width: 5rem;
	}

	.footer__title {
		font-size: 1.525rem;
		font-weight: bold;
		line-height: 1.3;
	}

	.footer__list {
		padding-inline-start: 1.5rem;
		margin: 0;
        border-left: 0.12rem solid var(--color-secondary);
		list-style-type: none;
		display: flex;
		flex-direction: column;
		gap: 0.75rem;
	}

    .footer__socials_list {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        padding-block-start: 1rem;
    }

    .footer__socials_icon {

        img {
            width: 2rem;
        }
    }

	.footer__link, small a {
		color: #fff;
		text-decoration: none;

		&:hover,
		&:focus {
			color: var(--color-secondary);
		}
	}

	small a {
		display: block;

        &:first-of-type {
            margin-block-start: 0.5rem;
        }
	}

	@media only screen and (min-width: 45rem) {
		.container {
			flex-direction: row;
			justify-content: space-between;
		}

		.footer__logo {
			flex: 2 0;
			align-self: flex-start;
		}

		.footer__nav,
		.footer__copyright {
			flex: 1 0;
		}
	}
}

/* ============================================
   HOME MAIN SECTION STYLES
   ============================================ */

.intro__banner {
    min-height: var(--banner-height);
    display: flex;
    align-items: flex-end;
    padding-block-end: 3rem;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
        url('../images/plants/4.jpg');
    background-size: cover;
    background-position: center;

    .intro__banner-content {
        color: #fff;
        /* padding: 2rem; */
        padding-block: 3rem;
        border-radius: 0.25rem;

        p {
        font-size: clamp(1.266rem, 2.829vw, 1.563rem);
        line-height: 1.3;
    }
    }

    @media only screen and (min-width: 45rem) {
        align-items: center;
        padding-block-end: 0;

        .intro__banner-content {
            max-width: 30%;
        }
    }
}

.intro__photos {
    background-color: var(--color-primary--faded);
    padding-block-start: 2rem;
    padding-block-end: 5rem;

    .container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    img {
        width: 100%;
        height: auto;
        border: 0.1rem solid;
        border-radius: 0.25rem;
    }

    img:nth-of-type(1) {
        border-color: var(--color-accent);
    }

    img:nth-of-type(2) {
        border-color: var(--color-secondary);
    }

    img:nth-of-type(3) {
        border-color: var(--color-tertiary);
    }

    @media only screen and (min-width: 45rem) {
        .container {
            flex-direction: row;
        }

        img {
            flex: 1;
            min-width: 0;
            aspect-ratio: 4 / 3;
            object-fit: cover;
        }
    }
}

/* ============================================
   ABOUT STYLES
   ============================================ */

.about__content {
    background-color: var(--color-primary--faded);
    color: white;
    padding-block-start: 2rem;
    padding-block-end: 5rem;
}

/* ============================================
   CONTACT STYLES
   ============================================ */

.contact__map, .contact__content {
    background-color: var(--color-primary--faded);
    color: white;
}

.contact__content {
    padding-block-start: 2rem;
}

.contact__map {
    padding-block-end: 5rem;

    iframe {
        width: 100%;
        aspect-ratio: 4 / 3;
        height: auto;
        border: 0;
    }
}

/* ============================================
   GARDENS STYLES
   ============================================ */

.gardens__content {
    background-color: var(--color-primary--faded);
    color: white;
    padding-block-start: 2rem;
    padding-block-end: 5rem;
}

.gardens__photos {
    background-color: var(--color-primary--faded);
    padding-block-start: 2rem;
    padding-block-end: 5rem;

    .container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    img {
        width: 100%;
        height: auto;
        /* border: 0.2rem solid; */
        border-radius: 0.25rem;
    }

    @media only screen and (min-width: 45rem) {
        .container {
            flex-direction: row;
        }

        img {
            flex: 1;
            min-width: 0;
            aspect-ratio: 4 / 3;
            object-fit: cover;
        }
    }
}

/* ============================================
   MEET THE TEAM STYLES
   ============================================ */

.team__content {
    background-color: var(--color-primary--faded);
    color: white;
    padding-block-start: 2rem;
}

/* Card Group Styles */
.section-cards {
	background-color: var(--color-primary--faded);
	padding-block: 2rem;

	h2 {
		color: var(--color-primary);
	}
}

.card-group {
	display: grid;
	gap: 2rem;
	padding: 0;

	li {
		display: flex;
		justify-content: center;
		flex-wrap: wrap;
	}

	.card {
		background-color: var(--color-tertiary--light);
		display: flex;
		flex-basis: 100%;
		flex-direction: column;
		border-radius: 0.5rem;
		box-shadow: 0 0.25rem 0.5rem #0002;
		text-decoration: none;
		overflow: hidden;
		align-items: stretch;
	}

	.card__img {
		img {
			background-color: var(--color-secondary);
			display: block;
			width: 100%;
			aspect-ratio: auto 3/4;
			object-fit: cover;
		}
	}

	.card__content {
		padding-block: 1.5rem;
		padding-inline: 1.5rem;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		flex-grow: 1;

		h3 {
			color: var(--color-primary);
			font-size: clamp(1.266rem, 2.829vw, 1.563rem);
			margin-block-end: 0.25rem;
			line-height: 1.3;
		}

		p {
			color: black;
			flex-grow: 1;
		}

		strong {
			display: block;
		}
	}

	:where(:hover, :focus-visible) {
		.btn {
			background-color: var(--color-primary--light);
			border-color: var(--color-primary--light);
		}

		.card {
			box-shadow: 0 0.25rem 0.75rem #0002;
			transform: translate(0, -0.5rem);
			transition: 0.3s ease;
		}
	}

	@media only screen and (min-width: 45em) {
		grid-template-columns: 1fr 1fr;
	}

	@media only screen and (min-width: 60em) {
		grid-template-columns: 1fr 1fr 1fr;
	}
}