/* ============================================================
   FIRSTLINCOLN — Layout Enhancements & Transitions
   Inspired by cbwebsitedesign.co.uk
   ============================================================ */

/* ============================================================
   SECTION REVEAL ANIMATIONS (scroll-triggered)
   ============================================================ */

/* Base state for elements that will animate in on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal="left"] {
  transform: translateX(-40px);
}

[data-reveal="right"] {
  transform: translateX(40px);
}

[data-reveal="scale"] {
  transform: scale(0.95);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays for child elements */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal-stagger].revealed > *:nth-child(1) { transition-delay: 0s; }
[data-reveal-stagger].revealed > *:nth-child(2) { transition-delay: 0.1s; }
[data-reveal-stagger].revealed > *:nth-child(3) { transition-delay: 0.2s; }
[data-reveal-stagger].revealed > *:nth-child(4) { transition-delay: 0.3s; }
[data-reveal-stagger].revealed > *:nth-child(5) { transition-delay: 0.4s; }
[data-reveal-stagger].revealed > *:nth-child(6) { transition-delay: 0.5s; }

[data-reveal-stagger].revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ENHANCED BUTTON TRANSITIONS
   ============================================================ */

.theme-btn {
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  overflow: hidden;
  position: relative;
}

.theme-btn .btn-title {
  position: relative;
  z-index: 1;
  transition: padding 0.25s ease;
}

.theme-btn:hover .btn-title {
  padding-left: 5px;
  padding-right: 5px;
}

/* Arrow appears on hover */
.theme-btn::after {
  content: '\f061';
  font-family: 'Font Awesome 6 Pro', 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) scale(0.75);
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 12px;
  z-index: 1;
}

.theme-btn:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  right: 15px;
}

/* ============================================================
   CARD / BOX HOVER EFFECTS
   ============================================================ */

/* Service blocks */
.service-block-six .inner-box,
.service-block .inner-box,
.feature-block .inner-box {
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.45s ease;
}

.service-block-six .inner-box:hover,
.service-block .inner-box:hover,
.feature-block .inner-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Icon animation */
.service-block-six .icon-box,
.service-block .icon-box {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-block-six .inner-box:hover .icon-box,
.service-block .inner-box:hover .icon-box {
  transform: scale(1.1) translateY(-3px);
}

/* Project blocks */
.project-block .inner-box {
  transition: transform 0.45s ease;
}

.project-block .inner-box:hover {
  transform: translateY(-5px);
}

.project-block .image-box {
  overflow: hidden;
}

.project-block .image-box img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.project-block .inner-box:hover .image-box img {
  transform: scale(1.05);
}

/* Team blocks */
.team-block .inner-box {
  transition: transform 0.45s ease;
}

.team-block .inner-box:hover {
  transform: translateY(-5px);
}

.team-block .image-box {
  overflow: hidden;
}

.team-block .image-box img {
  transition: transform 0.6s ease;
}

.team-block .inner-box:hover .image-box img {
  transform: scale(1.04);
}

/* ============================================================
   SECTION HEADING ANIMATIONS
   ============================================================ */

.sec-title .sub-title {
  transition: letter-spacing 0.4s ease;
}

.sec-title:hover .sub-title {
  letter-spacing: 0.15em;
}

/* ============================================================
   SMOOTH SCROLL BEHAVIOR
   ============================================================ */

html {
  scroll-behavior: smooth;
}

/* ============================================================
   SECTION SPACING (fluid, viewport-responsive)
   ============================================================ */

section {
  position: relative;
}

/* ============================================================
   CENTERED HERO BANNER CONTENT
   ============================================================ */

.hero-banner--centered .hero-banner__content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 30px;
  text-align: center;
}

.hero-banner--centered .hero-banner__tag {
  margin-left: auto;
  margin-right: auto;
  border-left: none;
  border-bottom: 3px solid var(--theme-color1, #df2313);
  padding-left: 30px;
}

.hero-banner--centered .hero-banner__tag::before {
  display: none;
}

.hero-banner--centered .hero-banner__desc {
  margin-left: auto;
  margin-right: auto;
}

.hero-banner--centered .hero-banner__cta {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.hero-banner--centered .hero-banner__cta .theme-btn {
  margin-left: 0 !important;
}

.hero-banner--centered .hero-banner__rings {
  right: auto;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.15;
}

@media (max-width: 767px) {
  .hero-banner--centered .hero-banner__heading {
    font-size: 32px;
  }
  .hero-banner--centered .hero-banner__cta {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================================
   REDESIGNED FOOTER — Dark, Modern (cbwebsitedesign.co.uk inspired)
   ============================================================ */

.main-footer {
  background: #0d0d0d !important;
  position: relative;
  overflow: hidden;
}

/* Remove old background image overlay */
.main-footer > .bg-image {
  display: none !important;
}

/* Ensure content sits above pseudo-element orbs */
.main-footer > .auto-container {
  position: relative;
  z-index: 1;
}

/* Subtle gradient orbs in footer background */
.main-footer::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 35, 19, 0.06), transparent 70%);
  top: -150px;
  right: -100px;
  pointer-events: none;
  filter: blur(80px);
}

.main-footer::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.04), transparent 70%);
  bottom: -100px;
  left: -80px;
  pointer-events: none;
  filter: blur(80px);
}

/* Footer top section — logo bar + divider */
.footer-top-bar {
  position: relative;
  padding: 60px 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-top-bar .logo img {
  max-height: 50px;
}

.footer-top-bar .footer-social {
  display: flex;
  gap: 12px;
}

.footer-top-bar .footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  transition: all 0.35s ease;
  backdrop-filter: blur(5px);
}

.footer-top-bar .footer-social a:hover {
  background: var(--theme-color1, #df2313);
  border-color: var(--theme-color1, #df2313);
  color: #fff;
  transform: translateY(-3px);
}

/* Footer main columns */
.footer-columns {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 50px 0;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 25px;
}

/* Footer about column */
.footer-about p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.45);
  max-width: 320px;
}

/* Footer nav links */
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 14px;
}

.footer-nav li:last-child {
  margin-bottom: 0;
}

.footer-nav a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-nav a:hover {
  color: #fff;
  transform: translateX(5px);
}

/* Animated underline from left */
.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--theme-color1, #df2313);
  transition: width 0.3s ease;
  transform-origin: left;
}

.footer-nav a:hover::after {
  width: 100%;
}

/* Footer contact column */
.footer-contact-item {
  margin-bottom: 20px;
}

.footer-contact-item:last-child {
  margin-bottom: 0;
}

.footer-contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 4px;
}

.footer-contact-value {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.footer-contact-value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-value a:hover {
  color: #fff;
}

/* Footer bottom bar */
.footer-bottom-bar {
  position: relative;
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-copyright a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-copyright a:hover {
  color: #fff;
}

.footer-legal {
  display: flex;
  gap: 25px;
}

.footer-legal a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Footer responsive */
@media (max-width: 991px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-top-bar {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
  .footer-legal {
    justify-content: center;
  }
}

/* ============================================================
   OVERRIDE old footer styles so they don't conflict
   ============================================================ */

.main-footer .widgets-section {
  display: none !important;
}

.main-footer .footer-bottom {
  display: none !important;
}
