/* Byty Údrč – design system */
:root {
  --color-cream: #faf7f2;
  --color-cream-dark: #f0ebe3;
  --color-brown: #4a3728;
  --color-brown-light: #6b5344;
  --color-ochre: #c49a3c;
  --color-ochre-dark: #7a5a18;
  --color-sand: #d4c4a8;
  --color-text: #3d3229;
  --color-text-muted: #6d5f52;
  --color-white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(74, 55, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(74, 55, 40, 0.12);
  --shadow-lg: 0 16px 48px rgba(74, 55, 40, 0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --max-width: 1200px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-cream);
}

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

a {
  color: var(--color-ochre-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-brown);
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.625rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--color-brown);
  color: var(--color-white);
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(250, 247, 242, 0.98);
  border-bottom: 1px solid rgba(74, 55, 40, 0.08);
}

@media (min-width: 901px) {
  .site-header {
    backdrop-filter: blur(12px);
  }
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}

.site-logo img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
}

@media (max-width: 480px) {
  .site-logo img {
    height: 40px;
  }
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop li {
  margin: 0;
}

.nav-desktop li + li {
  margin-top: 0;
}

.nav-desktop ul a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.4;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.nav-desktop ul a:hover,
.nav-desktop ul a[aria-current="page"] {
  background: var(--color-cream-dark);
  color: var(--color-brown);
}

.header-cta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-brown);
}

.nav-toggle svg { width: 28px; height: 28px; }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-cream);
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 250;
  overscroll-behavior: contain;
}

.nav-mobile.is-open {
  display: block;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .floating-cta {
  display: none;
}

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mobile li {
  margin: 0;
}

.nav-mobile li + li {
  margin-top: 0;
}

.nav-mobile ul a {
  display: block;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-brown);
  text-decoration: none;
  border-bottom: 1px solid var(--color-cream-dark);
}

.nav-mobile .header-cta {
  flex-direction: column;
  margin-top: 1.5rem;
}

.nav-mobile .header-cta .btn { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--color-brown);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-brown-light);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background: var(--color-cream-dark);
  color: var(--color-brown);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-brown);
}

.btn-white:hover {
  background: var(--color-cream);
  color: var(--color-brown);
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
}

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

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.section-alt { background: var(--color-cream-dark); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(480px, 85vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2rem 1.25rem 4rem;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  color: var(--color-white);
}

.hero-inner h1 {
  display: inline-block;
  margin: 0;
  padding: 10px;
  color: var(--color-white);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(74, 55, 40, 0.72) 0%,
    rgba(74, 55, 40, 0.35) 50%,
    rgba(74, 55, 40, 0.55) 100%
  );
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.hero-inner .lead {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  max-width: 600px;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 900px) {
  .hero {
    min-height: 300px;
  }
}

/* Page hero (subpages) */
.page-hero {
  background: linear-gradient(135deg, var(--color-brown) 0%, var(--color-brown-light) 100%);
  color: var(--color-white);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto;
}

.error-page {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.error-page p {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

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

@media (max-width: 900px) {
  .features-grid-3x3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .features-grid-3x3 {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

.feature-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.35rem;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Apartment cards */
.apartment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.apartment-grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .apartment-grid-2x2 {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

.apartment-grid-1x4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.apartment-grid-1x4 .apartment-card img {
  aspect-ratio: 3 / 2;
}

.apartment-grid-1x4 .apartment-card-body {
  padding: 1rem 1.1rem 1.15rem;
}

.apartment-grid-1x4 .apartment-card h2 {
  font-size: 1.125rem;
  margin-bottom: 0.35rem;
}

.apartment-grid-1x4 .apartment-card p {
  font-size: 0.875rem;
  line-height: 1.5;
}

.apartment-grid-1x4 .apartment-card .link-arrow {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

@media (max-width: 1100px) {
  .apartment-grid-1x4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .apartment-grid-1x4 .apartment-card-body {
    padding: 1.25rem 1.35rem 1.4rem;
  }

  .apartment-grid-1x4 .apartment-card h2 {
    font-size: 1.25rem;
  }

  .apartment-grid-1x4 .apartment-card p {
    font-size: 0.95rem;
  }
}

@media (max-width: 560px) {
  .apartment-grid-1x4 {
    grid-template-columns: 1fr;
  }
}

.apartment-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.apartment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.apartment-card-media {
  position: relative;
  overflow: hidden;
}

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

.apartment-card--unavailable img {
  filter: grayscale(100%);
  opacity: 0.65;
}

.apartment-card-unavailable-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 30, 30, 0.45);
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.apartment-card--unavailable:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.apartment-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.apartment-card h2 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.apartment-card p {
  color: var(--color-text-muted);
  flex: 1;
}

.apartment-card .link-arrow {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--color-brown);
}

.apartment-card-body:not(:has(p)) .link-arrow {
  margin-top: 0.75rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

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

@media (max-width: 900px) {
  .gallery-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .gallery-grid-4 {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  border: none;
  padding: 0;
  background: none;
  width: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 0.75rem;
  background: linear-gradient(transparent, rgba(74, 55, 40, 0.8));
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
}

/* Info banner */
.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--color-white);
  border-left: 4px solid var(--color-ochre);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
}

.info-banner svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-ochre);
  margin-top: 0.15rem;
}

.info-banner-specs {
  margin: 0;
}

/* Apartment specs */
.apartment-specs {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
  max-width: 520px;
}

.specs-tech-row .apartment-specs {
  margin: 0;
  max-width: none;
  height: 100%;
}

.apartment-specs h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

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

.specs-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-cream-dark);
}

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

.specs-label {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.specs-value {
  font-weight: 600;
  color: var(--color-brown);
  text-align: right;
}

.specs-rent {
  background: var(--color-cream-dark);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  text-align: center;
}

.specs-rent strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.625rem;
  color: var(--color-brown);
  margin: 0.25rem 0;
}

.specs-rent > span:first-child {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.specs-rent > span:last-child {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
  margin: 2rem 0;
}

.specs-grid > .apartment-specs {
  margin: 0;
  max-width: none;
}

.specs-tech-row {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 2rem;
  align-items: start;
  margin: 2rem 0;
}

.technicke-vybaveni h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.technicke-vybaveni-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.technicke-vybaveni-grid .feature-card-body {
  padding: 0.75rem 0.85rem 0.9rem;
}

.technicke-vybaveni-grid .feature-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.specs-extra {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  color: var(--color-text-muted);
}

.specs-extra p {
  margin-bottom: 0.75rem;
}

.specs-extra p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .technicke-vybaveni-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .specs-tech-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }

  .apartment-specs {
    max-width: none;
  }
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.service-item {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.service-item svg {
  width: 36px;
  height: 36px;
  color: var(--color-ochre);
  margin: 0 auto 0.75rem;
}

.service-item h3 {
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.service-item p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

.two-col img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.map-link {
  display: block;
  text-decoration: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.map-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.map-link img {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--color-brown) 0%, var(--color-brown-light) 100%);
  color: var(--color-white);
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 1.25rem;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.cta-phone {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
}

.cta-phone:hover { color: var(--color-sand); }

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

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-card h2 { margin-bottom: 0.5rem; }

.contact-person {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-brown);
  margin: 1rem 0;
}

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

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-cream-dark);
}

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

.contact-list svg {
  width: 20px;
  height: 20px;
  color: var(--color-ochre);
  flex-shrink: 0;
}

.contact-list a {
  font-weight: 600;
  color: var(--color-brown);
  text-decoration: none;
}

.contact-list a:hover { color: var(--color-ochre-dark); }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-photo {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-form {
  position: relative;
  margin-top: 1.5rem;
}

.contact-form .form-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form .form-field.is-invalid input,
.contact-form .form-field.is-invalid textarea {
  border-color: #c45b4e;
  box-shadow: 0 0 0 3px rgba(196, 91, 78, 0.18);
}

.contact-form .form-field-error {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #8a2a1f;
}

.contact-form h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: var(--color-brown);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.contact-form .form-field {
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--color-sand);
  border-radius: var(--radius);
  background: var(--color-cream);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-ochre);
  box-shadow: 0 0 0 3px rgba(196, 154, 60, 0.2);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .captcha-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-form .captcha-row input {
  width: 5rem;
}

.contact-form .captcha-question {
  font-weight: 600;
  color: var(--color-brown);
  white-space: nowrap;
}

.form-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.form-alert-error {
  background: #fdecea;
  color: #8a2a1f;
  border: 1px solid #f5c6c0;
}

.form-alert-success {
  background: #e8f5e9;
  color: #2e5c32;
  border: 1px solid #c8e6c9;
}

.footer-photo {
  width: 110px;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
}

.footer-address-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer-address {
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--color-brown);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-inner .btn { width: 100%; }
  .footer-address-row { justify-content: center; }
  .footer-credit {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
  }
}

.footer-inner strong {
  color: var(--color-white);
  font-size: 1.125rem;
}

.site-footer p { margin: 0.25rem 0; font-size: 0.95rem; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 1.5rem 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.9rem;
  padding: 0.3rem 0.7rem 0.3rem 0.3rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.footer-credit:hover,
.footer-credit:focus-visible {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.footer-credit img {
  width: 96px;
  height: 24px;
  max-width: none;
  border-radius: 5px;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.footer-credit:hover img,
.footer-credit:focus-visible img {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

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

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--color-white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* Floating mobile CTA */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.75rem 1rem;
  background: var(--color-white);
  border-top: 1px solid var(--color-cream-dark);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  gap: 0.5rem;
}

.floating-cta .btn { flex: 1; }

@media (max-width: 600px) {
  .floating-cta { display: flex; }
  body { padding-bottom: 70px; }
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--color-ochre-dark); }

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
