:root {
  --color-bg: #f7f4ef;
  --color-bg-dark: #1c2420;
  --color-surface: #ffffff;
  --color-text: #2a2f2c;
  --color-muted: #5c6560;
  --color-accent: #8b6f47;
  --color-accent-light: #c4a574;
  --color-border: rgba(42, 47, 44, 0.1);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --shadow-soft: 0 20px 50px rgba(28, 36, 32, 0.12);
  --radius: 14px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-text);
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 244, 239, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.logo .amp {
  color: var(--color-accent);
  font-style: italic;
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--color-text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(28, 36, 32, 0.72), rgba(28, 36, 32, 0.35)),
    url("../Foto/Halkova_Prelouc/6899d0b68975b5_63224022_full.jpg") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-block: 4rem 5rem;
  max-width: 640px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent-light);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 1.25rem;
}

.hero-lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(139, 111, 71, 0.35);
}

/* Sections */
.section {
  padding-block: 5rem;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.section-header h2,
.about-text h2,
.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.section-header p {
  color: var(--color-muted);
  margin: 0;
}

/* About */
.about {
  background: var(--color-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  color: var(--color-muted);
}

.features {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
}

.features li {
  position: relative;
  padding-left: 1.4rem;
  font-weight: 500;
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.about-aside blockquote {
  margin: 0;
  padding: 2rem 2rem 2rem 2.25rem;
  border-left: 3px solid var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--color-text);
  background: var(--color-bg);
  border-radius: var(--radius);
}

/* Locations */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.location-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.location-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  overflow: hidden;
  border: none;
  padding: 0;
  width: 100%;
  background: #e8e4dd;
}

.location-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease, transform 0.5s ease;
}

.location-card__media:hover img {
  transform: scale(1.03);
}

.location-card__media.is-fading img {
  opacity: 0;
}

.location-card__hint {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  pointer-events: none;
}

.location-card__body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.location-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.35rem;
}

.location-card__address {
  color: var(--color-accent);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.location-card__desc {
  color: var(--color-muted);
  margin: 0;
  font-size: 0.98rem;
}

/* Inquiry form */
.inquiry {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.inquiry-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.inquiry-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.inquiry-intro p {
  color: var(--color-muted);
  margin: 0 0 1rem;
}

.inquiry-note {
  font-size: 0.92rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #f3ede4;
  border: 1px solid rgba(139, 111, 71, 0.25);
  color: #5a4a32;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  gap: 1.1rem;
}

.form-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.form-field label span {
  color: var(--color-accent);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.15);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #b54a4a;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #b54a4a;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-status--success {
  color: #2d6a4f;
}

.form-status--error {
  color: #b54a4a;
}

.form-status--pending {
  color: var(--color-muted);
}

/* Contact */
.contact {
  background: var(--color-bg-dark);
  color: #e8ebe9;
}

.contact h2 {
  color: #fff;
}

.contact-intro {
  color: rgba(232, 235, 233, 0.75);
  max-width: 420px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 1rem;
}

.contact-card {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-light);
}

.contact-card p {
  margin: 0;
}

.contact-card a {
  color: #fff;
}

.contact-card a:hover {
  color: var(--color-accent-light);
}

/* Footer */
.site-footer {
  padding: 1.5rem 0 1.75rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}

.site-footer p {
  margin: 0;
}

.site-footer__links {
  margin-top: 0.45rem !important;
  font-size: 0.78rem;
}

.site-footer__links a {
  color: var(--color-accent);
}

.site-footer__stats {
  margin-top: 0.5rem !important;
  font-size: 0.75rem;
  color: rgba(92, 101, 96, 0.75);
}

.site-footer__stats:empty {
  display: none;
}

.site-footer__credit {
  margin-top: 0.65rem !important;
  font-size: 0.78rem;
  color: rgba(92, 101, 96, 0.85);
}

.site-footer__credit strong {
  font-weight: 600;
  color: var(--color-muted);
}

.site-footer__credit a {
  color: var(--color-accent);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 200;
  padding: 1rem 0;
  background: rgba(28, 36, 32, 0.96);
  color: #e8ebe9;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__text {
  flex: 1 1 280px;
  max-width: 640px;
}

.cookie-banner__text p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(232, 235, 233, 0.88);
}

.cookie-banner__title {
  font-weight: 600;
  margin-bottom: 0.35rem !important;
  color: #fff !important;
}

.cookie-banner__text a {
  color: var(--color-accent-light);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner .btn-primary {
  color: #fff;
}

.cookie-banner .btn-ghost {
  color: #e8ebe9;
  border-color: rgba(255, 255, 255, 0.25);
}

.cookie-banner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cookie-dialog {
  width: min(640px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: none;
  border-radius: var(--radius);
}

.cookie-dialog::backdrop {
  background: rgba(20, 24, 22, 0.6);
}

.cookie-dialog__inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
}

.cookie-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.cookie-dialog__header h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.5rem;
}

.cookie-dialog__body {
  padding: 1rem 1.5rem;
  overflow-y: auto;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.cookie-dialog__body p {
  margin: 0 0 0.85rem;
}

.cookie-dialog__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem 1.25rem;
  border-top: 1px solid var(--color-border);
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 0.5rem 0 1rem;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid var(--color-border);
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

.cookie-table th {
  background: var(--color-bg);
  color: var(--color-text);
}

.cookie-table code {
  font-size: 0.8em;
}

/* Gallery modal */
.gallery-modal {
  width: min(1100px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 1.5rem);
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.gallery-modal::backdrop {
  background: rgba(20, 24, 22, 0.75);
  backdrop-filter: blur(4px);
}

.modal-inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 1.5rem);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.6rem;
}

.modal-address {
  margin: 0.25rem 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-muted);
  padding: 0 0.25rem;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-viewer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1rem 0.5rem;
  min-height: 0;
}

.modal-figure {
  margin: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-figure img {
  max-height: min(58vh, 520px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #ebe7e0;
}

.modal-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-btn:hover {
  background: #ebe5db;
}

.modal-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  overflow-x: auto;
  border-top: 1px solid var(--color-border);
}

.modal-thumbs button {
  flex: 0 0 auto;
  width: 72px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #e8e4dd;
  opacity: 0.65;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.modal-thumbs button:hover,
.modal-thumbs button.is-active {
  opacity: 1;
  border-color: var(--color-accent);
}

.modal-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .about-grid,
  .locations-grid,
  .contact-grid,
  .inquiry-layout {
    grid-template-columns: 1fr;
  }

  .form-row--2 {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero-content {
    padding-block: 3rem 4rem;
  }

  .modal-viewer {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }

  .nav-btn {
    justify-self: center;
  }

  .nav-prev { order: 2; }
  .modal-figure { order: 1; }
  .nav-next { order: 3; }
}
