/* Basic Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1.5;
}
body {
  max-width: 1200px;
  margin: auto;
  padding: 0 15px;
  background-color: var(--background-off-white);
}
main {
  max-width: 800px;
  margin: auto;
}
img,
video {
  max-width: 100%;
  height: auto;
}

:root {
  --brand-brown: hsl(19, 14%, 31%);
  --brand-tan: hsl(36, 25%, 69%);
  --brand-orange: hsl(30, 33%, 53%);
  --background-off-white: white;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}
p {
  line-height: 1.6rem;
  color: #555;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.center-small {
  font-size: 14px;
  color: #555;
  font-style: italic;
  margin: auto;
  text-align: center;
}
.italic {
  font-style: italic;
}
.red {
  color: red;
}
.fax {
  display: none;
}

.center {
  margin: auto;
  text-align: center;
}
/* __________ Navbar Styles  __________ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--background-off-white);
  padding: 10px 20px;
  color: var(--brand-brown);
  position: relative;
}
.nav-item.dropdown {
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 70px;
  margin-right: 10px;
}

.company-name {
  font-size: 1.2rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  color: #333;
  text-decoration: none;
  padding: 8px;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--brand-brown);
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  z-index: 1000;
  padding: 0.5rem 0;
  border-radius: 4px;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: flex;
  flex-direction: column;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    display: none;
    z-index: 1000;
    padding-top: 20px;
    background: var(--background-off-white);
  }

  .nav-links li {
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
  }
  .nav-links li a {
    display: block;
    width: 100%;
    margin-left: 20px;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

.full-line {
  border: none;
  height: 2px;
  background-color: var(--brand-brown);
  width: 100%; /* full viewport width */
  margin: 0;
}
/* __________ End of Navbar Styles for Coffee Home Page and Coffee Serving Page __________ */
.artists, .markets {
  max-width: 1000px;
  margin: auto;
  padding: 0 2rem;
}
.about h2 {
  font-size: 1.8rem;
  text-align: center;
  font-weight: bold;
  margin-bottom: 20px;
}
.about p {
  line-height: 1.6rem;
  color: #555;
  font-size: 1.25rem;
}
.about-sideByside,
.reverse-sideByside {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  overflow: hidden;
  padding: 2rem;
}

.about-sideByside figure,
.about-sideByside p,
.about-sideByside h1,
.reverse-sideByside figure,
.reverse-sideByside p {
  opacity: 0;
  animation-duration: 3s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
}

/* Image slides in from the left */
.about-sideByside figure {
  animation-name: slideInLeft;
}
.reverse-sideByside figure {
  animation-name: slideInRight;
}

/* Text slides in from the right */
.about-sideByside p,
.about-sideByside h1 {
  animation-name: slideInRight;
  max-width: 500px;
}
.about-sideByside h1 {
  margin-top: -3rem;
}
.reverse-sideByside br {
  margin-bottom: 1rem;
}
.reverse-sideByside p {
  animation-name: slideInLeft;
  max-width: 500px;
}
.round-image {
  border-radius: 50%;
  height: 250px;
  width: auto;
}
.square-image,
.square-image-large {
  border-radius: 8px;
  height: 250px;
  width: auto;
}

figure {
  text-align: center;
  margin: 1em 0;
}

figcaption {
  font-size: 0.9em;
  color: #555;
  margin-top: 0.5em;
}

/* Keyframes */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
/* 📱 Mobile layout: stack vertically with image below text */
@media (max-width: 768px) {
  .about-sideByside {
    flex-direction: column-reverse;
    text-align: center;
  }
  .about-sideByside h1 {
  margin-top: .5rem;
}
  .reverse-sideByside {
    flex-direction: column;
    text-align: center;
  }
  .about-sideByside img {
    width: 200px;
    height: auto;
    max-width: 400px;
  }
  .reverse-sideByside img {
    height: 200px;
    max-width: 400px;
    /* border-radius: 0; */
  }
  .about-sideByside p,
  .reverse-sideByside p {
    max-width: 100%;
    padding: 0 1rem;
  }
}

/* --------------------- footer styling start ------------------------ */

.negMargin {
  margin-bottom: -25px;
}
.footer {
  margin: auto;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.footer a {
  color: var(--brand-brown);
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

.hours ul li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.social-icons {
  display: flex;
  gap: 20px; /* spacing between icons */
  list-style: none;
  padding: 2rem;
  margin: 0;
  margin: auto;
  justify-content: center;
  margin-top: 1rem;
}
.social-icons li a {
  display: inline-block;
  text-decoration: none;
}
.social-icon.facebook {
  background-size: contain;
  margin-top: -5px;
  width: 45px;
  height: 45px;
}
.social-icon.instagram {
  width: 35px;
  height: 35px;
}
@media screen and (min-width: 650px) {
  .footer {
    margin-top: 1rem;
    max-width: 800px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
  }
  .hours {
    margin-left: 30px;
  }
}
.smallH2 {
  font-size: 1.5rem;
  text-align: center;
  font-weight: bold;
  margin-bottom: 15px;
}
.classes {
  list-style-type: none;
  padding-left: 0; /* Optional: removes default indentation */
}
.classes li {
  margin-bottom: 0.5rem; /* Optional: adds space between list items */
  font-size: 1rem;
}
.application {
  margin: auto;
  padding: 0 2rem;
}
.application ul li {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.smallH1 {
  font-size: 1.8rem;
  text-align: center;
  font-weight: bold;
  margin-bottom: 20px;
}
.application h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
}
.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: rgb(6, 59, 6);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin: 20px auto;
}
.margin-top {
  margin: 20px auto;
}

.full-line {
  margin: 20px 0;
}
/* Container and layout */
.form-container {
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #fefefe;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

/* Title */
.center-form-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

/* Form groups */
.actualForm .form-group {
  margin-bottom: 1.5rem;
}

/* Labels and inputs */
.actualForm label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #222;
}

.actualForm input[type="text"],
.actualForm input[type="email"],
.actualForm input[type="tel"],
.actualForm input[type="file"],
.actualForm textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.actualForm input:focus,
.actualForm textarea:focus {
  border-color: #0077cc;
  outline: none;
}

/* Radio buttons */
.actualForm input[type="radio"] {
  margin-right: 0.5rem;
}

.actualForm label[for^="price"] {
  font-weight: normal;
  margin-left: 0.25rem;
}

/* Error messages */
.err-msg {
  color: #d9534f;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* Submit button */
.submitButton {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background-color: #0077cc;
  color: white;
  font-size: 1.1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submitButton:hover {
  background-color: #005fa3;
}

/* Success message */
.text-success {
  color: #28a745;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Accessibility and spacing */
.required {
  color: #d9534f;
}

.form-text.text-muted {
  font-size: 0.85rem;
  color: #666;
}

/* Hidden spam field */
.fax {
  display: none;
}

/* Container and layout */
.form-box {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #fefefe;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  font-family: "Segoe UI", sans-serif;
}

/* Section title */
.center {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #333;
}

/* Responsive grid */
.responsive-container-block {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.responsive-cell-block {
  flex: 1 1 45%;
  min-width: 250px;
}

/* Labels and inputs */
.input-title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #222;
}

.input,
.textinput {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

.input:focus,
.textinput:focus {
  border-color: #0077cc;
  outline: none;
}

/* Error messages */
.err-msg {
  color: #d9534f;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* Checkbox */
input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* Submit button */
.btn-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.submit-btn {
  background-color: #0077cc;
  color: white;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #005fa3;
}

/* Hidden spam field */
.fax {
  display: none;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .responsive-cell-block {
    flex: 1 1 100%;
  }
}

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-content {
  text-align: center;
  color: #fff;
  font-family: sans-serif;
}

.loader-spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  animation: spin 0.8s linear infinite;
}

.loader-text {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff; /* bright white */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); /* subtle shadow for contrast */
  margin-top: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.calendar-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 75%; /* Adjust for aspect ratio */
  height: 0;
  overflow: hidden;
}

.calendar-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.svg-copy {
  position: absolute;
  top: 0;
  left: 90%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  opacity: 0;
  animation: dropBounce 3s ease-in-out forwards;
}

@keyframes dropBounce {
  0% {
    top: 0;
    opacity: 0;
  }
  60% {
    top: 80vh;
    opacity: 1;
  }
  75% {
    top: 75vh;
  }
  85% {
    top: 80vh;
  }
  92% {
    top: 78vh;
  }
  100% {
    top: 80vh;
  }
}
.mushroom-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
