/**
 * Front page specific styles
 */

/* General section styling */
.front-page section {
  padding: 80px 0;
}

/* Hero section */
.hero-section {
  padding: 0;
  margin-top: -85px; /* Offset for fixed header */
  position: relative;
}

.hero-section .container-full {
  padding: 0;
}

.front-page .wp-block-columns {
  margin-bottom: 0 !important;
}

/* Remove editor margins from slider */
.hero-section .wp-block-gutslider-slider {
  margin-top: 0;
  margin-bottom: 0;
}

/* section common styles */
.section-header {
  margin-bottom: 100px;
  text-align: center;
}

.section-header h2 {
  margin-bottom: 40px;
}

.subtitle {
  font-size: 22px;
  font-weight: 400;
  text-transform: capitalize;
}

.section-footer {
  margin-top: 150px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.section-footer a {
  font-size: 25px;
  font-weight: 600;
  color: var(--color-text-gray);
  transition: color 0.3s ease;
  text-decoration: underline;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.section-footer a:hover,
.services-section .section-footer a:hover {
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.section-footer a::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  background-image: url('/wp-content/themes/krs-wp/assets/icons/arrow-ur-gray.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.3s ease;
}

.section-footer a:hover::after,
.services-section .section-footer a:hover::after {
  transform: translateX(3px);
  background-image: url('/wp-content/themes/krs-wp/assets/icons/arrow-ur-purple.svg');
  transition: transform 0.3s ease;
}

/* Separators */
.separator {
  height: 1px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
}

/* sticky positioning */
.sticky-section-off {
  position: sticky;
  top: 85px;
  /* z-index: 10; */
}

/* About section */
section.about-section,
.history-section {
  padding: 100px 0 50px;
}

.about-page .mission-section,
section.about-section {
  background-color: var(--color-bg-secondary);
}

.about-content {
  display: flex;
  justify-content: center;
  min-height: 400px;
}

.about-text {
  max-width: 800px;
  text-align: center;
  font-size: 20px;
  line-height: 1.6;
}

/* Numbers section */
.numbers-section {
  background-color: var(--color-bg-secondary);
  padding: 100px 0;
}

.numbers-container {
  display: flex;
  /* flex-wrap: wrap; */
  justify-content: space-between;
  /* margin: 0 auto; */
  /* gap: 20px; */
}

.number-item {
  flex: 0 0 calc(25% - 10px);
  /* margin: 0; */
  background-color: var(--color-bg-gray);
  padding: 20px;
  min-width: 400px;
  min-height: 300px;
  position: relative;
}

.number-item h3 {
  font-weight: var(--font-weight-regular);
  margin-bottom: 15px;
  width: 70%;
}

.number-value {
  font-size: 72px;
  font-weight: 700;
  text-align: right;
  /* color: var(--color-primary); */
  position: absolute;
  bottom: 0;
  right: 20px;
}

/* Projects section */
.projects-section {
  background-color: #ffffff;
  padding: 100px 0;
}

.projects-section .section-header {
  margin-bottom: 50px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  height: 750px;
}

.project-item {
  position: relative;
  overflow: hidden;
}

.project-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

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

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  color: #ffffff;
  transition: opacity 0.3s ease;
}

h3.project-title {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 10px;
}

.project-location {
  font-size: 16px;
  font-weight: var(--font-weight-thin);
}

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

.projects-section .section-footer {
  margin-top: 50px;
}

.all-projects-link {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.all-projects-link:hover {
  color: var(--color-primary);
}

/* Services Section Styles */
section.services-section {
  padding: 110px 0 60px;
}

.services-section {
  background-color: var(--color-bg-dark);
  color: var(--color-text-secondary);
  position: relative;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 25px;
}

.services-section .section-header {
  margin-bottom: 60px;
}

.service-item {
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  padding: 30px 30px 60px;
  flex: 1 1 250px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.service-item:hover {
  background-color: var(--color-bg-accent);
  transition: background-color 0.3s ease, color 0.3s ease;
  transition: all 0.5s ease;
  transform: scale(1.05);
}

.service-item h3 {
  font-size: 26px;
  text-transform: capitalize;
  margin-bottom: 50px;
  color: var(--color-text-black);
  min-height: 63px;
  display: flex;
  align-items: flex-start;
}

.service-description {
  font-size: 22px;
  line-height: 1.5;
}

.service-description p {
  margin-bottom: 15px;
}

.service-description p:last-child {
  margin-bottom: 0;
}

.services-section .section-footer {
  margin-top: 100px;
}

.services-section .section-footer a {
  color: var(--color-text-white);
}

.services-section .section-footer a::after {
  background-image: url('/wp-content/themes/krs-wp/assets/icons/arrow-ur-white.svg');
}

/* Contact Form Styles */
section.contact-section {
  padding: 150px 0 0;
  background-color: #fff;
}

.contact-section .section-header h2 {
  margin-bottom: 100px;
}

.contact-section .contact-heading-link,
.contact-section .contact-heading-link:hover,
.contact-section .contact-heading-link:focus {
  color: inherit;
  text-decoration: none;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 30px;
}

.form-control {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc !important;
  padding: 10px 0 !important;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  transition: border-color 0.3s ease;
  background-color: transparent;
}

.form-control:focus {
  outline: none;
  border-color: #333;
}

.message-area {
  min-height: 60px;
  resize: vertical;
}

.form-submit {
  text-align: center;
  margin-top: 80px;
}

.send-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: transparent;
  color: #333;
  border: 1px solid #333;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
}

.send-button:hover {
  background-color: var(--color-primary);
  color: #fff;
}

input[type='text'],
input[type='email'],
input[type='url'],
input[type='password'],
input[type='search'],
input[type='number'],
input[type='tel'],
input[type='range'],
input[type='date'],
input[type='month'],
input[type='week'],
input[type='time'],
input[type='datetime'],
input[type='datetime-local'],
input[type='color'],
textarea {
  border: unset;
  border-radius: unset;
}

/* Placeholder styling */
.form-control::placeholder {
  color: #999;
  opacity: 1;
}

/* Focus animation */
.form-control:focus::placeholder {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

/* Error state */
.form-control.error {
  border-color: #e74c3c;
}

/* Success message */
.form-success {
  text-align: center;
  padding: 20px;
  color: #27ae60;
  display: none;
}

/* For WordPress Contact Form 7 integration */
.wpcf7-form .form-group {
  margin-bottom: 30px;
}

.wpcf7-form input[type='text'],
.wpcf7-form input[type='email'],
.wpcf7-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  transition: border-color 0.3s ease;
  background-color: transparent;
}

.wpcf7-form input[type='submit'] {
  display: inline-block;
  padding: 12px 30px;
  background-color: transparent;
  color: #333;
  border: 1px solid #333;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
}

.wpcf7-form input[type='submit']:hover {
  background-color: #333;
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .number-value {
    font-size: 60px;
  }

  .service-item {
    flex: 1 1 300px;
  }
}

@media (max-width: 992px) {
  .numbers-container,
  .services-container {
    justify-content: center;
  }

  .number-item {
    flex: 0 0 calc(50% - 40px);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .front-page section,
  .services-section {
    padding: 60px 0;
  }

  .section-header h2,
  .services-section h2 {
    font-size: 30px;
  }

  .about-text {
    font-size: 18px;
  }

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

@media (max-width: 576px) {
  .number-item {
    flex: 0 0 100%;
  }

  .number-value {
    font-size: 48px;
  }
}
