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

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: 'Merriweather', serif;
  background-color: #f8f8f8;
  color: #333;
  line-height: 1.6;
}

/* =========================
   Top Bar
   ========================= */
.top-bar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10000;
  background-color: #fff;
  color: #111;
  padding: 8px 30px;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Merriweather', serif;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.top-bar a {
  color: #111;
  text-decoration: none;
  font-weight: 500;
}

.top-bar a:hover {
  text-decoration: underline;
}

.top-bar i {
  margin-right: 6px;
  color: #c19b6c;
}

/* =========================
   Navbar
   ========================= */
.navbar {
  position: fixed;
  top: 40px;
  width: 100%;
  background-color: #111;
  color: #c19b6c;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.navbar nav ul li a {
  color: #c19b6c;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar nav ul li a:hover {
  color: #fff;
}


body > *:not(.top-bar):not(.navbar) {
  padding-top: 110px; 
}

/* =========================
   Hero Slider
   ========================= */
.hero-slider {
  position: relative;
  height: 110vh;
  overflow: hidden;
  color: #fff;
  font-family: 'Merriweather', serif;
}

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

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 700px;
  padding: 0 20px;
  z-index: 2;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-text p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 400;
}

.cta {
  background-color: #c19b6c;
  color: #111;
  padding: 12px 30px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: 0 5px 10px rgba(193, 155, 108, 0.5);
  transition: background-color 0.3s ease;
}

.cta:hover {
  background-color: #a7824a;
  color: #fff;
}

/* =========================
   Info Section
   ========================= */
.info-section {
  background-color: white;
  color: black;
  padding: 40px 20px;
  font-family: 'Merriweather', serif;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
  font-weight: bold;
  color: #111;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.info-section .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.info-section .left {
  flex: 1 1 40%;
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  background: url('/images/strada.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
  color: white;
}

.info-section .left h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.strada-img {
  width: 1000px;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.info-section .right {
  flex: 1 1 55%;
  background-color: #111;
  color: white;
  padding: 40px;
  border-radius: 10px;
  /* fix: 0,2 -> 0.2 */
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  font-family: 'Merriweather', serif;
}

.info-section .right p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin: 0 0 20px 0;
  text-align: justify;
  text-indent: 30px;
}

/* =========================
   Diagram Cards
   ========================= */
.diagram {
  background-color: #000;
  background-size: cover;
  padding: 60px 30px;
  font-family: 'Merriweather', serif;
  color: gray;
  position: relative;
  z-index: 1;
}

.diagram-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}


.diagram-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;                
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;     
}

.card {
  background: gray;
  width: 100% !important;   
  max-width: 320px;         
  aspect-ratio: 22 / 35;    

  height: auto;              

  perspective: 1000px;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


@media (max-width: 380px) {
  .diagram-row { gap: 16px; }
  .card { max-width: 300px; }
}

@media (min-width: 1024px) {
  .diagram-row {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}




.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  border-radius: 10px;
}



.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
}

.card-front {
  background: white;
  color: #111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: 'Merriweather', serif;
}

.card-back {
  background: #a7824a;
  color: white;
  transform: rotateY(180deg);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Merriweather', serif;
  text-align: center;
}

.card-back-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.package-list {
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 500;
  font-family: 'Merriweather', serif;
  margin: 0;
}

/* =========================
   Contact
   ========================= */
.contact-section {
  padding: 60px 20px;
  background-color: black;
  color: white;
  padding-bottom: 0;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.map-side {
  flex: 1;
  min-width: 300px;
  height: 500px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.map-address-title {
  background-color: #fff;
  padding: 8px 15px;
  font-family: 'Merriweather', serif;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  color: #333;
  font-size: 16px;
  text-align: center;
  font-weight: bold;
}

.info-side {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  background-color: #735322;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-side h2 {
  font-family: 'Merriweather', serif;
  margin-bottom: 10px;
}

.info-side ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.info-side li {
  margin-bottom: 10px;
  font-size: 16px;
}

.info-side a {
  color: white;
  text-decoration: none;
}

.info-side a:hover {
  text-decoration: underline;
}

/* =========================
   Forms
   ========================= */
form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}

form input,
form textarea {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 16px;
}

form button {
  padding: 10px;
  background-color: #444;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

form button:hover {
  background-color: #000;
}

/* =========================
   Modal
   ========================= */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-family: 'Merriweather', serif;
  position: relative;
}

.close-button {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  color: #000;
}

.details-button {
  margin-top: 15px;
  padding: 8px 20px;
  background-color: white;
  color: #111;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.details-button:hover {
  background-color: black;
  color: white;
}

/* =========================
   Acte
   ========================= */
.acte-title {
  text-align: center;
  font-size: 2.7rem;
  margin-bottom: 40px;
  font-weight: 700;
  font-family: 'Merriweather', serif;
  color: #1e1e1e;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.5px;
  line-height: 1.4;
  background: linear-gradient(to right, #f7f2ea, #ffffff);
  padding: 20px 10px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.acte-section {
  background-color: white;
  color: black;
  padding: 60px 20px;
  font-family: 'Merriweather', serif;
}

.acte-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.acte-text {
  flex: 1;
  min-width: 280px;
}

.acte-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.acte-text p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.acte-image {
  flex: 1;
  min-width: 280px;
  display: flex;
  justify-content: center;
}

.acte-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

/* =========================
   Cookie Banner & Footer
   ========================= */
/* COOKIE BAR — ultra slim, exact cât textul */
.cookie-banner{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #111;
  color: #fff;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding: 4px 8px !important;   /* micșorat */
  line-height: 1.1 !important;
  font-size: .82rem !important;
  box-shadow: 0 -1px 3px rgba(0,0,0,.25);
  height: auto !important;      
}

.cookie-banner p{
  margin: 0;
  white-space: nowrap;        
  overflow: hidden;
  text-overflow: ellipsis;      
  max-width: 75vw;               
  text-align: center;
  padding: 0;
}

.cookie-banner a{
  color: #c19b6c;
  text-decoration: underline;
  white-space: nowrap;
}

.cookie-banner button{
  padding: 4px 10px !important;  
  font-size: .82rem !important;
  background: #c19b6c;
  color: #111;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}


@media (max-width: 480px){
  .cookie-banner{ gap: 8px; padding: 4px 6px !important; font-size: .78rem !important; }
  .cookie-banner p{ max-width: 62vw; }
  .cookie-banner p a:last-child{ display: none; } 
}


.site-footer {
  background-color: transparent;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-family: 'Merriweather', serif;
  font-size: 14px;
  border-top: none;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}

.site-footer a:hover {
  color: #c9a063;
}

/* =========================
   Reviews
   ========================= */
.reviews-section {
  background: #000;
  color: #fff;
  padding: 60px 20px;
  font-family: 'Merriweather', serif;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.reviews-container {
  max-width: 1100px;
  margin: 0 auto;
}

.reviews-head {
  text-align: center;
  margin-bottom: 28px;
}

.reviews-head h2 {
  font-size: 2.4rem;
  margin-bottom: 8px;
  letter-spacing: .3px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, .35);
}

.reviews-head p {
  color: #cfcfcf;
  font-size: 1rem;
}

.review-form {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  margin-bottom: 28px;
}

.review-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.review-form .field {
  display: flex;
  flex-direction: column;
}

.review-form label {
  font-size: .95rem;
  margin-bottom: 6px;
  color: #c19b6c;
}

.review-form input,
.review-form textarea {
  background: #0f0f0f;
  color: #fff;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 12px 12px;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}

.review-form textarea {
  resize: vertical;
}

.review-form input:focus,
.review-form textarea:focus {
  outline: none;
  border-color: #c19b6c;
  box-shadow: 0 0 0 3px rgba(193, 155, 108, .18);
}

.btn-review {
  margin-top: 10px;
  background: #c19b6c;
  color: #111;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(193, 155, 108, .35);
  transition: transform .15s ease, background .2s ease, color .2s ease;
}

.btn-review:hover {
  background: #a7824a;
  color: #fff;
  transform: translateY(-1px);
}

.reviews-subtitle {
  margin: 18px 0 14px;
  font-size: 1.3rem;
  color: #fff;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, .35);
}

.reviews-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.reviews-list > * {
  list-style: none;
  background: #111;
  color: #e8e8e8;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}

.reviews-list > *:hover {
  transform: translateY(-3px);
  border-color: #c19b6c;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
}

.reviews-list .nume,
.reviews-list .autor,
.reviews-list .review-author,
.reviews-list h4 {
  color: #c19b6c;
  font-size: 1.05rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.reviews-list time {
  font-size: .85rem;
  color: #bdbdbd;
  display: block;
  margin-bottom: 8px;
}

.reviews-list p {
  margin: 6px 0;
  line-height: 1.7;
}

.card-front--image{
  position: relative;
  display: block !important;                  
  background: var(--bg, none) center/cover no-repeat;
  color: #fff;                                 
  padding: 0;                              
  overflow: hidden;
  border-radius: 10px;
}


.card-front--image::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  pointer-events: none;
}


.card-front--image .cf-caption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  text-align: left;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.card-front--image .cf-caption h3{
  margin: 0 0 6px 0;
  font-size: 1.2rem;
  line-height: 1.2;
}
.card-front--image .cf-caption p{
  margin: 0;
  font-size: .95rem;
  opacity: .95;
}


@media (max-width: 380px){
  .card-front--image .cf-caption h3{ font-size: 1.1rem; }
  .card-front--image .cf-caption p{ font-size: .9rem; }
}





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

  .review-form .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .reviews-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .info-section .container {
    flex-direction: column;
  }

  .card {
    width: 90%;
    height: auto;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }
}
@media (max-width: 768px){
  .hero-slider { padding-bottom: 12px; }
}



@media (max-width: 768px){

  .modal{
    position: fixed;
    inset: 0;
    z-index: 2147483647 !important;   
    background: rgba(0,0,0,.7);
    display: none;
    align-items: flex-start;       
    justify-content: center;
    padding: 120px 12px 16px;        
    overflow: hidden;                
    overscroll-behavior: contain;
  }
 
  .modal[style*="display: block"]{ display: flex !important; }


  .modal-content{
    margin: 0;                        
    width: 94vw;
    max-height: calc(100dvh - 140px); 
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
  }

  
  .close-button{
    position: sticky;
    top: 0;
    align-self: flex-end;
    background: #fff;                 
    padding: 6px 10px;
    border-radius: 6px;
    z-index: 2;
  }
}


body.modal-open{
  overflow: hidden;
  height: 100dvh;  
}


section[id], div[id]{ scroll-margin-top: 120px; }



.modal{ z-index: 2147483646 !important; }

body.modal-open .top-bar,
body.modal-open .navbar,
body.modal-open .cookie-banner{
  z-index: 1 !important;
  pointer-events: none;   
}


body.modal-open #cookie-banner{
  opacity: 0;
  pointer-events: none;
}

:root{ --header-offset: 110px; } 
@media (max-width: 1024px){
  .modal{
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: calc(var(--header-offset) + 8px) !important; 
  }
  .modal-content{
    margin: 0 !important;
    max-height: calc(100dvh - (var(--header-offset) + 24px)) !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
    position: relative !important;
  }
 
  .modal .close-button{
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + var(--header-offset) + 8px) !important;
    right: 12px !important;
    background: #fff;
    color: #000;
    border-radius: 8px;
    padding: 6px 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    z-index: 2147483647 !important;
  }
}


body.modal-open{
  overflow: hidden !important;
  height: 100dvh !important;
}


:root { --header-offset: 110px; }

.modal{
  z-index: 2147483646 !important;
  align-items: flex-start !important;        
  justify-content: center !important;
  padding: calc(var(--header-offset) + 12px) 12px 16px !important;
  background: rgba(0,0,0,.75) !important;
}


.modal-content{
  margin: 0 !important;
  width: min(680px, 92vw) !important;
  max-height: calc(100dvh - (var(--header-offset) + 28px)) !important;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  padding: clamp(16px, 3vw, 22px) !important;
}


.modal .close-button{
  position: fixed !important;
  top: calc(env(safe-area-inset-top, 0px) + var(--header-offset) + 8px) !important;
  right: 12px !important;
  z-index: 2147483647 !important;
  background: #fff; color:#000;
  border-radius: 10px; padding: 6px 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}


body.modal-open .top-bar,
body.modal-open .navbar,
body.modal-open .cookie-banner{
  z-index: 1 !important;
  pointer-events: none;
}


.modal .close-button {
  position: fixed !important;
  top: calc(var(--header-offset) + 10px) !important;
  right: 10px !important;
  z-index: 999999;
}


@supports (height: 100dvh){
  .modal-content{ max-height: calc(100dvh - (var(--header-offset) + 28px)) !important; }
}
/* ===== NAVBAR RESPONSIVE ===== */
/* Desktop: ascuns */
.menu-toggle{
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: #fff;
}

/* Mobil */
@media (max-width: 768px){
  .navbar{
    flex-wrap: wrap;
    justify-content: space-between;
  }

  /* AICI trebuia să fie vizibil, nu display:none */
  .menu-toggle{
    display: inline-flex;           /* ← vizibil pe mobil */
    align-items: center;
    justify-content: center;
    color: #111;
    background: #c19b6c;
    padding: 6px 12px;
    border-radius: 6px;
    margin-left: auto;
    z-index: 10001;                 /* peste meniu */
  }
  .menu-toggle:hover{ background:#a7824a; color:#fff; }

  .navbar nav ul{
    display: none;                  /* ascuns implicit */
    flex-direction: column;
    background: #111;
    width: 100%;
    position: absolute;
    top: 100%; left: 0;
    z-index: 10000;
  }
  .navbar nav ul.active{ display: flex; }

  .navbar nav ul li{
    text-align: center;
    padding: 12px 0;
  }
  .navbar nav ul li a{
    display: block;
    color: #c19b6c;
    font-size: 1.1rem;
  }
}

/* util pentru screen readers */
.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;
}





