/* Custom Styles */
:root {
  --brand-green: #2e7d32;
  --brand-dark: #1b5e20;
  --brand-light: #e8f5e9;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Component Classes (Hybrid approach) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.lead-form input:focus,
.lead-form select:focus {
  outline: 2px solid var(--brand-green);
  outline-offset: -1px;
}

/* Mobile Menu Animation */
.mobile-menu-enter {
  transform: translateY(-100%);
}
.mobile-menu-enter-active {
  transform: translateY(0);
  transition: transform 0.3s ease-out;
}

/* Utility for text balance */
.text-balance {
  text-wrap: balance;
}

/* Services block */
.service-card {
  background: #fff;
  padding: 1.75rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(46, 125, 50, 0.12);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  border-color: rgba(46, 125, 50, 0.35);
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.08);
  transform: translateY(-2px);
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card__desc {
  color: #4b5563;
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.service-card__link {
  color: var(--brand-green);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: auto;
}

.service-card__link:hover {
  text-decoration: underline;
}

.our-service-cards {
  display: grid;
}

.our-service-card {
  min-height: 320px;
}

.our-service-card__text--gray {
  background-color: #e5e7eb;
  color: #1f2937;
}

.our-service-card__text--blue {
  background-color: #2563eb;
}

.our-service-card__text--orange {
  background-color: #ea580c;
}

.our-service-card__img img {
  display: block;
}

/* 3D Video Section Styles */
.perspective-container {
  perspective: 1200px;
  overflow: hidden; /* Prevent horizontal scroll when rotating */
}

.video-3d-wrapper {
  position: relative;
  width: 100%;
  /* Ensure it has height */
}

.video-card-container {
  width: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.1s linear; /* Smooth but responsive tracking */
}

.video-card {
  width: 100%;
  display: block;
  transform-origin: center center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.3s ease;
}

/* Add a reflection/sheen effect on rotation if desired, 
   but for now we keep it clean as per "card with 3d perspective" */

/* Honest Reviews */
.reviews-grid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.review-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08),
    0 2px 4px -2px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--brand-green);
}

.review-card__quote {
  font-style: italic;
  color: #333;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.review-card__author {
  color: var(--brand-green);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Contact & CTA Section */
.contact-section .container {
  max-width: 1100px;
}

.contact-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.contact-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .contact-card__grid {
    grid-template-columns: 1fr 1.15fr;
  }
}

.contact-card__info {
  padding: 2rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

@media (min-width: 768px) {
  .contact-card__info {
    padding: 2.5rem 2rem;
    border-bottom: none;
    border-right: 1px solid #e2e8f0;
  }
}

.contact-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.contact-card__intro {
  color: #4b5563;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-detail__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-detail__value {
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.5;
  margin: 0;
}

.contact-card__form-wrap {
  padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .contact-card__form-wrap {
    padding: 2.5rem 2rem;
  }
}

.contact-form__group {
  margin-bottom: 1.25rem;
}

.contact-form__group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
}

.contact-form__group input,
.contact-form__group select,
.contact-form__group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.contact-form__group input:focus,
.contact-form__group select:focus,
.contact-form__group textarea:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.contact-form__group textarea {
  resize: vertical;
  min-height: 80px;
}

.contact-form__submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand-green);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 0.25rem;
}

.contact-form__submit:hover {
  background: var(--brand-dark);
}

.contact-form__disclaimer {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 1rem;
  margin-bottom: 0;
}

.about-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-hero__grid {
    grid-template-columns: 0.9fr 1fr;
    gap: 3rem;
  }
}

.about-hero__photo-wrap {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .about-hero__photo-wrap {
    margin: 0;
    max-width: none;
  }
}

.about-hero__photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 20px 40px -15px rgba(27, 94, 32, 0.2);
  position: relative;
  z-index: 1;
}

.about-hero__accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 40%;
  height: 60%;
  background: var(--brand-green);
  border-radius: 16px;
  opacity: 0.15;
  z-index: 0;
}

@media (min-width: 768px) {
  .about-hero__accent {
    bottom: -16px;
    right: -16px;
    width: 35%;
    height: 55%;
  }
}

.about-hero__content {
  text-align: center;
}

@media (min-width: 768px) {
  .about-hero__content {
    text-align: left;
  }
}

.about-hero__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.about-hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .about-hero__title {
    font-size: 3rem;
  }
}

.about-hero__tagline {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .about-hero__tagline {
    font-size: 1.25rem;
  }
}

.about-welcome {
  background: #fff;
}

.about-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  text-transform: capitalize;
}

.about-section__lead {
  font-size: 1.0625rem;
  color: #374151;
  line-height: 1.7;
}

.about-section__text {
  font-size: 1.0625rem;
  color: #374151;
  line-height: 1.7;
}

.about-section--alt {
  background: #f8fafc;
}

.about-section__inner {
  margin-left: auto;
  margin-right: auto;
}

.about-credentials__card {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  background: #fff;
  border-radius: 12px;
  border-left: 4px solid var(--brand-green);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.about-credentials__text {
  font-size: 1.0625rem;
  color: #374151;
  line-height: 1.7;
  margin: 0;
}

.about-credentials__text strong {
  color: var(--brand-dark);
}

.about-cta {
  background: linear-gradient(180deg, #f0fdf4 0%, var(--brand-light) 100%);
}

.about-cta__box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.about-cta__text {
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-cta__btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand-green);
  border-radius: 9999px;
  transition: background 0.2s ease;
}

.about-cta__btn:hover {
  background: var(--brand-dark);
}

/* Testimonials page */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.testimonial-card {
  background: #fff;
  padding: 1.75rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(46, 125, 50, 0.12);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  border-color: rgba(46, 125, 50, 0.25);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.08);
}

.testimonial-card__quote {
  font-size: 1rem;
  line-height: 1.65;
  color: #374151;
  margin: 0 0 1rem 0;
  font-style: normal;
}

.testimonial-card__author {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-dark);
  font-style: normal;
}

.pdf-viewer-wrapper {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-height: 600px;
}

.pdf-viewer-iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.pdf-viewer {
  width: 100%;
  height: 80vh;
  min-height: 600px;
  display: block;
}

/* Services page: hero */
.services-hero {
  text-align: center;
}

.services-hero__title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .services-hero__title {
    font-size: 2.75rem;
  }
}

.services-hero__lead {
  font-size: 1.125rem;
  color: #4b5563;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Services page: alternating image/text blocks */
.services-content {
  background: #f3f4f6;
  padding: 0 0 3rem 0;
}

.service-block {
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .service-block {
    margin-bottom: 2rem;
  }

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

.service-block__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .service-block__inner {
    grid-template-columns: 480px 1fr;
    gap: 0;
  }

  .service-block--reverse .service-block__inner {
    grid-template-columns: 1fr 480px;
  }

  .service-block--reverse .service-block__img-wrap {
    order: 2;
  }

  .service-block--reverse .service-block__text {
    order: 1;
  }
}

.service-block__img-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .service-block__img-wrap {
    width: 480px;
    height: 360px;
    flex-shrink: 0;
  }
}

.service-block__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

@media (min-width: 768px) {
  .service-block__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
  }

  .service-block--reverse .service-block__img {
    border-radius: 12px 0 0 12px;
  }
}

.service-block__text {
  padding: 1.75rem 1.5rem;
}

@media (min-width: 768px) {
  .service-block__text {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.service-block__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.service-block__text p {
  font-size: 1rem;
  color: #374151;
  line-height: 1.65;
  margin: 0 0 1rem 0;
}

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

.button-disabled {
  opacity: 0.5;
  pointer-events: none;
}
