/* Szabó Ponyva — main stylesheet (mobile-first) */

:root {
  --color-navy: #0b1220;
  --color-charcoal: #151d2e;
  --color-surface: #f4f5f7;
  --color-white: #ffffff;
  --color-muted: #64748b;
  --color-text: #1e293b;
  --color-border: #e2e8f0;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-soft: rgba(234, 88, 12, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
  --max: 1120px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (max-width: 959px) {
  body {
    padding-bottom: 5.5rem;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Layout */
.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section--tight {
  padding-block: clamp(2rem, 4vw, 3rem);
}

.section--dark {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-charcoal) 100%);
  color: var(--color-surface);
}

.section--surface {
  background: var(--color-surface);
}

.section__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: inherit;
}

.section__lead {
  font-size: 1.0625rem;
  max-width: 62ch;
  margin: 0;
  color: inherit;
  opacity: 0.88;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  color: var(--color-navy);
}

.logo:hover {
  color: var(--color-navy);
}

.logo__name {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo__tag {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 500;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--color-navy);
  margin-inline: auto;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
}

.nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.nav.is-open {
  max-height: min(70vh, 480px);
  overflow-y: auto;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav__link {
  display: block;
  padding: 0.65rem 0.75rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  background: var(--color-surface);
  color: var(--color-navy);
}

.nav__cta {
  margin-top: 0.5rem;
}

@media (min-width: 960px) {
  .nav {
    position: static;
    max-height: none !important;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 0.15rem;
  }

  .nav__link {
    padding: 0.5rem 0.65rem;
    font-size: 0.9375rem;
  }

  .nav__cta {
    margin-top: 0;
    margin-left: 0.5rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.btn--dark {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn--dark:hover {
  background: #020617;
  color: var(--color-white);
}

.btn--outline {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(2.5rem, 8vw, 4.5rem);
  color: var(--color-white);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: var(--color-navy);
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(11, 18, 32, 0.92) 0%,
    rgba(11, 18, 32, 0.55) 45%,
    rgba(11, 18, 32, 0.35) 100%
  );
}

.hero__content {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.hero__title {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero__sub {
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  max-width: 42ch;
  margin: 0 0 1.5rem;
  opacity: 0.95;
}

.hero__actions {
  margin-bottom: 1.75rem;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-chips li {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

/* Problem / solution */
.problem-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.problem-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--color-muted);
}

.problem-list li {
  margin-bottom: 0.5rem;
}

.solution-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.solution-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.solution-card p {
  margin: 0;
  color: var(--color-muted);
}

/* Service cards */
.service-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-service {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}

.card-service:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-service__media {
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
  overflow: hidden;
}

.card-service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-service__body {
  padding: 1.25rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}

.card-service__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.card-service__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
  flex: 1;
}

.card-service .btn {
  align-self: flex-start;
}

/* Gallery */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-btn:hover {
  border-color: var(--color-navy);
}

.filter-btn.is-active {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.gallery-masonry {
  column-count: 1;
  column-gap: 1rem;
}

@media (min-width: 560px) {
  .gallery-masonry {
    column-count: 2;
  }
}

@media (min-width: 900px) {
  .gallery-masonry {
    column-count: 3;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.gallery-item:hover {
  box-shadow: var(--shadow-md);
}

.gallery-item:focus-visible {
  outline-offset: 4px;
}

.gallery-item__img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
}

.gallery-item__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item__body {
  padding: 0.85rem 1rem 1rem;
}

.gallery-item__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.gallery-item__meta {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__inner {
  max-width: min(100%, 960px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lightbox__figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.lightbox__figure img {
  max-height: min(72vh, 640px);
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  object-fit: contain;
}

.lightbox__caption {
  color: var(--color-surface);
  font-size: 0.9375rem;
}

.lightbox__desc {
  margin: 0.5rem 0 0;
  white-space: pre-line;
  opacity: 0.9;
}

.lightbox__caption strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 1rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox__close {
  right: 1rem;
}

.lightbox__prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .lightbox__prev {
    left: 0.5rem;
  }

  .lightbox__next {
    right: 0.5rem;
  }
}

/* Why us */
.why-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-item {
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
}

.why-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.why-item p {
  margin: 0;
  font-size: 0.9375rem;
  opacity: 0.88;
}

.why-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

/* Process */
.process {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 768px) {
  .process {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
  }
}

.process-step {
  position: relative;
  padding: 1.25rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.process-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.process-step p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* CTA block */
.cta-block {
  background: linear-gradient(135deg, var(--accent) 0%, #c2410c 100%);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}

.cta-block__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
}

.cta-block__text {
  margin: 0 0 1.25rem;
  max-width: 52ch;
  opacity: 0.95;
}

.cta-block .btn--dark {
  background: var(--color-navy);
}

.cta-block .btn--dark:hover {
  background: #000;
}

.cta-block .btn--outline {
  background: #fff;
  border-color: #fff;
}

/* Contact block & form */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
}

.contact-card h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-list a {
  font-weight: 700;
  color: var(--color-navy);
  text-decoration: none;
}

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

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form__row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.form input,
.form textarea,
.form select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-white);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-muted);
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: rgba(248, 250, 252, 0.85);
  padding-block: 2.5rem 6rem;
}

@media (min-width: 960px) {
  .site-footer {
    padding-bottom: 2.5rem;
  }
}

.site-footer a {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
}

/* Sticky mobile call */
.sticky-call {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
  background: rgba(11, 18, 32, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
}

@media (min-width: 960px) {
  .sticky-call {
    display: none;
  }
}

.sticky-call .btn {
  flex: 1;
  padding: 0.85rem 0.75rem;
  font-size: 0.875rem;
}

.sticky-call .btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.sticky-call .btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

/* Content page */
.page-hero {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-charcoal) 100%);
  color: #fff;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.page-hero p {
  margin: 0;
  max-width: 55ch;
  opacity: 0.9;
}

.content-prose {
  max-width: 68ch;
}

.content-prose h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.content-prose p,
.content-prose ul {
  color: var(--color-muted);
}

.two-col {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
