﻿/*
Theme Name: Calunnictvo Humenne
Theme URI: https://example.local/calunnictvo-humenne
Author: Custom build
Description: Jednoducha WordPress tema pre miestne calunnictvo s editovatelnymi galeriami, kontaktom a rolou spravcu obsahu.
Version: 1.3.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: calunnictvo-humenne
*/

/* Main site styles */
:root {
  --color-ink: #18231f;
  --color-muted: #61706a;
  --color-page: #f7f9f4;
  --color-surface: #ffffff;
  --color-forest: #24483d;
  --color-forest-dark: #152d27;
  --color-clay: #a95635;
  --color-gold: #c7a35b;
  --color-border: #dfe6dc;
  --shadow-soft: 0 16px 42px rgba(24, 35, 31, 0.12);
  --radius-card: 8px;
  --wrap: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-ink);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

body.has-lightbox {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.section-wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: min(1200px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--color-forest-dark);
  font-weight: 800;
  text-decoration: none;
}

.site-brand__mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--color-forest);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--color-muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  background: #edf3ec;
  color: var(--color-forest-dark);
}

.site-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  padding: 10px;
}

.site-nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--color-ink);
}

.home-hero {
  padding: 54px 0 34px;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 36px;
  align-items: center;
}

.home-hero__copy {
  display: grid;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--color-clay);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

h1 {
  max-width: 760px;
  font-size: 62px;
}

h2 {
  font-size: 44px;
}

h3 {
  font-size: 25px;
}

.home-hero__copy p:not(.eyebrow),
.section-heading p,
.page-hero p,
.section-cta p {
  max-width: 660px;
  margin: 0;
  color: var(--color-muted);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--color-forest);
  color: #fff;
}

.button--ghost {
  background: #fff;
  border-color: var(--color-border);
  color: var(--color-forest-dark);
}

.button--text {
  justify-content: flex-start;
  padding-inline: 0;
  color: var(--color-clay);
}

.button--text::after {
  content: "\2192";
  font-size: 18px;
}

.home-hero__image {
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  background: var(--color-surface);
}

.home-hero__image img,
.home-hero__image .image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.home-services,
.gallery-section,
.contact-section,
.plain-page {
  padding: 54px 0;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  grid-column: span 2;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: 0 10px 28px rgba(24, 35, 31, 0.08);
}

.service-card:nth-last-child(2) {
  grid-column: 2 / span 2;
}

.service-card:last-child {
  grid-column: 4 / span 2;
}

.service-card__media {
  height: 250px;
  background: #edf3ec;
}

.service-card__media img,
.service-card__media .image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 28px;
}

.service-card__body p {
  margin: 0;
  color: var(--color-muted);
}

.image-placeholder {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 24px;
  background: #e8efe9;
  color: var(--color-forest);
  text-align: center;
  font-weight: 800;
}

.image-placeholder span {
  max-width: 18ch;
}

.page-hero {
  padding: 74px 0 52px;
  background: var(--color-forest-dark);
  color: #fff;
}

.page-hero__inner {
  display: grid;
  gap: 16px;
}

.page-hero .eyebrow {
  color: var(--color-gold);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gallery-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.gallery-card__button {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-card p {
  margin: 0;
  padding: 16px;
  color: var(--color-muted);
  font-size: 15px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 240px;
  border: 1px dashed #b9c7be;
  border-radius: var(--radius-card);
  background: #fff;
  color: var(--color-muted);
  text-align: center;
}

.empty-state p {
  max-width: 520px;
  margin: 0;
  padding: 24px;
}

.section-cta {
  padding: 28px 0 70px;
}

.section-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius-card);
  background: #ffffff;
  border: 1px solid var(--color-border);
}

.section-cta__inner h2 {
  font-size: 30px;
}

.contact-section {
  background: #fff;
  border-top: 1px solid var(--color-border);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: 22px;
  align-items: stretch;
}

.contact-details {
  display: grid;
  gap: 14px;
}

.contact-card {
  display: grid;
  gap: 7px;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-page);
}

.contact-card span {
  color: var(--color-clay);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-card h3 {
  font-size: 23px;
}

.contact-card a {
  color: var(--color-forest);
  font-weight: 800;
}

.map-frame {
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #edf3ec;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.site-footer {
  padding: 26px 0;
  background: var(--color-forest-dark);
  color: rgba(255, 255, 255, 0.82);
}

.site-footer__inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer p {
  margin: 0;
}

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

.plain-page__content {
  padding: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fff;
}

.plain-page__content h1 {
  margin-bottom: 18px;
  font-size: 42px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(13, 20, 18, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__image {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  border-radius: var(--radius-card);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.35);
  object-fit: contain;
}

.lightbox__caption {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: min(720px, calc(100% - 40px));
  margin: 0;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1020px) {
  .home-hero__grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .service-card,
  .service-card:nth-last-child(2),
  .service-card:last-child {
    grid-column: auto;
  }

  .service-card__media {
    height: 260px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  body {
    font-size: 16px;
  }

  .section-wrap {
    width: min(100% - 28px, var(--wrap));
  }

  .site-header__inner {
    min-height: 66px;
  }

  .site-nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: center;
  }

  .home-hero {
    padding-top: 34px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

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

  .service-card__body {
    padding: 22px;
  }

  .section-cta__inner,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 340px;
  }
}

@media (max-width: 460px) {
  .site-brand {
    gap: 9px;
    font-size: 15px;
  }

  .site-brand__mark {
    width: 36px;
    height: 36px;
  }

  .home-hero__actions,
  .button {
    width: 100%;
  }
}

