/* style.css — Ron's Nut House */
:root {
  --sage: #8a9a8d;
  --cream: #f8f4e9;
  --charcoal: #333333;
  --yellow: #f4d03f;
  --red: #e74c3c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 1rem;
}

.top-bar {
  background: var(--sage);
  color: white;
  text-align: center;
  padding: 8px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

header {
  text-align: center;
  padding: 25px 10px 15px;
}

.logo {
  max-width: 300px;
  height: auto;
  background: transparent !important;
  display: block;
  border: none;
  margin: 0 auto;
}

nav {
  text-align: center;
  padding: 15px;
  background: white;
  border-bottom: 2px solid #eee;
  font-weight: 600;
}

nav a {
  text-decoration: none;
  color: var(--charcoal);
  padding: 0 10px;
  margin: 0 4px;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--yellow);
  text-decoration: underline;
  cursor: default;
}

.hero-img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  background: transparent;
  display: block;
}

.section {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.section img {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  object-fit: cover;
  background: transparent;
}

.text-content {
  flex: 2;
  min-width: 280px;
}

h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--sage);
  letter-spacing: 1px;
}

.book-now {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--yellow);
  color: var(--charcoal);
  padding: 14px 24px;
  font-weight: bold;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  transition: transform 0.2s, background 0.2s;
}

.book-now:hover {
  transform: scale(1.05);
  background: #ffd75a;
}

footer {
  text-align: center;
  padding: 25px 20px;
  font-size: 0.9rem;
  color: #777;
  margin-top: 50px;
  border-top: 1px solid #eee;
}

/* Form Styles */
.form-box {
  max-width: 600px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-box h2 {
  text-align: center;
  margin-bottom: 25px;
}

input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

button {
  width: 100%;
  padding: 14px;
  background: var(--yellow);
  color: var(--charcoal);
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 15px;
  transition: background 0.2s;
}

button:hover {
  background: #ffd75a;
}

/* Processing Page */
.processing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 20px;
  text-align: center;
}

.progress-bar-container {
  width: 80%;
  max-width: 500px;
  height: 26px;
  background: #e0e0e0;
  border-radius: 13px;
  overflow: hidden;
  margin: 25px 0;
  position: relative;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: var(--yellow);
  border-radius: 13px;
  transition: width 30s linear;
}

/* Error Pages */
.error-content {
  max-width: 600px;
  margin: 100px auto;
  text-align: center;
  padding: 0 20px;
}

.error-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--red);
}

.error-content p {
  margin: 12px 0;
  color: #555;
  line-height: 1.5;
}

.error-btn {
  padding: 14px 30px;
  background: var(--yellow);
  color: var(--charcoal);
  border: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 25px;
  transition: background 0.2s;
}

.error-btn:hover {
  background: #ffd75a;
}

/* Mobile */
@media (max-width: 768px) {
  .section {
    flex-direction: column;
  }
  h2 {
    font-size: 1.9rem;
  }
  .hero-img {
    max-height: 400px;
  }
  .book-now {
    padding: 12px 22px;
    font-size: 1rem;
  }
}