/*
 * Shared stylesheet for the new Izakaya website. The design aims to evoke
 * the warm, cosy feeling of a traditional Japanese izakaya with rich
 * wood‑tone backgrounds, soft off‑white text and amber/red accents. Sections
 * are separated with subtle contrast, and content is laid out on a
 * responsive grid for comfortable reading on both desktop and mobile. All
 * pages import this file to ensure a consistent look and feel throughout.
 */

:root {
  /* Colour palette
   * bg – deepest background, near‑black with a hint of brown
   * surface – slightly lighter panel background for sections
   * card‑bg – cards sit on panels; a dark wood tone
   * primary – warm amber accent used for headings and primary actions
   * accent – deep red used on hover states and highlights
   * text‑light – off‑white used for primary body text
   * text‑muted – muted beige for secondary text
   */
  --bg: #231f20;
  --surface: #2f2a24;
  --card-bg: #3a3027;
  --primary: #cfa76e;
  --accent: #b33636;
  --text-light: #faf5ee;
  --text-muted: #c8b8a5;
  --radius: 8px;
  --max-width: 1200px;
  --transition-speed: 0.2s;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text-light);
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container for centralising content with max‑width */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation bar */
header {
  background-color: var(--surface);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

header .logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary);
  text-decoration: none;
}

header nav a {
  margin-left: 20px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-speed);
}

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

/* Hero section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  text-align: center;
  padding: 120px 20px 100px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

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

.hero h1 {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero p {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

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

.button {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  border: 1px solid transparent;
}

.button.primary {
  background-color: var(--primary);
  color: var(--bg);
}

.button.primary:hover {
  background-color: var(--accent);
  color: var(--text-light);
}

.button.secondary {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.button.secondary:hover {
  background-color: var(--primary);
  color: var(--bg);
}

/* Section styling */
section {
  padding: 60px 0;
  background-color: var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

section:nth-of-type(odd) {
  background-color: var(--bg);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  margin: 0;
  font-size: 2rem;
  color: var(--primary);
}

.section-title p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Card grid for highlights and menu sections */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 15px;
}

.card h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  color: var(--primary);
}

.card p {
  flex-grow: 1;
  margin: 0 0 10px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card .price {
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
}

/* Two‑column layout for commitment page */
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 800px) {
  .columns {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* List style for bullet points */
.features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.features li::before {
  content: "\2022";
  color: var(--primary);
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2rem;
  line-height: 1;
}

/* Footer */
footer {
  background-color: var(--surface);
  color: var(--text-muted);
  padding: 40px 0;
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer a {
  color: var(--primary);
  text-decoration: none;
  margin: 0 8px;
  transition: color var(--transition-speed);
}

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