/* ============================================
   Sim-Pa weboldal — napos, játékos stílus
   Tiszta Bootstrap 5 alapokon, egyedi témával
   ============================================ */

:root {
  --sp-primary: #c64505;
  --sp-primary-dark: #a3390a;
  --sp-primary-light: #fff1e0;
  --sp-blue: #2fb4e0;
  --sp-blue-light: #e6f7fd;
  --sp-green: #4fae6a;
  --sp-green-light: #eaf7ee;
  --sp-yellow: #ffc23c;
  --sp-yellow-light: #fff6e0;
  --sp-dark: #4a3524;
  --sp-gray-text: #7a6c58;
  --sp-gray-bg: #fff8f0;
  --sp-border: #f5e6d3;
  --sp-success: #4fae6a;
  --sp-radius: 1.35rem;
}

body {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sp-gray-text);
  background-color: #fffdf9;
}

h1, h2, h3, h4, h5, .fw-heading,
.sp-navbar .navbar-brand, .sp-footer .navbar-brand,
.btn-sp-primary, .btn-sp-outline {
  font-family: "Baloo 2", "Nunito", sans-serif;
}

h1, h2, h3, h4, h5, .fw-heading {
  color: var(--sp-dark);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
}

/* subtle paw-print texture on alt sections */
.sp-section-alt {
  background-color: var(--sp-gray-bg);
  background-image: url("../img/paw-pattern.svg");
  background-size: 64px 64px;
}

/* ---------- Paw icon ---------- */
.sp-paw-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
}

.sp-paw-bullets {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.sp-paw-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.sp-paw-bullets .sp-paw-icon {
  flex: none;
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.2em;
  color: var(--sp-primary);
}

/* ---------- Navbar ---------- */
.sp-navbar {
  background: #fffdf9;
  box-shadow: 0 2px 14px rgba(198, 69, 5, 0.1);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.sp-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--sp-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sp-navbar .navbar-brand .brand-badge,
.sp-footer .brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sp-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(198, 69, 5, 0.35);
}

.sp-navbar .nav-link {
  font-weight: 700;
  color: var(--sp-gray-text) !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 50px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.sp-navbar .nav-link.active,
.sp-navbar .nav-link:hover {
  color: var(--sp-primary-dark) !important;
  background: var(--sp-primary-light);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.sp-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 20%;
  color: #fff;
  overflow: hidden;
}

.sp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(74,53,36,0.12) 0%, rgba(74,53,36,0.4) 55%, rgba(43,28,15,0.88) 100%);
  z-index: 1;
}

.sp-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 4rem;
}

.sp-hero-content .badge-pill {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.sp-hero-content h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: 0.5rem;
}

.sp-hero-content p.lead {
  color: rgba(255,255,255,0.92);
  max-width: 560px;
  font-size: 1.15rem;
}

/* ---------- Sections ---------- */
.sp-section {
  padding: 5rem 0;
}

.sp-eyebrow {
  color: var(--sp-primary-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

/* ---------- Cards ---------- */
.sp-card {
  background: #fff;
  border: 2px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sp-card:hover {
  transform: translateY(-5px) rotate(-0.3deg);
  box-shadow: 0 14px 28px rgba(198, 69, 5, 0.16);
  border-color: var(--sp-primary-light);
}

.sp-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 1rem;
  background: var(--sp-primary-light);
  color: var(--sp-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
}

.sp-card:hover .sp-icon-box {
  transform: scale(1.1) rotate(-6deg);
}

/* color variants for variety */
.sp-icon-box.acc-blue   { background: var(--sp-blue-light);   color: var(--sp-blue); }
.sp-icon-box.acc-green  { background: var(--sp-green-light);  color: var(--sp-green); }
.sp-icon-box.acc-yellow { background: var(--sp-yellow-light); color: #b8860b; }

/* ---------- Buttons ---------- */
.btn-sp-primary {
  background: var(--sp-primary);
  border-color: var(--sp-primary);
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 1.7rem;
  border-radius: 50px;
  box-shadow: 0 6px 16px rgba(198, 69, 5, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-sp-primary:hover {
  background: var(--sp-primary-dark);
  border-color: var(--sp-primary-dark);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 20px rgba(198, 69, 5, 0.4);
}

.btn-sp-outline {
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  font-weight: 700;
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-sp-outline:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

/* ---------- Page header (subpages) ---------- */
.sp-page-header {
  background: var(--sp-dark);
  background: linear-gradient(135deg, #e8611f 0%, #c64505 55%, #a3390a 100%);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
}

.sp-page-header h1 {
  color: #fff;
}

.sp-page-header--mountains {
  background-image:
    linear-gradient(180deg, rgba(20,10,0,0.5) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 68%, rgba(20,10,0,0.55) 100%),
    linear-gradient(rgba(74,53,36,0.4), rgba(74,53,36,0.4)),
    url("../img/tibet-header.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  padding: 6rem 0 4.5rem;
}

.sp-page-header--snow {
  background-image:
    linear-gradient(180deg, rgba(20,10,0,0.5) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 68%, rgba(20,10,0,0.55) 100%),
    linear-gradient(rgba(74,53,36,0.45), rgba(74,53,36,0.45)),
    url("../img/tibet-header2.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  padding: 6rem 0 4.5rem;
}

.sp-breadcrumb a {
  color: rgba(255,255,255,0.7);
}

.sp-breadcrumb .active {
  color: #fff;
}

/* ---------- Data table (Sim-Pa adatlap) ---------- */
.sp-data-table th {
  width: 40%;
  color: var(--sp-dark);
  font-weight: 700;
  background: var(--sp-gray-bg);
}

.sp-data-table td, .sp-data-table th {
  padding: 0.9rem 1.1rem;
  vertical-align: middle;
}

.sp-placeholder {
  color: #c2a98a;
  font-style: italic;
}

/* ---------- Pedigree tree ---------- */
.sp-pedigree {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.sp-pedigree .gen {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 0.6rem;
}

.sp-pedigree .pnode {
  background: #fff;
  border: 2px solid var(--sp-border);
  border-radius: 1rem;
  padding: 0.7rem 0.8rem;
  font-size: 0.82rem;
  text-align: center;
  color: var(--sp-gray-text);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
}

.sp-pedigree .gen1 .pnode { min-height: 118px; font-weight: 700; color: var(--sp-dark); background: var(--sp-primary-light); border-color: var(--sp-primary-light); }
.sp-pedigree .gen2 .pnode { min-height: 118px; }

@media (max-width: 767px) {
  .sp-pedigree { grid-template-columns: repeat(2, 1fr); }
  .sp-pedigree .gen3, .sp-pedigree .gen4 { display: none; }
}

/* ---------- Gallery ---------- */
.sp-gallery-item {
  position: relative;
  border-radius: var(--sp-radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--sp-gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--sp-border);
  color: #c2a98a;
  text-align: center;
  padding: 1rem;
}

.sp-gallery-item i {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.5rem;
}

.sp-gallery-tabs .nav-link {
  font-weight: 700;
  color: var(--sp-gray-text);
  border-radius: 50px;
}

.sp-gallery-tabs .nav-link.active {
  background: var(--sp-primary);
  color: #fff;
}

/* ---------- Gallery thumbnails ---------- */
.sp-gallery-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: none;
  border-radius: var(--sp-radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--sp-gray-bg);
}

.sp-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.sp-gallery-thumb:hover img {
  transform: scale(1.08) rotate(-1deg);
}

/* ---------- Video cards ---------- */
.sp-video-card video {
  width: 100%;
  border-radius: var(--sp-radius);
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: cover;
}

/* ---------- Footer ---------- */
.sp-footer {
  background: var(--sp-dark);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.5rem;
}

.sp-footer a {
  color: rgba(255,255,255,0.75);
}

.sp-footer a:hover {
  color: #fff;
}

.sp-footer hr {
  border-color: rgba(255,255,255,0.15);
}
