/* ============================================
   SANDBOX COFFEE CO - MAIN STYLESHEET
   Brand Colors: Gold (#C0862A), Black (#000000), 
   Charcoal (#333333), Sand (#EDCCCA), White (#FFFFFF)
   ============================================ */

/* ---- ROOT VARIABLES ---- */
:root {
  --gold: #C0862A;
  --black: #000000;
  --charcoal: #333333;
  --sand: #EDCCCA;
  --white: #FFFFFF;
  --concrete: #BDBDBD;
  --light-gray: #f5f5f5;
}

/* ---- GLOBAL STYLES ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--white);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--black);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1rem;
  font-family: 'Montserrat', sans-serif;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

/* Mobile typography improvements */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.15rem; }
  p { font-size: 0.95rem; }
  body { font-size: 0.95rem; }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 4px 12px rgba(192, 134, 42, 0.3);
  letter-spacing: 0.5px;
}

.btn:hover {
  background-color: var(--black);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background-color: var(--charcoal);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background-color: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(192, 134, 42, 0.3);
}

.btn-block {
  display: block;
  width: 100%;
}

/* ---- HEADER & NAVIGATION ---- */
header {
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
}

.logo img {
  height: 50px;
  margin-right: 0.5rem;
}

.logo span {
  color: var(--gold);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--black);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* ---- MOBILE MENU ---- */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 1rem;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  nav.active {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ---- FOOTER ---- */
footer {
  background-color: var(--black);
  color: var(--white);
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--gold);
  color: var(--black);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--charcoal);
  font-size: 0.9rem;
}

/* ---- MAIN CONTAINER ---- */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(192, 134, 42, 0.15);
}

section:last-of-type {
  border-bottom: none;
}

/* ---- HERO SECTION ---- */
.hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--black) 100%);
  color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background-color: var(--gold);
  opacity: 0.05;
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 3rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--sand);
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-buttons .btn {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(192, 134, 42, 0.3);
}

/* ---- HIGHLIGHT CARDS ---- */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.card {
  background-color: var(--light-gray);
  border: 2px solid var(--sand);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--gold);
  transform: translateY(-5px);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--black);
}

.card p {
  font-size: 0.95rem;
  color: var(--charcoal);
}

/* ---- COMING SOON BADGE ---- */
.coming-soon {
  display: inline-block;
  background-color: var(--gold);
  color: var(--black);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.85rem;
  margin: 1rem 0;
  text-transform: uppercase;
}

/* ---- FORMS ---- */
form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--white) 0%, #fafaf8 100%);
  border-radius: 0.75rem;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 24px rgba(192, 134, 42, 0.15);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--charcoal);
}

input[type="text"],
input[type="email"],
input[type="phone"],
input[type="password"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--sand);
  border-radius: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: var(--white);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(192, 134, 42, 0.2);
  transform: translateY(-2px);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input[type="checkbox"],
input[type="radio"] {
  margin-right: 0.5rem;
}

.form-group input[type="checkbox"] + label,
.form-group input[type="radio"] + label {
  display: inline-block;
  margin-bottom: 0;
  margin-left: 0.5rem;
  font-weight: normal;
}

/* ---- FAQ SECTION ---- */
.faq {
  max-width: 800px;
  margin: 2rem auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--sand);
  border-radius: 0.5rem;
  overflow: hidden;
}

.faq-question {
  background-color: var(--light-gray);
  padding: 1rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: var(--sand);
}

.faq-toggle {
  color: var(--gold);
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 1rem;
}

/* ---- GALLERY GRID ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: var(--light-gray);
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: var(--white);
  padding: 1rem;
  font-weight: 600;
}

/* ---- RESERVATIONS SECTION ---- */
.reservation-btn {
  display: inline-block;
  padding: 1.5rem 2.5rem;
  background-color: var(--gold);
  color: var(--black);
  font-weight: 700;
  border-radius: 0.5rem;
  text-align: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(192, 134, 42, 0.3);
  letter-spacing: 0.5px;
}

.reservation-btn:hover {
  background-color: var(--black);
  color: var(--gold);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ---- SECTION STYLES ---- */
.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-intro h2 {
  margin-bottom: 1rem;
  color: var(--black);
}

.section-intro p {
  font-size: 1.05rem;
  color: var(--charcoal);
}

.divider {
  width: 60px;
  height: 4px;
  background-color: var(--gold);
  margin: 1.5rem auto;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(192, 134, 42, 0.2);
}

/* ---- MENU ITEMS ---- */
.menu-section {
  margin: 3rem 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.menu-section h3 {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.menu-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--sand);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.menu-item-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--black);
}

.menu-item-price {
  color: var(--gold);
  font-weight: 600;
}

.menu-item-description {
  font-size: 0.95rem;
  color: var(--charcoal);
  font-style: italic;
}

/* ---- LOGIN PORTAL ---- */
.login-container {
  max-width: 400px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: var(--light-gray);
  border: 2px solid var(--gold);
  border-radius: 0.5rem;
  text-align: center;
}

.login-container h2 {
  margin-bottom: 1.5rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  main {
    padding: 0 1rem;
  }

  .header-container {
    padding: 1rem;
  }

  nav ul {
    gap: 1rem;
  }

  .highlights {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .menu-item-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- UTILITIES ---- */
.text-center {
  text-align: center;
}

.text-gold {
  color: var(--gold);
}

.text-white {
  color: var(--white);
}

.bg-light {
  background-color: var(--light-gray);
}

.bg-gold {
  background-color: var(--gold);
  color: var(--white);
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}
