/* css/components.css – Nav, Footer, Buttons, Cards, Forms (UI Elements Only) */

/* Navigation */
header.nav-header {
  background-color: var(--color-primary);
  color: #fff;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

@media (max-width: 767px) {
  header.nav-header {
    padding: 8px 0;
  }
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  z-index: 1001;
}

/* Hamburger Menu Button */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 12px;
  z-index: 1001;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease;
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Navigation */
.mobile-nav {
  background-color: rgba(15, 13, 11, 0.95);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.nav-links {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
  width: 100%;
}

.nav-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links a {
  display: block;
  padding: 16px 24px;
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  color: #fff;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-links a:hover {
  background-color: rgba(201, 114, 42, 0.1);
  color: var(--color-secondary);
}

.mobile-cta {
  padding: var(--space-sm);
  border: none;
}

.mobile-cta .btn {
  display: block;
  width: 100%;
  text-align: center;
}

.desktop-cta {
  display: none;
}

/* Desktop Navigation */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
  
  .mobile-nav {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    border: none;
    max-height: none;
    overflow: visible;
  }
  
  .nav-links {
    flex-direction: row;
    gap: var(--space-md);
  }
  
  .nav-links li {
    border: none;
  }
  
  .nav-links a {
    padding: 0;
    display: inline;
    font-size: 0.875rem;
  }
  
  .nav-links a:hover {
    background-color: transparent;
    color: var(--color-secondary);
  }
  
  .mobile-cta {
    display: none;
  }
  
  .desktop-cta {
    display: block;
  }
}

/* Footer Styles */
footer.main-footer {
  background-color: var(--color-primary);
  color: #fff;
  padding: var(--space-xl) 0;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  display: block;
}

.footer-credits {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: var(--space-lg);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  line-height: 1.2;
  transition: all 0.3s ease;
  border-radius: 0;
  text-align: center;
  min-height: 44px;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}

.btn-primary:hover {
  background-color: #a15124;
  border-color: #a15124;
}

.btn-outline {
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--color-secondary);
  color: #fff;
}

/* Mobile Button Sizing */
@media (max-width: 767px) {
  .btn {
    width: 100%;
    min-height: 44px;
    padding: var(--space-md) var(--space-md);
  }
}

/* Dish Card Styles */
.dish-card {
  background: #fff;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dish-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.dish-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-bg-alt);
}

.dish-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dish-card:hover .dish-image img {
  transform: scale(1.05);
}

.dish-info {
  padding: var(--space-md);
  text-align: center;
}

.dish-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

.dish-description {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Divider Elements */
.divider {
  width: 40px;
  height: 1px;
  background-color: var(--color-secondary);
  margin: var(--space-sm) auto;
}

/* Form Styles */
.form-group {
  margin-bottom: var(--space-md);
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

input, textarea, select {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: #fff;
  min-height: 44px;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: inset 0 0 0 2px rgba(196, 98, 45, 0.1);
}

/* Mobile form optimization */
@media (max-width: 767px) {
  input, textarea, select {
    font-size: 16px; /* Prevents iOS auto-zoom */
    min-height: 44px;
    padding: var(--space-md) var(--space-sm);
  }
  
  .form-group {
    margin-bottom: var(--space-md);
  }
  
  /* Stack form sections better on mobile */
  .grid.grid-2 > .form-group {
    min-width: 100%;
  }
}

/* WhatsApp Float Button (SA Standard) */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  background-color: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 99;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 767px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: calc(var(--space-md) + 8px);
    right: calc(var(--space-md) + 4px);
  }
  
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
  
  /* Improve info sections on mobile */
  .h-stack {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm) !important;
  }
  
  .h-stack h4 {
    min-width: unset;
    width: 100%;
  }
  
  .h-stack p {
    width: 100%;
  }
}
