/* ========================================
   1. RESET & BASE
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden; /* prevents horizontal scrolling  */
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fffefc;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ========================================
   2. HEADER & NAVIGATION
======================================== */
header {
  background-color: #e60026;
  color: white;
  padding: 20px;
  text-align: center;
}

header h1 {
  margin-bottom: 8px;
}

header nav {
  margin-top: 6px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: white;
  background-color: #cc0022;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.3s;
  font-size: 0.95rem;
  display: inline-block;
}

nav ul li a.active {
  background-color: #fff;
  color: #cc0022;
  font-weight: bold;
  border: 2px solid #cc0022;
}

/* ========================================
   3. HERO & HOME PAGE
======================================== */
.hero-banner {
  background: url("img/tokyo-shibuya.jpg") center center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-banner .overlay {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 40px;
  color: white;
  text-align: center;
  border-radius: 10px;
}

.hero-banner h2 {
  font-size: 3em;
  margin-bottom: 10px;
}

.hero-banner p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.cta-button {
  background-color: #ff4455;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #cc0022;
}

/* Intro lead paragraph on home */
.intro-lead {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: #555;
}

/* Why Japan */
.why-japan {
  padding: 60px 40px;
  background-color: #fffefc;
  text-align: center;
}

.why-japan h2 {
  color: #e60026;
  font-size: 2.2em;
  margin-bottom: 40px;
}

.why-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.why-item {
  flex: 1 1 180px;
  max-width: 220px;
  background-color: #fff6f3;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.why-item:hover {
  transform: translateY(-5px);
}

.why-item span {
  font-size: 2.8em;
  display: block;
  margin-bottom: 10px;
}

.why-item h3 {
  color: #e60026;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.why-item p {
  font-size: 0.95em;
}

/* Explore cards */
.explore-cards {
  padding: 50px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.explore-cards h2 {
  color: #e60026;
  margin-bottom: 30px;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.card {
  width: 280px;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: scale(1.03);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card h3 {
  color: #e60026;
  margin: 15px 0 10px;
}

.card p {
  padding: 0 15px 15px;
  font-size: 0.95em;
}

.card a {
  display: block;
  background-color: #e60026;
  color: white;
  padding: 10px;
  text-decoration: none;
  border-radius: 0 0 12px 12px;
  font-weight: bold;
  transition: background 0.3s;
}

.card a:hover {
  background-color: #cc0022;
}

/* ========================================
   4. TRAVEL CHECKLIST (HOME)
======================================== */
.travel-checklist {
  background-color: #fef6f4;
  border-left: 6px solid #e60026;
  padding: 2rem;
  margin: 2rem auto;
  border-radius: 12px;
  max-width: 900px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.travel-checklist h2 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  color: #b8001f;
}

/* Modern steps layout */
.travel-checklist.modern-steps {
  background-color: #fffefc;
  padding: 3rem 1rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
  padding-left: 2rem;
  border-left: 3px dashed #ccc;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
}

.step-number {
  font-size: 3rem;
  font-weight: bold;
  color: #ccc;
  flex-shrink: 0;
  min-width: 70px;
}

.step-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #222;
}

.step-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Circle at top of line */
.step-list::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10px;
  width: 12px;
  height: 12px;
  background: #e60026;
  border-radius: 50%;
}

/* ========================================
   5. CITIES PAGE
======================================== */
.city-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1100px;
  padding: 1rem;
  flex-wrap: wrap;
}

.city-section.reverse {
  flex-direction: row-reverse;
}

.city-section img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.city-text {
  flex: 1;
  min-width: 280px;
}

.city-text h2 {
  font-size: 2rem;
  color: #b8001f;
  margin-bottom: 0.7rem;
}

.city-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #333;
}

.city-text ul {
  list-style: none;
  padding-left: 0;
}

.city-text li {
  margin-bottom: 0.7rem;
  font-size: 1rem;
  position: relative;
  padding-left: 1.4rem;
}

.city-text li::before {
  content: "🗾";
  position: absolute;
  left: 0;
  top: 0.05rem;
}

/* City comparison table */
.city-comparison-table {
  padding: 4rem 2rem;
  background-color: #fffaf9;
  text-align: center;
}

.city-comparison-table h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #b8001f;
}

.city-comparison-table .table-intro {
  margin-bottom: 2rem;
  font-style: italic;
  color: #555;
}

.city-comparison-table table {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-collapse: collapse;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.city-comparison-table th,
.city-comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.city-comparison-table th {
  background-color: #fceeee;
  color: #b8001f;
  font-size: 1rem;
  text-transform: uppercase;
}

.city-comparison-table tr:hover {
  background-color: #fff4f4;
}

.city-comparison-table td {
  color: #333;
  font-size: 0.95rem;
}

/* ========================================
   6. FOOD PAGE
======================================== */
.food-page {
  padding: 40px 20px;
  background-color: #fffefc;
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.food-card {
  background-color: #fff6f0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.food-card:hover {
  transform: translateY(-5px);
}

.food-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.food-card h2 {
  color: #e60026;
  margin-bottom: 10px;
}

.food-card p {
  font-size: 0.95em;
  margin-bottom: 10px;
}

.food-card ul {
  list-style: none;
  padding-left: 0;
  font-size: 0.9em;
}

.food-card li {
  margin-bottom: 5px;
}

.food-tips {
  background-color: #fcefe8;
  border-left: 5px solid #e60026;
  padding: 25px;
  max-width: 800px;
  margin: 0 auto 40px;
  border-radius: 10px;
}

.food-tips h3 {
  color: #e60026;
  margin-bottom: 15px;
}

.food-tips ul {
  padding-left: 20px;
  list-style: disc;
}

/* ========================================
   7. TEMPLES / CULTURE PAGE
======================================== */
.temples-page {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1100px;
  padding: 1rem;
  flex-wrap: wrap;
}

.culture-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 60px;
  gap: 30px;
}

.culture-block.reverse {
  flex-direction: row-reverse;
}

.culture-text {
  flex: 1 1 300px;
}

.culture-text h2 {
  color: #e60026;
  margin-bottom: 10px;
}

.culture-text p {
  font-size: 1.05em;
  margin-bottom: 10px;
}

.culture-text ul {
  padding-left: 20px;
  list-style-type: disc;
  font-size: 0.95em;
}

.culture-img {
  flex: 1 1 100px;
}

.culture-img img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


/* ========================================
   8. ANIME PAGE
======================================== */
.anime-page {
  padding: 40px 20px;
  background-color: #fffefc;
}

.anime-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-bottom: 50px;
}

.anime-card {
  width: 300px;
  background-color: #fff6f8;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.anime-card:hover {
  transform: translateY(-5px);
}

.anime-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.anime-card h2 {
  color: #e60026;
  margin-bottom: 10px;
}

.anime-card p {
  font-size: 0.95em;
  margin-bottom: 10px;
}

.anime-card ul {
  list-style: none;
  padding-left: 0;
  font-size: 0.9em;
}

.anime-card li {
  margin-bottom: 6px;
}

.anime-tips {
  background-color: #ffeef2;
  border-left: 5px solid #e60026;
  padding: 25px;
  max-width: 800px;
  margin: 0 auto 40px;
  border-radius: 10px;
}

.anime-tips h3 {
  color: #e60026;
  margin-bottom: 15px;
}

.anime-tips ul {
  list-style: disc;
  padding-left: 20px;
  font-size: 0.95em;
}

/* ========================================
   9. PLAN YOUR TRIP PAGE
======================================== */
body.plan-page {
  background-image: url("img/kyoto-poster.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #333;
  min-height: 100vh;
}

body.plan-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: -1;
}

main.plan-page {
  padding: 2rem 1rem;
  max-width: 960px;
  margin: 0 auto;
}

/* Form container */
.form-section {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #c0001a;
}

/* Form elements */
form {
  display: flex;
  flex-direction: column;
}

form label {
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

form input[type="text"],
form input[type="email"],
form input[type="date"],
form select,
form textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

form textarea {
  resize: vertical;
}

.checkbox-group {
  margin-top: 0.5rem;
  border: none;
  padding: 0;
}

.checkbox-group legend {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: 0.8rem;
  margin-bottom: 0.4rem;
}

.checkbox-group label {
  font-weight: 400;
}

form button[type="submit"] {
  background-color: #e60026;
  color: white;
  border: none;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  margin-top: 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

form button[type="submit"]:hover {
  background-color: #c0001a;
}

/* Travel comparison card */
.travel-table {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 10px;
  margin-top: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.travel-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 1rem;
}

.travel-table th,
.travel-table td {
  border: 1px solid #ddd;
  padding: 0.8rem;
  text-align: left;
}

.travel-table th {
  background-color: #e60026;
  color: white;
}

.travel-table caption {
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* ========================================
   10. FOOTER
======================================== */
footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* ========================================
   11. RESPONSIVE
======================================== */

/* Tablet and medium screens */
@media (max-width: 900px) {
  .hero-banner {
    height: 70vh;
  }

  .hero-banner h2 {
    font-size: 2.4rem;
  }

  .hero-banner p {
    font-size: 1rem;
  }
}

/* Up to 768px (tablets / small devices) */
@media (max-width: 768px) {
  header {
    padding: 15px;
  }

  nav ul {
    gap: 10px;
  }

  .why-japan {
    padding: 40px 20px;
  }

  /* Stacked layout for flex sections */
  .city-section,
  .city-section.reverse,
  .culture-block,
  .culture-block.reverse {
    flex-direction: column;
    align-items: center;
  }

  .city-text,
  .culture-text {
    max-width: 700px;
    padding: 0 10px;
    text-align: left;
  }

  .city-text h2,
  .culture-text h2 {
    text-align: center;
  }

  .anime-gallery {
    flex-direction: column;
    align-items: center;
  }

  .cards-container {
    flex-direction: column;
    align-items: center;
  }

  .step-list {
    padding-left: 1rem;
  }

  .step-number {
    font-size: 2.5rem;
  }
}

/* Up to 600px (phones) */
@media (max-width: 600px) {
  header {
    padding: 14px 10px 16px;
  }

  header h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

 
  nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
  }

  nav ul li a {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  .hero-banner {
    height: 60vh;
  }

  .hero-banner .overlay {
    padding: 20px;
  }

  .form-section,
  .travel-table,
  .food-tips,
  .anime-tips,
  .travel-checklist {
    padding: 1.5rem;
  }


  .city-comparison-table,
  .travel-table {
    padding: 2rem 1rem;
  }

  .city-comparison-table table,
  .travel-table table {
    width: 100%;
    table-layout: fixed;          
  }

  .city-comparison-table th,
  .city-comparison-table td,
  .travel-table th,
  .travel-table td {
    padding: 0.45rem;
    font-size: 0.8rem;
    word-wrap: break-word;
    word-break: break-word;
  }

  .city-comparison-table h2,
  .travel-table h2 {
    font-size: 1.4rem;
  }

  .city-comparison-table .table-intro,
  .travel-table caption {
    font-size: 0.9rem;
  }

  /* Plan page container */
  body.plan-page {
    background-attachment: scroll;
  }

  main.plan-page {
    padding: 1rem 0.5rem;
    max-width: 100%;
  }

  .form-section {
    margin: 0 0.5rem;
  }

  .travel-table {
    margin: 1.5rem 0.5rem 0;
  }
}
