/*
Theme Name: Selský dvůr Braňany
Theme URI: https://selskydvur-branany.cz
Author: Selský dvůr Braňany
Author URI: https://selskydvur-branany.cz
Description: Vlastní WordPress theme pro Selský dvůr Braňany - venkovský statek, restaurace, ubytování, svatby a jezdecký areál
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: selsky-dvur
*/

/* ========================================
   RESET & BASE STYLES
======================================== */

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

:root {
  /* Primární barvy */
  --color-primary-brown: #795548;
  --color-light-beige: #f6f1e8;
  --color-accent-gold: #c8a97e;

  /* Doplňkové barvy */
  --color-nature-green: #5b7a4b;
  --color-dark-text: #2f2f2f;
  --color-light-gray: #e0ded8;

  /* Typografie */
  --font-heading: "Poppins", sans-serif;
  --font-body: "Poppins", sans-serif;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 10px;
  --spacing-md: 16px;
  --spacing-lg: 28px;
  --spacing-xl: 40px;

  /* Layout */
  --max-width: 1280px;
  --border-radius: 12px;
  --border-radius-sm: 8px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(47, 47, 47, 0.08);
  --shadow-md: 0 4px 16px rgba(47, 47, 47, 0.12);
  --shadow-lg: 0 8px 24px rgba(47, 47, 47, 0.16);
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-dark-text);
  background-color: var(--color-light-beige);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAFIE
======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--color-primary-brown);
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

h2 {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

h3 {
  font-size: 1rem;
}

h4 {
  font-size: 0.95rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary-brown);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: underline;
  color: var(--color-accent-gold);
}

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

/* ========================================
   BUTTONS
======================================== */

.btn {
  display: inline-block;
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--color-accent-gold);
  color: var(--color-dark-text);
}

.btn-primary:hover {
  background-color: #b89968;
  color: white;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary-brown);
  border: 2px solid var(--color-primary-brown);
}

.btn-secondary:hover {
  background-color: var(--color-light-beige);
  text-decoration: none;
}

/* ========================================
   LAYOUT CONTAINERS
======================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-lg);
  }
}

.section {
  padding: 2.5rem 0;
}

.section-alt {
  background-color: #fff;
}

/* ========================================
   CARDS
======================================== */

.card {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.25rem;
}

.card-title {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.card-text {
  color: #555;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

/* ========================================
   GRID LAYOUTS
======================================== */

.grid {
  display: grid;
  gap: 1.25rem;
}

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

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

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   UTILITY CLASSES
======================================== */

.text-center {
  text-align: center;
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

/* ========================================
   RESPONSIVE TYPOGRAPHY
======================================== */

@media (min-width: 768px) {
  html {
    font-size: 17px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  html {
    font-size: 18px;
  }

  h1 {
    font-size: 3.5rem;
  }
}

/* ========================================
   HERO SECTION
======================================== */

.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-image,
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-width: 100%;
  min-height: 100%;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

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

.hero-content .container {
  max-width: var(--max-width);
  text-align: left;
}

.hero-title {
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 0.4rem;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
  font-weight: 700;
}

.hero-subtitle {
  color: var(--color-accent-gold);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

.hero-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  max-width: 500px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.hero-cta .btn {
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
}

@media (min-width: 768px) {
  .hero-section {
    min-height: 75vh;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .hero-text {
    font-size: 0.95rem;
  }

  .hero-cta .btn {
    font-size: 0.9rem;
    padding: 0.65rem 1.4rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }
}
@media (max-width: 767px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-text {
    font-size: 0.95rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-cta .btn {
    width: auto;
    min-width: 200px;
  }
}

/* ========================================
   PILLARS SECTION
======================================== */

.pillars-section {
  background-color: var(--color-light-beige);
  padding: 2.5rem 0;
}

.pillars-section .section-header {
  margin-bottom: 2rem;
}

.pillars-section .section-header h2 {
  margin-bottom: 0.5rem;
}

.pillars-section .section-header p {
  font-size: 0.85rem;
  color: #666;
}

.pillar-card {
  text-align: center;
  padding: 2rem 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pillar-icon {
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: var(--color-light-beige);
  border-radius: 50%;
}

.pillar-icon i {
  font-size: 2.5rem;
  color: var(--color-accent-gold);
}

.pillar-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pillar-card .card-title {
  color: var(--color-primary-brown);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.pillar-card .card-text {
  flex: 1;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.pillar-card .btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}
