:root {
  --color-page: #1d1c1a;
  --color-header: #d2bd86;
  --color-header-dark: #b89c60;
  --color-surface: #f5f1e7;
  --color-surface-light: #fffdf8;
  --color-text: #292723;
  --color-muted: #706b62;
  --color-accent: #b45f20;
  --color-accent-dark: #7f3d12;
  --color-border: #d7cdb9;

  --content-width: 1180px;
  --sidebar-width: 260px;

  --shadow-card:
    0 16px 40px rgba(0, 0, 0, 0.24);

  --service-image-width: 290px;
  --service-image-radius: 8px;
  --service-layout-gap: 2rem;

}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 1rem;
  line-height: 1.65;

  color: var(--color-text);
  background:
    linear-gradient(
      180deg,
      #25231f 0,
      var(--color-page) 420px
    );
}

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

a {
  color: var(--color-accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

.site-container {
  width: min(
    calc(100% - 2rem),
    var(--content-width)
  );

  margin-inline: auto;
}

/* Felső sáv */

.top-bar {
  position: relative;

  color: #f5eee2;
  background: #151412;
}

.top-bar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;

  height: 3px;

  background:
    linear-gradient(
      90deg,
      #7f5418 0%,
      #d8ad4d 20%,
      #f0d382 50%,
      #d8ad4d 80%,
      #7f5418 100%
    );
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;

  min-height: 48px;
}

.header-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1.25rem;
}

.header-contact a,
.header-address {
    color: #f4d98f;
    text-decoration: none;

    transition: color 0.2s ease;
}
.header-contact a:hover {
    color: #e0bd69;
}

/* Nyelvválasztó */

.language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;

  margin: 0;
  padding: 0;

  list-style: none;
}

.language-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  padding: 0.3rem 0.5rem;

  color: #f5eee2;
  border-radius: 4px;
  text-decoration: none;
}

.language-list a:hover,
.language-list a[aria-current="page"] {
  color: #201d18;
  background: var(--color-header);
}

.language-code {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.language-name {
  position: absolute;
  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;
  clip: rect(0, 0, 0, 0);

  white-space: nowrap;
  border: 0;
}

/* Fejléc */

.site-brand {
  display: flex;
  flex-direction: column;

  color: #292217;
  text-decoration: none;
}

.site-description {
  margin: 0;
  width: min(100%, 570px);

  font-size: clamp(0.9rem, 1.35vw, 1.15rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;

  color: #a16b17;
}

/* Oldalszerkezet */

.page-layout {
  display: grid;
  grid-template-columns:
    var(--sidebar-width)
    minmax(0, 1fr);

  gap: 2rem;

  padding-block: 2rem 3rem;
}

.sidebar {
  min-width: 0;
}

.main-content {
  min-width: 0;
}

.content-card {
  position: relative;
  overflow: hidden;

  min-height: 500px;
  padding: clamp(1.5rem, 4vw, 3rem);

  background:
    linear-gradient(
      145deg,
      #fffdf7 0%,
      #f7f0df 58%,
      #efe3ca 100%
    );

  border: 1px solid rgba(193, 151, 72, 0.38);
  border-radius: 8px;

  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.30),
    0 1px 0 rgba(255, 255, 255, 0.75) inset;
}
.content-card::before {
  content: "";
  position: absolute;

  top: 0;
  right: 0;
  left: 0;

  height: 3px;

  background:
    linear-gradient(
      90deg,
      transparent 0%,
      #b57924 20%,
      #e0bd69 50%,
      #b57924 80%,
      transparent 100%
    );
}
.content-card::after {
  content: "";
  position: absolute;

  top: -120px;
  right: -120px;

  width: 320px;
  height: 320px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(216, 173, 77, 0.13) 0%,
      rgba(216, 173, 77, 0.04) 48%,
      transparent 72%
    );

  pointer-events: none;
}
.content-card > * {
  position: relative;
  z-index: 1;
}

.content-card h1 {
  position: relative;

  margin-top: 0;
  margin-bottom: 1.8rem;
  padding-bottom: 0.75rem;

  font-family:
    "Palatino Linotype",
    Palatino,
    "Book Antiqua",
    Georgia,
    serif;

  font-size: clamp(1.9rem, 3.6vw, 2.65rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;

  color: #834908;
}

.content-card h1::after {
  content: "";
  position: absolute;

  bottom: 0;
  left: 0;

  width: 80px;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      #b57924,
      rgba(181, 121, 36, 0)
    );
}
.page-content {
  max-width: 760px;
  color: #302b24;
}

.page-content p {
  margin-block: 0 1.15rem;
}

.page-content > :first-child {
  margin-top: 0;
}

.page-content > :last-child {
  margin-bottom: 0;
}

.page-content h2 {
  margin: 2rem 0 0.9rem;

  font-family:
    "Palatino Linotype",
    Palatino,
    "Book Antiqua",
    Georgia,
    serif;

  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 400;
  line-height: 1.25;

  color: #834908;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  margin: 1.4rem 0 0.5rem;

  font-size: 1rem;
  color: #5f3c16;
}

.page-content ul {
  margin: 1.1rem 0 1.6rem;
  padding-left: 1.3rem;
}

.page-content li {
  margin-bottom: 0.42rem;
  padding-left: 0.25rem;
}

.page-content li::marker {
  color: #b57924;
}

.contact-summary {
  margin-top: 2.25rem;
  padding: 1.35rem 1.5rem;

  background: rgba(181, 121, 36, 0.07);
  border-left: 3px solid #b57924;
  border-radius: 0 6px 6px 0;
}

.contact-summary h2 {
  margin-top: 0;
}

.contact-summary p:last-child {
  margin-bottom: 0;
}

.phone-list a {
  color: #6f3d0b;
  text-decoration: none;
}

.phone-list a:hover {
  color: #b45f20;
  text-decoration: underline;
}

/* Navigáció */

.menu-toggle {
  display: none;
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;

  font: inherit;
  font-weight: 700;
  text-align: left;

  color: #251e16;
  background:
    linear-gradient(
      180deg,
      #e2ca8e 0%,
      #cbae68 100%
    );

  border: 1px solid #ecdba8;
  border-radius: 6px;

  cursor: pointer;
}

.menu-toggle-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 0.55rem;
  vertical-align: middle;
}

.main-navigation {
  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      #24211d 0%,
      #191714 100%
    );

  border: 1px solid #4a4135;
  border-radius: 7px;

  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.28);
}

.menu-list,
.submenu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-item {
  position: relative;
}

.menu-item + .menu-item {
  border-top: 1px solid rgba(216, 173, 77, 0.16);
}

.menu-list a {
  position: relative;
  display: block;

  padding: 0.95rem 1rem 0.95rem 1.2rem;

  color: #eee4d5;
  text-decoration: none;

  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    padding-left 0.2s ease;
}

.menu-list > .menu-item > a {
  font-weight: 700;
}

.menu-list > .menu-item > a::before {
  content: "";
  position: absolute;

  top: 0;
  bottom: 0;
  left: 0;

  width: 4px;

  background: transparent;

  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.menu-list a:hover {
  color: #f5d98d;
  background: rgba(216, 173, 77, 0.08);
  padding-left: 1.45rem;
}

.menu-list > .menu-item > a:hover::before {
  background: #d8ad4d;
  box-shadow:
    2px 0 10px rgba(216, 173, 77, 0.32);
}

.menu-list a[aria-current="page"] {
  color: #1d160d;

  background:
    linear-gradient(
      90deg,
      #fbd382 0%,
      #d6a45a 65%,
      #b48849 100%
    );

  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28);
}

.menu-list > .menu-item > a[aria-current="page"]::before {
  background: #f0d382;
  box-shadow:
    2px 0 8px rgba(216, 173, 77, 0.38);
}

.submenu {
  padding: 0.35rem 0 0.5rem;

  background:
    linear-gradient(
      180deg,
      #191714 0%,
      #151310 100%
    );
}

.submenu li + li {
  margin-top: 0.1rem;
}

.submenu a {
  padding:
    0.62rem
    1rem
    0.62rem
    2rem;

  font-size: 0.92rem;
  font-weight: 400;

  color: #d8c9b5;
}

.submenu a::before {
  content: "";
  position: absolute;

  top: 50%;
  left: 1.25rem;

  width: 5px;
  height: 5px;

  border-radius: 50%;
  background: #9d793a;

  transform: translateY(-50%);
}

.submenu a:hover {
  color: #f4d58b;
  padding-left: 2.2rem;
}

.submenu a[aria-current="page"] {
  color: #f6e7bb;
  background: rgba(216, 173, 77, 0.12);
}

.submenu a[aria-current="page"]::before {
  background: #e0bd69;
  box-shadow:
    0 0 8px rgba(224, 189, 105, 0.65);
}

/* Lábléc */

.site-footer {
  padding-block: 2rem;

  color: #ddd1c0;
  background: #12110f;
  border-top: 1px solid #3d3932;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer p {
  margin: 0.35rem 0 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-contact a {
  color: inherit;
}

/* Tablet és mobil */


@media (max-width: 800px) {
  .top-bar-inner {
    align-items: flex-start;
    flex-direction: column;

    padding-block: 0.65rem;
  }

  .header-contact {
    justify-content: flex-start;
  }

  .branding-inner {
    min-height: 120px;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .main-navigation {
    display: none;
    margin-top: 0.5rem;
  }

  .main-navigation.is-open {
    display: block;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;

    min-height: 52px;

    text-align: center;
    color: #2a2115;

    background:
      linear-gradient(
        180deg,
        #e0c98f,
        #cfb574
      );

    border: 1px solid #e9d8ad;
  }

  .menu-toggle-icon {

    margin: 0;
  }
}

@media (max-width: 560px) {
  .page-layout {
    padding-block: 2rem;
  }

  .content-card {
    padding: 1.25rem;
    border-radius: 5px;
  }

  .content-card h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    line-height: 1.15;
  }
	
  .site-container {
    width: min(
      calc(100% - 1rem),
      var(--content-width)
    );
  }

  .branding-inner {
    min-height: 105px;
  }

  .content-card {
    min-height: 0;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-contact {
    align-items: flex-start;
  }
}
/* Képes nyelvválasztó */

.language-list a {
  gap: 0.45rem;
}

.language-list img {
  width: 28px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18);
}

.language-list span {
  font-size: 0.82rem;
  font-weight: 700;
}

/* Felső elérhetőségek ikonokkal */

.header-contact a,
.header-address {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.header-contact img,
.header-address img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Új hero fejléc */

.branding {
  position: relative;
  overflow: hidden;
  background:
  url("/assets/images/branding/hero-bg.png")
  center center / cover
  no-repeat;
}
.branding,
.branding-inner {
  min-height: 295px;
}

.branding-inner {
  position: relative;
  z-index: 2;
}



.brand-copy {
  position: relative;
  z-index: 3;
 
   width: min(66%, 760px);
  padding-block: 1.8rem;
  margin-top: 2rem;
}

.site-name {
  display: block;
  white-space: nowrap;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(2.25rem, 3.6vw, 3.9rem);
  line-height: 1.05;

  color: #181510;
}

.logo-decoration {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;

  width: min(100%, 570px);
  margin-block: 0.75rem 0.55rem;
}

.logo-decoration span {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #b68a34
  );
}

.logo-decoration span:last-child {
  background: linear-gradient(
    90deg,
    #b68a34,
    transparent
  );
}

.logo-decoration img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.hero-compass {
  position: absolute;
  z-index: 2;

  right: 2.5rem;
  bottom: -10px;

  width: min(30vw, 410px);
  height: auto;

  filter:
    drop-shadow(0 18px 18px rgba(0, 0, 0, 0.24));
}



/* Mobil fejléc */

@media (max-width: 900px) {
  .header-contact {
    gap: 0.65rem 1rem;
  }

  .header-address {
    display: none;
  }

  .branding,
  .branding-inner {
    min-height: 250px;
  }

  .brand-copy {
    width: 68%;
  }

  .hero-compass {
    right: -45px;
    width: min(48vw, 430px);
  }
}

@media (max-width: 650px) {
  .top-bar-inner {
    gap: 0.75rem;
    padding-block: 0.65rem;
  }

  .language-list {
    justify-content: flex-start;
  }

  .language-list a {
    padding: 0.25rem 0.35rem;
  }

  .language-list a span {
    display: none;
  }

  .language-list img {
    width: 30px;
    height: 20px;
  }

  .header-contact {
    width: 100%;
    justify-content: flex-start;
    gap: 0.55rem 1rem;

    font-size: 0.88rem;
  }

  .header-address {
    display: none;
  }

  .branding,
  .branding-inner {
    min-height: 205px;
  }

  .branding {
    background-position: 44% center;
  }

  .branding-inner {
    display: block;
  }

  .brand-copy {
    width: 100%;
	padding-block:0;
	margin-top: 1rem;
    /*padding: 3.2rem 0.5rem 0;*/

    text-align: center;
  }

  .site-name {
    width: 100%;
    max-width: none;

    white-space: normal;

    font-size: clamp(2rem, 8.6vw, 2.75rem);
    line-height: 1.08;
    text-align: center;
  }

  .logo-decoration {
    width: min(86%, 420px);
    margin: 0.4rem auto 0.55rem;
  }

  .logo-decoration img {
    width: 34px;
    height: 34px;
  }

  .site-description {
    position: relative;
    z-index: 4;

    width: min(88%, 420px);
    max-width: none;
    margin-inline: auto;

    font-size: clamp(0.72rem, 2.7vw, 0.88rem);
    line-height: 1.45;
    letter-spacing: 0.16em;
    text-align: center;
  }

  .hero-compass {
    right: -38px;
    bottom: -20px;

    width: 220px;
  }
  .page-layout {
	  padding-block: 1rem 3rem;
  }
}

@media (max-width: 420px) {
  .header-contact {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;

    font-size: 0.82rem;
  }

  .branding,
  .branding-inner {
    min-height: 205px;
  }

  .brand-copy {
    padding-top: 1rem;
  }

  .site-name {
    font-size: clamp(1.38rem, 9vw, 1.68rem);
  }

  .logo-decoration {
    width: 84%;
    margin-top: 0.9rem;
  }

  .site-description {
    width: 82%;

    font-size: 0.7rem;
    letter-spacing: 0.13em;
  }

  .hero-compass {
    right: -45px;
    bottom: -15px;

    width: 195px;
  }
}

/* Szolgáltatási oldal: kép + szöveg */

.service-intro {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    var(--service-image-width);

  align-items: start;
  gap: var(--service-layout-gap);
}

.service-text {
  grid-column: 1;
  min-width: 0;
}

.service-image {
  grid-column: 2;
  grid-row: 1;

  width: 100%;
  margin: 0;

  overflow: hidden;

  border: 1px solid rgba(181, 121, 36, 0.42);
  border-radius: var(--service-image-radius);

  background: #e9ddc6;

  box-shadow:
    0 14px 28px rgba(38, 28, 16, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.service-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 900;
  object-fit: cover;
}

.service-list {
  margin: 0;
  padding: 0;

  list-style: none;
}

.service-list li {
  position: relative;

  margin: 0;
  padding:
    0.72rem
    0
    0.72rem
    1.45rem;

  border-bottom: 1px solid rgba(181, 121, 36, 0.15);
}

.service-list li:first-child {
  padding-top: 0.15rem;
}

.service-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.service-list li::before {
  content: "";
  position: absolute;

  top: 1.35rem;
  left: 0.15rem;

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #b57924;

  box-shadow:
    0 0 0 3px rgba(181, 121, 36, 0.11);
}

.service-list li:first-child::before {
  top: 0.78rem;
}

@media (max-width: 760px) {
  .service-intro {
    display: block;
    width: 100%;
  }

  .service-image:not(.contact-map) {
    display: none;
  }

  .service-text {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .contact-map {
    display: block;
    width: min(100%, 340px);
    margin: 0 auto 1.5rem;
  }

  .contact-map a,
  .contact-map img {
    display: block;
    width: 100%;
  }
}

.reference-table {
  width: 100%;
  border-collapse: collapse;
}

.reference-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(181, 121, 36, 0.18);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.reference-table td:first-child {
  width: 48%;
  color: #5f3c16;
}

.reference-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 560px) {
  .reference-table,
  .reference-table tbody,
  .reference-table tr,
  .reference-table td {
    display: block;
    width: 100%;
  }

  .reference-table tr {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(181, 121, 36, 0.18);
  }

  .reference-table td {
    padding: 0.15rem 0;
    border: 0;
  }

  .reference-table td:first-child {
    width: 100%;
  }
}