/* Common Styles - Shared across all pages */

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #fdefa7 0%, #e6c830 100%);
  padding: 0.75rem 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  gap: 0.75rem;
}

header:hover {
  background: linear-gradient(135deg, #fff4b8 0%, #d4a017 100%);
}

/* Header Logo */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo img {
  height: 70px;
  width: auto;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.header-logo:hover img {
  transform: scale(1.05);
}

.title {
  display: flex;
  flex-direction: column;
  margin-right: auto;
}

.main-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #5d4037;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.address {
  margin: 0.2rem 0 0 0;
  font-size: 0.75rem;
  color: #6d4c41;
  letter-spacing: 0.5px;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.nav-list li a {
  display: block;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  color: #5d4037;
  font-weight: 500;
  font-size: 0.85rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-list li a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background-color: #5d4037;
  transition: transform 0.3s ease;
}

.nav-list li a:hover,
.nav-list li a.active {
  color: #3e2723;
}

.nav-list li a:hover::after,
.nav-list li a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-list li a:focus {
  outline: 2px solid #5d4037;
  outline-offset: 2px;
}

/* Hamburger Menu Button - Hidden on desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #5d4037;
  border-radius: 3px;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 3px;
  background-color: #5d4037;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Hamburger animation when active */
.menu-toggle.active .hamburger {
  background-color: transparent;
}

.menu-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Common Hero Section */
.hero {
  background: linear-gradient(135deg, #5d4037 0%, #3e2723 100%);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero .badge {
  display: inline-block;
  background: rgba(230, 200, 48, 0.2);
  color: #e6c830;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid rgba(230, 200, 48, 0.3);
}

.hero h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #e6c830 0%, #d4a017 100%);
  padding: 4rem 2rem;
  text-align: center;
}

.cta-content h2 {
  color: #3e2723;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cta-content p {
  color: #5d4037;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: #5d4037;
  color: #fff;
}

.btn-primary:hover {
  background-color: #3e2723;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: #5d4037;
  border: 2px solid #5d4037;
}

.btn-secondary:hover {
  background-color: #5d4037;
  color: #fff;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
  color: #fff;
  padding: 3rem 2rem 1.5rem;
}

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

.footer-section h3 {
  color: #e6c830;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.8;
  text-decoration: none;
}

.footer-section a:hover {
  color: #e6c830;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* Mobile Responsive - Header */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    gap: 0;
    justify-content: space-between;
    align-items: center;
  }

  .title {
    text-align: left;
    flex: 1;
  }

  .main-title {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }

  .address {
    font-size: 0.65rem;
  }

  /* Show hamburger menu on mobile */
  .menu-toggle {
    display: block;
    order: 2;
  }

  /* Mobile navigation styling */
  nav {
    width: 100%;
    order: 3;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
  }

  nav.nav-open {
    max-height: 400px;
    padding-top: 1rem;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid rgba(93, 64, 55, 0.15);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list li a {
    display: block;
    padding: 0.9rem 0.5rem;
    font-size: 0.95rem;
    text-align: center;
    border-radius: 0;
  }

  .nav-list li a::after {
    display: none;
  }

  .nav-list li a:hover {
    background-color: rgba(93, 64, 55, 0.1);
  }

  /* Mobile Hero */
  .hero {
    padding: 2.5rem 1.5rem;
  }

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

  /* Mobile CTA */
  .cta-content h2 {
    font-size: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Mobile Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
