/* FreshBadger - Clean Japanese Pet Care Aesthetic */
:root {
  --color-bg: #f8f5f0;
  --color-surface: #ffffff;
  --color-text: #3f3a33;
  --color-text-light: #6b6459;
  --color-accent: #7a8f6d;
  --color-accent-dark: #5f7154;
  --color-warm: #c8a17a;
  --color-border: #e6e0d4;
  --font-sans: 'Zen Kaku Gothic New', "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", sans-serif;
  --font-serif: 'Shippori Mincho', "Noto Serif JP", "Hiragino Mincho ProN", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
}

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

.logo-text {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

h1, h2, h3,
.section-title,
.hero-text h1,
.about-content h2,
.guide-section h3,
.card-content h3,
.pet-card h3,
.guide-card h4,
.guide-index-card h3,
.error-page .error-code {
  font-family: var(--font-serif);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-cta {
  background-color: var(--color-accent);
  color: white !important;
  padding: 10px 22px;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background-color: var(--color-accent-dark);
  color: white !important;
}

.mobile-menu {
  display: none;
}

/* Dropdown (Guides) */
.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  padding: 0;
}

.dropdown-toggle .caret {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.has-dropdown.open .dropdown-toggle .caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 20px 45px -15px rgb(0 0 0 / 0.18);
  min-width: 220px;
  padding: 10px;
  z-index: 200;
}

.has-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--color-bg);
  color: var(--color-accent);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-panel {
  display: none;
  flex-direction: column;
  padding: 8px 0 20px;
  border-top: 1px solid var(--color-border);
}

.mobile-panel.open {
  display: flex;
}

.mobile-panel a {
  padding: 13px 4px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 15.5px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}

.mobile-panel a.active {
  color: var(--color-accent);
}

.mobile-panel .mobile-group-label {
  padding: 13px 4px 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
}

.mobile-panel .mobile-sub {
  padding-left: 16px;
  font-size: 14.5px;
  color: var(--color-text-light);
}

.mobile-panel .btn {
  margin-top: 14px;
}

.mobile-panel .mobile-group-toggle {
  padding: 13px 4px;
  font-size: 15.5px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-panel .mobile-group-toggle span {
  transition: transform 0.2s ease;
  color: var(--color-accent);
}

.mobile-panel .mobile-group-toggle.open span {
  transform: rotate(180deg);
}

.mobile-panel .mobile-subnav {
  border-bottom: 1px solid var(--color-border);
}

.mobile-panel .mobile-subnav a.mobile-sub {
  border-bottom: none;
  padding: 10px 4px 10px 18px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #f8f5f0 0%, #f0e9df 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 52px;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -1.2px;
}

.hero-text .subtitle {
  font-size: 20px;
  color: var(--color-text-light);
  margin-bottom: 32px;
  max-width: 460px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.hero-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgb(0 0 0 / 0.15);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.6px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-light);
  max-width: 580px;
  margin-bottom: 48px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--color-surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgb(0 0 0 / 0.1);
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 24px;
}

.card-content h3 {
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 600;
}

.card-content p {
  color: var(--color-text-light);
  font-size: 15px;
  line-height: 1.65;
}

/* Pet Type Sections */
.pet-types {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.pet-card {
  display: flex;
  flex-direction: column;
}

.pet-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 20px;
}

.pet-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.pet-card ul {
  list-style: none;
  padding-left: 4px;
}

.pet-card ul li {
  padding: 6px 0;
  font-size: 15px;
  color: var(--color-text-light);
  position: relative;
  padding-left: 22px;
}

.pet-card ul li:before {
  content: "•";
  color: var(--color-accent);
  position: absolute;
  left: 0;
}

/* Guides Preview */
.guides-preview {
  background: var(--color-bg);
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.guide-card {
  background: var(--color-surface);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
}

.guide-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.guide-card p {
  font-size: 14.5px;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.guide-card .tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 11px;
  background: #f0e9df;
  color: var(--color-text-light);
  border-radius: 9999px;
}

/* Disclaimer */
.disclaimer {
  background: #f0e9df;
  padding: 20px 24px;
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--color-text-light);
  margin-top: 40px;
  border-left: 4px solid var(--color-accent);
}

/* About Page */
.about-content {
  max-width: 780px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 28px;
  margin: 48px 0 16px;
}

.about-image {
  border-radius: 18px;
  margin: 32px 0;
  width: 100%;
  box-shadow: 0 15px 35px -10px rgb(0 0 0 / 0.1);
}

/* Guides Page */
.guides-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-button {
  padding: 10px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  font-size: 14.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-button.active {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.guide-section {
  background: var(--color-surface);
  padding: 36px;
  border-radius: 18px;
  margin-bottom: 28px;
  border: 1px solid var(--color-border);
}

.guide-section h3 {
  margin-bottom: 18px;
  font-size: 22px;
}

.guide-section ul {
  padding-left: 22px;
}

.guide-section li {
  margin-bottom: 8px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  background: var(--color-surface);
  padding: 36px;
  border-radius: 18px;
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: white;
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 14px;
  color: var(--color-text-light);
}

.contact-info a {
  color: var(--color-accent);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #3f3a33;
  color: #d1c9b9;
  padding: 60px 0 30px;
  font-size: 14px;
}

footer a {
  color: #d1c9b9;
  text-decoration: none;
}

footer a:hover {
  color: #f0e9df;
}

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

.footer-col h4 {
  color: #f0e9df;
  font-size: 15px;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 9px;
}

.footer-bottom {
  border-top: 1px solid #555046;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #a49b8a;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 901px) {
  .hamburger,
  .mobile-panel {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 38px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Small utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.text-muted { color: var(--color-text-light); }
.img-rounded { border-radius: 14px; }

/* Page header banner (interior pages) */
.page-header {
  background: linear-gradient(135deg, #f8f5f0 0%, #f0e9df 100%);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb {
  font-size: 13.5px;
  color: var(--color-text-light);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--color-text-light);
  text-decoration: none;
}

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

/* Guide index cards (guides hub -> detail pages) */
.guide-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 56px;
}

.guide-index-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-index-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -18px rgb(0 0 0 / 0.15);
}

.guide-index-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.guide-index-card .gi-body {
  padding: 20px 22px 24px;
}

.guide-index-card h3 {
  font-size: 18.5px;
  margin-bottom: 6px;
}

.guide-index-card p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.guide-index-card .gi-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-accent);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  font-size: 13px;
  background: linear-gradient(0deg, rgb(0 0 0 / 0.55), transparent);
  color: #fff;
}

.gallery-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgb(20 18 14 / 0.86);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 30px 70px -20px rgb(0 0 0 / 0.5);
}

.lightbox-caption {
  position: absolute;
  bottom: 34px;
  left: 0;
  right: 0;
  text-align: center;
  color: #f0e9df;
  font-size: 14.5px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 30px;
  color: #f0e9df;
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* FAQ Accordion */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
}

.faq-question .faq-icon {
  font-size: 20px;
  color: var(--color-accent);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
  color: var(--color-text-light);
  font-size: 14.5px;
}

.faq-item.open .faq-answer {
  padding: 0 24px 22px;
}

/* Toast notifications (non-blocking, replaces alert) */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #3f3a33;
  color: #f0e9df;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 15px 35px -10px rgb(0 0 0 / 0.35);
  max-width: 320px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  border-left: 4px solid var(--color-accent);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Two-column content with sidebar image */
.content-columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
  margin: 32px 0;
}

.content-columns img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 15px 35px -10px rgb(0 0 0 / 0.1);
}

@media (max-width: 800px) {
  .content-columns {
    grid-template-columns: 1fr;
  }
}

/* 404 page */
.error-page {
  padding: 100px 0;
  text-align: center;
}

.error-page .error-code {
  font-size: 120px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -4px;
}

.error-page img {
  max-width: 380px;
  width: 100%;
  border-radius: 20px;
  margin: 32px auto;
  box-shadow: 0 25px 60px -15px rgb(0 0 0 / 0.15);
}