/* Rectivity — modern UI polish (colors unchanged) */

:root {
  --rectivity-brown: #9f5536;
  --rectivity-brown-dark: #7a4028;
  --rectivity-tan: #d2b48c;
  --rectivity-accent: #d67d58;
  --rectivity-charcoal: #333333;
  --rectivity-white: #ffffff;
  --rectivity-shadow: rgba(51, 30, 18, 0.18);
  --rectivity-radius: 16px;
  --rectivity-radius-lg: 24px;
  --rectivity-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

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

/* ——— Logo ——— */
.logo a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  float: none;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 14px var(--rectivity-shadow);
  transition: transform 0.35s var(--rectivity-ease), box-shadow 0.35s var(--rectivity-ease);
}

.logo a:hover img {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--rectivity-shadow);
}

.mobile-brand {
  display: none;
  text-align: center;
  margin-bottom: 28px;
}

.mobile-brand img {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 14px var(--rectivity-shadow);
}

/* ——— Header ——— */
header {
  padding: 24px 0;
}

header.sticky {
  padding: 14px 0;
  background: rgba(159, 85, 54, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: headerSlideDown 0.45s var(--rectivity-ease) forwards;
}

@keyframes headerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav ul li a {
  position: relative;
  padding-bottom: 4px;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}

nav ul li a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -2px;
  height: 2px;
  background: var(--rectivity-white);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--rectivity-ease);
}

nav ul li a:hover::after,
nav ul li.active a::after {
  transform: scaleX(1);
}

nav ul li.active a {
  color: var(--rectivity-white);
}

/* ——— Preloader ——— */
.spinner {
  background: var(--rectivity-tan);
}

.spinner .double-bounce1,
.spinner .double-bounce2 {
  background-color: var(--rectivity-brown);
  opacity: 0.7;
  animation: modernPulse 1.4s ease-in-out infinite;
}

.spinner .double-bounce2 {
  animation-delay: -0.7s;
}

@keyframes modernPulse {
  0%, 100% {
    transform: scale(0.55);
    opacity: 0.5;
  }
  50% {
    transform: scale(1);
    opacity: 0.85;
  }
}

/* ——— Hero ——— */
.hero-enter {
  animation: heroFadeUp 1s var(--rectivity-ease) both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner-text h2 {
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.12);
}

.banner-text p {
  line-height: 1.65;
  max-width: 420px;
  opacity: 0.95;
}

.banner-imgs img {
  border-radius: var(--rectivity-radius-lg);
  box-shadow: 0 20px 50px var(--rectivity-shadow);
  transition: transform 0.6s var(--rectivity-ease);
}

.banner-imgs:hover img {
  transform: translateY(-6px);
}

/* ——— Scroll reveal (replaces bounceIn / rubberBand / swing) ——— */
.reveal-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--rectivity-ease), transform 0.75s var(--rectivity-ease);
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-section .about-info,
.reveal-section .service-details,
.reveal-section .blog-post,
.reveal-section .feature {
  transition: opacity 0.6s var(--rectivity-ease), transform 0.6s var(--rectivity-ease);
}

.reveal-section.is-visible .about-info {
  animation: staggerIn 0.7s var(--rectivity-ease) both;
}

.reveal-section.is-visible .service-details:nth-child(1) { animation: staggerIn 0.6s var(--rectivity-ease) 0.05s both; }
.reveal-section.is-visible .service-details:nth-child(2) { animation: staggerIn 0.6s var(--rectivity-ease) 0.12s both; }
.reveal-section.is-visible .service-details:nth-child(3) { animation: staggerIn 0.6s var(--rectivity-ease) 0.19s both; }

.reveal-section.is-visible .blog-post:nth-child(1) .blog-post-inner,
.reveal-section.is-visible .col-lg-4:nth-child(1) .blog-post {
  animation: staggerIn 0.65s var(--rectivity-ease) 0.05s both;
}
.reveal-section.is-visible .col-lg-4:nth-child(2) .blog-post {
  animation: staggerIn 0.65s var(--rectivity-ease) 0.12s both;
}
.reveal-section.is-visible .col-lg-4:nth-child(3) .blog-post {
  animation: staggerIn 0.65s var(--rectivity-ease) 0.19s both;
}

@keyframes staggerIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— About ——— */
.about-info {
  padding: 8px 0;
}

.abt-info h3 {
  line-height: 1.25;
  margin-bottom: 12px;
}

.abt-info p {
  line-height: 1.65;
  opacity: 0.92;
}

.about-img img {
  border-radius: var(--rectivity-radius-lg);
  box-shadow: 0 16px 40px var(--rectivity-shadow);
}

/* ——— Services ——— */
.service-details {
  padding: 12px 16px;
  border-radius: var(--rectivity-radius);
  transition: background 0.3s ease, transform 0.3s var(--rectivity-ease);
}

.service-details:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(6px);
}

.service-info h3 {
  line-height: 1.2;
}

.service-main-info h3 {
  letter-spacing: -0.02em;
}

.service-img img {
  border-radius: var(--rectivity-radius-lg);
  box-shadow: 0 16px 40px var(--rectivity-shadow);
}

/* ——— Features ——— */
.feature-icon > span {
  transition: transform 0.35s var(--rectivity-ease), box-shadow 0.35s ease;
}

.feature:hover .feature-icon > span {
  transform: translateY(-4px) scale(1.04);
  box-shadow: -5px 12px 24px rgba(0, 0, 0, 0.28);
}

.feature-info p {
  line-height: 1.55;
}

/* ——— Testimonials ——— */
.user-comment p {
  line-height: 1.45;
}

.user-info img {
  border: 3px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.3s ease, transform 0.3s var(--rectivity-ease);
}

.slick-current .user-info img {
  border-color: var(--rectivity-white);
  transform: scale(1.05);
}

/* ——— Blog / Activities ——— */
.blog-post {
  border-radius: var(--rectivity-radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 28px var(--rectivity-shadow);
  transition: transform 0.4s var(--rectivity-ease), box-shadow 0.4s var(--rectivity-ease);
}

.blog-post:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 42px rgba(51, 30, 18, 0.22);
}

.blog-img {
  overflow: hidden;
  border-radius: var(--rectivity-radius-lg) var(--rectivity-radius-lg) 0 0;
}

.blog-img img {
  transition: transform 0.55s var(--rectivity-ease);
}

.blog-post:hover .blog-img img {
  transform: scale(1.06);
}

.blog-info {
  padding: 22px 20px 26px;
}

.blog-info h3 {
  line-height: 1.3;
}

.blog-catgs li a {
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease;
}

.blog-catgs li a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.heading h3 {
  letter-spacing: -0.02em;
}

/* ——— Footer ——— */
.top-footer {
  position: relative;
}

.widget {
  padding-right: 12px;
}

.widget > p,
.widget-contact ul li span {
  line-height: 1.65;
  opacity: 0.9;
}

.widget-contact ul li a {
  display: inline-block;
  line-height: 1.65;
  opacity: 0.92;
  transition: opacity 0.25s ease, transform 0.25s var(--rectivity-ease);
}

.widget-contact ul li a:hover {
  opacity: 1;
  transform: translateX(4px);
  color: var(--rectivity-accent);
}

.bottom-footer-data {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.payment-logos svg {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s var(--rectivity-ease);
}

.payment-logos svg:hover {
  transform: scale(1.06);
}

.social-links li a {
  transition: transform 0.3s var(--rectivity-ease), opacity 0.3s ease;
}

.social-links li a:hover {
  transform: translateY(-3px);
  opacity: 0.85;
}

/* ——— Mobile menu ——— */
.responsive-mobile-menu {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-menu ul li a {
  transition: padding 0.25s var(--rectivity-ease), color 0.25s ease;
}

.mobile-menu ul li a:hover {
  padding-left: 8px;
}

/* ——— Fix legacy hover purple → brand accent ——— */
.banner-text > a:hover,
.about-list > a:hover {
  background-color: var(--rectivity-accent) !important;
}

@media (max-width: 1200px) {
  .mobile-brand {
    display: block;
  }

  .logo img {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 991px) {
  .banner-text p {
    max-width: none;
  }

  .bottom-footer-data {
    flex-direction: column;
    text-align: center;
  }

  .payment-logos {
    margin-left: 0 !important;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-enter,
  .reveal-section,
  .reveal-section.is-visible .about-info,
  .reveal-section.is-visible .service-details,
  .reveal-section.is-visible .blog-post,
  header.sticky {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
