/* EL POMIAR — design system inspired by zlotaraczka24.com */
:root {
  --color-navy: #1a3d6d;
  --color-navy-mid: #355f87;
  --color-navy-soft: #4a7399;
  --color-accent: #ea603f;
  --color-accent-hover: #d45232;
  --color-text: #2e3a4a;
  --color-text-muted: #5c6b7a;
  --color-border: #e2e6eb;
  --color-bg: #ffffff;
  --color-bg-soft: #f9f9fb;
  --color-bg-tint: #eef2f7;
  --font: "Poppins", system-ui, -apple-system, sans-serif;
  --container: 1120px;
  --radius: 8px;
  --radius-pill: 999px;
  --shadow: 0 8px 28px rgba(26, 61, 109, 0.08);
  --header-h: 76px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.nav-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

/* Sticky breaks when body gets overflow/position lock — keep header in viewport */
body.nav-open .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

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

a {
  color: var(--color-navy-mid);
  text-decoration: none;
  transition: color var(--transition);
}

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

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-navy);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

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

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 42rem;
}

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

.text-center .lead {
  margin-inline: auto;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  max-width: 100%;
  transition: background var(--transition), color var(--transition), border-color var(--transition),
    box-shadow var(--transition);
}

.btn-primary {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
}

.btn-primary:hover {
  background: var(--color-navy-mid);
  border-color: var(--color-navy-mid);
  color: #fff;
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--color-navy);
  color: #fff;
}

.btn-outline-accent {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline-accent:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--color-navy);
  border-color: #fff;
}

.btn-light:hover {
  background: var(--color-bg-soft);
  color: var(--color-navy);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  /* no backdrop-filter/transform here — they create a containing block
     and break position:fixed mobile nav (horizontal overflow) */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  width: 100%;
  max-width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-navy);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  flex-shrink: 0;
}

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

.logo-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.logo-text span {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-navy);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  position: relative;
}

.nav a:hover,
.nav a.is-active {
  color: var(--color-navy);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.header-cta {
  flex-shrink: 0;
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(105deg, #ffffff 0%, #ffffff 48%, var(--color-bg-tint) 48%, var(--color-bg-tint) 100%);
  padding: 3.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  position: relative;
  padding-left: 1.15rem;
}

.hero-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 4px;
  background: var(--color-accent);
  border-radius: 4px;
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-navy-mid);
  margin-bottom: 1rem;
}

.hero-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 320px;
  background: var(--color-bg-tint);
  box-shadow: var(--shadow);
}

.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.hero-media img,
.hero-media .placeholder-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.placeholder-img {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #d5e0ec 0%, #b8c9db 50%, #9bb0c8 100%);
  color: var(--color-navy);
  font-weight: 600;
  text-align: center;
  padding: 2rem;
  min-height: 240px;
}

.page-hero {
  background: linear-gradient(135deg, var(--color-bg-soft) 0%, var(--color-bg-tint) 100%);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

.page-hero .hero-copy {
  max-width: 46rem;
}

/* —— Sections —— */
.section {
  padding: 4rem 0;
}

.section[id] {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

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

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

.section-navy {
  background: var(--color-navy);
  color: #fff;
}

.section-navy h2,
.section-navy h3 {
  color: #fff;
}

.section-navy .lead,
.section-navy p {
  color: rgba(255, 255, 255, 0.88);
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head.centered {
  text-align: center;
}

.section-head.centered .lead {
  margin-inline: auto;
}

/* —— Cards / grids —— */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem 1.4rem;
  height: 100%;
  box-shadow: 0 2px 10px rgba(26, 61, 109, 0.04);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-bg-tint);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p:last-child {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.card-warn {
  border-left: 4px solid var(--color-accent);
}

.card-warn h3 {
  color: var(--color-accent);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 100%;
}

.feature-row > * {
  min-width: 0;
  max-width: 100%;
}

.feature-row.reverse .feature-media {
  order: 2;
}

.feature-media picture {
  display: block;
  width: 100%;
}

.feature-media .placeholder-img,
.feature-media img {
  border-radius: 14px;
  box-shadow: var(--shadow);
  min-height: 280px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--color-accent);
}

/* —— Pricing —— */
.price-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: var(--shadow);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.price-table th,
.price-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.price-table th {
  background: var(--color-navy);
  color: #fff;
  font-weight: 600;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table tr:nth-child(even) td {
  background: var(--color-bg-soft);
}

.price-table .price {
  font-weight: 700;
  color: var(--color-navy);
  text-align: right;
  white-space: nowrap;
}

.price-table th:last-child,
.price-table .price {
  text-align: right;
}

.price-muted {
  color: var(--color-text-muted);
  font-weight: 600;
}

/* —— Reviews —— */
.review-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}

.stars {
  color: #f4b400;
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.review-card blockquote {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  color: var(--color-text);
}

.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.review-meta strong {
  color: var(--color-navy);
}

.reviews-note {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* —— Area —— */
.area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.area-pills li {
  background: var(--color-bg-tint);
  color: var(--color-navy);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.area-block {
  margin-bottom: 2rem;
}

.area-block:last-child {
  margin-bottom: 0;
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.contact-list li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list strong {
  display: block;
  color: var(--color-navy);
  margin-bottom: 0.2rem;
}

.map-embed {
  border: 0;
  border-radius: 14px;
  width: 100%;
  min-height: 360px;
  box-shadow: var(--shadow);
  background: var(--color-bg-tint);
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-photo {
  display: block;
  width: 100%;
}

.contact-photo img {
  width: 100%;
  height: auto;
  min-height: 220px;
  max-height: 320px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: block;
}

/* —— Gallery / docs —— */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-grid-teaser {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-bg-tint);
  box-shadow: var(--shadow);
}

.gallery-item picture,
.gallery-item img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.gallery-note {
  margin-top: 1.75rem;
  text-align: center;
  color: var(--color-text-muted);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.doc-grid-certs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 52rem;
  margin-inline: auto;
  align-items: start;
}

.doc-card {
  margin: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.doc-card a {
  display: block;
}

.doc-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  object-position: top center;
  background: var(--color-bg-soft);
}

.doc-card figcaption {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-navy);
}

/* —— CTA band —— */
.cta-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.cta-band .lead {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
}

.cta-band .btn-group {
  justify-content: center;
}

/* —— FAQ —— */
.faq-list {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.faq-item p:last-child {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

/* —— Footer —— */
.site-footer {
  background: #132a4a;
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

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

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

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

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

.footer-contact p {
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

.footer-contact a {
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.footer-bottom button:hover {
  color: #fff;
}

/* —— Cookie banner —— */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 640px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(19, 42, 74, 0.2);
  padding: 1.25rem 1.35rem;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner h2 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.cookie-banner p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* —— Prose (privacy) —— */
.prose {
  max-width: 44rem;
}

.prose h2 {
  margin-top: 2rem;
}

.prose h3 {
  margin-top: 1.5rem;
}

/* —— Utilities —— */
.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.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;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  :root {
    --header-h: 72px;
  }

  .hero {
    background: var(--color-bg-soft);
  }

  .hero-grid,
  .feature-row,
  .feature-row.reverse,
  .contact-grid,
  .grid-3,
  .footer-grid,
  .gallery-grid,
  .gallery-grid-teaser,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item img {
    height: 180px;
  }

  .doc-card img {
    max-height: 280px;
  }

  .feature-row.reverse .feature-media {
    order: 0;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .header-inner {
    min-height: var(--header-h);
    padding-block: 0.35rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }

  .header-cta {
    display: none !important;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    height: calc(100dvh - var(--header-h));
    margin: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 2rem;
    gap: 0;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, visibility 0.25s ease;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 150;
    box-shadow: none;
  }

  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    box-shadow: -8px 0 28px rgba(26, 61, 109, 0.12);
  }

  .nav a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.05rem;
  }

  .nav a.is-active {
    color: var(--color-navy);
    font-weight: 600;
  }

  .nav a.is-active::after {
    display: none;
  }

  .nav .nav-mobile-cta {
    display: flex;
    margin-top: 1.25rem;
    width: 100%;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

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

@media (min-width: 961px) {
  .nav .nav-mobile-cta {
    display: none;
  }

  .cta-band .lead-single-line {
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3rem 0;
  }

  .hero {
    padding: 2.25rem 0 2.5rem;
  }

  .hero-copy {
    padding-left: 0.9rem;
  }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
