/* 
 * ComTam.vip - Main Stylesheet
 * A responsive, SEO-optimized design for a Vietnamese restaurant website
 */

/* Base styles and CSS variables */
:root {
  --primary-color: #e94822;
  --secondary-color: #f2a007;
  --dark-color: #2a363b;
  --light-color: #f8f8f8;
  --accent-color: #4caf50;
  --text-color: #333;
  --max-width: 1200px;
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

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

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

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

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.section-header p {
  color: var(--dark-color);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.btn.primary {
  background-color: var(--primary-color);
  color: white;
}

.btn.primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* Header styles */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--box-shadow);
  z-index: 1000;
  padding: 15px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

.logo img {
  margin-right: 10px;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  color: var(--dark-color);
  font-weight: 600;
  position: relative;
}

.nav-menu a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-menu a:hover:after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://source.unsplash.com/random/1200x800/?vietnamese-food') no-repeat center center/cover;
  color: white;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  font-weight: 400;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* About section */
.about {
  background-color: white;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Menu section */
.menu {
  background-color: var(--light-color);
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.menu-item {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  padding: 25px;
  transition: var(--transition);
}

.menu-item:hover {
  transform: translateY(-10px);
}

.menu-item h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.menu-item .description {
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.menu-item .price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--secondary-color);
}

/* Games section */
.games {
  background-color: white;
}

.games-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.games-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.games-list {
  list-style: none;
  margin: 30px 0;
  text-align: left;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}

.games-list li {
  background-color: var(--light-color);
  padding: 15px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.games-list li:hover {
  transform: translateY(-5px);
}

.games-list a {
  font-weight: 600;
}

.media-mention {
  margin-top: 30px;
  font-style: italic;
}

/* Contact section */
.contact {
  background-color: var(--light-color);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-item {
  text-align: center;
  padding: 30px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-item h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.contact-item p {
  margin-bottom: 10px;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 50px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo img {
  margin-bottom: 15px;
}

.footer-links ul {
  list-style: none;
  display: flex;
}

.footer-links li {
  margin-right: 20px;
}

.footer-links a {
  color: white;
}

.social-links {
  display: flex;
}

.social-links a {
  color: white;
  margin-left: 15px;
  font-size: 1.5rem;
}

.social-links a:hover {
  color: var(--secondary-color);
}

/* Responsive styles */
@media (max-width: 992px) {
  section {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero h2 {
    font-size: 1.6rem;
  }
  
  .about-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background-color: white;
    flex-direction: column;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    padding: 20px 0;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: 15px 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h2 {
    font-size: 1.4rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  
  .footer-links ul {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 1.2rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .games-list {
    grid-template-columns: 1fr;
  }
}
