/* 
* Main Stylesheet for calprethoruni.eu
* Color palette:
* - Background: #F9F6EE (cream nude)
* - Primary accent: #2C73D2 (blue turquoise)
* - Secondary accent: #F25C54 (coral red)
* - Text color: #222222
* - Interface elements: #6C757D
*/

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

:root {
  --bg-color: #f9f6ee;
  --primary-color: #2c73d2;
  --secondary-color: #f25c54;
  --text-color: #222222;
  --interface-color: #6c757d;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --border-radius: 18px;
  --transition: all 0.3s ease;
  --header-height: 70px; /* Added header height variable for consistent spacing */
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  padding-top: var(
    --header-height
  ); /* Add padding to account for fixed header */
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

section {
  padding: 5rem 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--primary-color) 100%
  );
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  color: var(--white);
}

.btn-secondary {
  color: var(--primary-color);
  background: transparent;
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  color: var(--white);
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.btn-primary-small {
  color: var(--white);
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-primary-small:hover {
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--primary-color) 100%
  );
  color: var(--white);
}

/* Header and Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(249, 246, 238, 0.95);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  height: var(--header-height); /* Ensure consistent header height */
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center; /* Added align-items: center to align all items */
}

.nav-menu li {
  margin-left: 1.5rem;
}

.nav-menu li a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  display: inline-flex; /* Added to ensure consistent alignment */
  align-items: center; /* Added to vertically center content */
}

.nav-menu li a:hover {
  color: var(--primary-color);
}

.nav-menu li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-menu li a:hover::after {
  width: 100%;
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

.nav-toggle-label span {
  display: block;
  width: 25px;
  height: 3px;
  margin-bottom: 5px;
  background-color: var(--text-color);
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0;
}

.hero-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  padding-right: 3rem;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  font-size: 3rem;
}

.hero-content p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(44, 115, 210, 0.2);
  transition: transform 0.5s ease;
}

.hero-image img:hover {
  transform: scale(1.03);
}

/* About Section */
.about-section {
  background-color: rgba(44, 115, 210, 0.05);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
}

.about-image img:hover {
  transform: translateY(-10px);
}

/* Services Section */
.services-section {
  background-color: rgba(44, 115, 210, 0.05);
}

.services-image {
  position: relative;
  margin-bottom: 3rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  max-height: 300px;
}

.services-image img {
  width: 100%;
  object-fit: cover;
  height: 300px;
  border-radius: var(--border-radius);
  transition: transform 0.5s ease;
}

.services-image:hover img {
  transform: scale(1.05);
}

.services-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 2rem;
  color: var(--white);
}

.services-image-overlay h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.service-card h3 {
  color: var(--primary-color);
}

.service-card p {
  margin-bottom: 1rem;
}

.service-card .price {
  font-weight: 700;
  color: var(--secondary-color);
  margin: auto 0 1.5rem 0;
}

.service-card .btn {
  align-self: flex-start;
}

/* Benefits Section */
.benefits-section {
  background-color: var(--light-gray);
}

.benefits-intro {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  gap: 2rem;
}

.benefits-text {
  flex: 1;
}

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

.benefits-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.benefits-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.benefits-image:hover img {
  transform: scale(1.05);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit-item {
  text-align: center;
  padding: 1.5rem;
  transition: var(--transition);
  border-radius: var(--border-radius);
  background-color: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.benefit-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(44, 115, 210, 0.1);
}

.benefit-icon {
  margin-bottom: 1rem;
}

.benefit-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Visual Section */
.visual-section {
  position: relative;
}

.visual-section .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.visual-content {
  flex: 1;
}

.visual-image {
  flex: 1;
}

.visual-image img {
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
}

.visual-image img:hover {
  transform: scale(1.05);
}

/* FAQ Section */
.faq-section {
  background-color: rgba(242, 92, 84, 0.05);
}

.faq-container {
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  background-color: var(--white);
}

.faq-toggle {
  display: none;
}

.faq-question {
  display: block;
  padding: 1.5rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.faq-toggle:checked + .faq-question {
  color: var(--primary-color);
}

.faq-toggle:checked + .faq-question::after {
  content: "-";
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(
    135deg,
    rgba(44, 115, 210, 0.1) 0%,
    rgba(242, 92, 84, 0.1) 100%
  );
  padding: 5rem 0;
}

.cta-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-content {
  margin-bottom: 3rem;
  max-width: 600px;
}

.cta-content h2 {
  margin-bottom: 1rem;
  text-align: left; /* Changed from center to left */
}

/* Contact Form */
.contact-form {
  width: 100%;
  max-width: 600px;
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-align: left; /* Added to ensure left alignment */
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: calc(var(--border-radius) / 2);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  outline: none;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input {
  width: auto;
  margin-top: 0.3rem;
  margin-right: 0.5rem;
}

.checkbox-group label {
  font-weight: 400;
  font-size: 0.9rem;
  text-align: left; /* Added to ensure left alignment */
}

.contact-form .btn {
  width: 100%;
  padding: 1rem;
  text-align: left; /* Added to left-align text in the button */
}

/* Location Section */
.location-section {
  background-color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  width: 100%;
}

.location-content {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Changed from flex-start to center for vertical alignment */
  gap: 3rem;
  text-align: left;
}

.contact-info {
  flex: 1;
  padding-top: 0;
}

.contact-info p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.location-map {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  padding-right: 1rem; /* Added padding to push image more to the right */
}

.location-map img {
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
  max-width: 90%;
}

.location-map img:hover {
  transform: scale(1.05);
}

.location-section h2 {
  text-align: center !important;
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  position: relative;
  left: 0;
  right: 0;
}

/* Footer */
.site-footer {
  background-color: rgba(44, 115, 210, 0.05);
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-description {
  margin-top: 1rem;
  color: var(--text-color);
}

.footer-contact h3,
.footer-links h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(108, 117, 125, 0.2);
  text-align: center;
  font-size: 0.9rem;
  color: var(--interface-color);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding: 1rem;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  z-index: 1001;
  transition: opacity 0.5s ease;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.cookie-content p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Thank You Page */
.thankyou-section {
  padding: 8rem 0 5rem;
  text-align: center;
}

.thankyou-content {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.thankyou-content h1 {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.thankyou-content .btn {
  margin-top: 2rem;
}

/* Fix for anchor links being hidden under fixed header */
:target {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

/* Section specific adjustments */
.about-section,
.services-section,
.benefits-section,
.visual-section,
.faq-section,
.cta-section,
.location-section,
.policy-section,
.thankyou-section {
  padding-top: 5rem;
}

/* Policy Pages Styling */
.policy-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.policy-section h1 {
  margin-bottom: 2rem;
  color: var(--primary-color);
  text-align: center;
}

.policy-content {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.policy-content h2 {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-top: 2rem;
  text-align: left;
  margin-bottom: 1rem;
}

.policy-content ul,
.policy-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section:target {
  animation: fadeInUp 0.5s ease-out;
}

/* Media Queries */
@media (max-width: 991px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-section .container,
  .about-content,
  .visual-section .container,
  .location-content {
    flex-direction: column;
  }

  .hero-content,
  .about-text,
  .visual-content,
  .contact-info {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .benefits-intro {
    flex-direction: column;
  }

  .benefits-text,
  .benefits-image {
    width: 100%;
    margin-bottom: 2rem;
  }
}

@media (max-width: 767px) {
  .nav-toggle-label {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-toggle:checked ~ .nav-menu {
    max-height: 300px;
  }

  .nav-menu li {
    margin: 0;
    text-align: center;
  }

  .nav-menu li a {
    display: block;
    padding: 1rem;
  }

  .cookie-content {
    flex-direction: column;
  }

  .cookie-content .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  section {
    padding: 3rem 0;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

.location-section .contact-info h2 {
  text-align: center !important; /* Ensure heading is centered with higher specificity */
}
