/* =========================================
   Best Tokyo Food Tours - Main Stylesheet
   foodtours.tokyo
   ========================================= */

/* CSS Variables */
:root {
  --color-primary: #E63946;
  --color-secondary: #1D3557;
  --color-accent: #F4A261;
  --color-light: #F1FAEE;
  --color-dark: #1D3557;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-white: #FFFFFF;
  --color-success: #2A9D8F;
  --color-warning: #E9C46A;
  
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Noto Sans JP', 'Inter', sans-serif;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  --transition: all 0.3s ease;
  
  --container-max: 1200px;
  --container-narrow: 800px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  line-height: 1.7;
  background-color: var(--color-white);
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.3;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* Header */
.header {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-dark);
}

.logo img {
  height: 40px;
  width: auto;
}

.logo:hover {
  color: var(--color-primary);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-light);
  border: 1px solid #ddd;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.lang-switcher:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--color-text);
}

.lang-dropdown a:hover {
  background: var(--color-light);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

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

/* CTA Button in Header */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
}

.header-cta:hover {
  background: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #2a4a7a 100%);
  color: var(--color-white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
  opacity: 0.3;
}

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

.hero h1 {
  color: var(--color-white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-tour {
  min-height: 50vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-tour::before {
  background: linear-gradient(135deg, rgba(29,53,87,0.9) 0%, rgba(29,53,87,0.7) 100%);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  background: #c5303c;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

.btn-accent {
  background: var(--color-accent);
  color: var(--color-dark);
}

.btn-accent:hover {
  background: #e8944d;
  color: var(--color-dark);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Quick Summary Table */
.quick-summary {
  background: var(--color-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}

.quick-summary h3 {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-table {
  display: grid;
  gap: 1rem;
}

.summary-row {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.summary-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.summary-label {
  font-weight: 600;
  color: var(--color-text-light);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-dark);
}

/* Info Cards */
.info-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.info-card-icon {
  color: var(--color-primary);
  font-size: 1.5rem;
}

/* Tour Cards Grid */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.tour-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.tour-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.tour-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.tour-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.tour-card-content {
  padding: 1.5rem;
}

.tour-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.tour-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.tour-card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.tour-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tour-card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.tour-card-price small {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-light);
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.comparison-table th {
  background: var(--color-secondary);
  color: var(--color-white);
  font-weight: 600;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: var(--color-light);
}

.check-icon {
  color: var(--color-success);
}

.cross-icon {
  color: var(--color-text-light);
}

/* Tips Box */
.tips-box {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
  border-left: 4px solid var(--color-warning);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
}

.tips-box h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #856404;
}

.tips-box ul {
  margin: 0;
  color: #856404;
}

/* Expert Opinion */
.expert-box {
  background: var(--color-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  border-left: 4px solid var(--color-primary);
}

.expert-box h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.expert-box blockquote {
  font-style: italic;
  color: var(--color-text);
  margin: 0;
  padding-left: 1rem;
  border-left: 2px solid var(--color-text-light);
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
}

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

/* Content Sections */
.content-section {
  margin-bottom: 3rem;
}

.content-section h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-light);
}

.content-section h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Widget Container */
.widget-container {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--color-light);
  border-radius: var(--radius-lg);
}

.widget-container h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #c5303c 100%);
  color: var(--color-white);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-section .btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.cta-section .btn-secondary:hover {
  background: transparent;
  color: var(--color-white);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  opacity: 0.8;
  margin-top: 1rem;
}

.footer h4 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

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

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: rgba(255,255,255,0.8);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Disclaimer */
.disclaimer {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.disclaimer strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 0;
  background: var(--color-light);
  font-size: 0.9rem;
}

.breadcrumbs ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.breadcrumbs li {
  margin: 0;
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin: 0 0.5rem;
  color: var(--color-text-light);
}

.breadcrumbs a {
  color: var(--color-text-light);
}

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

/* FAQ Accordion */
.faq-item {
  border: 1px solid #eee;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem;
  background: var(--color-white);
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--color-light);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question {
  background: var(--color-light);
}

/* Table of Contents */
.toc {
  background: var(--color-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.toc h4 {
  margin-bottom: 1rem;
}

.toc ul {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  color: var(--color-text);
}

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

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

.sidebar-card h4 {
  margin-bottom: 1rem;
}

/* Rating Stars */
.rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-accent);
}

.rating-text {
  margin-left: 0.5rem;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--color-light);
  color: var(--color-text);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

/* Images */
.image-caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
  font-style: italic;
}

.rounded-img {
  border-radius: var(--radius-lg);
}

/* Responsive */
@media (max-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .header-cta {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .tours-grid {
    grid-template-columns: 1fr;
  }
  
  .summary-row {
    flex-direction: column;
    text-align: center;
  }
  
  .summary-icon {
    margin-right: 0;
    margin-bottom: 0.75rem;
  }
  
  .comparison-table {
    font-size: 0.875rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  section {
    padding: 2.5rem 0;
  }
  
  .hero {
    padding: 2.5rem 0;
  }
  
  .quick-summary {
    padding: 1.5rem;
  }
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  z-index: 999;
  padding: 2rem;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.mobile-nav ul {
  list-style: none;
  padding: 3rem 0;
  margin: 0;
}

.mobile-nav li {
  margin-bottom: 1.5rem;
}

.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Print Styles */
@media print {
  .header, .footer, .btn, .widget-container {
    display: none;
  }
  
  body {
    font-size: 12pt;
  }
}
