/* ============================================================
   Ép-Bont 70 Kft. — Custom Theme CSS
   Font: Raleway (headings) + Open Sans (body)
   Both support full Hungarian character set (á,é,í,ó,ö,ő,ú,ü,ű)
   ============================================================ */

/* ── Custom Properties ───────────────────────────────────────── */
:root {
  --red:         #C0392B;
  --red-dark:    #922B21;
  --red-light:   #E74C3C;
  --green:       #1E8449;
  --green-dark:  #196F3D;
  --amber:       #D4891A;
  --amber-light: #F0A830;
  --dark:        #1A1A1A;
  --dark-alt:    #2C2C2C;
  --grey:        #5A5A5A;
  --grey-light:  #9A9A9A;
  --light:       #FAF8F4;
  --light-alt:   #F2EDE4;
  --white:       #FFFFFF;
  --border:      #E0D8CC;

  --font-heading: 'Raleway', 'Arial Black', sans-serif;
  --font-body:    'Open Sans', 'Helvetica Neue', Arial, sans-serif;

  --nav-height:  72px;
  --radius:      4px;
  --radius-lg:   8px;
  --shadow:      0 4px 24px rgba(0, 0, 0, 0.10);
  --shadow-lg:   0 8px 40px rgba(0, 0, 0, 0.16);
  --transition:  0.25s ease;
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--dark);
  background: var(--white);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1.25rem; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }

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

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }

/* ── Layout Utilities ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}
.section + .section {
  padding-top: 0;
}

.section--light { background: var(--light); }
.section--dark  { background: var(--dark); color: var(--white); }
.section--red   { background: var(--red);  color: var(--white); }
.section--green { background: var(--green); color: var(--white); }

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

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--red);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--grey);
  max-width: 640px;
  margin: 1rem auto 0;
}

.section--dark .section-header h2,
.section--red  .section-header h2 { color: var(--white); }
.section--dark .section-header h2::after,
.section--red  .section-header h2::after { background: var(--amber-light); }
.section--dark .section-header p,
.section--red  .section-header p { color: rgba(255,255,255,0.75); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--red);
}

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

/* ── Navigation ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}

.nav-logo span.accent { color: var(--red); }
.nav-logo:hover { color: var(--dark); }
.nav-logo img { display: block; height: 66px; width: auto; }

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  align-items: center;
}

.nav-links > li {
  position: relative;
  margin-bottom: 0;
}

.nav-links > li > a {
  display: block;
  padding: 0 1.1rem;
  height: var(--nav-height);
  line-height: var(--nav-height);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark);
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
  border-bottom: 3px solid transparent;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Dropdown */
.nav-links .dropdown {
  position: absolute;
  top: calc(var(--nav-height) - 1px);
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 999;
}

.nav-links .has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li { margin: 0; }

.dropdown li a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.dropdown li a:hover {
  color: var(--red);
  background: var(--light);
  border-left-color: var(--red);
}

/* CTA button in nav */
.nav-links .nav-cta a {
  background: var(--red);
  color: var(--white) !important;
  border-bottom-color: transparent !important;
  border-radius: var(--radius);
  padding: 0 1.25rem;
  margin-left: 0.5rem;
  height: 40px;
  line-height: 40px;
}
.nav-links .nav-cta a:hover {
  background: var(--red-dark) !important;
  color: var(--white) !important;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all 0.3s;
  border-radius: 2px;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  background-color: var(--dark-alt);
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,26,26,0.82) 0%,
    rgba(30,132,73,0.25) 50%,
    rgba(192,57,43,0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-surtitle {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 1.25rem;
  display: block;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-text {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.25rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Stats ───────────────────────────────────────────────────── */
.stats-strip {
  background: var(--dark);
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--amber-light);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ── Services Grid ───────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card-img {
  height: 220px;
  overflow: hidden;
  background: var(--light-alt);
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}
.service-card-body p {
  font-size: 0.9rem;
  color: var(--grey);
  flex: 1;
}
.service-card-body .btn {
  align-self: flex-start;
  margin-top: 1rem;
  font-size: 0.8rem;
  padding: 0.65rem 1.5rem;
}

/* ── Service List (for group pages) ─────────────────────────── */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-list-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.service-list-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 20px rgba(192,57,43,0.12);
}

.service-list-card-body {
  padding: 1.5rem;
  flex: 1;
}
.service-list-card-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.service-list-card-body p  { font-size: 0.9rem; color: var(--grey); margin: 0; }
.service-list-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

/* ── Editorial / About ───────────────────────────────────────── */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.editorial-grid.reverse { direction: rtl; }
.editorial-grid.reverse > * { direction: ltr; }

.editorial-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.editorial-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-body h2 { margin-bottom: 1.25rem; }
.editorial-body p  { color: var(--grey); }

.editorial-highlights {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}
.editorial-highlights li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  color: var(--grey);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.editorial-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ── Testimonials ────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--red);
  opacity: 0.15;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--grey);
  font-style: italic;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--grey-light);
}

/* ── CTA Banner ──────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  padding: 5rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-banner .cta-text {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 2rem;
}
.cta-banner .cta-text p { margin: 0 0 0.75rem; }
.cta-banner .cta-text p:last-child { margin-bottom: 0; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  transition: background var(--transition);
  user-select: none;
}
.faq-question:hover { background: var(--light); }

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--red);
  transition: transform var(--transition);
}

.faq-item.open .faq-question { background: var(--light); }
.faq-item.open .faq-question .faq-icon { transform: rotate(45deg); border-color: var(--red); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: var(--light);
}
.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 600px; }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info { padding: 2.5rem; background: var(--light); border-radius: var(--radius-lg); }
.contact-info h3 { margin-bottom: 1.5rem; }

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--white);
}
.contact-detail-text { font-size: 0.9rem; color: var(--grey); }
.contact-detail-text strong { display: block; color: var(--dark); margin-bottom: 0.15rem; }
.contact-detail-text a { color: var(--red); }

.contact-form { padding: 2.5rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.contact-form h3 { margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb {
  background: var(--light);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--grey);
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: '›'; margin-right: 0.25rem; color: var(--grey-light); }
.breadcrumb a { color: var(--grey); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb li:last-child { color: var(--dark); font-weight: 600; }

/* ── Page Hero (inner pages) ─────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 100%);
  padding: 5rem 0 4rem;
  color: var(--white);
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p  { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 640px; margin: 0; }

/* Service page hero with image */
.page-hero--with-img {
  position: relative;
  background-size: cover;
  background-position: center;
}
.page-hero--with-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.85) 0%, rgba(30,132,73,0.3) 100%);
}
.page-hero--with-img .container { position: relative; z-index: 1; }

/* ── Single Page Content ─────────────────────────────────────── */
.page-content {
  padding: 4rem 0;
}
.page-content-inner {
  max-width: 820px;
}
.page-content h2 { margin-top: 2.5rem; }
.page-content h3 { color: var(--red); margin-top: 2rem; }

/* ── Block: image (standalone, natural size) ─────────────────── */
.block-image {
  margin: 0;
  text-align: center;
}
.block-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}
.block-image figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--grey);
}

/* ── Block: gallery ──────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  background: var(--light);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.55) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

/* ── Lightbox ────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 15, 0.92);
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  margin: 0;
  max-width: min(1100px, calc(100vw - 130px));
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-image {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}
.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-align: center;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 1.7rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.15rem;
}
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
@media (max-width: 767px) {
  .lightbox { padding: 12px; }
  .lightbox-figure { max-width: calc(100vw - 24px); }
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* ── Service inline CTA ──────────────────────────────────────── */
.service-cta-inline {
  background: var(--light);
  border-left: 4px solid var(--red);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.service-cta-inline p {
  flex: 1;
  margin: 0;
  font-weight: 600;
  color: var(--dark);
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .nav-logo {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  display: inline-flex;
}
.footer-logo-badge {
  background: var(--white);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
}
.footer-logo-badge img { height: 60px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 340px; }
.footer-brand .footer-contact { margin-top: 1.5rem; font-size: 0.9rem; }
.footer-brand .footer-contact a { color: var(--amber-light); }
.footer-brand .footer-contact a:hover { color: var(--white); }
.footer-brand .footer-contact p { margin-bottom: 0.4rem; }

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--amber-light); }

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

.footer-legal-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ── Footer credit (DSP / NEUM program attribution) ───────────── */
.footer-credit {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-credit-logos {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.footer-credit-logos img {
  height: 44px;
  width: auto;
  opacity: 0.6;
}
.footer-credit-text {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  margin: 0;
  flex: 1;
  min-width: 180px;
}
.footer-credit-text em { font-style: italic; }

/* ── Map embed ───────────────────────────────────────────────── */
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 2rem;
}
.map-embed iframe { display: block; width: 100%; }

/* ── Legal pages ─────────────────────────────────────────────── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.legal-content h2 { font-size: 1.4rem; margin-top: 2.5rem; color: var(--red); }
.legal-content h3 { font-size: 1.1rem; margin-top: 1.75rem; }

/* ── 404 page ────────────────────────────────────────────────── */
.not-found {
  text-align: center;
  padding: 8rem 1.5rem;
}
.not-found h1 { font-size: 6rem; color: var(--light-alt); margin-bottom: 0; }
.not-found h2 { color: var(--dark); }
.not-found p  { color: var(--grey); max-width: 480px; margin: 0 auto 2rem; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 992px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .editorial-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }

  .nav-logo img { height: 48px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a {
    height: auto;
    line-height: 1;
    padding: 0.75rem 1.5rem;
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  .nav-links > li > a:hover,
  .nav-links > li > a.active { border-bottom-color: transparent; border-left-color: var(--red); }

  .nav-hamburger { display: flex; }

  .dropdown {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--border);
    margin-left: 1.5rem;
    padding: 0;
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }

  .services-grid    { grid-template-columns: 1fr; }
  .service-list     { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr; }
  .footer-brand     { grid-column: auto; }

  .hero { min-height: 80vh; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .section { padding: 3.5rem 0; }
  .editorial-grid.reverse { direction: ltr; }

  .service-cta-inline { flex-direction: column; gap: 1rem; }

  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal-links { justify-content: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item  { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
}
