:root {
  --bg: #F8F5EF;
  --card: #FFFCF8;
  --accent: #9B7B56;
  --text: #3E372F;
  --shadow: 0 8px 20px rgba(0,0,0,.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* A sticky nav magasságához igazítva */
}

body {
  margin: 0;
  font: 16px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

header {
  padding: 70px 20px;
  text-align: center;
  background: linear-gradient(#efe6d8, #f8f5ef);
}

h1 {
  font-size: 3rem;
  color: var(--accent);
  margin: .2em 0;
}

h2 {
  color: var(--accent);
  margin-top: 0;
}

h3 {
  margin-top: 25px;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 1.25rem;
}

h3 + p {
  margin-top: 0;
}

/* Navigáció alaphelyzetben (Asztali nézet) */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.logo {
  font-weight: bold;
  color: var(--accent);
  font-size: 1.1rem;
}

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

nav ul li {
  margin: 0;
}

nav a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  padding: .5rem .8rem;
  border-radius: 8px;
}

nav a:hover {
  background: #f4eee5;
}

.menu-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--accent);
}

/* Tartalom és kártyák elrendezése */
.wrap {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}

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

.service-card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 700;
}

.btn:hover {
  opacity: .92;
}

.profile-img {
  float: right;
  width: 40%;
  max-width: 340px;
  margin: 0 0 20px 20px;
}

a[href^="tel"], a[href^="mailto"] {
  font-weight: 700;
}

.card p {
  text-align: justify;
}

footer {
  background: #e8dfd1;
  text-align: center;
  padding: 24px;
  margin-top: 30px;
}

/* Mobil nézet (768px alatti kijelzők) */
@media (max-width: 768px) {
  header {
    padding: 70px 18px 45px 18px; 
  }
  
  h1 {
    font-size: 2rem;
    margin-top: 20px; 
  }

  .card a[href^="tel"] {
    display: inline-block;
    background-color: #f4eee5;
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    margin: 2px 0;
  }

  .btn {
    display: block;
    width: 100%;
    text-align: center;
  }
  
  .profile-img {
    float: none;
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 20px;
  }

  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 61px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    z-index: 1001;
    gap: 0;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    border-bottom: 1px solid #eee;
    width: 100%;
  }

  nav ul li a {
    display: block;
    padding: 16px 20px;
    border-radius: 0;
  }
}

section p a {
  text-decoration: underline;
}

/* FAQ / Accordion Stílusok */
.faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: background-color 0.2s ease;
}

.faq-item[open] {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item summary {
  padding: 14px 18px;
  font-size: 1.05rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  position: relative;
  padding-right: 40px;
  color: #2c3e50;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Nyíl igazítása: alapból lefelé mutat, kinyitva felfelé */
.faq-item summary::after {
  content: "❯";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transition: transform 0.2s ease;
  font-size: 0.85rem;
  color: var(--accent);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(-90deg);
}

.faq-content {
  padding: 12px 18px 16px 18px;
  border-top: 1px solid #f0f0f0;
  line-height: 1.6;
  color: #444;
}

.faq-content ul {
  margin-top: 8px;
  padding-left: 20px;
}

@media (min-width: 769px) {
  nav ul li a[href="#kez"] {
    background-color: var(--accent);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
  }
  nav ul li a[href="#kez"]:hover {
    opacity: 0.9;
  }
}