/*
Theme Name: Croissanterie 333
Theme URI: https://croissanterie333.ch
Author: Croissanterie 333
Description: Moderne, gemütliche Croissanterie in der Schweiz.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: croissanterie333
*/

/* ==========================================
   1. FARBY A ZÁKLADNÉ NASTAVENIA
========================================== */

:root {
  --brown: #2b1c13;
  --brown-dark: #21140e;
  --brown-light: #493024;
  --ink: #34291f;
  --cream: #fff9f0;
  --cream-dark: #f0e6d9;
  --gold: #b98d55;
  --gold-light: #e2b87d;
  --line: #e9dfd2;
  --white: #ffffff;
  --muted: #746456;
  --radius: 8px;
  --container: 1220px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

p {
  margin-top: 0;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   2. HLAVIČKA A LOGO
========================================== */

.head {
  background: var(--brown-dark);
  color: #fbe8cc;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 3px 18px rgba(0,0,0,0.12);
}

.admin-bar .head {
  top: 32px;
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 86px;
}

/* Logo a názov */

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  color: #fbe8cc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.1;
  white-space: nowrap;
}

.brand:hover {
  color: var(--gold-light);
}

.brand img {
  display: block;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 50%;
}

/* CROISSANTERIE a 333 v jednom riadku */

.brand span {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  line-height: 1.1;
  white-space: nowrap;
}

.brand span b {
  display: inline-block;
  font-family: inherit;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  padding: 0;
  position: static;
  vertical-align: middle;
}

/* ==========================================
   3. NAVIGAČNÉ MENU
========================================== */

.nav {
  margin-left: auto;
}

.nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav li {
  margin: 0;
  padding: 0;
}

.nav a {
  display: block;
  padding: 12px 0;
  color: #f4e5d2;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.nav a:hover,
.nav .current-menu-item > a,
.nav .current_page_item > a {
  color: var(--gold-light);
}

.menubtn {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: #fff;
  padding: 10px 15px;
  font-size: 15px;
  line-height: 1.2;
}

.menubtn:hover {
  background: var(--gold);
  color: var(--brown-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

/* ==========================================
   4. ÚVODNÝ BANNER
========================================== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(0, 46%);
  align-items: stretch;
  min-height: 520px;
  background: #24160f;
  color: #fff5e4;
}

.hero-pic {
  min-width: 0;
  min-height: 520px;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 45px clamp(28px, 5vw, 75px);
}

.eyebrow {
  color: #d7ac73;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 650px;
  margin: 20px 0;
  color: #fff5e4;
  font-size: clamp(32px, 3.1vw, 50px);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.025em;
  overflow-wrap: normal;
}

.hero-copy p {
  max-width: 520px;
  margin: 0 0 12px;
  color: #ead9c5;
  font-size: 16px;
  line-height: 1.75;
}

.hero-note {
  color: #e0c9a9;
  font-size: 12px;
  line-height: 1.6;
}

/* ==========================================
   5. TLAČIDLÁ
========================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 18px;
  padding: 12px 24px;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--brown-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.button:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--brown-dark);
  transform: translateY(-2px);
}

/* ==========================================
   6. HLAVNÉ SEKCIE
========================================== */

.section {
  padding: 75px 0;
}

.section-title {
  max-width: 800px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-title h2 {
  margin: 0 0 14px;
}

.section-title p {
  color: var(--muted);
  font-size: 16px;
}

.soft {
  background: var(--cream-dark);
}

.dark {
  background: var(--brown);
  color: #f7e7cf;
}

.dark h2,
.dark h3 {
  color: #fff1da;
}

.dark p {
  color: #dfceb9;
}

/* ==========================================
   7. KARTY SORTIMENTU
========================================== */

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(43,28,19,0.09);
}

.card img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--brown);
}

.card p {
  margin-bottom: 12px;
  color: #76695a;
}

/* ==========================================
   8. SEKCIE S FOTKOU A TEXTOM
========================================== */

.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.two img {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: var(--radius);
}

.two h2 {
  margin: 0 0 18px;
}

.two p {
  line-height: 1.8;
}

/* ==========================================
   9. PRODUKTY A CENY
========================================== */

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

.prod {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.prod:hover {
  box-shadow: 0 8px 24px rgba(43,28,19,0.08);
}

.prod img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.prod-content {
  padding: 20px;
}

.prod-content h3 {
  margin: 0 0 10px;
}

.price {
  display: inline-block;
  color: #885b30;
  font-size: 18px;
  font-weight: 700;
}

.tag {
  display: inline-block;
  padding: 5px 11px;
  background: #f4e5d2;
  border-radius: 3px;
  color: var(--brown);
  font-size: 12px;
  font-weight: 600;
}

.category-title {
  margin: 42px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* ==========================================
   10. GALÉRIA
========================================== */

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

.gallery img {
  display: block;
  width: 100%;
  height: 310px;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery a img {
  transition: transform 0.25s ease;
}

.gallery a:hover img {
  transform: scale(1.025);
}

/* ==========================================
   11. VNÚTORNÉ STRÁNKY
========================================== */

.page-content {
  width: 100%;
  max-width: 1000px;
  min-height: 45vh;
  margin: 0 auto;
  padding: 65px 24px;
}

.page-content h1 {
  margin: 0 0 24px;
  color: var(--brown);
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.page-content p {
  line-height: 1.8;
}

.page-content a:not(.button) {
  color: #8d602e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================
   12. PÄTIČKA
========================================== */

.foot {
  background: #1f140e;
  color: #eddcc6;
  padding: 48px 0 22px;
}

.foot-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px;
}

.foot h2,
.foot h3 {
  color: #f4dfbd;
}

.foot a {
  color: #e0bb82;
}

.foot a:hover {
  color: #fff1d8;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.foot small {
  color: #c4ac91;
  font-size: 12px;
}

/* ==========================================
   13. OZNAMY A PRÍSTUPNOSŤ
========================================== */

.notice {
  color: #776b5d;
  font-size: 12px;
  line-height: 1.6;
}

.dark .notice {
  color: #d3bc9e;
}

.skip {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 999;
  padding: 10px 14px;
  background: #fff;
  color: #222;
}

.skip:focus {
  top: 8px;
}

.wp-block-image img {
  height: auto;
}

/* ==========================================
   14. TABLETY A MENŠIE NOTEBOOKY
========================================== */

@media (max-width: 1100px) {

  .head-inner {
    gap: 16px;
  }

  .brand {
    font-size: 17px;
    gap: 10px;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .nav ul {
    gap: 12px;
  }

  .nav a {
    font-size: 12px;
  }

  .hero-copy {
    padding: 35px 38px;
  }

  .hero-copy h1 {
    font-size: clamp(31px, 3.4vw, 43px);
  }

  .card img {
    height: 245px;
  }

}

/* ==========================================
   15. MOBILNÉ MENU A TABLETY
========================================== */

@media (max-width: 900px) {

  .head-inner {
    min-height: 76px;
  }

  .menubtn {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    margin: 0;
    padding: 12px 24px 22px;
    background: var(--brown-dark);
    box-shadow: 0 10px 20px rgba(0,0,0,0.18);
  }

  .nav.open {
    display: block;
  }

  .nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav a {
    display: block;
    padding: 13px 6px;
    font-size: 15px;
  }

  .hero {
    grid-template-columns: 52% 48%;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 3.8vw, 39px);
  }

  .cards,
  .product-grid {
    gap: 16px;
  }

  .card img {
    height: 215px;
  }

}

/* ==========================================
   16. MOBILY
========================================== */

@media (max-width: 760px) {

  .wrap {
    padding: 0 18px;
  }

  .head-inner {
    min-height: 70px;
    gap: 10px;
  }

  .brand {
    gap: 9px;
    font-size: clamp(12px, 3.5vw, 17px);
    letter-spacing: 0;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand span {
    gap: 5px;
  }

  .menubtn {
    padding: 9px 11px;
    font-size: 14px;
  }

  /* Banner: text a fotografia pod sebou */

  .hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .hero-copy {
    order: 1;
    padding: 38px 7% 44px;
  }

  .hero-pic {
    order: 2;
    min-height: 350px;
    background-position: center 35%;
  }

  .hero-copy h1 {
    max-width: 560px;
    margin: 15px 0;
    font-size: clamp(29px, 7vw, 40px);
    line-height: 1.15;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .eyebrow {
    font-size: 10px;
  }

  .button {
    margin-top: 14px;
    padding: 12px 20px;
  }

  .section {
    padding: 52px 0;
  }

  .section-title {
    margin-bottom: 28px;
  }

  .cards,
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card img {
    height: 265px;
  }

  .two {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .two img {
    height: 320px;
  }

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

  .gallery img {
    height: 220px;
  }

  .foot-inner {
    grid-template-columns: 1fr;
  }

  .page-content {
    padding: 45px 20px;
  }

}

/* ==========================================
   17. MALÉ MOBILY
========================================== */

@media (max-width: 420px) {

  .brand {
    font-size: 12px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand span {
    gap: 4px;
  }

  .menubtn {
    padding: 8px 9px;
    font-size: 13px;
  }

  .hero-copy {
    padding: 30px 20px 36px;
  }

  .hero-copy h1 {
    font-size: 29px;
  }

  .hero-pic {
    min-height: 280px;
  }

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

  .gallery img {
    height: 270px;
  }

}

/* ==========================================
   18. WORDPRESS ADMIN LIŠTA
========================================== */

@media (max-width: 782px) {

  .admin-bar .head {
    top: 46px;
  }

}

@media (max-width: 600px) {

  .admin-bar .head {
    top: 0;
  }

}

/* ==========================================
   19. OBMEDZENIE ANIMÁCIÍ
========================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;