/* ============================================
   ADRIADOMY.CZ – Modern Redesign
   Font: Open Sans | Clean, airy, wow design
   ============================================ */

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

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

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section Defaults ---------- */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: #666;
  max-width: 700px;
  margin: 0 auto 60px;
  line-height: 1.8;
}

/* ---------- Fade-in on scroll ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #333;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #c0392b;
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: #c0392b;
}

.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #555;
  font-size: 1rem;
  transition: background 0.3s, color 0.3s;
}

.social-links a:hover {
  background: #c0392b;
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: #333;
  transition: all 0.3s;
  border-radius: 2px;
}

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

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

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

/* ============================================
   HERO SLIDER
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-tagline {
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 40px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}

.hero-cta {
  display: inline-block;
  padding: 16px 48px;
  background: #c0392b;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 50px;
  transition: background 0.3s, transform 0.3s;
}

.hero-cta:hover {
  background: #a93226;
  transform: translateY(-2px);
}

/* Hero dots */
.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

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

.hero-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* Hero arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s;
}

.hero-arrow:hover {
  background: rgba(0,0,0,0.5);
  border-color: #fff;
}

.hero-arrow.prev { left: 30px; }
.hero-arrow.next { right: 30px; }

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  position: relative;
  z-index: 2;
  background: #fff;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.15rem;
  color: #555;
  line-height: 2;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
  background: #f9f9f9;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.project-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.4s, box-shadow 0.4s;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.project-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 650/480;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.project-card:hover .project-card-img img {
  transform: scale(1.05);
}

.project-card-body {
  padding: 24px 28px;
}

.project-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #222;
}

.project-card-location {
  font-size: 0.9rem;
  color: #888;
  font-weight: 400;
}

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

.btn {
  display: inline-block;
  padding: 14px 42px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: all 0.3s;
}

.btn-primary {
  background: #c0392b;
  color: #fff;
}

.btn-primary:hover {
  background: #a93226;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #c0392b;
  border: 2px solid #c0392b;
}

.btn-outline:hover {
  background: #c0392b;
  color: #fff;
}

/* ============================================
   CARAVAN HOMES (ASTELLA)
   ============================================ */
.caravan-homes {
  background: #fff;
}

.caravan-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.caravan-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.caravan-image img {
  width: 100%;
  height: auto;
  display: block;
}

.caravan-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
}

.caravan-text .tagline {
  font-size: 1.1rem;
  font-style: italic;
  color: #c0392b;
  margin-bottom: 24px;
}

.caravan-text p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.9;
  margin-bottom: 32px;
}

/* ============================================
   WHAT WE OFFER
   ============================================ */
.offer {
  background: #f9f9f9;
}

.offer-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.offer-category {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.4s, box-shadow 0.4s;
  text-align: center;
}

.offer-category:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.offer-category-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.offer-category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.offer-category:hover .offer-category-img img {
  transform: scale(1.05);
}

.offer-category-body {
  padding: 28px 24px;
}

.offer-category-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

.offer-category-desc {
  font-size: 0.95rem;
  color: #777;
  line-height: 1.6;
}

/* ============================================
   ADRIA KARAVANY (slider section)
   ============================================ */
.adria-section {
  position: relative;
  padding: 0;
  min-height: 500px;
  overflow: hidden;
}

.adria-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.adria-slide.active {
  opacity: 1;
}

.adria-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adria-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  z-index: 2;
}

.adria-overlay h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.adria-overlay p {
  font-size: 1.1rem;
  max-width: 650px;
  margin-bottom: 36px;
  line-height: 1.8;
  font-weight: 300;
}

.btn-white {
  background: #fff;
  color: #333;
  padding: 14px 42px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: all 0.3s;
}

.btn-white:hover {
  background: #c0392b;
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  background: #fff;
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.office-card {
  background: #f9f9f9;
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.office-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.office-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 16px;
}

.office-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 8px;
}

.office-card a {
  color: #c0392b;
  font-weight: 600;
}

.office-card a:hover {
  text-decoration: underline;
}

.contact-email {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
}

.contact-email a {
  color: #c0392b;
  font-weight: 700;
  font-size: 1.2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 50px 0 30px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 16px;
}

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

.footer-col a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #aaa;
  font-size: 1rem;
  transition: background 0.3s, color 0.3s;
}

.footer-social a:hover {
  background: #c0392b;
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  color: #666;
}

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

/* Tablet */
@media (max-width: 1024px) {
  .hero-title { font-size: 3rem; }
  .section { padding: 80px 0; }
  .section-title { font-size: 2rem; }
  .caravan-inner { gap: 40px; }
}

/* Mobile Nav Breakpoint */
@media (max-width: 900px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    transition: right 0.4s ease;
    z-index: 999;
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    font-size: 1.1rem;
  }

  .social-links { display: none; }
}

/* Tablet Grid */
@media (max-width: 768px) {
  .hero { min-height: 500px; }
  .hero-title { font-size: 2.4rem; }
  .hero-tagline { font-size: 1rem; }

  .projects-grid,
  .offer-categories,
  .offices-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .caravan-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .caravan-image { order: -1; }

  .section { padding: 60px 0; }
  .section-title { font-size: 1.8rem; }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .adria-section { min-height: 400px; }
  .adria-overlay h2 { font-size: 1.8rem; }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-cta { padding: 14px 32px; font-size: 0.85rem; }
  .header-inner { height: 64px; }
  .logo img { height: 32px; }
  .section { padding: 48px 0; }
  .hero-arrow { display: none; }
}

/* ============================================
   PROJECT CONTENT (detail pages)
   ============================================ */
.project-content {
  max-width: 900px;
  margin: 0 auto 60px;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.9;
}

.project-content p {
  margin-bottom: 20px;
}

.project-content img {
  border-radius: 12px;
  margin: 24px 0;
}

.project-content h2,
.project-content h3 {
  color: #222;
  margin: 32px 0 16px;
}

/* ============================================
   CONTENT GALLERY (lightbox grid)
   ============================================ */
.content-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 40px 0;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
}

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

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

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 60px 60px 80px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.open {
  display: flex;
  opacity: 1;
}

.lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  display: block;
}

.lightbox-caption {
  color: #eee;
  font-size: 14px;
  text-align: center;
  margin-top: 16px;
  max-width: 80vw;
}

.lightbox-counter {
  position: absolute;
  top: 20px;
  left: 24px;
  color: #eee;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
  top: 16px;
  right: 16px;
  font-size: 28px;
}

.lightbox-prev {
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.08);
}

@media (max-width: 768px) {
  .lightbox-overlay {
    padding: 50px 12px 60px;
  }

  .lightbox-image {
    max-height: calc(100vh - 120px);
  }

  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 24px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-counter {
    top: 14px;
    left: 14px;
    font-size: 13px;
  }
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form-wrapper {
  max-width: 700px;
  margin: 60px auto 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: #333;
  background: #f9f9f9;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
  background: #fff;
}

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

/* ============================================
   FLASH MESSAGES (frontend)
   ============================================ */
.flash {
  padding: 16px 24px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.flash-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.flash-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.flash-error p {
  margin: 4px 0;
}

/* ============================================
   OFFER SECTION (full page)
   ============================================ */
.offer-section {
  margin-bottom: 60px;
}

.offer-section .section-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
}
