/* Dom Emilia - Shared Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark: #2d5016;
  --green: #4a7c2e;
  --green-light: #e8f0e0;
  --brown: #6b4e2e;
  --brown-light: #f5efe8;
  --cream: #faf8f4;
  --text: #2b2b2b;
  --text-light: #555;
  --white: #fff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 18px;
}

h1, h2, h3, h4 { font-family: 'Lora', Georgia, serif; }

/* FOCUS */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #ddd;
  padding: 0 20px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: 'Lora', serif; font-size: 1.3rem; font-weight: 700;
  color: var(--green-dark); text-decoration: none;
}
.nav-logo span { color: var(--brown); }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text); font-size: 1rem;
  font-weight: 600; transition: color 0.2s; padding: 8px 4px;
}
.nav-links a:hover { color: var(--green); }
.nav-phone {
  display: flex; align-items: center; gap: 6px;
  color: var(--green-dark); font-weight: 700; text-decoration: none;
  font-size: 0.95rem;
}
.nav-phone svg { width: 18px; height: 18px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 30px; border-radius: 6px; font-size: 1.05rem;
  font-weight: 600; text-decoration: none; cursor: pointer;
  border: none; transition: all 0.2s;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary {
  background: rgba(255,255,255,0.15); color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-secondary:hover { background: rgba(255,255,255,0.3); }

/* SECTIONS */
section { padding: 70px 20px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-title {
  text-align: center; font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--green-dark); margin-bottom: 12px;
}
.section-subtitle {
  text-align: center; color: var(--text-light); max-width: 600px;
  margin: 0 auto 40px; font-size: 1.05rem;
}

/* FOOTER */
footer {
  background: var(--green-dark); color: rgba(255,255,255,0.8);
  padding: 40px 20px 24px; text-align: center;
}
footer .footer-name {
  font-family: 'Lora', serif; font-size: 1.3rem; color: var(--white);
  margin-bottom: 8px;
}
footer p { font-size: 0.9rem; margin-bottom: 6px; }
footer a { color: rgba(255,255,255,0.9); }
footer .footer-bottom {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
}

/* GOOGLE LINK */
.google-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; padding: 12px 20px; border-radius: 6px;
  background: var(--green-light); color: var(--green-dark);
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s;
}
.google-link:hover { background: #d4e5c4; }

/* SR-ONLY */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* RESPONSIVE - shared */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 60px; left: 0; right: 0; background: white;
    padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 16px;
  }
  .nav-phone span.phone-text { display: none; }
}

/* === INDEX PAGE STYLES === */

/* HERO */
.hero {
  position: relative; min-height: 85vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--white);
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.65)),
    url('images/hero.jpg') center/cover no-repeat;
  padding: 100px 20px 60px;
}
.hero-content { max-width: 700px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.2;
  margin-bottom: 16px; text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem); margin-bottom: 30px;
  font-weight: 300; text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

section a:not(.btn):not(.nav-logo):not(.nav-phone):not(.google-link) {
  text-decoration: underline; text-underline-offset: 3px;
}

/* ABOUT / FEATURES */
#onas { background: var(--white); }
.about-grid {
  display: block;
}
.about-text h2 { font-size: 1.8rem; color: var(--green-dark); margin-bottom: 16px; }
.about-text p { margin-bottom: 14px; color: var(--text-light); }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; margin-top: 40px;
}
.feature-card {
  background: var(--cream); padding: 28px 24px; border-radius: 10px;
  text-align: center;
}
.feature-icon { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.feature-card h3 { font-size: 1.1rem; color: var(--green-dark); margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; color: var(--text-light); }

/* GALLERY */
#galeria { background: var(--brown-light); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: 8px; overflow: hidden; aspect-ratio: 4/3;
  cursor: pointer; position: relative;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: white; padding: 20px 12px 10px; font-size: 0.85rem; font-weight: 600;
}

/* ROOMS / PRICING */
#pokoje { background: var(--white); }
.rooms-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.room-card {
  background: var(--cream); border-radius: 10px; overflow: hidden;
  border: 1px solid #e8e2d8;
}
.room-card-img { aspect-ratio: 16/10; overflow: hidden; }
.room-card-img img { width: 100%; height: 100%; object-fit: cover; }
.room-card-body { padding: 24px; }
.room-card-body h3 { color: var(--green-dark); margin-bottom: 8px; font-size: 1.15rem; }
.room-card-body p { font-size: 0.92rem; color: var(--text-light); margin-bottom: 12px; }
.room-price {
  font-family: 'Lora', serif; font-size: 1.5rem; color: var(--brown);
  font-weight: 700;
}
.room-price small { font-size: 0.85rem; font-weight: 400; color: var(--text-light); }
.room-features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.room-features span {
  background: var(--green-light); color: var(--green-dark);
  padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
}

/* LOCATION */
#lokalizacja { background: var(--green-light); }
.location-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: start;
}
.location-info h3 { color: var(--green-dark); margin-bottom: 12px; font-size: 1.2rem; }
.location-info ul { list-style: none; margin-bottom: 24px; }
.location-info li {
  padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.95rem;
}
.location-info li::before {
  content: ''; display: inline-block; width: 8px; height: 8px;
  background: var(--green); border-radius: 50%; flex-shrink: 0;
}
.location-map {
  border-radius: 10px; overflow: hidden; aspect-ratio: 4/3;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.location-map iframe { width: 100%; height: 100%; border: 0; }

/* CONTACT / FORM */
#kontakt { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h3 { color: var(--green-dark); margin-bottom: 16px; font-size: 1.3rem; }
.contact-info p { margin-bottom: 12px; }
.contact-detail {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid #eee;
  font-size: 1.05rem;
}
.contact-detail a { color: var(--green-dark); text-decoration: none; font-weight: 600; }
.contact-detail a:hover { text-decoration: underline; }
.contact-detail .label { color: var(--text-light); font-size: 0.85rem; display: block; }

.inquiry-form {
  background: var(--cream); padding: 32px; border-radius: 10px;
  border: 1px solid #e8e2d8;
}
.inquiry-form h3 { color: var(--green-dark); margin-bottom: 20px; font-size: 1.2rem; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block; margin-bottom: 6px; font-size: 1rem;
  font-weight: 600; color: var(--text);
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 14px; border: 2px solid #bbb;
  border-radius: 6px; font-size: 1rem; font-family: inherit;
  background: var(--white); transition: border-color 0.2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--green);
}
.form-row textarea { resize: vertical; min-height: 100px; }
.form-row-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-submit {
  width: 100%; padding: 16px; background: var(--green); color: var(--white);
  border: none; border-radius: 6px; font-size: 1.1rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background 0.2s;
}
.btn-submit:hover { background: var(--green-dark); }

/* LIGHTBOX */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.9); align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; background: none; border: none;
  color: white; font-size: 2rem; cursor: pointer;
}

.btn-desktop { display: inline-flex; }
.btn-mobile { display: none; }

@media (max-width: 768px) {
  .about-grid, .location-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .btn-desktop { display: none; }
  .btn-mobile { display: inline-flex; }
}

/* COMPARISON TABLE */
#porownanie table { font-size: 0.9rem; }
#porownanie th, #porownanie td { padding: 10px 12px; }

@media (max-width: 768px) {
  #porownanie table { font-size: 0.8rem; }
  #porownanie th, #porownanie td { padding: 8px 8px; }
}

/* === ATRAKCJE PAGE STYLES === */

.page-hero {
  padding: 100px 20px 50px;
  text-align: center;
  background: var(--green-dark);
  color: var(--white);
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.3;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 650px;
  margin: 0 auto;
  opacity: 0.9;
}

/* TOC */
.toc {
  background: var(--white);
  border: 1px solid #e8e2d8;
  border-radius: 10px;
  padding: 28px 32px;
  margin: 40px auto;
}
.toc h2 { font-size: 1.2rem; color: var(--green-dark); margin-bottom: 14px; }
.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 8px; }
.toc a {
  color: var(--green-dark); text-decoration: none; font-weight: 600;
  font-size: 1rem;
}
.toc a:hover { text-decoration: underline; }

/* GUIDE SECTIONS */
.guide-section {
  background: var(--white);
  border-radius: 10px;
  padding: 36px 32px;
  margin-bottom: 28px;
  border: 1px solid #e8e2d8;
}
.guide-section h2 {
  font-size: 1.5rem;
  color: var(--green-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}
.guide-section h3 {
  font-size: 1.15rem;
  color: var(--brown);
  margin: 20px 0 8px;
}
.guide-section p { margin-bottom: 14px; color: var(--text); }
.guide-section ul, .guide-section ol { padding-left: 22px; margin-bottom: 14px; }
.guide-section li { margin-bottom: 6px; }
.guide-section a { color: var(--green-dark); font-weight: 600; text-underline-offset: 3px; }
.guide-section a:hover { text-decoration: none; }

.tip {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-size: 0.95rem;
}
.tip strong { color: var(--green-dark); }

.place-card {
  background: var(--cream);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 12px 0;
  border: 1px solid #e8e2d8;
}
.place-card h4 { color: var(--green-dark); margin-bottom: 6px; font-size: 1.05rem; }
.place-card p { margin-bottom: 4px; font-size: 0.95rem; }
.place-card .price { color: var(--brown); font-weight: 700; }

/* CTA BANNER */
.cta-banner {
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  padding: 50px 20px;
  margin: 40px 0 0;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; font-size: 1.6rem; }
.cta-banner p { opacity: 0.9; margin-bottom: 24px; max-width: 550px; margin-left: auto; margin-right: auto; }
.cta-banner .btn {
  padding: 14px 28px; font-size: 1rem;
  background: var(--white); color: var(--green-dark);
}
.cta-banner .btn:hover { background: var(--green-light); }

@media (max-width: 768px) {
  .guide-section { padding: 24px 20px; }
  .toc { padding: 20px; }
}
