/* ======================================
   Kyoto Explorer — Main Stylesheet
   Theme: Kyoto vermilion & warm neutrals
   ====================================== */

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Root & base */
:root {
  --accent: #E25822;
  --accent-dark: #B5441A;
  --bg: #FFFDF8;
  --card: #F5F2EA;
  --border: #E6E0D4;
  --text: #1F2937;
  --muted: #4B5563;  /* darker muted text for better contrast */
  --focus: #0EA5E9;
  --shadow: 0 6px 30px rgba(0,0,0,0.08);
  --radius: 16px;
}

body {
  margin: 0;
  font-family: 'Inter', 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI',
               Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: linear-gradient(180deg, #fafafa 0%, #f5f0e6 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Typography */
h1,
h2,
h3 {
  margin: 0 0 .5rem;
  line-height: 1.25;
  color: #a83232;
  letter-spacing: .5px;
}

h1 {
  font-weight: 800;
  font-size: 2.5rem;
}

h2 {
  font-weight: 700;
  font-size: 1.75rem;
}

h3 {
  font-weight: 600;
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

/* Layout */
.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Site header & nav */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 0;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}

.logo span {
  color: var(--accent-dark);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  padding: .5rem .75rem;
  border-radius: 10px;
}

.site-nav a[aria-current="page"] {
  background: var(--card);
}

/* Main content shell (card on all pages) */
.site-main {
  padding: 2rem 0 3rem;
}

.site-main.container {
  background: #ffffffcc;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,.05);
  padding: 2rem;
  margin-top: 2rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 2rem 0;
}

.hero img {
  border-radius: 12px;
}

.lead {
  color: var(--muted);
  max-width: 60ch;
  margin: 1rem auto;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #111827;  /* dark text for good contrast */
  padding: .75rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  background: #8e2a2a;  /* dark red */
  color: #ffffff;       /* white text for strong contrast */
}

/* Make sure the big hero button has strong contrast (author override) */
.hero .btn {
  color: #111827 !important;
}

/* Site footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 1rem 0;
  color: var(--muted);
  text-align: center;
}

/* Generic grid of 3-ish cards (auto-fit) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

/* Generic card */
.card {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.card h2 {
  margin: 0 0 .5rem;
  color: var(--vermilion, #a83232);
}

.card p {
  margin: 0;
  color: #444;
}

/* Consistent rectangular card images */
.card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: .35rem 0 .75rem;
}

/* Page headings */
.page-header h1 {
  color: #a83232;
  letter-spacing: .5px;
  margin: 0 0 .25rem;
}

.page-header .muted {
  color: var(--muted);
  margin: 0 0 1rem;
}

/* ===== Eat & Drink page gallery (reusable base) ===== */
.site-main.container .gallery {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin: 3rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.site-main.container .gallery-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.site-main.container .gallery figure {
  flex: 1 1 45%;
  max-width: 520px;
  text-align: center;
  background: #ffffffcc;
  border-radius: 15px;
  padding: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,.1);
  transition: transform .3s, box-shadow .3s;
}

.site-main.container .gallery figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.site-main.container .gallery figure img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform .3s;
}

.site-main.container .gallery figure img:hover {
  transform: scale(1.03);
}

.site-main.container .gallery figcaption {
  font-size: .95rem;
  color: #444;
  margin-top: .7rem;
  font-style: italic;
}

/* ===== Reusable page gallery ===== */
.page-gallery {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin: 2rem 0;
}

.page-gallery .row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.page-gallery figure {
  flex: 1 1 45%;
  max-width: 520px;
  text-align: center;
  background: #ffffffcc;
  border-radius: 15px;
  padding: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,.1);
  transition: transform .3s, box-shadow .3s;
}

.page-gallery figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.page-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.page-gallery figcaption {
  font-size: .95rem;
  color: #444;
  margin-top: .7rem;
  font-style: italic;
}

/* ===== FAQ (Plan page) ===== */
.faq details {
  background: #fff;
  border-radius: 12px;
  padding: .75rem 1rem;
  margin: .6rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.faq summary {
  cursor: pointer;
  color: #a83232;
  font-weight: 600;
}

/* ===== See & Do cards layout ===== */
.cards-list {
  display: grid;
  grid-template-columns: 1fr;  /* 1 column on mobile */
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .cards-list {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on desktop */
  }
}

/* ===== Contact Form Styling (Kyoto Explorer) ===== */
.contact-form {
  max-width: 520px;
  margin: 1.5rem auto 2.5rem;
  display: grid;
  gap: 0.9rem;
}

/* one row in the grid */
.contact-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* checkbox row: label sits beside the box */
.contact-form .checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
}

/* labels */
.contact-form label {
  font-weight: 600;
  color: #a83232; /* Kyoto vermilion */
}

/* inputs & textarea */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02) inset;
}

/* focus state (no big outside border) */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #a83232;
  outline: none;
  box-shadow: 0 0 0 3px rgba(168,50,50,0.15);
}

/* checkbox input itself */
.contact-form input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

/* submit button uses your existing .btn look */
.contact-form .btn {
  background: #a83232;
  color: #111827;   /* fixed contrast */
  border: 0;
  border-radius: 22px;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
  transition: background 0.25s ease, transform 0.1s ease;
}

.contact-form .btn:hover {
  background: #8e2a2a;
}

.contact-form .btn:active {
  transform: translateY(1px);
}

/* ===== Accessibility helpers ===== */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #111827;  /* very dark */
  color: #ffffff;       /* white */
  border-radius: 999px;
}

.skip-link:focus {
  left: 1rem;
  z-index: 20;
}

/* Accessible card title links */
.cta-link {
  color: #a83232;
  font-weight: 700;
  text-decoration: none;
}

.cta-link:hover,
.cta-link:focus {
  text-decoration: underline;
}
