/* ===============================
   style.css – Minimal Burger + 
   Complete Site Styling
   =============================== */

/* 
  1. Site-Wide Variables & Resets
  2. General Layout (header, main, footer)
  3. Typography & Components (headings, paragraphs, lists, forms, blockquotes)
  4. Minimal Burger Menu for Mobile / Horizontal Nav for Desktop
*/

/* --------------------------------- */
/* 1. Site-Wide Variables & Resets   */
/* --------------------------------- */

:root {
  --font-body: "Quicksand", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Fredoka One", cursive;

  /* Adjust for your brand if desired */
  --accent-color: #b71c46; 
  --bg-gradient: linear-gradient(
    135deg, 
    #ffdce8 0%,  
    #e0f3ff 25%, 
    #e6ffe3 50%, 
    #fff4c5 75%, 
    #ffdce8 100%
  );

  --text-color: #333;
  --heading-color: #444;
  --max-width: 900px;
  --gutter: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --------------------------------- */
/* 2. General Layout & Background    */
/* --------------------------------- */

html {
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--text-color);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-gradient);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

/* Gentle drifting background animation */
@keyframes gradientBG {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Prefers Reduced Motion: turn off BG anim */
@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
}

/* Header, Main, Footer layout containers */
header,
main,
footer {
  width: 100%;
  max-width: var(--max-width);
  margin: var(--gutter) auto;
  background-color: #fff; /* Solid white for contrast */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: var(--gutter);
}

/* Remove top margin from the header so it sits flush */
header {
  margin-top: 0;
}

/* Similarly let the footer be flush at the bottom if content is short */
footer {
  margin-bottom: 0;
  text-align: center;
}

/* --------------------------------- */
/* 3. Typography & Components        */
/* --------------------------------- */

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--accent-color);
  line-height: 1.2;
}

h1 {
  font-size: 1.5rem;
  /* For an even bigger site title, you can do: 2rem or 2.5rem */
}

h2 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
}

h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

/* Paragraphs */
p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Lists */
ul, ol {
  margin-left: 1.5rem; /* fix bullet overlap */
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  background-color: #ffe5ef;
  border-radius: 4px;
}

blockquote footer {
  font-style: normal;
  margin-top: 0.5rem;
  color: #666;
  font-weight: 600;
}

/* Forms */
form {
  display: grid;
  gap: 1rem;
}

label {
  font-weight: 600;
}

input[type="text"] {
  padding: 0.5rem;
  border: 2px solid #ccc;
  border-radius: 4px;
  width: 100%;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-color);
}

/* Buttons */
button {
  background-color: var(--accent-color);
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #9e1a3e;
}







/* Header & Nav Container */
header {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
nav {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  position: relative; /* so we can position absolute elements if needed */
}

/* Brand Name */
.brand h1 {
  font-size: 1.5rem;
  color: var(--accent-color);
}

/* Burger Icon */
#burger {
  font-size: 1.5rem;
  margin-left: auto;
  cursor: pointer;
  user-select: none;
  color: var(--accent-color);
  /* A little padding/hover style for clarity */
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
#burger:hover {
  background-color: var(--accent-color);
  color: #fff;
}

/* Nav Menu (the <ul> with links) */
#navMenu {
  list-style: none;
  display: none; /* hidden on small screens by default */
  flex-direction: column; /* stacked vertically in mobile */
  gap: 0.5rem;
  background-color: #fff;
  position: absolute;
  top: 3.5rem;
  right: 1rem;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Nav Menu Items */
#navMenu li {
  margin: 0.25rem 0;
}
#navMenu a {
  text-decoration: none;
  color: #444;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  display: inline-block;
  border-radius: 4px;
}
#navMenu a:hover {
  background-color: var(--accent-color);
  color: #fff;
}

/* Show navMenu when "open" class is toggled via JS */
#navMenu.open {
  display: flex;
}

/* Larger Screens: nav is inline, no burger needed */
@media (min-width: 768px) {
  #burger {
    display: none; /* hide burger on desktop */
  }
  nav {
    align-items: center;
  }
  #navMenu {
    display: flex;
    position: static; /* revert to normal flow */
    flex-direction: row;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-left: auto; /* push nav links to the right if desired */
  }
  #navMenu li {
    margin: 0 0 0 1rem; /* small gap between items */
  }
  #navMenu a {
    padding: 0.5rem;
  }
}


/* Other misc CSS */
h1 a {
  all: unset !important;
  cursor: pointer !important; /* Keep the cursor change */
}


.back-to-top {
  font-size: 0.5em;
  text-decoration: none;
  color: #007bff;
  display: inline;
  font-weight: normal;
}

h1 h2 h3 h4 .back-to-top:hover {
  text-decoration: underline;
}
