/*
Theme Name: Mauritius Bites Custom Theme
Theme URI: https://ridj.uk/mauritius-bites
Text Domain: mauritius-bites
Version: 6.0.0
Description: A modern, responsive theme for showcasing food spots in Mauritius.
Author: Ridj Bissessur
Author URI: https://ridj.uk
*/

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


/* 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;
}

/* ====== Custom Styles ====== */

/* ROOTS */

/* ======= Color Variables ====== */

:root {
    --background-color: #e1e1e1;
    --heading-color: #050517;
    --text-color: #050517;
    --accent-color1:#9dc5bb;
    --accent-color2: #17b890;
    --CTA-button-color: #f18f01;
    --card-background-color: #9dc5bb;
    --card-border-color: #e0e0e0;
    --card-hover-color: #9dc5bb;
    --card-box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    --logo-outline: #000000;
    --hike-card-background: #17b890;
    --hike-card-text: #050517;
}

.dark-theme {
    --background-color: #040f0f;
    --heading-color: #fcfffc;
    --text-color: #fcfffc;
    --accent-color2: #248232;
    --accent-color1: #d4e79e;
    --CTA-button-color: #248232;
    --card-background-color: #2d3a3a;
    --card-border-color: #3c3c3c;
    --card-hover-color: #252424;
    --card-box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    --logo-outline: #f18f01;
    --hike-card-background: #f18f01;
    --hike-card-text: #050517;
}

/* ===============Accessibility helper class================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color1);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    z-index: 100;
    transition: top 0.3s ease;
}

.skip-to-main:focus {
    top: 0;
    outline: 3px solid var(--CTA-button-color);
}

/* Add current page indicator */
[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
    font-weight: bold;
}

/* Improved focus styles */
a:focus-visible {
    outline: 3px solid var(--accent-color2);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background-color: var(--CTA-button-color);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0.2;
}

.back-to-top:hover,
.back-to-top:focus {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    color: white;
    text-decoration: none;
    background-color: var(--accent-color2);
    opacity: 1;
}


/* ======== Additional classes style ======== */

.cards-general {
    background-color: var(--card-background-color);
    border-radius: 10px;
    box-shadow: var(--card-box-shadow);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.hike-card-background {
    background-color: var(--hike-card-background);
    border-radius: 10px;
    box-shadow: var(--card-box-shadow);
    padding: 1.5rem;
    color: var(--hike-card-text);
}

/* ====== Global Styles ====== */

body {
    background-color: var(--background-color);
    line-height: 1.5;
    color: var(--text-color);
    font-family: "Open Sans", system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-family: "Boldonse", system-ui;
    font-weight: 400;
    font-style: normal;
    margin: 18px 0;
}

h1 {
    font-size: clamp(2.5rem, 2.2rem + 1vw, 3.5rem);
}
h2 {
    font-size: clamp(2rem, 1.8rem + 0.5vw, 2.5rem);
    text-align: center;
}
h3, h4, h5, h6 {
    font-size: clamp(1.5rem, 1.4rem + 0.5vw, 2rem);
}

p, a, li {
    color: var(--text-color);
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(1.3rem, 1.2rem + 0.5vw, 1.5rem);
    margin: 5px 0;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

a:hover {
  background: var(--CTA-button-color);
  color: #fff;
}
a:focus {
  border-radius: 8px;
    outline: 3px solid var(--CTA-button-color);
    outline-offset: 2px;
}

p .generalcard {
    background-color: var(--card-background-color);
    border-radius: 10px;
    box-shadow: var(--card-box-shadow);
    padding: 1.5rem;
    transition: all 0.3s ease;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* ========Bold Text Styles======= */

strong, b, .bold {
    font-weight: 700;
    color: var(--text-color);
}

/* For bold text within paragraphs */
p strong, p b {
    font-weight: 700;
    color: inherit;
}

/* For bold text within headings */
h1 strong, h2 strong, h3 strong, h4 strong, h5 strong, h6 strong {
    font-weight: 700;
    color: inherit;
}
/* ====== Button Styles ====== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background-color: var(--CTA-button-color);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-weight: 600;
    margin-top: 15px;
}

.btn:hover {
    background-color: var(--accent-color2);
    color: var(--text-color);
    border-color: var(--text-color);
}

.btn:focus {
    outline: 3px solid var(--accent-color2);
    outline-offset: 2px;
}

.btn:focus:not(:focus-visible) {
    outline: none;
}

.btn:focus-visible {
    outline: 3px solid var(--accent-color2);
    outline-offset: 2px;
}

/* ========LOGO style ==========*/

.st0{fill:var(--accent-color1);}
.st1{fill:#8b5738;stroke:#000000;stroke-width:3;stroke-miterlimit:10;}
.st2{fill:#fc9d01;stroke:#000000;stroke-width:3;stroke-miterlimit:10;}
.st3{fill:#fa7306;stroke:#000000;stroke-width:3;stroke-miterlimit:10;}
.st4{fill:#FFFFFF;}
.st5{fill:none;stroke: var(--logo-outline);stroke-width:4;stroke-miterlimit:10;}
.st11{fill: var(--text-color);}

.logo {
    display: block;
    margin: auto;
}

.logo a:hover {
    background: none;
}

svg {
    width: 150px;
    height: 150px;
}

/* ========wordpress overwrite======== */

/* ====== WordPress Details Block Custom Styles ====== */
details.wp-block-details {
    background: var(--card-background-color);
    border: 1.5px solid var(--card-border-color);
    border-radius: 8px;
    margin: 1.5em 0;
    box-shadow: var(--card-box-shadow);
    padding: 0.5em 1em;
}

details.wp-block-details[open] {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

details.wp-block-details > summary {
    font-weight: 600;
    color: var(--heading-color);
    cursor: pointer;
    padding: 0.5em 0;
    outline: none;
    position: relative;
    transition: color 0.2s;
    list-style: none;
}

details.wp-block-details > summary::-webkit-details-marker {
    display: none;
}

details.wp-block-details > summary:after {
    content: '\25BC';
    position: absolute;
    right: 0.5em;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.2s;
    font-size: 0.9em;
    color: var(--accent-color2);
}

details.wp-block-details[open] > summary:after {
    transform: translateY(-50%) rotate(180deg);
}

details.wp-block-details > *:not(summary) {
    margin-top: 0.75em;
    color: var(--text-color, #050517);
}

/* ==========wordpress forms style =================*/

#wpforms-form-1264{
    width: 40vw;
    max-width: 600px;
    display: block;
    margin: auto;
}

/* ====== Navigation Menu Styles ====== */

/* Hide the checkbox */
.menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ====== Mobile-first layout====== */
.menu-container {
  display: flex;
  flex-direction: column;
  align-items: center;    
  justify-content: center;
  gap: 1rem;
}

/* Burger button */
.burger-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  cursor: pointer;
  gap: 5px;
  margin: 10px auto; 
}

.burger-menu:focus-visible { outline: 3px solid #5b9dff; outline-offset: 2px; }

.menu-icon-bar1 , .menu-icon-bar2, .menu-icon-bar3  {
  display: block;
  width: 22px; height: 2px;
  background: var(--CTA-button-color);
  border-radius: 1px;
}
.menu-icon-bar + .menu-icon-bar { margin-top: 5px; }

/* Menu list (collapsed by default) */
.menu-list {
  width: 100%;
  max-height: 0;
  overflow: hidden;
}
.menu-list li { text-align: center; }
.menu-list li a {
  display: block;
  padding: 0.875rem 0.25rem;
  color: var(--text-color);
  border-radius: 8px;
}
.menu-list li a:hover { background: var(--accent-color2); }
.menu-list li a:focus-visible { outline: 3px solid #5b9dff; outline-offset: 2px; }

/* Theme switch  */
.switch {
  display: inline-block;
  margin: auto; 
}

.menu-toggle:checked ~ .menu-container .menu-list {
  max-height: 500px; 
}

/* "X" when open */
.menu-toggle:checked ~ .burger-menu .menu-icon-bar1 {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle:checked ~ .burger-menu .menu-icon-bar2 {
  opacity: 0;
}
.menu-toggle:checked ~ .burger-menu .menu-icon-bar3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============Toogle Switch Styles============ */
/* This is a toggle switch for dark mode and light mode */
.switch {
  display: block;
  --width-of-switch: 3.5em;
  --height-of-switch: 2em;
  --size-of-icon: 1.4em;
  --slider-offset: 0.3em;
  position: relative;
  width: var(--width-of-switch);
  height: var(--height-of-switch);
  margin: 5px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #f4f4f5;
  transition: .4s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: var(--size-of-icon,1.4em);
  width: var(--size-of-icon,1.4em);
  border-radius: 20px;
  left: var(--slider-offset,0.3em);
  top: 50%;
  transform: translateY(-50%);
  background: #fa7306;
  transition: .4s;
}

input:checked + .slider {
  background-color: #303136;
}

input:checked + .slider:before {
  left: calc(100% - (var(--size-of-icon,1.4em) + var(--slider-offset,0.3em)));
  background: #303136;
  box-shadow: inset -3px -2px 5px -2px #8983f7, inset -10px -4px 0 0 #a3dafb;
}

.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.intro {
    max-width: 600px;
    text-align: center;
    margin: 2rem;
}

/* ====== Food Search Styles ====== */

.byfood {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 80px;
}

.foodicon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.foodicon:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.foodicon img {
    width: auto;
    height: auto;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

/* ======Section Divider Styles ====== */

#popular-minne {
    margin-top: 70px;
}

/* ====== Restaurant Review Styles ====== */

.restaurant-review {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.article-header {
    text-align: center;
    margin-bottom: 2rem;
}

.meta-info {
    color: var(--text-color);
    opacity: 0.8;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.meta-info > * {
    margin: 0 0.5rem;
}

.featured-image {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.restaurant-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .restaurant-details {
        grid-template-columns: 1fr;
    }
}

.info-card {
    background: var(--card-background-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-box-shadow);
}

.info-card h3 {
    margin-top: 0;
    border-bottom: 2px solid var(--accent-color1);
    padding-bottom: 0.5rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    margin: 1rem 0;
}

.info-card strong {
    color: var(--accent-color2);
}

/* ====== Card Styles ====== */

.foodcards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
}

.foodcard {
    background-color: var(--card-background-color);
    border-radius: 10px;
    box-shadow: var(--card-box-shadow);
    padding: 1.5rem;
    transition: all 0.3s ease;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    justify-content: space-between;
}

.foodcard img {
    display: block;
    margin: auto;
    border-radius: 10px;
}

.foodcard {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.foodcard:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.foodcard:focus-within {
    outline: 3px solid var(--accent-color2);
    outline-offset: 4px;
}

.pickcards {
    background-color: var(--card-background-color);
    border-radius: 10px;
    box-shadow: var(--card-box-shadow);
    padding: 1.5rem;
    transition: all 0.3s ease;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}


/* ====== Archive Styles ====== */
.archive-header {
    background-color: var(--card-background-color);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.archive-header .landing-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.archive-description {
    margin: 1rem auto;
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.archive-content {
    padding: 2rem 0;
}

.archive-content .foodcards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.restaurant-meta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.restaurant-meta span {
    padding: 0.25rem 0.5rem;
    background-color: var(--accent-color1);
    border-radius: 4px;
}

.entry-meta {
    font-size: 0.9rem;
    margin-top: 1rem;
    color: var(--text-color);
    opacity: 0.8;
}

.entry-meta > * + * {
    margin-left: 1rem;
}

.navigation.pagination {
    margin: 2rem 0;
    text-align: center;
}

.navigation.pagination .nav-links {
    display: inline-flex;
    gap: 0.5rem;
}

.page-numbers {
    padding: 0.5rem 1rem;
    border: 2px solid var(--accent-color1);
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers.current {
    background-color: var(--accent-color1);
    color: var(--background-color);
}

.page-numbers:hover:not(.current) {
    background-color: var(--accent-color2);
    border-color: var(--accent-color2);
    color: var(--background-color);
}

.archive-sidebar {
    margin-top: 2rem;
    padding: 1rem;
}

@media (min-width: 768px) {
    .archive-content {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .archive-sidebar {
        margin-top: 0;
    }
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
}

/* ====== 404 Page Styles ====== */
.error-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-bottom: 90px;
}

.error-404::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 100;
    z-index: 1;
}

.error-404-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    border-radius: 15px;
    background-color: var(--card-background-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    max-width: 600px;
    margin: 1rem;
    
}

.error-404 h1 {
    font-size: 8rem;
    color: var(--CTA-button-color);
    margin-bottom: 1rem;
    line-height: 1;
}

.error-404 p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.search-form-container {
    margin: 2rem 0;
}

.error-404 .btn {
    margin-top: 1rem;
}

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

footer {
  background-color: var(--card-background-color);
}
footer ul li, p, a {
  font-size: 1.2rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

ul#menu-footer-page-2.menu-list {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 100% 0;
}

ul#menu-footer-page-2.footer-list {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.footer-list li { text-align: center; }
.footer-list li a {
  display: block;
  padding: 0.875rem 0.25rem;
  color: var(--text-color);
  border-radius: 8px;
}
.footer-list li a:hover { background: var(--accent-color2); }
.footer-list li a:focus-visible { outline: 3px solid #5b9dff; outline-offset: 2px; }


.footer-list {
  width: 100%;
  height: 100%;
  overflow: visible;
}

footer p {
  font-size: 0.7rem;
  text-align: center;
  padding-top: 40px;
}

.footer-logo {
    margin: 1rem 0;
}

.copyright {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--card-border-color);
}

@media (min-width: 1200px) {
    ul#menu-footer-page-2.menu-list, ul#menu-footer-page-2.footer-list {
        flex-direction: row;
        gap: 2rem;
        padding: 1rem 0;
    }
}

/* ====== Search Form Styles ====== */

/* Wrapper */
.searchform {
  max-width: 400px;
  margin: 2rem auto;
}

.searchform div {
  display: flex;
  align-items: center;
}

/* Label */
.searchform .screen-reader-text {
  position: absolute;
  left: -9999px;
}

/* Input field */
.searchform input[type="text"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--card-border-color);
  border-right: none;
  border-radius: 6px 0 0 6px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.searchform input[type="text"]:focus {
  border-color: var(--accent-color2);
}

/* Submit button */
.searchform input[type="submit"] {
  padding: 0.75rem 1.25rem;
  border: none;
  background: var(--CTA-button-color);
  color: var(--text-color);
  font-size: 1rem;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}

.searchform input[type="submit"]:hover {
  background: var(--accent-color2);
}


/* ======Navigation Desktop: space-evenly row ====== */

@media (min-width: 1200px) {
  /* Hide burger + checkbox on desktop */
  .burger-menu, .menu-toggle { display: none; }

  /* One row, spaced evenly across the available width */
  .menu-container {
    display: flex;
    margin: 10px auto;
    flex-direction: row;
    justify-content: space-between;
    max-width: 1600px;
  }
  
  .menu-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 3.3rem;
    width: auto;
    max-height: none;
    border-top: 0;
  }

  .logo {
    margin: 1rem;
  }

  .switch {
    margin: 40px;
  }
}


