/* ─── Base ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
  background: #f8fafc;
  color: #1e293b;
}

/* ─── Header ─── */
#main-header {
  transition:
    background 0.4s,
    padding 0.4s,
    box-shadow 0.4s;
}
#main-header.scrolled {
  background: #1e293b !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  /* border-radius: 5px; */
}

::-webkit-scrollbar-thumb:hover {
  background: #d4af37;
}

/* ─── Hero ─── */
.about-hero {
  background: #1e293b;
  position: relative;
  overflow: hidden;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url("../asset/Images/building.webp");
  background-size: cover;
  background-position: center 30%;
  opacity: 0.18;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #1e293b 0%,
    rgba(15, 25, 35, 0.4) 50%,
    #1e293b 100%
  );
}
.hero-accent-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    #d4af37 30%,
    #d4af37 70%,
    transparent 100%
  );
}

/* ─── Gold Divider ─── */
.gold-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.gold-divider::before,
.gold-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

/* ─── Section Label ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #d4af37;
}
.section-label::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: #d4af37;
}

/* ─── Stats Counter ─── */
.stat-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(201, 168, 76, 0.08) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.stat-card:hover::before {
  opacity: 1;
}

/* ─── Mission Block ─── */
.mission-image-wrap {
  position: relative;
}
.mission-image-wrap::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 2px solid rgba(201, 168, 76, 0.3);
  border-radius: 0.5rem;
}
.mission-image-wrap::after {
  content: "";
  position: absolute;
  bottom: -20px;
  right: -20px;
  left: 20px;
  top: 20px;
  background: rgba(201, 168, 76, 0.06);
  border-radius: 0.5rem;
  z-index: -1;
}

/* ─── Values Grid ─── */
.value-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s;
  border-bottom: 3px solid transparent;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(201, 168, 76, 0.15);
  border-bottom-color: #d4af37;
}
.value-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #1e293b, #1a2940);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
  transition: transform 0.3s;
}
.value-card:hover .value-icon-wrap {
  transform: rotate(-6deg) scale(1.1);
}
.value-icon-wrap::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #d4af37, transparent);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}
.value-card:hover .value-icon-wrap::after {
  opacity: 1;
}

/* ─── Timeline ─── */
.timeline-item {
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 3.5rem;
  bottom: -1.5rem;
  width: 2px;
  background: linear-gradient(180deg, #d4af37, rgba(201, 168, 76, 0.1));
}
.timeline-item:last-child::before {
  display: none;
}
.timeline-dot {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  background: #1e293b;
  border: 2px solid #d4af37;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ─── Approach Cards ─── */
.approach-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
}
.approach-card::before {
  content: attr(data-num);
  position: absolute;
  right: -0.5rem;
  top: -1rem;
  font-size: 8rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  line-height: 1;
  color: rgba(201, 168, 76, 0.06);
  pointer-events: none;
  transition: color 0.4s;
}
.approach-card:hover::before {
  color: rgba(201, 168, 76, 0.12);
}
.approach-card:hover {
  background: #1e293b !important;
  color: white;
}
.approach-card:hover .approach-title {
  color: #d4af37;
}
.approach-card:hover .approach-desc {
  color: #94a3b8;
}
.approach-card:hover .approach-icon {
  color: #d4af37;
}

/* ─── CTA Section ─── */
.cta-section {
  background: #1e293b;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(201, 168, 76, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 50%,
      rgba(26, 41, 64, 0.8) 0%,
      transparent 60%
    );
}
.cta-pattern {
  position: absolute;
  inset: 0;
  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='%23c9a84c' fill-opacity='0.04'%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");
}

/* ─── Marquee ─── */
.marquee-container {
  overflow: hidden;
}
.marquee-content {
  display: flex;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ─── Animated underline ─── */
.animated-underline {
  position: relative;
  display: inline-block;
}
.animated-underline::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, #e8c97a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.animated-underline:hover::after {
  transform: scaleX(1);
}

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.reveal-left.visible {
  opacity: 1;
  transform: none;
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* ─── Mobile menu ─── */
#mobile-menu {
  overflow-y: auto;
}
#mobile-services-panel.open {
  display: flex;
}

/* ─── Quote block ─── */
.philosophy-quote {
  position: relative;
  padding: 2.5rem 3rem;
}
.philosophy-quote::before {
  content: '"';
  position: absolute;
  top: -1rem;
  left: 1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 8rem;
  line-height: 1;
  color: rgba(201, 168, 76, 0.2);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-dot {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, #d4af37, transparent);
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

/* ─── Counter animation ─── */
.counter {
  display: inline-block;
}

/* Patterns & effects that Tailwind can't do inline */
.faq-section-bg {
  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='%23c9a84c' fill-opacity='0.03'%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");
}
.faq-grid-overlay {
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.gold-gradient-line {
  background: linear-gradient(
    180deg,
    transparent 0%,
    #d4af37 30%,
    #d4af37 70%,
    transparent 100%
  );
}
.radial-glow {
  background:
    radial-gradient(
      ellipse at 15% 20%,
      rgba(201, 168, 76, 0.08) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 85% 80%,
      rgba(26, 41, 64, 0.6) 0%,
      transparent 55%
    );
}
.gold-divider-line {
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

/* Section label dashes */
.section-label::before,
.section-label::after {
  content: "";
  width: 2rem;
  height: 2px;
  background: #d4af37;
}

/* Accordion answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.34, 1, 0.64, 1);
}

/* Plus/minus toggle lines */
.toggle-v {
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s;
}
.faq-item.active .toggle-v {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

/* Number circle fill on active */
.faq-item.active .faq-num {
  background: #d4af37;
  color: #1e293b;
  border-color: #d4af37;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-d1 {
  transition-delay: 0.1s;
}
.reveal-d2 {
  transition-delay: 0.2s;
}
.reveal-d3 {
  transition-delay: 0.3s;
}
.reveal-d4 {
  transition-delay: 0.4s;
}

/* CTA button shimmer */
.cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e8c97a, #d4af37);
  opacity: 0;
  transition: opacity 0.35s;
}
.cta-btn:hover::before {
  opacity: 1;
}
