/* Base styles */
body {
  font-family: Helvetica;
  background: #f8f8f8;
  margin: 0;
  padding: 0;
}

/* Responsive Navigation */
.navbar {
  background: linear-gradient(to right, #4e2c12, #5b371d);
  border-bottom: 3px solid #c2a77c;
  padding: 12px 0;
  font-family: 'Garamond', serif;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.nav-logo {
  color: #fdf0d5;
  font-size: 1.6rem;
  text-decoration: none;
  font-weight: bold;
  text-shadow: 1px 1px #000;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: #fdf0d5;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background 0.3s;
}

.nav-links li a:hover {
  background: #7a5333;
  color: #ffeccf;
}

/* Mobile Navigation */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fdf0d5;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, #4e2c12, #5b371d);
    flex-direction: column;
    gap: 0;
    text-align: center;
    padding: 20px 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-links li a {
    display: block;
    padding: 15px 20px;
    font-size: 1.2rem;
    border-radius: 0;
    border-bottom: 1px solid #7a5333;
  }
  
  .nav-links li:last-child a {
    border-bottom: none;
  }
  
  /* Menu toggle animation */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

/* Product Selector */
.termek-valaszto {
  display: flex;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 30px;
}

.termek-valaszto button {
  flex: 1;
  padding: 15px;
  font-size: 1.1em;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid #007BFF;
  background: #fff;
  color: #007BFF;
  transition: background 0.3s, color 0.3s;
}

.termek-valaszto button.active, .termek-valaszto button:hover {
  background: #007BFF;
  color: white;
}

/* Responsive termek-valaszto */
@media (max-width: 768px) {
  .termek-valaszto {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  
  .termek-valaszto button {
    font-size: 1rem;
    padding: 12px;
  }
}

/* Forms */
form {
  display: none;
  max-width: 600px;
  margin: 0 auto 40px;
  background: white;
  padding: 40px;
  border-radius: 12px;
  text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}

form.active {
  display: block;
}

h2 {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 500;
}

label {
  display: block;
  margin: 20px 0 8px;
  font-weight: 500;
  color: #555;
  font-size: 0.95rem;
}

input[type=text], 
input[type=email], 
input[type=number], 
input[type=date], 
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #fafafa;
  transition: all 0.3s ease;
}

input[type=text]:focus, 
input[type=email]:focus, 
input[type=number]:focus, 
input[type=date]:focus, 
select:focus {
  outline: none;
  border-color: #d4b896;
  background-color: white;
}

select {
  cursor: pointer;
}

button[type=submit] {
  margin-top: 30px;
  background: #d4b896;
  border: none;
  color: white;
  padding: 14px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  width: 100%;
  transition: background-color 0.3s ease;
}

button[type=submit]:hover {
  background: #c2a47a;
}

/* Form responsiveness */
@media (max-width: 768px) {
  form {
    padding: 30px 20px;
    margin: 0 15px 40px;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  form {
    padding: 25px 15px;
  }
  
  input[type=text], 
  input[type=email], 
  input[type=number], 
  input[type=date], 
  select {
    padding: 10px 12px;
  }
}

/* Introduction Section */
.introduction {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-height: 100vh;
  text-align: left; 
  color: white;
  background-image: linear-gradient(
      rgba(0, 0, 0, 0.8), 
      rgba(0, 0, 0, 0)
    ),
    url(https://www.designsociety.org/multimedia/183da8af15aa750dd678cfa481eac34c1556811489.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: Helvetica;
  padding: 20px;
}

.introduction h1 {
  align-self: flex-end;
  font-size: 6rem;
  margin-right: 507px;
  margin-top: 150px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  font-family: Helvetica;
}

.introduction p {
  max-width: 1000px;
  margin-right: 150px;
  font-size: 1.4rem;
  line-height: 1.6;
  margin-left: auto;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  font-family: Helvetica;
}

.introduction button {
  background: #8F4C17;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  margin-top: 20px;
  margin-right: 968px;
  font-family: Helvetica;
}

/* Responsive introduction */
@media (max-width: 1200px) {
  .introduction h1 {
    font-size: 4rem;
    margin-right: 200px;
  }
  
  .introduction p {
    margin-right: 50px;
    font-size: 1.2rem;
  }
  
  .introduction button {
    margin-right: 400px;
  }
}

@media (max-width: 768px) {
  .introduction {
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    min-height: 80vh;
  }
  
  .introduction h1 {
    font-size: 3rem;
    margin-right: 0;
    margin-top: 80px;
    align-self: center;
  }
  
  .introduction p {
    margin-right: 0;
    font-size: 1.1rem;
    margin-left: 0;
  }
  
  .introduction button {
    margin-right: 0;
    align-self: center;
  }
}

@media (max-width: 480px) {
  .introduction h1 {
    font-size: 2.5rem;
    margin-top: 60px;
  }
  
  .introduction p {
    font-size: 1rem;
  }
  
  .introduction button {
    font-size: 1.1rem;
    padding: 10px 18px;
  }
}

/* Előminősítések Section */
.elominositesek {
  position: relative;
  background: #9D7A5F;
  margin: 0;
  width: 100%;
  max-width: none;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  color: white;
  font-family: Helvetica;
  padding: 40px 20px;
}

.elominositesek h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  color: white;
  font-family: Helvetica;
}

.elominositesek p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

/* Cards Container */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
}

.card-nyugdij, .card-lakashitel, .card-szemelyi, .card-biztositas {
  background: #ccc;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 1.5px 4px rgba(0,0,0,0.12);
  border-radius: 18px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  width: 300px;
  height: 425px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
  padding-bottom: 32px;
  position: relative;
  overflow: hidden;
  font-family: Helvetica;
}

.card-nyugdij::after, .card-lakashitel::after, .card-szemelyi::after, .card-biztositas::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.2), rgba(0,0,0,0));
  border-radius: 0 0 18px 18px;
  z-index: 1;
  font-family: Helvetica;
}

.card-nyugdij h3, .card-lakashitel h3, .card-szemelyi h3, .card-biztositas h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  width: 100%;
  padding: 0 0 30px 0;
}

.card-lakashitel {
  background: url('https://creditline.hu/wp-content/uploads/2023/02/tierra-mallorca-rgJ1J8SDEAY-unsplash-scaled.jpg') -150px center/cover no-repeat;
}

.card-szemelyi {
  background: url('https://hiteltszeretnek.hu/wp-content/uploads/2020/06/szemelyi-kolcson.jpg') right -155px center/cover no-repeat;
}

.card-nyugdij {
  background: url('https://www.purecremation.co.uk/hs-fs/hubfs/GettyImages-1422240813.jpg?width=950&height=497&name=GettyImages-1422240813.jpg') center center/cover no-repeat;
}

.card-biztositas {
  background: url('https://flexicar.hu/wp-content/uploads/2017/12/biztositas-kar.jpg') right -200px center/cover no-repeat;
}

.card-nyugdij:hover, .card-lakashitel:hover, .card-szemelyi:hover, .card-biztositas:hover {
  transform: translateY(-12px) scale(1.04);
  box-shadow: 0 16px 36px rgba(0,0,0,0.22), 0 3px 8px rgba(0,0,0,0.16);
  z-index: 2;
}

/* Responsive cards */
@media (max-width: 768px) {
  .elominositesek h1 {
    font-size: 2.5rem;
  }
  
  .cards-container {
    gap: 20px;
  }
  
  .card-nyugdij, .card-lakashitel, .card-szemelyi, .card-biztositas {
    width: calc(50% - 20px);
    height: 250px;
  }
}

@media (max-width: 600px) {
  .card-nyugdij, .card-lakashitel, .card-szemelyi, .card-biztositas {
    width: 100%;
    max-width: 300px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .elominositesek h1 {
    font-size: 2rem;
  }
  
  .card-nyugdij, .card-lakashitel, .card-szemelyi, .card-biztositas {
    height: 180px;
  }
}

/* Content Blocks */
.container {
  padding-top: 0px;
  display: flex;
  flex-direction: column;
}

.content-block {
  display: flex;
  align-items: center;
  gap: 50px;
  min-height: 400px;
  padding: 40px 20px;
}

.content-block:nth-child(odd) {
  flex-direction: row;
}

.content-block:nth-child(even) {
  flex-direction: row-reverse;
}

.image {
  width: 50%;
  height: auto;
  flex-shrink: 0;
}

.text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.valasztas {
  display: flex;
  align-items: left;
  justify-content: flex-start; 
  background: #fff;
}

.valasztas h1, .valasztas p {
  color: black;
  text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
  font-family: Helvetica;
}

.content-block:nth-child(odd) .text-content {
  text-align: left;
}

.content-block:nth-child(even) .text-content {
  text-align: right;
}

.valasztas button {
  background: #8F4C17;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  margin-top: auto;
  font-family: Helvetica;
  align-self: flex-start;
}

.content-block:nth-child(odd) .valasztas button {
  align-self: flex-start;
}

.content-block:nth-child(even) .valasztas button {
  align-self: flex-end;
}

/* Responsive content blocks */
@media (max-width: 768px) {
  .content-block {
    flex-direction: column !important;
    gap: 30px;
    min-height: auto;
    padding: 30px 20px;
  }
  
  .content-block:nth-child(even) {
    flex-direction: column !important;
  }
  
  .image {
    width: 100%;
    max-width: 400px;
  }
  
  .text-content {
    text-align: center !important;
  }
  
  .content-block:nth-child(even) .text-content {
    text-align: center !important;
  }
  
  .valasztas button {
    align-self: center !important;
    font-size: 1.1rem;
  }
  
  .content-block:nth-child(even) .valasztas button {
    align-self: center !important;
  }
}

@media (max-width: 480px) {
  .content-block {
    padding: 20px 15px;
  }
  
  .valasztas h1 {
    font-size: 1.5rem;
  }
  
  .valasztas p {
    font-size: 0.9rem;
  }
  
  .valasztas button {
    font-size: 1rem;
    padding: 10px 18px;
  }
}

/* Utility classes for JavaScript */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}