/*
Theme Name: RecordPath Animated
Template: blocksy
Version: 1.0
Description: RecordPath child theme with GSAP scroll animations
*/

/* Base animation styles */
.rp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #070A12;
  overflow: hidden;
}

.rp-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 120px 7vw 80px;
}

.rp-hero__headline {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: clamp(36px, 5.2vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #F2F5FA;
  margin-bottom: 2rem;
}

.rp-hero__headline-line {
  display: block;
  overflow: hidden;
}

.rp-hero__headline-line span {
  display: inline-block;
}

.rp-hero__accent {
  color: #E85D2B;
}

.rp-hero__eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A7B1C6;
  margin-bottom: 1.5rem;
}

.rp-hero__body {
  font-size: 18px;
  line-height: 1.7;
  color: #A7B1C6;
  max-width: 480px;
  margin-bottom: 2rem;
}

.rp-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #E85D2B;
  color: #fff;
  font-weight: 500;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.rp-hero__cta:hover {
  background: #d14d1e;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 93, 43, 0.3);
}

.rp-hero__image {
  position: absolute;
  right: 6vw;
  top: 50%;
  transform: translateY(-50%);
  width: 34vw;
  max-width: 500px;
  height: 68vh;
  max-height: 600px;
  border-radius: 10px;
  overflow: hidden;
  z-index: 1;
}

.rp-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pinned section base styles */
.rp-pinned-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.rp-pinned-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.rp-pinned-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rp-pinned-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,10,18,0.85) 0%, rgba(7,10,18,0.4) 60%, rgba(7,10,18,0.2) 100%);
  z-index: 1;
}

.rp-pinned-section__content {
  position: relative;
  z-index: 2;
  padding: 0 7vw;
  max-width: 600px;
}

.rp-pinned-section__headline {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.1;
  color: #F2F5FA;
  margin-bottom: 1.5rem;
}

.rp-pinned-section__body {
  font-size: 17px;
  line-height: 1.7;
  color: #A7B1C6;
  margin-bottom: 1.5rem;
}

.rp-pinned-section__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #E85D2B;
  font-weight: 500;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.rp-pinned-section__cta:hover {
  gap: 12px;
}

/* Service cards */
.rp-services {
  padding: 100px 7vw;
  background: #070A12;
}

.rp-services__headline {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 3.6vw, 56px);
  color: #F2F5FA;
  margin-bottom: 3rem;
}

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

.rp-service-card {
  background: #0F1422;
  border: 1px solid rgba(242, 245, 250, 0.08);
  border-radius: 10px;
  padding: 2.5rem;
  transition: all 0.4s ease;
}

.rp-service-card:hover {
  border-color: rgba(232, 93, 43, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.rp-service-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(232, 93, 43, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.rp-service-card__icon svg {
  width: 24px;
  height: 24px;
  color: #E85D2B;
}

.rp-service-card__title {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #F2F5FA;
  margin-bottom: 0.75rem;
}

.rp-service-card__body {
  font-size: 15px;
  line-height: 1.7;
  color: #A7B1C6;
}

/* Contact section */
.rp-contact {
  padding: 100px 7vw;
  background: #070A12;
}

.rp-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.rp-contact__headline {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 3.6vw, 56px);
  color: #F2F5FA;
  margin-bottom: 1.5rem;
}

.rp-contact__body {
  font-size: 17px;
  line-height: 1.7;
  color: #A7B1C6;
  margin-bottom: 2rem;
}

.rp-contact__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rp-contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #A7B1C6;
}

.rp-contact__detail svg {
  width: 20px;
  height: 20px;
  color: #E85D2B;
}

.rp-contact__form-wrapper {
  background: #0F1422;
  border: 1px solid rgba(242, 245, 250, 0.08);
  border-radius: 10px;
  padding: 2.5rem;
}

/* Form styles */
.rp-form__group {
  margin-bottom: 1.5rem;
}

.rp-form__label {
  display: block;
  font-size: 14px;
  color: #A7B1C6;
  margin-bottom: 0.5rem;
}

.rp-form__input,
.rp-form__textarea {
  width: 100%;
  background: rgba(7, 10, 18, 0.5);
  border: 1px solid rgba(242, 245, 250, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  color: #F2F5FA;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.rp-form__input:focus,
.rp-form__textarea:focus {
  outline: none;
  border-color: rgba(232, 93, 43, 0.5);
}

.rp-form__textarea {
  min-height: 120px;
  resize: vertical;
}

.rp-form__submit {
  width: 100%;
  padding: 14px 28px;
  background: #E85D2B;
  color: #fff;
  font-weight: 500;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rp-form__submit:hover {
  background: #d14d1e;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 93, 43, 0.3);
}

/* Footer */
.rp-footer {
  padding: 80px 7vw 40px;
  background: #070A12;
  border-top: 1px solid rgba(242, 245, 250, 0.05);
  position: relative;
  overflow: hidden;
}

.rp-footer__wordmark {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(100px, 18vw, 280px);
  color: rgba(242, 245, 250, 0.03);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.rp-footer__content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.rp-footer__links {
  display: flex;
  gap: 2rem;
}

.rp-footer__link {
  color: #A7B1C6;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.rp-footer__link:hover {
  color: #F2F5FA;
}

.rp-footer__copyright {
  color: #A7B1C6;
  font-size: 14px;
}

/* Mobile responsive */
@media (max-width: 1024px) {
  .rp-hero__image {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: none;
    height: 50vh;
    margin-top: 3rem;
  }
  
  .rp-contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .rp-hero__content {
    padding: 100px 5vw 60px;
  }
  
  .rp-services,
  .rp-contact {
    padding: 60px 5vw;
  }
  
  .rp-services__grid {
    grid-template-columns: 1fr;
  }
  
  .rp-footer__content {
    flex-direction: column;
    text-align: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .rp-hero__headline-line span,
  .rp-pinned-section__bg,
  .rp-pinned-section__content,
  .rp-service-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* No-JS fallback */
.no-js .rp-hero__headline-line span,
.no-js .rp-pinned-section__bg,
.no-js .rp-pinned-section__content {
  opacity: 1 !important;
  transform: none !important;
}