/* Klarwin Magyarország Kft. — Main Stylesheet */

:root {
  --color-teal: #01afa9;
  --color-teal-dark: #018f8a;
  --color-dark: #383838;
  --color-gray: #808285;
  --color-light: #f1f1f1;
  --color-white: #ffffff;
  --font-main: 'Poppins', Arial, sans-serif;
  --container-width: 1100px;
  --header-height: 150px;
  --section-padding: 80px;
  --section-padding-mobile: 40px;
  --radius: 4px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--color-dark);
  background: var(--color-white);
  font-size: 14px;
  font-weight: 300;
  line-height: 26px;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
}
p, li, td, th, label, input, textarea, select, button {
  font-weight: 300;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===================== UTILITIES ===================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: var(--section-padding) 0;
}
.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-dark);
}
.section-subtitle {
  color: var(--color-gray);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}
.text-teal { color: var(--color-teal); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }

/* ===================== BUTTONS ===================== */
.btn-outline-teal {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--color-teal);
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.btn-outline-teal:hover {
  background: var(--color-teal);
  color: var(--color-white);
}
.btn-teal {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--color-teal);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius);
  border: 2px solid var(--color-teal);
  transition: background var(--transition), color var(--transition);
}
.btn-teal:hover {
  background: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
}

/* ===================== FLASH ===================== */
.flash {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  margin: 1rem auto;
  max-width: var(--container-width);
}
.flash-notice { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-alert  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 110;
  background: var(--color-white);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.09);
  border-bottom-color: #f0f0f0;
}

/* The inner row: logo | nav | right-controls */
.header-inner {
  display: flex;
  align-items: center;
  height: 150px;        /* matches klarwin.com menu-area height */
  padding: 0 50px;
  gap: 0;
  max-width: none;      /* header uses full-width padding, not container */
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  margin-right: 40px;
}
.logo img {
  height: 75px;         /* matches klarwin.com logo height */
  width: auto;
  display: block;
}

/* Main nav — fills the 150px height */
.main-nav { flex: 1; }
.nav-list {
  display: flex;
  align-items: stretch;
  height: 150px;
  gap: 0;
  margin: 0;
  padding: 0;
}
.nav-item {
  position: relative;
}
/* Each <a> occupies the full 150px column height */
.nav-item > a {
  display: flex;
  align-items: center;     /* text vertically centred */
  padding: 0 16px;
  height: 150px;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}
/* Underline sits just below the text baseline */
.nav-item > a::after {
  content: '';
  position: absolute;
  top: calc(50% + 13px);
  left: 16px;
  height: 2px;
  background: var(--color-teal);
  width: 0;
  transition: width 0.3s ease;
}
.nav-item > a:hover,
.nav-item.active > a {
  color: var(--color-teal);
}
.nav-item > a:hover::after,
.nav-item.active > a::after {
  width: calc(100% - 32px);
}

/* Dropdown — teal bg, white text, opacity-only fade (no slide) */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-teal);
  box-shadow: 0 5px 5px rgba(0,0,0,0.06);
  padding: 23px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 10;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
}
.dropdown li a {
  display: block;
  padding: 7px 30px;
  font-size: 14px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.5px;
  transition: opacity 0.2s ease;
}
.dropdown li a:hover { opacity: 0.75; }

/* Right-side controls */
.header-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 40px;
  gap: 0;
}

/* Search icon (with right-border separator) */
.header-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  padding: 0 16px 0 0;
  margin-right: 0;
  background: none;
  border: none;
  border-right: 1px solid #ccc;
  cursor: pointer;
  transition: color 0.2s ease;
}
.header-search-btn:hover { color: var(--color-teal); }

/* Search overlay (full-screen, white, like original) */
.header-search-bar {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.96);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.header-search-bar.open {
  opacity: 1;
  visibility: visible;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 600px;
  padding: 0 2rem;
}
.search-input {
  flex: 1;
  border: none;
  border-bottom: 2px solid var(--color-teal);
  padding: 0.6rem 0;
  font-size: 1.25rem;
  font-family: var(--font-main);
  font-weight: 300;
  outline: none;
  background: transparent;
  color: var(--color-dark);
}
.search-input::placeholder { color: #aaa; }
.search-submit {
  color: var(--color-teal);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.5rem;
}
.search-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--color-gray);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: color 0.2s ease;
}
.search-close:hover { color: var(--color-dark); }

/* Language switcher with flags */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 16px;
}
.lang-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-gray);
  transition: color 0.2s ease;
  border-radius: 2px;
}
.lang-item img {
  border-radius: 1px;
  display: block;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}
.lang-item:hover { color: #000; }
.lang-item.active { color: var(--color-teal); }

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: 16px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transform-origin: center;
  transition: all 0.3s ease;
}
/* Hamburger → X */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero-banner {
  width: 100%;
  background: var(--color-white);
  line-height: 0;
}
.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-intro {
  background: var(--color-white);
  color: var(--color-dark);
  padding: 70px 0 90px;
  text-align: center;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-title span { color: var(--color-teal); }
.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

/* ===================== PAGE CONTENT ===================== */
.page-content {
  padding: var(--section-padding) 0;
}
.page-header {
  background: var(--color-light);
  padding: 3rem 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}
.page-header h1 {
  font-size: 2rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.page-header--image {
  min-height: 280px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding: 4rem 0;
}
.page-header--image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  z-index: 0;
}
.page-header--image h1 {
  color: #fff;
  font-size: 2.4rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
  line-height: 2.1;
  color: #4d4d4d;
}
.prose h2 { font-size: 1.6rem; font-weight: 600; margin: 2.5rem 0 0.75rem; color: var(--color-dark); }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 0.5rem; color: var(--color-dark); }
.prose h4 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.4rem; color: var(--color-dark); }
.prose p  { margin-bottom: 1.2rem; font-size: 1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.75rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4rem; }
.prose a  { color: var(--color-teal); text-decoration: underline; }
.prose strong, .prose b { color: var(--color-dark); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--color-teal);
  padding-left: 1rem;
  color: var(--color-gray);
  margin: 1.5rem 0;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.prose th, .prose td { border: 1px solid #ddd; padding: 0.6rem 0.8rem; text-align: left; }
.prose th { background: var(--color-light); }

/* page-body */
.page-body { background: #fff; }

/* ---- About page: intro two-column ---- */
.about-section {
  padding: var(--section-padding) 0;
}
.about-section-light {
  padding: var(--section-padding) 0;
  background: var(--color-light);
}
.about-section-white {
  padding: var(--section-padding) 0;
  background: var(--color-white);
}
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-intro-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}
.about-intro-text p {
  margin-bottom: 1.1rem;
  color: var(--color-dark);
  line-height: 1.8;
}
.about-intro-text ul {
  margin: 0.5rem 0 1.1rem 0;
  list-style: none;
  padding: 0;
}
.about-intro-text ul li {
  margin-bottom: 0.5rem;
  color: var(--color-dark);
  padding-left: 1.6rem;
  position: relative;
}
.about-intro-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 10px;
  height: 10px;
  background: var(--color-teal);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

/* ---- Mission section ---- */
.about-mission-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.about-mission-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-teal);
  margin-bottom: 1.5rem;
}
.about-mission-text p {
  margin-bottom: 1rem;
  color: var(--color-dark);
  line-height: 1.8;
}

/* ---- Values flip-box grid ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.value-flip {
  height: 260px;
  perspective: 1000px;
}
.value-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.value-flip:hover .value-flip-inner {
  transform: rotateX(180deg);
}
.value-flip-front,
.value-flip-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  gap: 0.75rem;
  text-align: center;
}
.value-flip-front {
  background: var(--color-white);
}
.value-flip-front img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.value-flip-front h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-dark);
  margin: 0;
}
.value-flip-back {
  background: var(--color-teal);
  transform: rotateX(180deg);
}
.value-flip-back h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-white);
  margin: 0;
}
.value-flip-back p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

@media (max-width: 900px) {
  .about-intro-grid { grid-template-columns: 1fr; }
  .about-intro-image { display: none; }
}
@media (max-width: 768px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ===================== BLOG / POSTS ===================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.post-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.post-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-light);
}
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card-body { padding: 1.25rem; }
.post-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--color-teal);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 0.6rem;
}
.post-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--color-gray);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-gray);
}
.post-card-footer a { color: var(--color-teal); font-weight: 600; }
.post-card-footer a:hover { text-decoration: underline; }

/* ===================== PAGE CARD (Rólunk etc.) ===================== */
.page-card-grid {
  display: flex;
  justify-content: center;
}
.page-card {
  width: 340px;
  height: 220px;
  perspective: 1000px;
  text-decoration: none;
  color: inherit;
}
.page-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.page-card:hover .page-card-inner {
  transform: rotateX(180deg);
}
.page-card-front,
.page-card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  gap: 0.75rem;
}
.page-card-front {
  background: var(--color-teal);
}
.page-card-back {
  background: #00504e;
  transform: rotateX(180deg);
}
.page-card-icon {
  font-size: 1.75rem;
  color: rgba(255,255,255,0.55);
}
.page-card-heading {
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
  letter-spacing: 0.02em;
}
.page-card-excerpt {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  margin: 0;
  text-align: center;
}
.page-card-btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-white);
  border: 1px solid var(--color-white);
  padding: 0.45rem 1.1rem;
  margin-top: 5px;
  transition: box-shadow 0.2s ease;
}
.page-card:hover .page-card-btn:hover {
  box-shadow: 0px 7px 7px 0px rgba(0,0,0,0.18);
}

/* Post detail */
.post-detail { padding: var(--section-padding) 0; }
.post-detail-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; text-align: center; }
.post-detail-image img { max-height: 300px; width: auto; max-width: 100%; height: auto; display: inline-block; }
.post-detail-video {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2rem;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.post-detail-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--color-gray);
  font-size: 0.875rem;
}

/* Load more */
.load-more-wrapper { text-align: center; margin-top: 3rem; }

/* ===================== GALLERY ===================== */
.galleries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.gallery-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.gallery-card:hover { transform: translateY(-4px); }
.gallery-card-thumb {
  aspect-ratio: 4/3;
  background: var(--color-light);
  overflow: hidden;
}
.gallery-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card-body { padding: 1rem 1.25rem; }
.gallery-card-title { font-weight: 600; margin-bottom: 0.25rem; }
.gallery-card-desc { font-size: 0.875rem; color: var(--color-gray); }

/* Gallery lightbox grid */
.gallery-images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-image-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--color-light);
}
.gallery-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-image-item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 80vh; object-fit: contain; }
.lightbox-caption { color: var(--color-white); margin-top: 1rem; font-size: 0.9rem; opacity: 0.8; }
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  background: none;
  border: none;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  opacity: 0.7;
  transition: opacity var(--transition), background var(--transition);
}
.lightbox-nav:hover { opacity: 1; background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ===================== FADE IN ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.75);
  padding-top: 3.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-logo {
  margin-bottom: 0.75rem;
  line-height: 0;
}
.footer-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-tagline { font-size: 0.875rem; opacity: 0.7; }
.footer-col h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a { font-size: 0.875rem; opacity: 0.75; transition: opacity var(--transition); }
.footer-col ul li a:hover { opacity: 1; color: var(--color-teal); }
.footer-col p { font-size: 0.875rem; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  font-size: 0.8rem;
  opacity: 0.5;
  text-align: center;
}

/* ===================== ADMIN ===================== */
.admin-body {
  background: #f4f5f7;
  font-family: var(--font-main);
  color: var(--color-dark);
}
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 240px;
  background: var(--color-dark);
  color: rgba(255,255,255,0.85);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-brand {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-white);
}
.admin-brand-link img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}
.admin-brand-label {
  font-size: 0.8rem;
  opacity: 0.6;
  font-weight: 400;
}
.admin-nav { flex: 1; padding: 1rem 0; }
.admin-nav ul { list-style: none; }
.admin-nav li { margin: 0; }
.admin-nav-link {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav-link:hover,
.admin-nav-link.active {
  color: var(--color-white);
  background: rgba(1,175,169,0.12);
  border-left-color: var(--color-teal);
}
.admin-sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
}
.admin-user-name {
  display: block;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}
.btn-logout {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  transition: color var(--transition);
}
.btn-logout:hover { color: var(--color-white); }
.admin-content {
  flex: 1;
  padding: 2rem;
  max-width: calc(100vw - 240px);
  overflow-x: auto;
}

/* Admin page header */
.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.admin-page-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Admin cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-teal);
}
.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--color-gray);
  margin-top: 0.25rem;
}

/* Admin table */
.admin-table-wrapper {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  background: #f8f9fa;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gray);
  border-bottom: 1px solid #e9ecef;
}
.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.875rem;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(1,175,169,0.03); }
.admin-table .actions { white-space: nowrap; }
.admin-table .actions a,
.admin-table .actions button {
  font-size: 0.8rem;
  color: var(--color-teal);
  margin-right: 0.5rem;
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.admin-table .actions .delete-btn { color: #dc3545; }
.admin-table .actions a:hover { text-decoration: underline; }

/* Status badge */
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.status-badge.published { background: #d4edda; color: #155724; }
.status-badge.draft     { background: #fff3cd; color: #856404; }

/* Admin form */
.admin-form-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.form-tabs {
  display: flex;
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 1.5rem;
}
.form-tab {
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}
.form-tab.active { color: var(--color-teal); border-bottom-color: var(--color-teal); }
.form-tab-content { display: none; }
.form-tab-content.active { display: block; }
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-dark);
}
.form-control {
  display: block;
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid #ced4da;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--color-dark);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(1,175,169,0.15);
}
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: none; }
.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--color-teal); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-actions {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
  margin-top: 1.5rem;
}
.btn-primary {
  padding: 0.6rem 1.5rem;
  background: var(--color-teal);
  color: var(--color-white);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--color-teal-dark); }
.btn-secondary {
  padding: 0.6rem 1.25rem;
  background: var(--color-white);
  color: var(--color-dark);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid #ced4da;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-secondary:hover { background: var(--color-light); }
.btn-danger {
  padding: 0.6rem 1.25rem;
  background: #dc3545;
  color: var(--color-white);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-danger:hover { background: #c82333; }

/* Errors */
.field_with_errors input,
.field_with_errors textarea,
.field_with_errors select { border-color: #dc3545; }
.error-messages {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}
.error-messages ul { margin: 0.4rem 0 0 1rem; list-style: disc; }

/* Gallery image upload */
.gallery-upload-area {
  border: 2px dashed #ced4da;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--color-gray);
  font-size: 0.875rem;
  transition: border-color var(--transition);
  cursor: pointer;
}
.gallery-upload-area:hover { border-color: var(--color-teal); }
.gallery-images-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.gallery-image-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: grab;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}
.gallery-image-thumb:hover { border-color: var(--color-teal); }
.gallery-image-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-image-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(220,53,69,0.85);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-image-thumb:hover .gallery-image-delete { opacity: 1; }

/* Menu item tree */
.menu-tree {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}
.menu-item-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  cursor: grab;
  transition: background var(--transition);
}
.menu-item-row:hover { background: var(--color-light); }
.menu-item-handle { color: var(--color-gray); cursor: grab; }
.menu-item-label { flex: 1; font-size: 0.9rem; }
.menu-item-children {
  padding-left: 2rem;
}
.menu-item-group {
  display: block;
}
.menu-subtree {
  padding-left: 1.5rem;
  border-left: 2px solid var(--color-light);
  margin: 0.25rem 0 0.5rem 0.75rem;
}

/* Admin login */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light);
}
.admin-login-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
}
.admin-login-card h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.admin-login-card p.subtitle {
  color: var(--color-gray);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}
.login-logo {
  margin-bottom: 1.5rem;
  line-height: 0;
}
.login-logo img {
  height: 44px;
  width: auto;
}
.login-brand {
  color: var(--color-teal);
  font-weight: 600;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .hamburger { display: flex; }
  .header-inner { height: 80px; padding: 0 20px; }
  .header-search-btn { border-right: none; padding-right: 0; }
  .header-right { margin-left: auto; }
  .logo img { height: 48px; }
  .main-nav { display: none; }
  .main-nav.open {
    display: block;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    z-index: 99;
    overflow-y: auto;
    padding: 1rem 0;
  }
  .main-nav.open .nav-list {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 0;
  }
  .main-nav.open .nav-item { width: 100%; }
  .main-nav.open .nav-item > a {
    height: auto;
    padding: 0.85rem 16px;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
  }
  .main-nav.open .nav-item > a::after { display: none; }
  .main-nav.open .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    padding: 0;
    box-shadow: none;
  }
  .main-nav.open .dropdown li a {
    padding: 0.65rem 16px 0.65rem 32px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .galleries-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-images-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root {
    --section-padding: var(--section-padding-mobile);
  }
  .posts-grid { grid-template-columns: 1fr; }
  .galleries-grid { grid-template-columns: 1fr; }
  .gallery-images-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .admin-wrapper { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .admin-content { max-width: 100%; }
}

/* ===================== CONTACT PAGE ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-teal);
  display: inline-block;
}
.contact-staff { margin-bottom: 2rem; }
.staff-card {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}
.staff-card:last-child { border-bottom: none; }
.staff-name { font-weight: 700; color: var(--color-dark); font-size: 1rem; }
.staff-role { color: var(--color-teal); font-size: 0.875rem; margin: 0.2rem 0 0.4rem; }
.staff-contact { font-size: 0.875rem; line-height: 1.7; }
.staff-contact a { color: #555; text-decoration: none; }
.staff-contact a:hover { color: var(--color-teal); }
.contact-social {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  background: #0077b5;
  color: #fff;
  transition: opacity 0.2s;
}
.social-link:hover { opacity: 0.85; }
.social-link--youtube { background: #ff0000; }
.contact-company {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #555;
}
.contact-company p { margin: 0; }
.contact-associations {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.assoc-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border: 2px solid var(--color-teal);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-teal);
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.assoc-badge:hover {
  background-color: var(--color-teal);
  color: #fff;
}
.contact-form-col { }
.contact-form .form-group { margin-bottom: 1.1rem; }
.contact-form label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--color-dark); }
/* Honeypot anti-spam field — visually removed but still in the DOM for bots to take the bait. */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ===================== COOKIE BANNER ===================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.13);
  border-top: 3px solid var(--color-teal);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 70vh;
  overflow-y: auto;
}
.cookie-banner--visible {
  transform: translateY(0);
}
.cookie-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.75rem var(--container-padding);
  display: flex;
  gap: 2rem;
  align-items: flex-end;
}
.cookie-banner-content {
  flex: 1;
}
.cookie-banner-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}
.cookie-banner-text p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 0.5rem;
}
.cookie-banner-text p:last-child { margin-bottom: 0; }
.cookie-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
  min-width: 160px;
}
.cookie-btn {
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  text-align: center;
}
.cookie-btn--accept {
  background: var(--color-teal);
  color: #fff;
  border-color: var(--color-teal);
}
.cookie-btn--accept:hover { background: var(--color-teal-dark, #018f8a); }
.cookie-btn--decline {
  background: transparent;
  color: var(--color-teal);
  border-color: var(--color-teal);
}
.cookie-btn--decline:hover {
  background: var(--color-teal);
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .cookie-banner-actions {
    flex-direction: row;
    min-width: 0;
  }
  .cookie-btn { flex: 1; }
}
