/* ============================================
   AIES Official — Construction Company Theme
   ============================================ */

:root {
  --primary: #c8922a;
  --primary-dark: #a67520;
  --primary-light: #e8b84a;
  --dark: #0f1419;
  --dark-soft: #1a2332;
  --dark-muted: #2a3544;
  --text: #4a5568;
  --text-light: #718096;
  --white: #ffffff;
  --off-white: #f8f9fb;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 4px 24px rgba(15, 20, 25, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 20, 25, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 600;
  line-height: 1.25;
}

a {
  text-decoration: none;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---- Preloader ---- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(200, 146, 42, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Navbar ---- */
.navbar-aies {
  padding: 1rem 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar-aies.scrolled {
  background: rgba(15, 20, 25, 0.97);
  backdrop-filter: blur(12px);
  padding: 0.6rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.navbar-aies .navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white) !important;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.navbar-brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.navbar-aies .brand-accent {
  color: var(--primary);
}

.navbar-aies .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.navbar-aies .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition);
  transform: translateX(-50%);
}

.navbar-aies .nav-link:hover,
.navbar-aies .nav-link.active {
  color: var(--primary-light) !important;
}

.navbar-aies .nav-link:hover::after,
.navbar-aies .nav-link.active::after {
  width: 60%;
}

.btn-nav-cta {
  background: var(--primary);
  color: var(--dark) !important;
  font-weight: 600;
  padding: 0.55rem 1.4rem !important;
  border-radius: 50px;
  border: 2px solid var(--primary);
  transition: all var(--transition);
}

.btn-nav-cta:hover {
  background: transparent;
  color: var(--primary) !important;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 20, 25, 0.88) 0%, rgba(26, 35, 50, 0.82) 50%, rgba(15, 20, 25, 0.92) 100%),
    url('../assets/images/hero/hero-elevation.jpg') center/cover no-repeat;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8922a' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200, 146, 42, 0.15);
  border: 1px solid rgba(200, 146, 42, 0.3);
  color: var(--primary-light);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-badge i {
  font-size: 0.75rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--primary);
  font-style: italic;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stat h3 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 0.15rem;
}

.hero-stat p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin: 0;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.hero-card-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  aspect-ratio: 4/3;
}

.hero-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-card-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.hero-card-list li:last-child {
  border-bottom: none;
}

.hero-card-list i {
  color: var(--primary);
  width: 20px;
}

.floating-badge {
  position: absolute;
  background: var(--primary);
  color: var(--dark);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

.floating-badge.top-right {
  top: -15px;
  right: -15px;
}

.floating-badge.bottom-left {
  bottom: -15px;
  left: -15px;
  background: var(--white);
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---- Buttons ---- */
.btn-primary-aies {
  background: var(--primary);
  color: var(--dark);
  border: 2px solid var(--primary);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary-aies:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 146, 42, 0.35);
}

.btn-outline-aies {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-aies:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

.btn-dark-aies {
  background: var(--dark);
  color: var(--white);
  border: 2px solid var(--dark);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  transition: all var(--transition);
}

.btn-dark-aies:hover {
  background: var(--dark-soft);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- Section Common ---- */
.section {
  padding: 100px 0;
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
}

.bg-off-white {
  background: var(--off-white);
}

.bg-dark-section {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
}

.bg-dark-section .section-title {
  color: var(--white);
}

.bg-dark-section .section-subtitle {
  color: rgba(255, 255, 255, 0.65);
}

/* ---- About ---- */
.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image-wrap img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-experience {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background: var(--primary);
  color: var(--dark);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-experience h3 {
  font-size: 2.5rem;
  color: var(--dark);
  margin: 0;
  line-height: 1;
}

.about-experience p {
  margin: 0;
  font-weight: 600;
  font-size: 0.85rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(200, 146, 42, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.about-feature h6 {
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
}

.about-feature p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---- Services ---- */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  border: 1px solid #eef0f4;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(200, 146, 42, 0.15), rgba(200, 146, 42, 0.05));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--dark);
}

.service-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-link:hover {
  color: var(--primary-dark);
  gap: 0.65rem;
}

/* ---- Process ---- */
.process-step {
  text-align: center;
  position: relative;
  padding: 0 1rem;
}

.process-number {
  width: 72px;
  height: 72px;
  background: rgba(200, 146, 42, 0.12);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 2;
}

.process-step h5 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.process-line {
  position: absolute;
  top: 36px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: rgba(200, 146, 42, 0.25);
  z-index: 1;
}

/* ---- Projects ---- */
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 20, 25, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h5 {
  color: var(--white);
  margin-bottom: 0.25rem;
  transform: translateY(10px);
  transition: transform var(--transition);
}

.project-overlay span {
  color: var(--primary-light);
  font-size: 0.85rem;
  transform: translateY(10px);
  transition: transform var(--transition);
  transition-delay: 0.05s;
}

.project-card:hover .project-overlay h5,
.project-card:hover .project-overlay span {
  transform: translateY(0);
}

.project-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: var(--dark);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---- Why Us ---- */
.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  height: 100%;
  border: 1px solid #eef0f4;
  transition: all var(--transition);
}

.why-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.why-icon {
  width: 80px;
  height: 80px;
  background: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
  color: var(--primary);
}

.why-card h5 {
  margin-bottom: 0.75rem;
}

.why-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.cta-banner h3 {
  color: var(--dark);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(15, 20, 25, 0.75);
  margin-bottom: 0;
}

.cta-banner .btn-dark-aies {
  background: var(--dark);
  border-color: var(--dark);
}

/* ---- Testimonials ---- */
.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
}

.testimonial-stars {
  color: var(--primary);
  margin-bottom: 1rem;
}

.testimonial-text {
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--dark);
}

.testimonial-author h6 {
  color: var(--white);
  margin: 0;
  font-size: 0.95rem;
}

.testimonial-author span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* ---- Contact ---- */
.contact-info-card {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: rgba(200, 146, 42, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info-item h6 {
  color: var(--white);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.contact-info-item p,
.contact-info-item a {
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  font-size: 0.95rem;
}

.contact-info-item a:hover {
  color: var(--primary);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid #eef0f4;
}

.form-control-aies,
.form-select-aies {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.form-control-aies:focus,
.form-select-aies:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 146, 42, 0.15);
}

.form-label-aies {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

/* ---- Footer ---- */
.footer {
  background: var(--dark-soft);
  color: rgba(255, 255, 255, 0.65);
  padding: 60px 0 0;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand span {
  color: var(--primary);
}

.footer-desc {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--dark);
}

.footer h6 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--primary);
}

/* ---- Scroll to top ---- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--dark);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* ---- Animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .hero-stats {
    gap: 1.5rem;
  }

  .about-experience {
    right: 10px;
    bottom: 10px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .process-line {
    display: none;
  }

  .cta-banner {
    padding: 2.5rem;
    text-align: center;
  }

  .cta-banner .btn-dark-aies {
    margin-top: 1.5rem;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 70px 0;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-stat {
    flex: 1 1 40%;
  }

  .floating-badge {
    display: none;
  }

  .contact-form,
  .contact-info-card {
    padding: 1.75rem;
  }

  .gallery-filters {
    gap: 0.5rem;
  }

  .gallery-filter-btn {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
  }

  .before-after-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Service Card Images ---- */
.service-card.has-image {
  padding: 0;
  overflow: hidden;
}

.service-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card.has-image:hover .service-card-img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 1.5rem 2rem 2rem;
}

/* ---- Before & After ---- */
.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.ba-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid #eef0f4;
}

.ba-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.ba-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: var(--dark);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ba-label.after {
  background: var(--dark);
  color: var(--white);
}

.ba-caption {
  padding: 1.25rem 1.5rem;
  background: var(--white);
}

.ba-caption h5 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.ba-caption p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

.ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
}

/* ---- Gallery ---- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.gallery-filter-btn {
  background: var(--white);
  border: 1px solid #e2e8f0;
  color: var(--text);
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hidden {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 20, 25, 0.85) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h6 {
  color: var(--white);
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}

.gallery-overlay span {
  color: var(--primary-light);
  font-size: 0.8rem;
}

.gallery-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition);
}

.gallery-item:hover .gallery-zoom {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ---- Products Showcase ---- */
.product-showcase-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #eef0f4;
  height: 100%;
  transition: all var(--transition);
}

.product-showcase-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-showcase-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--off-white);
}

.product-showcase-img.contain {
  object-fit: contain;
  padding: 1rem;
  height: 260px;
}

.product-showcase-body {
  padding: 1.5rem;
}

.product-showcase-body h5 {
  margin-bottom: 0.5rem;
}

.product-showcase-body p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ---- Video Section ---- */
.video-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--dark);
  position: relative;
}

.video-wrapper video {
  width: 100%;
  display: block;
  max-height: 480px;
  object-fit: cover;
}

.video-caption {
  padding: 1.5rem 2rem;
  background: var(--dark-soft);
  color: rgba(255, 255, 255, 0.8);
}

.video-caption h5 {
  color: var(--white);
  margin-bottom: 0.35rem;
}

.video-caption p {
  margin: 0;
  font-size: 0.92rem;
}

/* ---- Lightbox ---- */
.lightbox-modal .modal-content {
  background: transparent;
  border: none;
}

.lightbox-modal .modal-body {
  padding: 0;
  position: relative;
}

.lightbox-modal img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-modal .btn-close {
  position: absolute;
  top: -40px;
  right: 0;
  filter: invert(1);
  opacity: 1;
}

.lightbox-caption {
  color: var(--white);
  text-align: center;
  padding-top: 1rem;
  font-size: 0.95rem;
}

.footer-brand-logo {
  height: 48px;
  margin-bottom: 1rem;
}
