/* ============================================
   SERVICES SHARED STYLES
   ============================================ */

/* Page Hero */
.page-hero {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: stretch; /* Stretch to fill height */
  background-color: #fdf8e1; /* Base cream color */
  padding-top: 150px;
  padding-bottom: 100px;
}

.page-hero__bg-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%; /* Image takes 60% of right side */
  height: 100%;
  z-index: 1;
}

.page-hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%; /* Content overlaps slightly */
  height: 100%;
  background-color: #fdf8e1;
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%); /* Diagonal cut */
}

.page-hero__container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  display: flex;
  align-items: center;
  z-index: 10;
}

.page-hero__content {
  max-width: 500px;
  text-align: left;
}

.page-hero__label {
  background: rgba(73, 192, 183, 0.2);
  color: #49c0b7;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.page-hero__subtitle {
  margin-top: 1rem;
  margin-bottom: 0;
  opacity: 0.9;
  max-width: 600px;
  color: #64748b;
  font-size: 1.125rem;
  line-height: 1.6;
}

.page-hero__subtitle + .btn {
  margin-top: 2rem;
}

.page-hero__back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-family: 'Times New Roman', serif; /* Matching the image style */
  font-size: 16px;
  color: #0c3866;
  text-decoration: none;
}

.page-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 700;
  color: #0c3866;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 0;
}

.page-hero__title span {
  display: block;
}

.page-hero__title .highlight {
  color: #0c3866;
  background-color: rgba(73, 192, 183, 0.2); /* Subtle highlight from image */
  padding: 0 5px;
}

/* Intro Section */
.intro {
  padding-top: 100px;
  padding-bottom: 100px;
  padding-left: 24px;
  padding-right: 24px;
  background-color: #ffffff;
}

.intro__container {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.intro__text {
  font-size: 18px;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 40px;
}

.intro__actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
}

.intro__cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Stats Section */
.stats {
  padding-top: 80px;
  padding-bottom: 80px;
  padding-left: 24px;
  padding-right: 24px;
  background-color: #193a66;
}

.stats__container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-card {
  text-align: center;
}

.stat-card__number {
  font-family: "Playfair Display", serif;
  font-size: 48px;
  font-weight: 700;
  color: #49c0b7;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Common Section Components */
.section-title {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 700;
  color: #193a66;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: #64748b;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Building Types / Grid Cards */
.building-types {
  padding-top: 100px;
  padding-bottom: 100px;
  padding-left: 24px;
  padding-right: 24px;
  background-color: #fff;
}

.building-types__container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.building-types__header {
  text-align: center;
  margin-bottom: 60px;
}

.building-types__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.building-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 320px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.building-card__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.building-card:hover .building-card__img {
  transform: scale(1.05);
}

.building-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 40, 71, 0.9) 0%, rgba(15, 40, 71, 0.3) 50%, transparent 100%);
}

.building-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
}

.building-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.building-card__text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Process Timeline */
.process {
  padding-top: 100px;
  padding-bottom: 100px;
  padding-left: 24px;
  padding-right: 24px;
  background-color: #fff;
}

.process__container {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.process__header {
  text-align: center;
  margin-bottom: 60px;
}

.process__timeline {
  position: relative;
}

.process__line {
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #e2e8f0;
}

.process-step {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step__number {
  width: 64px;
  height: 64px;
  min-width: 64px;
  background-color: #49c0b7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #193a66;
  position: relative;
  z-index: 1;
}

.process-step__content {
  flex: 1;
  padding-top: 12px;
}

.process-step__title {
  font-size: 20px;
  font-weight: 700;
  color: #193a66;
  margin-bottom: 12px;
}

.process-step__text {
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
}

/* FAQ Section */
.faq {
  padding-top: 100px;
  padding-bottom: 100px;
  padding-left: 24px;
  padding-right: 24px;
  background-color: #f8fafc;
}

.faq__container {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq__header {
  text-align: center;
  margin-bottom: 60px;
}

.faq-item {
  background-color: #fff;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.faq-item__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-item__toggle:hover {
  background-color: #f8fafc;
}

.faq-item__question {
  font-size: 18px;
  font-weight: 600;
  color: #193a66;
  padding-right: 24px;
}

.faq-item__icon {
  width: 20px;
  height: 20px;
  color: #49c0b7;
  transition: transform 0.3s ease;
}

.faq-item.is-active .faq-item__icon {
  transform: rotate(180deg);
}


.faq-item.is-active .faq-item__answer {
  max-height: 1000px;
  transition: max-height 0.5s ease-in;
}

.faq-item__text {
  padding: 0 24px 24px;
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
}

/* Benefit Cards / Feature Grid */
.benefits {
  padding: 100px 24px;
  background-color: #fff;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  background-color: #f8fafc;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-card__icon-wrapper {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}

.benefit-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benefit-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #193a66;
  line-height: 1.3;
}

.benefit-card__text {
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
}

/* Color Section */
.colors {
  padding: 100px 24px;
  background-color: #f5f0e8;
}

.colors__container {
  max-width: 1200px;
  margin: 0 auto;
}

.colors__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.colors__image-wrapper {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.colors__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Trust Signals Section */
.trust {
  padding: 100px 24px;
  background-color: #193a66;
  color: #fff;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.trust-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.trust-card__img {
  height: 80px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.trust-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #49c0b7;
}

.trust-card__text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* CTA Section */
.cta {
  padding-top: 120px;
  padding-bottom: 120px;
  background: #0f172a;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #ffffff;
}

.cta__bg-shape {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(80px);
}

.cta__bg-shape:nth-child(1) {
  top: -100px;
  left: -100px;
}

.cta__bg-shape--2 {
  bottom: -100px;
  right: -100px;
  background: rgba(255, 255, 255, 0.15);
}

.cta__container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.cta__tagline {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.cta__title {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 40px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.cta .cta__btn--primary {
  background-color: #ffffff;
  color: #49c0b7;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cta .cta__btn--primary:hover {
  background-color: #f8fafc;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cta .cta__btn--secondary {
  background-color: transparent;
  color: #ffffff;
  border-width: 2px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.5);
}

.cta .cta__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: translateY(-3px);
}

.cta__text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
}

@media (max-width: 767px) {
  .cta {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .cta__tagline {
    font-size: 14px;
  }

  .cta__title {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .cta__btn {
    width: 100%;
  }

  .cta__bg-shape {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 479px) {
  .cta {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .cta__title {
    font-size: 28px;
  }
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Responsive */
@media (max-width: 991px) {
  .page-hero__title { font-size: 44px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .building-types__grid { grid-template-columns: repeat(2, 1fr); }
  .benefits__grid { grid-template-columns: 1fr; }
  .colors__grid { grid-template-columns: 1fr; gap: 40px; }
  .trust__grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .page-hero { min-height: 400px; }
  .page-hero__title { font-size: 36px; }
  .section-title { font-size: 32px; }
  .building-types__grid { grid-template-columns: 1fr; }
  .stats__grid { gap: 24px; }
}

/* ============================================
   INTRO VIDEO & BADGES (Added for index1 intro compatibility)
   ============================================ */
.intro__video {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.intro__video-thumbnail {
  width: 100%;
  height: auto;
  display: block;
}

.intro__video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #49c0b7;
  transition: all 0.3s ease;
}

.intro__video:hover .intro__video-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: #fff;
}

.intro__video-play svg {
  width: 32px;
  height: 32px;
}

.intro__badges {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.intro__badge-img {
  height: 60px;
  width: auto;
  filter: grayscale(0.2);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.intro__badge-img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}

.section-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(73, 192, 183, 0.1);
  color: #49c0b7;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.section__heading {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 700;
  color: #193a66;
  margin-top: 0;
  margin-bottom: 0;
}
