/*
Theme Name: Moje Téma
Author: Patrik
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Manrope:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@600;700&display=swap');

:root {
  --bg: #f6f3ee;
  --bg-soft: #fffdfa;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #20313c;
  --heading: #16252f;
  --muted: #667785;
  --line: rgba(61, 146, 195, 0.14);
  --primary: #3d92c3;
  --primary-deep: #2e749c;
  --primary-soft: #dceef8;
  --accent: #d8c3a4;
  --shadow: 0 24px 80px rgba(22, 37, 47, 0.08);
  --shadow-soft: 0 14px 36px rgba(32, 49, 60, 0.07);
  --max-width: 1180px;
  --content-width: 860px;
  --radius: 24px;
  --radius-sm: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(61, 146, 195, 0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(216, 195, 164, 0.2), transparent 24%),
    linear-gradient(180deg, #f7fbfd 0%, var(--bg) 22%, #f8f4ee 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 72%);
}

a {
  color: var(--primary-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--primary);
}

img {
  max-width: 100%;
}

header,
main,
footer {
  max-width: var(--max-width);
  margin: 0 auto 1.5rem;
  padding: 0 1.25rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding: 1rem 1.4rem;
  position: sticky;
  top: 1rem;
  z-index: 20;
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-soft);
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-branding img {
  max-height: 86px;
  width: auto;
  filter: drop-shadow(0 12px 24px rgba(61, 146, 195, 0.16));
}

.site-branding h1 {
  margin: 0;
  font-family: "Archivo Black", "Arial Black", serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-top: 0;
}

.site-branding a {
  color: var(--heading);
  text-decoration: none;
}

.site-nav {
  margin-left: auto;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  width: 52px;
  height: 52px;
  padding: 0;
  background: rgba(61, 146, 195, 0.08);
  border: 1px solid rgba(61, 146, 195, 0.14);
  border-radius: 16px;
  box-shadow: none;
}

.menu-toggle:hover,
.menu-toggle:focus {
  box-shadow: inset 0 0 0 1px rgba(61, 146, 195, 0.14);
}

.menu-toggle__line {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--heading);
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.is-menu-open .menu-toggle__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .menu-toggle__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

nav .menu,
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

nav a:hover,
nav a:focus {
  background: rgba(61, 146, 195, 0.1);
  color: var(--primary-deep);
  box-shadow: inset 0 0 0 1px rgba(61, 146, 195, 0.12);
  transform: translateY(-1px);
}

main {
  padding-top: 1rem;
  padding-bottom: 2.5rem;
}

.hero {
  min-height: min(78vh, 760px);
  display: grid;
  align-items: end;
  margin: 0 auto 2rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: 36px;
  background-color: #dfeaf0;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero--no-image {
  background:
    linear-gradient(135deg, rgba(22, 37, 47, 0.88), rgba(61, 146, 195, 0.55)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #1b2d38 0%, #355e77 100%);
}

.hero__inner {
  width: min(100%, 760px);
  padding: clamp(1.6rem, 4vw, 3rem);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero__eyebrow {
  margin: 0 0 0.90rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 0.94;
  max-width: 10ch;
}

.hero h1::before {
  display: none;
}

.hero__text {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.92);
}

.hero__text p {
  margin-bottom: 0;
  font-size: 1.08rem;
}

.hero__actions {
  margin-top: 1.5rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 16px 30px rgba(22, 37, 47, 0.22);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero__cta:hover,
.hero__cta:focus {
  color: #fff;
  transform: translateY(-2px);
}

.home-content {
  /*max-width: var(--content-width);*/
  margin: 0 auto;
}

.home-content > :first-child {
  margin-top: 0;
}

article {
  /*max-width: var(--content-width);*/
  margin: 0 auto 2rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

main > h1,
main > h2,
main > p,
main > ul,
main > ol,
main > .wp-block-group,
main > .wp-block-columns,
main > .wp-block-image,
main > .wp-block-cover,
main > .wp-block-gallery,
main > .wp-block-media-text,
main > .wp-block-buttons {
  /*max-width: var(--content-width);*/
  margin-left: auto;
  margin-right: auto;
}

h2,
h3 {
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.45;
  margin-top: 0;
  color: var(--heading);
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
  margin-bottom: 1.2rem;
  max-width: 12ch;
}

.site-branding h1 {
  margin: 0;
  font-family: "Archivo Black", "Arial Black", serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-top: 0;
}

.site-header__title {
  margin: 0;
  font-family: "Archivo Black", "Arial Black", serif;
  /*font-size: clamp(2rem, 3vw, 2.6rem);*/
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-top: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.95rem;
}

h3 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin-bottom: 0.75rem;
}

main > h1:first-child,
main > h2:first-child,
article > h1:first-child,
article > h2:first-child {
  position: relative;
  padding-top: 1.2rem;
}

main > h1:first-child::before,
main > h2:first-child::before,
article > h1:first-child::before,
article > h2:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 88px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

p,
li,
blockquote cite {
  font-size: 1.03rem;
}

p,
ul,
ol,
blockquote,
.wp-block-buttons,
.wp-block-columns,
.wp-block-media-text,
.wp-block-group {
  margin-top: 0;
  margin-bottom: 1.2rem;
}

strong {
  color: var(--heading);
}

ul,
ol {
  padding-left: 1.3rem;
}


blockquote {
  margin-left: 0;
  padding: 1.3rem 1.4rem 1.3rem 1.6rem;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: linear-gradient(90deg, rgba(61, 146, 195, 0.09), rgba(255, 255, 255, 0.68));
  color: var(--heading);
  box-shadow: inset 0 0 0 1px rgba(61, 146, 195, 0.08);
}

blockquote p:last-child {
  margin-bottom: 0;
}

.page-featured-image {
  margin: 1.4rem 0 1.8rem;
}

.page-featured-image img,
.wp-block-image img,
.wp-block-gallery img,
.wp-block-cover,
.wp-block-media-text.is-stacked-on-mobile img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.page-featured-image img,
.wp-block-image img {
  min-height: 300px;
  object-fit: cover;
}

.wp-block-image,
.wp-block-gallery,
.wp-block-cover,
.wp-block-media-text,
.wp-block-group.has-background,
pre {
  overflow: hidden;
  border-radius: var(--radius);
}

.wp-block-group.has-background,
.wp-block-columns.is-layout-flex,
.wp-block-media-text,
table,
pre {
  border: 1px solid rgba(61, 146, 195, 0.12);
  box-shadow: var(--shadow-soft);
}

.wp-block-group.has-background,
.wp-block-columns.is-layout-flex,
.wp-block-media-text {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  padding: clamp(1.2rem, 2vw, 1.7rem);
  border-radius: calc(var(--radius) + 4px);
}

.wp-block-button__link,
button,
input[type="submit"] {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.88rem 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(61, 146, 195, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption) {
  overflow: hidden;
  border-radius: var(--radius);
}

.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before {
  border-radius: inherit;
}

.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 32px rgba(61, 146, 195, 0.28);
  filter: saturate(1.05);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(61, 146, 195, 0.16);
  border-radius: 14px;
  font: inherit;
}

input:focus,
textarea:focus,
select:focus,
a:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible {
  outline: 2px solid rgba(61, 146, 195, 0.28);
  outline-offset: 3px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.78);
}

th,
td {
  padding: 0.95rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(61, 146, 195, 0.1);
}

th {
  color: var(--heading);
  background: rgba(61, 146, 195, 0.07);
}

code,
pre {
  font-family: "Consolas", "Courier New", monospace;
}

pre {
  padding: 1rem 1.1rem;
  background: #eff5f8;
}

hr {
  border: 0;
  border-top: 1px solid rgba(61, 146, 195, 0.14);
  margin: 2.2rem 0;
}

.site-footer {
  padding: 1.4rem 1.4rem 2rem;
  max-width: var(--max-width);
  color: var(--muted);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: 1rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(61, 146, 195, 0.12);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-soft);
}

.site-footer__column {
  min-width: 0;
}

.site-footer__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-deep);
}

.site-footer__title,
.site-footer__heading {
  margin: 0 0 0.85rem;
  color: var(--heading);
}

.site-footer__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.site-footer__heading {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.site-footer__text,
.site-footer__bottom p {
  margin-bottom: 0;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__list li {
  margin: 0 0 0.65rem;
}

.site-footer__list li:last-child {
  margin-bottom: 0;
}

.site-footer__partners {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.75rem;
}

.site-footer__partner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-height: 96px;
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(61, 146, 195, 0.08), rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(61, 146, 195, 0.14);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-footer__partner-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 52px;
  margin-bottom: 0.2rem;
}

.site-footer__partner-logo {
  display: block;
  max-width: 100%;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.site-footer__partner:hover,
.site-footer__partner:focus {
  transform: translateY(-2px);
  border-color: rgba(61, 146, 195, 0.22);
  box-shadow: 0 18px 30px rgba(32, 49, 60, 0.1);
}

.site-footer__partner-name {
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: 1.05rem;
  line-height: 1.05;
  color: var(--heading);
  text-transform: uppercase;
}

.site-footer__partner-tagline {
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--muted);
}

.site-footer__bottom {
  padding: 1rem 0 0;
  text-align: center;
}

.after-gallery-buttons {
  width: 100%;
  max-width: none;
}

.after-gallery-button {
  width: 100%;
  max-width: none;
}

.after-gallery-button .wp-block-button__link,
.after-gallery-buttons .wp-block-button__link {
  display: block;
  width: 100%;
  text-align: center;
}

@media (max-width: 768px) {
  .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
    width: 100%;
  }

  header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    top: 0.5rem;
    padding: 1rem;
  }

  .site-header {
    gap: 0.85rem;
  }

  .site-branding {
    flex: 1 1 auto;
    min-width: 0;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-self: center;
  }

  .site-nav {
    order: 3;
    display: none;
    width: 100%;
    margin-left: 0;
    padding-top: 0.35rem;
  }

  .site-header.is-menu-open .site-nav {
    display: block;
  }

  .site-branding img {
    max-height: 68px;
  }

  .site-branding h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  nav .menu,
  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    width: 100%;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(61, 146, 195, 0.1);
    border-radius: 18px;
  }

  nav a {
    display: block;
    padding: 0.85rem 1rem;
  }

  h1 {
    max-width: none;
  }

  article {
    padding: 1.35rem;
    border-radius: 20px;
  }

  .page-featured-image img,
  .wp-block-image img {
    min-height: 220px;
  }

  .hero {
    min-height: 62vh;
    border-radius: 28px;
    padding: 0.85rem;
  }

  .hero__inner {
    width: 100%;
    padding: 1.4rem;
    border-radius: 22px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  header,
  main,
  footer {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  body {
    line-height: 1.68;
  }

  .hero {
    min-height: 56vh;
  }

  .hero__eyebrow {
    letter-spacing: 0.16em;
  }

  .hero__text p {
    font-size: 1rem;
  }

  .site-footer__partners {
    grid-template-columns: 1fr;
  }


}
