/* Custom Styles for Siam Bangkok Restaurant */

/* Color Palette */
:root {
  --primary-color: #d4af37;
  --primary-dark: #b8941f;
  --secondary-color: #8b0000;
  --text-dark: #2c2c2c;
  --text-light: #666;
  --bg-light: #fafafa;
  --white: #ffffff;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
}

/* Header & Navigation */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem 0;
}

.logo {
  max-height: 60px;
  width: auto;
  display: block;
}

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

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

nav ul li {
  margin-bottom: 0;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

nav a:hover,
nav a.active {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero p {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Buttons */
.button,
.button-primary,
.button-secondary {
  display: inline-block;
  padding: 1.2rem 3rem;
  margin: 0.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
}

.button-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border: 2px solid var(--primary-color);
}

.button-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button-secondary {
  background-color: transparent;
  color: var(--white);
  border: none;
}

.button-secondary:hover {
  background-color: var(--white);
  color: var(--text-dark);
}

/* Sections */
section {
  padding: 6rem 0;
}

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

section h2 {
  text-align: left;
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4rem;
  position: relative;
}

section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 1rem 0 0;
}

/* Simple Grid System */
.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Mobile: All grids become 1 column */
@media (max-width: 750px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Info Cards */
.info-card {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.info-card h3 {
  color: var(--primary-color);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.info-card p {
  color: var(--text-light);
  font-size: 1.4rem;
  line-height: 1.8;
}

.info-card a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.info-card a:hover {
  color: var(--primary-color);
}

/* Menu Styles */
.menu-nav {
  background-color: var(--white);
  padding: 1.5rem 0;
  border-bottom: 2px solid var(--bg-light);
  margin-bottom: 3rem;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.menu-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.menu-nav li {
  width: 100%;
}

.menu-nav-link {
  display: block;
  background-color: var(--bg-light);
  color: var(--text-dark);
  border-left: 4px solid var(--bg-light);
  padding: 0.8rem 1.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 0 4px 4px 0;
}

.menu-nav-link:hover {
  background-color: var(--primary-color);
  border-left-color: var(--primary-dark);
  color: var(--white);
  transform: translateX(4px);
}

.menu-category {
  margin-bottom: 6rem;
}

.menu-category h3 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--bg-light);
}

.menu-item {
  background: var(--white);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.menu-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

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

.menu-item h4 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  flex: 1;
}

.menu-item-subtitle {
  font-size: 1.4rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.menu-item-price {
  font-size: 2.2rem;
  color: var(--primary-color);
  font-weight: 700;
  white-space: nowrap;
}

.menu-item-description {
  color: var(--text-light);
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.menu-item-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.menu-tag {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
}

/* About Section */
.about-content {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  margin-bottom: 4rem;
}

.about-image {
  flex: 1;
  min-width: 250px;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.about-text {
  flex: 1;
  min-width: 250px;
}

.about-text p {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Contact Page */
.contact-page .info-card {
  text-align: center;
}

.contact-page h2 {
  text-align: left;
}

.contact-page section:not(.bg-light) h3,
.contact-page section:not(.bg-light) p {
  text-align: left;
}

body .contact-info {
  text-align: left;
  margin-bottom: 4rem;
}

.contact-info h3 {
  font-size: 2.4rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.contact-info p {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-info a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--primary-color);
}

.hours-table {
  margin: 3rem auto;
  max-width: 600px;
}

.hours-table table {
  width: 100%;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.hours-table th {
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 1.6rem;
  padding: 1.5rem;
}

.hours-table td {
  font-size: 1.5rem;
  padding: 1.2rem 1.5rem;
}

.hours-table tr:nth-child(even) {
  background-color: var(--bg-light);
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}

footer h4 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

footer p,
footer a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.4rem;
  line-height: 1.8;
}

footer a {
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary-color);
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 0.8rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.3rem;
}

/* Responsive Design */
@media (max-width: 750px) {
  /* Fix hero image scaling on mobile */
  .hero,
  section[style*="background-attachment: fixed"] {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center !important;
  }

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

  .hero p {
    font-size: 1.6rem;
  }

  nav ul {
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
  }

  nav a {
    font-size: 1.2rem;
  }

  .about-content {
    flex-direction: column;
  }

  section h2 {
    font-size: 2.8rem;
  }

  .menu-nav ul {
    gap: 0.4rem;
  }

  .menu-nav-link {
    padding: 0.7rem 1.2rem;
    font-size: 1.3rem;
  }

  /* Add margin between cards on mobile */
  .info-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 550px) {
  /* Ensure hero images scale properly on small screens */
  .hero,
  section[style*="background-attachment: fixed"] {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center !important;
  }

  .hero {
    height: 50vh;
    min-height: 350px;
  }

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

  .hero p {
    font-size: 1.4rem;
  }

  nav {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    width: 100%;
    justify-content: center;
  }

  .logo {
    max-height: 50px;
    margin-bottom: 1rem;
  }

  section {
    padding: 4rem 0;
  }

  .button,
  .button-primary {
    padding: 1rem 2rem;
    font-size: 1.2rem;
  }

  .menu-item h4 {
    font-size: 1.8rem;
  }

  .menu-item-price {
    font-size: 2rem;
  }
}

/* Accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.8rem;
  text-decoration: none;
  z-index: 100;
}

.skip-to-content:focus {
  top: 0;
}

/* Print Styles */
@media print {
  header,
  footer,
  .menu-nav,
  .button,
  .button-primary {
    display: none;
  }

  body {
    font-size: 12pt;
  }

  .menu-item {
    page-break-inside: avoid;
  }
}
