/* ========================================= */
/* THEME-MOBILE.CSS - KOMPLETNY PLIK CSS    */
/* Użyj: <link rel="stylesheet" href="css/theme-mobile.css"> */
/* ========================================= */

/* === RESET & BASE === */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Libre Baskerville', serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #222;
  background-color: #ffffff;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: #0a2240;
  margin-top: 0;
  font-weight: 700;
}

p {
  margin-bottom: 1em;
}

a {
  color: #c9a227;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #0a2240;
  text-decoration: underline;
}

/* === LANGUAGE SWITCHER === */
.lang-switcher {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 2000;
  display: flex;
  gap: 8px;
}

.lang-switcher a {
  display: inline-block;
  padding: 6px 12px;
  background: #0a2240;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.lang-switcher a:hover {
  background: #c9a227;
  transform: translateY(-2px);
  text-decoration: none;
}

/* === HEADER === */
header {
  background-color: #0a2240;
  color: #fff;
  padding: 3.5rem 1rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

header .clock-container {
  flex-shrink: 0;
}

header .clock-container iframe {
  width: 110px;
  height: 110px;
  border: none;
  background: transparent;
}

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

header h1 {
  font-family: 'Playfair Display', serif;
  margin: 0 0 0.5rem 0;
  font-size: 1.6rem;
  color: #ffffff;
}

header .tagline,
header p {
  margin: 0;
  line-height: 1.4;
  font-size: 0.85rem;
  opacity: 0.95;
}

header a {
  color: #c9a227;
  text-decoration: underline;
}

header a:hover {
  color: #fff;
}

/* === HAMBURGER MENU === */
.hamburger {
  display: flex;
  position: fixed;
  left: 1rem;
  top: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 2000;
  flex-direction: column;
  gap: 4px;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #dc143c;
  margin: 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* === HAMBURGER DROPDOWN === */
.hamburger-menu {
  display: none;
  position: fixed;
  left: 0;
  top: 3.5rem;
  background-color: #0a2240;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  z-index: 1999;
  min-width: 220px;
  border-radius: 0 0 8px 0;
}

.hamburger-menu.active {
  display: flex;
  flex-direction: column;
}

.hamburger-menu a {
  padding: 1rem 1.5rem;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s;
  font-weight: bold;
}

.hamburger-menu a:hover {
  background-color: #c9a227;
  text-decoration: none;
}

.hamburger-menu a:last-child {
  border-bottom: none;
}

/* === NAVIGATION (poziome menu) === */
nav {
  background: #f5f5f5;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  position: relative;
  text-align: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  gap: 0.5rem;
}

.nav-links a {
  margin: 0 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: #0a2240;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #c9a227;
  text-decoration: none;
}

/* === MAIN CONTENT === */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* === SECTIONS === */
section {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

section.alt {
  background-color: #f5f5f5;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

h2 {
  font-family: 'Playfair Display', serif;
  color: #0a2240;
  border-bottom: 2px solid #c9a227;
  display: inline-block;
  padding-bottom: 5px;
  margin-top: 1.5rem;
  font-size: 1.5rem;
}

h3 {
  font-family: 'Playfair Display', serif;
  color: #0a2240;
  margin-top: 1.5rem;
  font-size: 1.3rem;
}

h4 {
  color: #c9a227;
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

section p {
  margin-bottom: 1rem;
  text-align: justify;
}

/* === TWO COLUMN GRID === */
.two-column-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.column {
  background: #fff;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.column h3 {
  color: #0a2240;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #c9a227;
  padding-bottom: 10px;
}

/* === TESTIMONIALS === */
.testimonials {
  background-color: #f5f5f5;
  padding: 3rem 2rem;
  text-align: center;
}

.testimonial-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 2rem;
  max-width: 400px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-card .author {
  font-weight: bold;
  text-align: right;
  color: #0a2240;
}

/* === BLOG === */
.blog-post {
  margin-bottom: 2rem;
}

.blog-post h3 {
  color: #0a2240;
  margin-bottom: 0.5rem;
}

.post-meta {
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 1rem;
}

hr {
  border: 0;
  height: 1px;
  background-color: #e0e0e0;
  margin: 2rem 0;
}

/* === CONTACT FORM === */
.contact-container {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

h1.page-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  color: #0a2240;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.info-text {
  margin-bottom: 2rem;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #0a2240;
  font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Libre Baskerville', serif;
  box-sizing: border-box;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

#char-count {
  font-size: 0.8rem;
  color: #666;
  text-align: right;
  display: block;
  margin-top: 5px;
}

.btn-submit {
  background-color: #c9a227;
  color: white !important;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  width: 100%;
  transition: background 0.3s;
  font-family: 'Playfair Display', serif;
}

.btn-submit:hover {
  background-color: #b08d1f;
}

.email-hint {
  display: block;
  text-align: center;
  margin-top: 15px;
  font-size: 0.85rem;
  color: #0a2240;
  font-weight: bold;
}

#form-status {
  margin-top: 1rem;
  text-align: center;
  font-weight: bold;
}

/* === BUTTONS === */
button, .btn {
  display: inline-block;
  background-color: #c9a227;
  color: #fff !important;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-top: 1rem;
}

button:hover, .btn:hover {
  background-color: #b08d1f;
  text-decoration: none;
}

/* === FOOTER === */
footer {
  background: #0a2240;
  color: #fff;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.legal-footer {
  font-size: 0.95rem;
  background-color: #0a2240;
  color: #ffffff;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.legal-footer h4 {
  color: #c9a227;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #4a5d75;
  padding-bottom: 10px;
}

.legal-footer ul {
  list-style: none;
  padding: 0;
}

.legal-footer li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  color: #e0e0e0;
}

.legal-footer li::before {
  content: "•";
  color: #c9a227;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.copyright {
  margin-top: 2rem;
  border-top: 1px solid #4a5d75;
  padding-top: 1rem;
  text-align: center;
  color: #aaa;
  font-size: 0.85rem;
}

/* ========================================= */
/* === MEDIA QUERIES - MOBILE (< 768px) === */
/* ========================================= */
@media (max-width: 768px) {
  /* Language switcher mniejszy */
  .lang-switcher {
    top: 8px;
    right: 8px;
    gap: 5px;
  }

  .lang-switcher a {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  /* Header mobile - mniejsze czcionki, większy zegar */
  header {
    padding: 3rem 0.75rem 1.5rem;
    gap: 0.75rem;
  }

  header h1 {
    font-size: 1.3rem;
  }

  header .tagline,
  header p {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  header .clock-container iframe {
    width: 130px;
    height: 130px;
  }

  /* UKRYJ menu poziome na mobile PORTRAIT */
  .nav-links {
    display: none !important;
  }

  /* Nav bez paddingu skoro menu ukryte */
  nav {
    padding: 0;
    min-height: 0;
    border: none;
  }

  /* Main content mobile */
  main {
    padding: 0 0.75rem;
    margin: 1rem auto;
  }

  /* Sections mobile */
  section {
    padding: 1.5rem 0.75rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  .column {
    padding: 1.25rem;
  }

  .btn {
    display: block;
    text-align: center;
    width: 100%;
  }

  /* Testimonials mobile */
  .testimonials {
    padding: 2rem 1rem;
  }

  .testimonial-card {
    max-width: 100%;
  }

  /* Contact form mobile */
  .contact-container {
    padding: 1.5rem;
  }

  h1.page-title {
    font-size: 1.4rem;
  }

  .info-text {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* ========================================= */
/* === MEDIA QUERIES - DESKTOP (≥ 769px) === */
/* ========================================= */
@media (min-width: 769px) {
  /* Header desktop - wyśrodkowany */
  header {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    gap: 1.5rem;
  }

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

  header .clock-container {
    order: -1;
  }

  header .clock-container iframe {
    width: 140px;
    height: 140px;
  }

  header h1 {
    font-size: 2rem;
  }

  header .tagline,
  header p {
    font-size: 1rem;
  }

  /* Dwie kolumny na desktop */
  .two-column-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  /* Main content desktop */
  main {
    max-width: 1200px;
  }

  /* Sections desktop */
  section {
    padding: 3rem 2rem;
  }
}

/* ========================================= */
/* === MOBILE LANDSCAPE - menu w jednej linii === */
/* UWAGA: To musi być NA KOŃCU, po wszystkich innych media queries! */
/* ========================================= */
@media (max-width: 768px) and (orientation: landscape) {
  /* Pokaż menu poziome w landscape */
  .nav-links {
    display: flex !important;
    flex-wrap: nowrap !important;
  }
  
  /* Zmniejsz czcionki i paddingi żeby zmieściło się w jednej linii */
  .nav-links a {
    font-size: 0.7rem;
    padding: 5px 6px;
    margin: 0 2px;
    white-space: nowrap;
  }
  
  nav {
    padding: 0.4rem 0.25rem;
    border-bottom: 1px solid #ddd;
  }
}