/*
 * Hiteles Pénzügyes - Main Stylesheet
 * Version: 1.0.0
 */

/* ===== COLORS ===== */
:root {
  --primary: #1a3a63;
  --primary-light: #2c5a93;
  --primary-dark: #122945;
  --secondary: #e6b54c;
  --secondary-light: #f0c56c;
  --secondary-dark: #d4a33a;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --white: #ffffff;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
}

/* ===== TYPOGRAPHY ===== */
body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.section-header {
  margin-bottom: 3rem;
}

p {
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }
}

/* ===== LAYOUT ===== */
.section-padding {
  padding: 100px 0;
}

.bg-light {
  background-color: var(--light);
}

.bg-primary {
  background-color: var(--primary) !important;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 70px 0;
  }
}

/* ===== BUTTONS ===== */
.btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--dark);
}

.btn-secondary:hover {
  background-color: var(--secondary-light);
  border-color: var(--secondary-light);
  color: var(--dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.cta-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(26, 58, 99, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(26, 58, 99, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(26, 58, 99, 0);
  }
}

.btn-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-right: 25px;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-link i {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.btn-link:hover {
  color: var(--primary-dark);
}

.btn-link:hover i {
  transform: translate(5px, -50%);
}

/* ===== HEADER ===== */
.site-header {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* Magasabb z-index mint a mega menü, hogy biztosan felette legyen */
  padding: 1rem 0;
  transition: all 0.3s ease;
  background-color: var(--white) !important;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled {
  background-color: var(--white);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.site-header .navbar {
  padding: 0;
}

.logo {
  height: 45px;
  width: auto;
}

.navbar-nav .nav-link {
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 0.5rem 1rem;
  position: relative;
}

.navbar-nav .nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
  width: 80%;
}

.scrolled .navbar-nav .nav-link {
  color: var(--primary);
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

@media (max-width: 992px) {
  .site-header {
    background-color: var(--white);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link {
    color: var(--primary);
  }
  
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }
  
  .nav-actions {
    margin-top: 1rem;
    text-align: center;
  }
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
  filter: blur(3px);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 58, 99, 0.6);
  z-index: -1;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-title span {
  display: block;
}

.hero-title .highlight {
  color: var(--secondary);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--white);
  z-index: 2;
}

.mouse {
  border: 2px solid var(--white);
  border-radius: 20px;
  height: 40px;
  width: 25px;
  margin: 0 auto 10px;
  position: relative;
}

.wheel {
  background-color: var(--white);
  border-radius: 100%;
  height: 6px;
  width: 6px;
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

.scroll-text {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
}

/* ===== FEATURES SECTION ===== */
.feature-card {
  padding: 2.5rem 1.5rem;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  text-align: center;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-card .icon {
  width: 80px;
  height: 80px;
  background-color: rgba(26, 58, 99, 0.1);
  border-radius: 50%;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.feature-card:hover .icon {
  background-color: var(--primary);
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* ===== CALCULATOR SECTION ===== */
.calculator-wrapper {
  background-color: var(--white);
  border-radius: 10px;
  padding: 2.5rem;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

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

.calculator-form label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.form-range {
  height: 6px;
  border-radius: 3px;
}

.form-range::-webkit-slider-thumb {
  background-color: var(--primary);
}

.calculator-results {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: none;
}

.calculator-results.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.result-card {
  background-color: rgba(26, 58, 99, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  height: 100%;
}

.result-card h4 {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.result-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SERVICES SECTION ===== */
.service-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  transition: all 0.3s ease;
  height: 100%;
  background-color: var(--white);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.service-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonial-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  margin: 1rem;
  height: calc(100% - 2rem);
}

.testimonial-content {
  position: relative;
  padding-top: 2rem;
  margin-bottom: 1.5rem;
}

.testimonial-content:before {
  content: '\201C';
  font-family: Georgia, serif;
  position: absolute;
  top: -10px;
  left: -5px;
  font-size: 5rem;
  color: rgba(26, 58, 99, 0.1);
  line-height: 1;
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.author-info p {
  color: var(--text-light);
  margin-bottom: 0;
}

.swiper-container {
  padding-bottom: 50px;
}

.swiper-pagination-bullet {
  background-color: var(--primary);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary);
}

/* ===== PROCESS SECTION ===== */
.process-timeline {
  position: relative;
  padding: 2rem 0;
}

.process-line {
  position: absolute;
  top: 83px;
  left: 15%;
  right: 15%;
  height: 4px;
  background-color: rgba(26, 58, 99, 0.1);
  z-index: -1;
  overflow: hidden;
}

/* Animation for process line */
.process-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--secondary);
  animation: process-line-flow 5s infinite linear;
}

@keyframes process-line-flow {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.process-step {
  text-align: center;
  padding: 0 15px;
  position: relative;
  margin-bottom: 30px;
}

.step-number {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.step-icon {
  width: 100px;
  height: 100px;
  background-color: var(--white);
  border-radius: 50%;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.process-step h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.process-step p {
  color: var(--text-light);
}

@media (max-width: 768px) {
  .process-line {
    display: none;
  }
  
  .process-step {
    margin-bottom: 50px;
  }
  
  .step-number {
    position: relative;
    margin: 0 auto 20px;
    top: auto;
    left: auto;
    transform: none;
  }
}

/* ===== CONTACT CTA SECTION ===== */
.contact-cta {
  position: relative;
  overflow: hidden;
}

.cta-content {
  padding-right: 2rem;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-features {
  margin-top: 2rem;
}

.cta-feature {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.cta-feature i {
  margin-right: 10px;
  color: var(--secondary);
}

.contact-form-wrapper {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 10px;
}

.contact-form-wrapper h3 {
  margin-bottom: 1.5rem;
}

.contact-form .form-control {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  padding: 0.8rem 1rem;
}

.contact-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form .form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.contact-form .form-check-label {
  font-size: 0.9rem;
}

.contact-form .form-check-label a {
  text-decoration: underline;
}

@media (max-width: 992px) {
  .cta-content {
    padding-right: 0;
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .cta-feature {
    justify-content: center;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 5rem 0 2rem;
}

.footer-brand .logo-white {
  height: 45px;
  width: auto;
}

.social-links {
  display: flex;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--secondary);
  color: var(--primary-dark);
}

.footer-heading {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 15px;
}

.footer-heading:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-info li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-contact-info i {
  margin-right: 10px;
  color: var(--secondary);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.copyright {
  margin-bottom: 0;
}

.footer-bottom-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-end;
}

.footer-bottom-links li {
  margin-left: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.footer-bottom-links a:hover {
  color: var(--secondary);
}

@media (max-width: 768px) {
  .footer-heading {
    margin-top: 2rem;
  }
  
  .footer-bottom-links {
    justify-content: flex-start;
    margin-top: 1rem;
  }
  
  .footer-bottom-links li {
    margin-left: 0;
    margin-right: 20px;
  }
}

/* ===== ANIMATIONS ===== */
[data-animation] {
  opacity: 0;
  transition: all 0.6s ease;
}

[data-animation="fadeIn"].animated {
  opacity: 1;
}

[data-animation="fadeInUp"].animated {
  opacity: 1;
  transform: translateY(0);
}

[data-animation="fadeInUp"] {
  transform: translateY(30px);
}

[data-animation="fadeInLeft"] {
  transform: translateX(-30px);
}

[data-animation="fadeInLeft"].animated {
  opacity: 1;
  transform: translateX(0);
}

[data-animation="fadeInRight"] {
  transform: translateX(30px);
}

[data-animation="fadeInRight"].animated {
  opacity: 1;
  transform: translateX(0);
}

/* Add delay to staggered animations */
[data-delay="100"] {
  transition-delay: 0.1s;
}

[data-delay="200"] {
  transition-delay: 0.2s;
}

[data-delay="300"] {
  transition-delay: 0.3s;
}

[data-delay="400"] {
  transition-delay: 0.4s;
}
