/* ExpoCraft Global — custom styles (Bootstrap loads separately) */

:root {
  --brand-dark: #0d1b2a;
  --brand-accent: #e85d04;
  --brand-accent-soft: #ff8c42;
  --brand-muted: #6c757d;
  --header-gradient: linear-gradient(135deg, #0d1b2a 0%, #1b3a4b 45%, #0d1b2a 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--brand-dark);
}

/* —— Header & navbar animations —— */
.site-header {
  background: var(--header-gradient);
  background-size: 200% 200%;
  animation: headerGradientShift 12s ease infinite;
  box-shadow: 0 4px 24px rgba(13, 27, 42, 0.35);
}

@keyframes headerGradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  animation: brandReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  transform: translateY(-12px);
}

@keyframes brandReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header .nav-link {
  position: relative;
  animation: navFadeIn 0.6s ease forwards;
  opacity: 0;
}

.site-header .nav-item:nth-child(1) .nav-link {
  animation-delay: 0.1s;
}
.site-header .nav-item:nth-child(2) .nav-link {
  animation-delay: 0.18s;
}
.site-header .nav-item:nth-child(3) .nav-link {
  animation-delay: 0.26s;
}
.site-header .nav-item:nth-child(4) .nav-link {
  animation-delay: 0.34s;
}
.site-header .nav-item:nth-child(5) .nav-link {
  animation-delay: 0.42s;
}
.site-header .nav-item:nth-child(6) .nav-link {
  animation-delay: 0.5s;
}

@keyframes navFadeIn {
  to {
    opacity: 1;
  }
}

.site-header .nav-link::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.site-header .nav-link:hover::after,
.site-header .nav-link.active::after {
  transform: scaleX(1);
}

.site-header .nav-link.active {
  color: #fff !important;
  font-weight: 600;
}

.top-bar {
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.85rem;
  animation: topBarSlide 0.5s ease-out forwards;
  transform: translateY(-100%);
}

@keyframes topBarSlide {
  to {
    transform: translateY(0);
  }
}

/* Hero */
.hero-section {
  min-height: 420px;
  background: linear-gradient(120deg, #0d1b2a 0%, #1b4965 50%, #0d1b2a 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(232, 93, 4, 0.15) 0%,
      transparent 45%
    ),
    radial-gradient(circle at 80% 20%, rgba(255, 140, 66, 0.12) 0%, transparent 40%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from {
    opacity: 0.7;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  animation: heroTitleUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero-lead {
  animation: heroTitleUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

@keyframes heroTitleUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-brand {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-brand:hover {
  background: var(--brand-accent-soft);
  border-color: var(--brand-accent-soft);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 93, 4, 0.35);
}

.btn-outline-brand {
  border: 2px solid var(--brand-accent);
  color: var(--brand-accent);
  font-weight: 600;
}

.btn-outline-brand:hover {
  background: var(--brand-accent);
  color: #fff;
}

/* Cards & sections */
.section-title {
  font-weight: 700;
  color: var(--brand-dark);
}

.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(13, 27, 42, 0.12) !important;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand-accent-soft);
}

/* Events grid */
.event-card .badge {
  font-weight: 500;
}

/* Blog */
.blog-meta {
  font-size: 0.875rem;
  color: var(--brand-muted);
}

/* Contact form */
.form-control:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 0.2rem rgba(232, 93, 4, 0.2);
}

/* —— Home page (Propshop-style sections) —— */
.section-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

/* Home hero: height follows content (no forced min-height) */
.hero-section.hero-home {
  min-height: 0;
}

.hero-stats .stat-item {
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stats .stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.hero-stats .stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.25rem;
}

/* Trusted brands (home) */
.trusted-brands-section {
  background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 42%, #f8fafc 100%);
  position: relative;
}

.trusted-brands-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--brand-accent), transparent);
  opacity: 0.5;
}

.trusted-brands-lead {
  font-size: 1.05rem;
  line-height: 1.65;
}

@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
}

.trusted-brand-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 1rem 1.35rem;
  text-align: center;
  border: 1px solid rgba(13, 27, 42, 0.08);
  box-shadow: 0 2px 12px rgba(13, 27, 42, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.trusted-brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(13, 27, 42, 0.1);
  border-color: rgba(232, 93, 4, 0.35);
}

.trusted-brand-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 0.85rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(232, 93, 4, 0.14), rgba(27, 58, 75, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-accent);
  font-size: 1.4rem;
  transition: transform 0.22s ease, background 0.22s ease;
}

.trusted-brand-card:hover .trusted-brand-icon {
  transform: scale(1.06);
  background: linear-gradient(145deg, rgba(232, 93, 4, 0.22), rgba(27, 58, 75, 0.12));
}

.trusted-brand-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1.4;
}

.trusted-brands-footnote {
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .trusted-brand-card:hover,
  .trusted-brand-card:hover .trusted-brand-icon {
    transform: none;
  }
}

.why-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-soft));
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.portfolio-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 220px;
  background: linear-gradient(145deg, #1b4965 0%, #0d1b2a 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(13, 27, 42, 0.2);
}

.portfolio-tile .portfolio-tile-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(transparent 20%, rgba(13, 27, 42, 0.92) 100%);
  color: #fff;
}

.process-timeline .process-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(232, 93, 4, 0.15);
  color: var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.global-tile {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e9ecef;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.global-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13, 27, 42, 0.1);
}

.global-tile .global-tile-head {
  background: var(--brand-dark);
  color: #fff;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.testimonial-card {
  border-left: 4px solid var(--brand-accent);
  background: #fff;
}

.cta-strip {
  background: linear-gradient(120deg, #0d1b2a 0%, #1b3a4b 55%, #0d1b2a 100%);
  color: #fff;
}

.seo-pill {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #f1f3f5;
  color: var(--brand-dark);
  border: 1px solid #dee2e6;
}

.city-chip {
  font-size: 0.8rem;
}

.city-chip a {
  color: var(--brand-dark);
  text-decoration: none;
  border-bottom: 1px dashed var(--brand-muted);
}

.city-chip a:hover {
  color: var(--brand-accent);
  border-bottom-color: var(--brand-accent);
}

/* Home hero — vertical enquiry card */
.hero-enquiry-card {
  border-radius: 16px;
  background: #fff;
}

.hero-enquiry-card .form-control:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 0.2rem rgba(232, 93, 4, 0.2);
}

@media (min-width: 992px) {
  .hero-enquiry-card {
    position: sticky;
    top: 6.5rem;
  }
}

/* Hero / content imagery */
.hero-side-img {
  max-height: 420px;
  object-fit: cover;
  width: 100%;
}

.content-section-img {
  border-radius: 12px;
  object-fit: cover;
  width: 100%;
  max-height: 380px;
}

.event-card-thumb {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.blog-card-thumb {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.service-hero-img {
  border-radius: 12px;
  object-fit: cover;
  width: 100%;
  max-height: 320px;
}

.article-hero-img {
  border-radius: 12px;
  object-fit: cover;
  width: 100%;
  max-height: 400px;
}

/* Portfolio tile with photo */
.portfolio-tile-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
