/* ==========================================================================
   Juci Mama Kutyafarmja — stílusfájl
   Paletta: pergamen alapszín, mély erdőzöld, ólomvörös (barn red) akcent,
   tompa réz elválasztók. Tipográfia: Fraunces (display) + Work Sans (body).
   ========================================================================== */

:root {
  --parchment: #f3ecdc;
  --parchment-dark: #e7dabf;
  --card: #fdfaf2;
  --ink: #2b241d;
  --ink-soft: #5c4e3e;
  --forest: #3c4a30;
  --forest-dark: #232c1a;
  --barn-red: #7a3826;
  --barn-red-dark: #5e2a1c;
  --brass: #ad8752;
  --brass-light: #cba873;
  --line: rgba(43, 36, 29, 0.15);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--forest-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1.1em;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Fejléc / navigáció ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(239, 233, 221, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  height: 52px;
  width: 52px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--brass);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text .name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--forest-dark);
  letter-spacing: 0.01em;
}

.brand-text .est {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brass);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav a {
  display: inline-block;
  padding: 8px 14px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

nav.main-nav a:hover {
  background: var(--parchment-dark);
  color: var(--forest-dark);
}

nav.main-nav a.active {
  background: var(--forest);
  color: var(--parchment);
}

/* ---------- Ledger elválasztó (aláírás elem) ---------- */

.ledger-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto 3rem;
  max-width: 420px;
  color: var(--brass);
}

.ledger-divider .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--brass) 20%, var(--brass) 80%, transparent);
}

.ledger-divider .mark {
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--brass);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fbf8f1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 17, 13, 0.86) 0%, rgba(20, 17, 13, 0.35) 55%, rgba(20, 17, 13, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 72px 32px 56px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--brass-light);
  margin-bottom: 14px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: #fbf8f1;
  margin-bottom: 0.28em;
  max-width: 16ch;
}

.hero .tagline {
  font-size: 1.15rem;
  max-width: 46ch;
  color: #ece5d6;
  font-weight: 400;
}

.page-hero {
  min-height: 46vh;
  align-items: center;
}

.page-hero .hero-content {
  text-align: center;
  padding-top: 110px;
  padding-bottom: 64px;
}

.page-hero h1 {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.page-hero .tagline {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Szekciók ---------- */

section {
  padding: 88px 0;
}

section.tight {
  padding: 56px 0;
}

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

.section-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--barn-red);
  margin-bottom: 0.8em;
}

/* ---------- Bemutatkozó / szöveges blokkok ---------- */

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.intro-grid img {
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(35, 28, 20, 0.22);
}

.prose {
  max-width: 68ch;
}

.prose.centered {
  margin: 0 auto;
}

.prose p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  float: left;
  line-height: 0.85;
  padding: 0.05em 0.09em 0 0;
  color: var(--barn-red);
  font-weight: 600;
}

.article-figure {
  float: right;
  width: 42%;
  margin: 0 0 24px 40px;
}

.article-figure img {
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(35, 28, 20, 0.2);
}

.article-figure figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

.article-figure.left {
  float: left;
  margin: 0 40px 24px 0;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ---------- Filozófia szekciók ---------- */

.philosophy-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 56px;
}

.philosophy-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  padding: 32px 34px;
  border-radius: 8px;
}

.philosophy-item h3 {
  font-size: 1.28rem;
  margin-bottom: 0.6em;
}

.philosophy-item p:last-child {
  margin-bottom: 0;
}

/* ---------- Termékkártyák ---------- */

.tier-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 64px 0 30px;
}

.tier-head:first-of-type {
  margin-top: 0;
}

.tier-head h3 {
  font-size: 1.55rem;
  white-space: nowrap;
}

.tier-head .rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

a.product-card:hover,
a.product-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(43, 36, 29, 0.16);
  border-color: var(--brass-light);
}

a.product-card:hover h4,
a.product-card:focus-visible h4 {
  color: var(--barn-red);
}

.product-card .thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

a.product-card:hover .thumb img,
a.product-card:focus-visible .thumb img {
  transform: scale(1.05);
}

.product-card .body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card h4 {
  font-size: 1.18rem;
  margin-bottom: 0.5em;
}

.product-card p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  flex: 1;
}

.price-tag {
  align-self: flex-start;
  margin-top: 14px;
  background: var(--barn-red);
  color: #f6ede3;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 16px;
  border-radius: 999px;
}

/* ---------- Kiemelt termékek (főoldali előnézet) ---------- */

.featured-teaser {
  background: var(--parchment-dark);
}

.featured-teaser .section-head {
  margin-bottom: 2.4rem;
}

.featured-teaser .product-grid {
  margin-bottom: 2.6rem;
}

.teaser-more {
  text-align: center;
}

.teaser-more a {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--parchment);
  background: var(--barn-red);
  padding: 13px 30px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.teaser-more a:hover,
.teaser-more a:focus-visible {
  background: var(--barn-red-dark);
  transform: translateY(-2px);
}

/* ---------- GYIK / statikus lista ---------- */

.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item .faq-question {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--forest-dark);
  margin-bottom: 0.7em;
}

.faq-item .faq-question .num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brass);
  flex-shrink: 0;
}

.faq-item .faq-answer {
  color: var(--ink-soft);
  max-width: 68ch;
}

.faq-item .faq-answer p {
  margin-bottom: 1em;
}

.faq-item .faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-note {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- CTA sáv ---------- */

.cta-band {
  background: var(--forest);
  color: #f2ece0;
  text-align: center;
  padding: 64px 0;
}

.cta-band h2 {
  color: #f6efe4;
}

.cta-band .ledger-divider {
  color: var(--brass-light);
}

.cta-band .ledger-divider .rule {
  background: linear-gradient(to right, transparent, var(--brass-light) 20%, var(--brass-light) 80%, transparent);
}

.cta-band .ledger-divider .mark {
  border-color: var(--brass-light);
}

/* ---------- Lábléc ---------- */

.site-footer {
  background: var(--forest-dark);
  color: #cfc9ba;
  padding: 48px 0 32px;
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brass);
}

.footer-brand .name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #f2ece0;
}

.footer-brand .est {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-light);
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  color: #cfc9ba;
}

.footer-nav a:hover {
  color: var(--brass-light);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #9b9484;
}

/* ---------- Reszponzivitás ---------- */

@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .philosophy-block {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-figure {
    float: none;
    width: 100%;
    margin: 0 0 24px 0;
  }
}

@media (max-width: 620px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  nav.main-nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  nav.main-nav ul {
    gap: 2px;
    flex-wrap: nowrap;
  }
  nav.main-nav a {
    padding: 7px 12px;
    font-size: 0.86rem;
    white-space: nowrap;
  }
  .brand img {
    height: 44px;
    width: 44px;
  }
  .brand-text .name {
    font-size: 1.1rem;
  }
  .hero {
    min-height: 62vh;
  }
  .hero-content {
    padding: 56px 20px 40px;
  }
  .page-hero {
    min-height: 34vh;
  }
  .page-hero .hero-content {
    padding-top: 88px;
    padding-bottom: 40px;
  }
  .hero .tagline {
    font-size: 1.02rem;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  section {
    padding: 52px 0;
  }
  .wrap {
    padding: 0 20px;
  }
  .footer-grid {
    flex-direction: column;
  }
  .prose p:first-of-type::first-letter {
    font-size: 2.8em;
  }
  .article-figure {
    margin-left: 0;
    margin-right: 0;
  }
  .tier-head {
    margin: 44px 0 22px;
  }
  .tier-head h3 {
    font-size: 1.28rem;
    white-space: normal;
  }
  .philosophy-item {
    padding: 26px 24px;
  }
  .product-card .body {
    padding: 18px 20px 22px;
  }
}

@media (max-width: 400px) {
  body {
    font-size: 16px;
  }
  .hero h1 {
    font-size: clamp(2.1rem, 9vw, 2.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

:focus-visible {
  outline: 2px solid var(--barn-red);
  outline-offset: 3px;
}
