/*
Theme Name: chaiblend 2025
Theme URI: https://chaiblend.guide/
Description: Custom WordPress theme for Chaiblend - a comprehensive guide to Indian chai varieties, authentic brewing methods, and tea culture.
Version: 1.0
Author: Devika Shaji Nair
Author URI: https://devikanair2805.uk/applied-art-for-the-web/portfolio_DevikaNair/site-folder/index.html
*/

/* ======== CSS RESET ======= */

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* ===============================  My style rules start here  =============================== */

/* --- Variables and Defaults --- */

:root {
	--brown: #5C402E;
    --golden-yellow: #FFA135;
    --deep-purple: #3B1F68;
    --tea-leaf-green: #357E3F;
    --teal: #017374;
    --cream: #F9F6EF;
    --off-white-beige: #EFEBE1;
}

main {
	max-width: 88vw;
    margin: 0 auto;
}

article, section {
    display: grid;
    row-gap: 1.5em;
    margin: 0 auto 2em auto;
    padding-bottom: 3em;
}

body {
	background: #F9F6EF url(assets/background-image.png);
	color: var(--brown);
	font-size: 1.1em;
    font-weight: 500;
	line-height: 1.5;	
	font-family: 'karla', Arial, Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6, cite {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
    color: var(--brown);
}

h1 {
    font-size: 3.2em;
    font-weight: 700;
    text-align: center;
    text-transform: capitalize;
    padding-top: 0.5em;
}

h2 {
    text-align: center;
    font-size: 3em;
    font-weight: 700;
    text-transform: capitalize;
}

h3 {
    font-weight: 600;
    font-size: 1.5em;
    text-transform: capitalize;
    text-align: center;
}

/* ===============================  logo and navigation menu  =============================== */

img[src*="chaiblend_logo.svg"] {
    width: 155px;
    padding: 1.5em 0;
    margin: 0 auto;
    display: block;
}

nav {
    background-color: var(--golden-yellow);
    width: 100%;
    position: relative;
}

nav ul {
    list-style: none;
    display: none;
    margin: 0.5em 0;
    flex-direction: column;
}

nav a {
    display: block;
    padding: 0.5em 0;
    text-decoration: none;
    text-transform: capitalize;
    color: var(--brown);
    font-size: 1.2em;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

nav .toggle:before {
    content: '\25BC';
    margin-right: 0.5em;
    transition: all 0.25s ease-out;
}

nav #menu-toggle:checked + .toggle:before {
    content: ' \25B2 '; /* Use proper Unicode */
}

/* ===============================  menu toggle  =============================== */

nav #menu-toggle {
    display: none;
}

nav .toggle {
    display: block;
    padding: 1em;
    font-size: 1.2em;
    font-weight: 500;
    color: var(--brown);
    background-color: var(--golden-yellow);
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

nav #menu-toggle:checked + .toggle + ul {
    display: flex;
    flex-direction: column;
}

/* ===============================  Skip to content  =============================== */

.skip {
    position: absolute;
    top: 0;
    left: -9999px;
}

/* ===============================  Main  =============================== */

article {
    border-bottom: 3px solid;
    border-image: linear-gradient(to right, var(--tea-leaf-green), var(--golden-yellow), var(--tea-leaf-green)) 1;
}

article figure:first-of-type img {
    width: 400px;
}

img {
    margin: auto; 
    display: block;
    max-width: 100%;
    width: 330px;
    height: auto;
    padding: 1.2em 0;
}

blockquote {
    margin: 1em 1em;
    padding: 1.2em;
    background-color: var(--off-white-beige);
}

blockquote p {
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.8;
    color: var(--deep-purple);
    padding-bottom: 0.2em;
}

cite a {
    color: #3B1F68;
    font-size: 1.4em;
    font-weight: 700;
}

#content h2 {
    text-align: left;
    font-size: 2em;
}

#content h3 {
    text-align: left;
    font-size: 1.5em;
}

figcaption {
    text-align: center;
    font-size: 1.4em;
    font-weight: 600;
    color: var(--teal);
    padding-bottom: 2em;
}

.origin {
    font-size: 1.5em;
    font-weight: 700;
    text-transform: capitalize;
}

img[src*="saucepan-illustration"] {
    max-width: 340px;
}

img[src*="grater-illustration"] {
    max-width: 230px;
}

img[src*="pestle-and-mortar-illustration.svg"] {
    max-width: 210px;
}

img[src*="chaiwala-illustration.svg"] {
    max-width: 340px;
}

img[src*="camellia-sinensis-illustration.svg"] {
    max-width: 335px;
}

img[src*="herbal-blends-and-spiced-teas-illustrations.svg"] {
    max-width: 100%;
    width: 500px;
}

/* ===============================  Homepage  =============================== */

section .homepage {
    display: block;
}

.homepage a {
    text-align: center;
    background-color: var(--tea-leaf-green);
    color: var(--cream);
    display: inline-block;
    text-decoration: none;
    padding: 0.8em 1.6em;
    font-size: 1.1em;
    justify-self: center;
    width: fit-content;
}

#content.homepage h2 {
    text-align: center;
    margin-top: 0.6em;
}

section.homepage > div {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.6em;
    margin-top: 0.6em;
}

section.homepage > div > div a {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--brown);
    margin-bottom: 0.5em;
    text-transform: capitalize;
    text-decoration: none;
    display: block;
    background: none;
    padding: 0.8em 0em 0em 0em;
}

section.homepage > div > div img {
    width: 155px;
    height: auto;
    padding: 0;
}

/* ===============================  Post Grids  =============================== */

#other-content {
    margin-top: 3em;
    margin-bottom: 5em;
}

#other-content h2 {
    padding-bottom: 0.5em;
}

#other-content ul {
    display: grid;
    gap: 2em;
    max-width: 100%;
}

#other-content li img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    padding: 0.8em 0;
}

#other-content a {
    text-decoration: none;
}

/* ===============================  Chai Category  =============================== */

.category h2 {
    padding-top: 1.2em;
}

.category ul li p {
    text-align: center;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: capitalize;
}

.category ul li a {
    text-decoration: none;
    color: var(--brown);
}

.category ul {
    display: grid;
    gap: 1.5em; 
}

.category img {
    padding: 1em 0;
}

/* ===============================  Recipe Page  =============================== */

.recipe-detail img {
    max-width: 380px;
    padding: 0;
}

.recipe-nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  background-color: transparent
}

.recipe-nav a {
  text-decoration: none;
  padding: 0;
}

/* ===============================  Ingredients List  =============================== */

.lists {
    margin: 1em 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-bottom: 3px solid;
    border-image: linear-gradient(to right, var(--tea-leaf-green), var(--golden-yellow), var(--tea-leaf-green)) 1;
    padding-bottom: 1em;
}

.lists img {
    max-width: 155px;
}

.lists li {
    text-align: center;
}

.lists li p {
    font-size: 1em;
}

.lists li p:first-of-type {
    padding-top: 0.5em;
    font-weight: 700;
    font-size: 1.2em;
    text-transform: capitalize;
}

.lists li p + p {
    padding-bottom: 2em;
}

#content.recipe-detail > p:first-of-type {
    text-align: center;
    font-size: 1.4em;
    font-weight: 700;
}

/* ===============================  Step-By-Step Guide =============================== */

.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2em;
    margin: 0.5em 0;
    border-bottom: 3px solid;
    border-image: linear-gradient(to right, var(--tea-leaf-green), var(--golden-yellow), var(--tea-leaf-green)) 1;
    padding-bottom: 2.5em;
}

.steps {
    display: grid;
    grid-template-rows: auto auto 1fr; 
    gap: 1em;
}

.steps img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.steps p {
    background-color: var(--off-white-beige);
    padding: 1.2em 1.5em;
    margin: 0;
    border-radius: 12px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--brown);
}

.steps h3 {
    text-align: left;
    margin: 0;
    padding: 0;
}

dt {
    font-size: 1.5em;
    font-weight: 700;
    text-transform: capitalize;
}

dd {
    padding-bottom: 1em;
}

/* ===============================  Footer =============================== */

footer {
    background-color: var(--golden-yellow);
    padding-top: 0.5em;
    padding-bottom: 2em;
    text-align: center;
    text-transform: capitalize;
}

footer nav a {
    font-size: 1.1em;
    text-decoration: none;
    padding-bottom: 0.5em;
}

footer nav ul {
    border-bottom: 2px solid var(--brown);
    padding-bottom: 1em;
    padding-top: 0.5em;
    display: flex;
    flex-direction: column;
}

footer p {
    text-align: center;
    font-size: 1.1em;
    padding-top: 1.5em;
}

footer p+p {
    padding-top: 0.8em;
    font-weight: 700;
}

footer a {
    color: var(--brown);
}

/* ===============================  Links  =============================== */

nav .toggle:hover, 
nav .toggle:active, 
nav .toggle:focus {
    background-color: var(--teal);
    color: var(--cream);
}

nav a:hover, 
nav a:active, 
nav a:focus {
    background-color: var(--tea-leaf-green);
    color: var(--cream);
}


#other-content h3:hover,
#other-content h3:focus {
    text-decoration: underline;
    color: var(--tea-leaf-green);
}

footer nav a:hover,
footer nav a:focus {
    background-color: var(--golden-yellow);
    color: var(--brown);
    text-decoration: underline;
}

.category ul li a:hover,
.category ul li a:focus {
    text-decoration: underline;
    color: var(--tea-leaf-green);
}

.recipe-nav a:hover {
  text-decoration: underline;
  background-color: transparent;
  font-weight: 700;
  color: var(--tea-leaf-green);
}

section.homepage > div > div a:hover,
section.homepage > div > div a:focus {
    text-decoration: underline;
    color: var(--tea-leaf-green);
}

/* ===============================  Accordion Styles  =============================== */

/* Hide accordion checkboxes */
input[type="checkbox"] {
    display: none;
}

.benefits h2 {
    font-size: 2em;
}

/* Plus icon */
.benefits h2::before {
    content: '+';
    margin-right: 0.5em;
    line-height: 1;
}

/* Minus icon when checked */
#warming-spices:checked ~ label[for="warming-spices"] h2::before,
#aromatic-herbs:checked ~ label[for="aromatic-herbs"] h2::before,
#seeds-pods:checked ~ label[for="seeds-pods"] h2::before,
#specialty-ingredients:checked ~ label[for="specialty-ingredients"] h2::before,
#nuts-enriching:checked ~ label[for="nuts-enriching"] h2::before {
    content: '-';
}

label {
    cursor: pointer;
    display: block;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

/* Show content when checked */
#warming-spices:checked + label + .accordion-content,
#aromatic-herbs:checked + label + .accordion-content,
#seeds-pods:checked + label + .accordion-content,
#specialty-ingredients:checked + label + .accordion-content,
#nuts-enriching:checked + label + .accordion-content {
    max-height: 5000px;
    transition: max-height 0.5s ease-in;
}

.ingredient-item {
    margin-bottom: 2em;
    padding-bottom: 2em;
    border-bottom: 1px solid var(--brown);
}

.ingredient-item h3 {
    margin-bottom: 0.2em;
    font-weight: 700;
}

.ing-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
}

.ingredient-item img {
    margin: 0;
    padding: 0;
    width: 220px;
}

.ingredient-item h4 {
    font-size: 1.4em;
    font-weight: 700;
    margin: 1em 0 0.2em 0;
    text-transform: capitalize;
}

/* ===============================  Sitemap specific styles  =============================== */

.info-page {
    row-gap: 0em;
}

.info-page h2 {
    margin-top: 1em;
}

.info-page h1 {
    margin-bottom: 0.3em;
}

.info-page p {
    margin-top: 0.8em;
}

.info-page ul {
    margin-top: 1em;
}

.info-page ul li {
    margin-bottom: 0.8em;
}

.info-page ul li a {
    color: var(--brown);
    text-decoration: underline;
    font-size: 1em;
    display: block;
    position: relative;
    padding-left: 1.2em;
}

.info-page ul li a:before {
    content: '◦';
    position: absolute;
    left: 0;
    color: var(--tea-leaf-green);
}

.info-page ul li a:hover,
.info-page ul li a:focus {
    color: var(--tea-leaf-green);
    text-decoration: underline;
}

.info-page a {
    color: var(--brown);
}

/* ===============================  Media Queries  =============================== */

@media (min-width: 630px) {

    nav a {
        font-size: 1.4em;
    }

    article, section {
        padding: 0 1em 3em 1em;
    }

    article figure:first-of-type img {
        width: 450px;
    }

    img {
        width: 400px;
    }
}

@media (min-width: 730px) {

    article figure:first-of-type img {
        width: 500px
    }

    img {
        width: 450px;
        padding: 1.4em 0;
    }

    blockquote {
        margin: 1.1em 2em;
    }

     #other-content ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.4em;
    }

    img[src*="saucepan-illustration"] {
        max-width: 410px;
    }

    img[src*="grater-illustration"] {
        max-width: 330px;
    }

    img[src*="pestle-and-mortar-illustration.svg"] {
        max-width: 230px;
    }

    .category ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8em;
    }

    section.homepage > div {
        grid-template-columns: repeat(2, 1fr);
        gap: 2em;
        margin-top: 2em;
    }

    section.homepage > div > div img {
        width: 165px;
    }

}

@media (min-width: 830px) {

    article, section {
        padding: 0 2em 3em 2em;
    }

    article figure:first-of-type img {
        width: 550px;
    }

    img {
        width: 500px;
        padding: 1.6em 0;
    }

    blockquote p {
        font-size: 1.3em;
    }

    cite a {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.8em;
    }

    #other-content h2 {
        padding-bottom: 0.7em;
    }

    #content > ul > li {
        font-size: 1.2em;
    }

    img[src*="herbal-blends-and-spiced-teas-illustrations.svg"] {
        width: 530px;
    }

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

    .steps-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5em;
    }
    
    .steps {
        gap: 1.2em;
    }

    .ing-content {
        grid-template-columns: 1fr 2fr;
        align-items: center;
    }

    .info-page ul li a {
        font-size: 1.2em;
    }

    .info-page > div:first-of-type {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3em;
    }

    .info-page > div:last-of-type > div {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2em;
    }
}

@media (min-width: 1000px) {

    nav ul {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        margin: 0.5em 0;
    }

    nav a {
        padding: 0.8em 1em;
    }
    
    nav #menu-toggle,
    nav .toggle {
        display: none;
    }

    footer nav ul {
        flex-direction: row;
        justify-content: center;
        padding-top: 0;
    }

    section.homepage > div {
        grid-template-columns: repeat(4, 1fr);
    }

    section.homepage > div > div img {
        width: 180px;
    }
}

@media (min-width: 1100px) {

    p {
        font-size: 1.1em;
    }

    nav a {
        padding: 0.7em 1.8em;
        font-size: 1.5em;
    }

    article, section {
        padding: 0 4em 3em 4em;
    }

    article figure:first-of-type img {
        width: 600px;
    }

    img {
        padding: 2em 0;
    }

    blockquote {
        margin: 1.2em 3em;
    }

    blockquote p {
        font-size: 1.4em;
    }

    cite a {
        font-size: 1.6em;
    }

    #other-content ul {
        grid-template-columns: repeat(3, 1fr);
    }

    img[src*="saucepan-illustration"] {
        max-width: 430px;
    }

    img[src*="grater-illustration"] {
        max-width: 280px;
    }

    img[src*="pestle-and-mortar-illustration.svg"] {
        max-width: 260px;
    }

    dd {
        font-size: 1.1em;
    }

    .steps p {
        font-size: 1.1em;
    }

    .category ul {
        grid-template-columns: repeat(3, 1fr);
    }

    .lists {
        grid-template-columns: repeat(4, 1fr);
    }

    .lists li p {
        font-size: 1.1em;
    }

    .ingredient-item img {
        width: 300px;
    }

    .ingredient-item li {
        font-size: 1.1em;
    }

}

@media (min-width: 1300px) {

    article, section {
        padding: 0 10em 3em 10em;
    }

    blockquote {
        margin: 1.2em 5em;
    }

    #other-content ul {
        grid-gap: 0;
    }

    #other-content ul {
        grid-template-columns: repeat(4, 1fr);
    }

    img[src*="herbal-blends-and-spiced-teas-illustrations.svg"] {
        width: 600px;
    }

    .lists {
        grid-template-columns: repeat(5, 1fr);
    }
}