/* ========================================
   HradeckyNotar.cz - Optimized Static CSS
   ======================================== */

/* CSS Custom Properties */
:root {
  --color-accent: #d99860;
  --color-accent-hover: #c4844e;
  --color-dark: #272727;
  --color-dark-alt: #333333;
  --color-cream: #f5e5d6;
  --color-text: #777777;
  --color-text-dark: #333333;
  --color-white: #ffffff;
  --color-border: #e0e0e0;
  --font-body: 'Roboto', sans-serif;
  --font-heading: 'Merriweather', serif;
  --font-heading-alt: 'Merriweather Sans', sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--color-text-dark);
}

h1 {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--color-text-dark);
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

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

/* ========================================
   Top Bar
   ======================================== */
.top-bar {
  background: var(--color-dark);
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar__contact a {
  color: var(--color-white);
  margin-right: 20px;
  transition: color 0.3s ease;
}

.top-bar__contact a:hover {
  color: var(--color-accent);
}

.top-bar__social a {
  color: var(--color-white);
  margin-left: 12px;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.top-bar__social a:hover {
  color: var(--color-accent);
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
  background: var(--color-dark-alt);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo span {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-left: 12px;
  font-weight: 700;
}

/* Main Navigation */
.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: block;
  padding: 0 18px;
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: var(--header-height);
  transition: color 0.3s ease, background 0.3s ease;
  white-space: nowrap;
}

.nav__link:hover,
.nav__item--active > .nav__link {
  color: var(--color-accent);
}

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-dark-alt);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  z-index: 100;
}

.nav__item:hover > .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown a {
  display: block;
  padding: 10px 20px;
  color: #ccc;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.nav__dropdown a:hover {
  color: var(--color-accent);
  background: rgba(255,255,255,0.05);
  padding-left: 25px;
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-white);
  transition: all 0.3s ease;
}

/* ========================================
   Hero / Slider
   ======================================== */
.hero {
  position: relative;
  height: 70vh;
  min-height: 450px;
  max-height: 700px;
  overflow: hidden;
}

.hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}

.hero__slide--active {
  opacity: 1;
}

.hero__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 2;
  padding: 20px;
}

.hero__title {
  color: var(--color-white);
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero__subtitle {
  color: var(--color-cream);
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 2rem;
  font-family: var(--font-body);
}

.hero__nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.hero__dot--active {
  background: var(--color-accent);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-block;
  padding: 14px 35px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
}

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

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

.btn--dark {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--dark:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 80px 0;
}

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

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

.section--gray {
  background: #f8f8f8;
}

.section__header {
  text-align: center;
  margin-bottom: 50px;
}

.section__header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section__header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--color-accent);
}

.section__header p {
  margin-top: 15px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   Services Grid
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--color-white);
  padding: 35px 30px;
  border-radius: 4px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-card__icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========================================
   About / Intro Section
   ======================================== */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro__text h2 {
  margin-bottom: 20px;
}

.intro__text p {
  margin-bottom: 15px;
}

/* ========================================
   Contact Info Bar
   ======================================== */
.contact-bar {
  background: var(--color-accent);
  padding: 40px 0;
  color: var(--color-white);
  text-align: center;
}

.contact-bar h2 {
  color: var(--color-white);
  margin-bottom: 15px;
}

.contact-bar p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* ========================================
   Page Header / Breadcrumb
   ======================================== */
.page-header {
  background: var(--color-dark);
  padding: 50px 0 40px;
  text-align: center;
}

.page-header h1 {
  color: var(--color-white);
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--color-accent);
}

.breadcrumb span {
  color: #999;
}

/* ========================================
   Content Page
   ======================================== */
.content {
  padding: 60px 0;
}

.content h2 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.content h3 {
  margin-top: 25px;
  margin-bottom: 10px;
  color: var(--color-accent);
}

.content p {
  margin-bottom: 15px;
}

.content ul {
  margin-bottom: 15px;
  padding-left: 20px;
}

.content ul li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 8px;
}

.content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* Links page */
.links-list {
  list-style: none;
  padding: 0;
}

.links-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--color-border);
}

.links-list li::before {
  display: none;
}

.links-list a {
  font-size: 1.05rem;
  font-weight: 500;
}

.links-list .link-url {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text);
  margin-top: 3px;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--color-text-dark);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 20px;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

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

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-info__icon {
  color: var(--color-accent);
  font-size: 1.2rem;
  min-width: 24px;
  text-align: center;
  margin-top: 3px;
}

.contact-info__text h4 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 3px;
}

/* Map */
.map-container {
  width: 100%;
  height: 400px;
  margin-top: 40px;
  border-radius: 4px;
  overflow: hidden;
}

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

/* ========================================
   Hours Table
   ======================================== */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.hours-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.hours-table td:first-child {
  font-weight: 500;
  color: var(--color-text-dark);
  width: 40%;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--color-dark);
  color: #aaa;
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer h3 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.footer p,
.footer a {
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer__bottom a {
  margin-left: 15px;
}

/* ========================================
   Back to Top
   ======================================== */
.to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.to-top--visible {
  opacity: 1;
  visibility: visible;
}

.to-top:hover {
  background: var(--color-accent-hover);
  transform: translateY(-3px);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

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

  h1 {
    font-size: 2rem;
  }

  .hero__title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 65px;
  }

  .top-bar {
    display: none;
  }

  /* Mobile nav */
  .nav__toggle {
    display: flex;
  }

  .nav__list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-dark-alt);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav__list--open {
    transform: translateX(0);
  }

  .nav__link {
    line-height: 1;
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    background: rgba(0,0,0,0.2);
  }

  .nav__dropdown--open {
    display: block;
  }

  .nav__dropdown a {
    padding-left: 30px;
  }

  /* Mobile hero */
  .hero {
    min-height: 350px;
    height: 50vh;
  }

  .hero__title {
    font-size: 1.6rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  /* Mobile sections */
  .section {
    padding: 50px 0;
  }

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

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

  .page-header {
    padding: 30px 0 25px;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }
}

/* ========================================
   Print styles
   ======================================== */
@media print {
  .header, .top-bar, .hero, .footer, .to-top, .contact-bar {
    display: none;
  }

  body {
    color: #000;
    font-size: 12pt;
  }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* Visually hidden for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
