@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ============================================
   O'Leary Resolution Group — Custom Styles
   ============================================ */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* --- Smooth Scroll --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f1420;
}
::-webkit-scrollbar-thumb {
  background: #c5a55a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d4b76a;
}

/* --- Selection Color --- */
::selection {
  background: rgba(197, 165, 90, 0.3);
  color: #f5f0eb;
}

/* --- Scroll Animations --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
}

/* Staggered children */
.stagger-children .fade-in-up:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .fade-in-up:nth-child(2) { transition-delay: 0.12s; }
.stagger-children .fade-in-up:nth-child(3) { transition-delay: 0.19s; }
.stagger-children .fade-in-up:nth-child(4) { transition-delay: 0.26s; }
.stagger-children .fade-in-up:nth-child(5) { transition-delay: 0.33s; }
.stagger-children .fade-in-up:nth-child(6) { transition-delay: 0.40s; }
.stagger-children .fade-in-up:nth-child(7) { transition-delay: 0.47s; }
.stagger-children .fade-in-up:nth-child(8) { transition-delay: 0.54s; }
.stagger-children .fade-in-up:nth-child(9) { transition-delay: 0.61s; }

/* --- Navbar Transition --- */
.navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
  background-color: rgba(245, 240, 235, 0.97) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197, 165, 90, 0.15);
}

.navbar.scrolled .nav-link {
  color: rgba(15, 20, 32, 0.8) !important;
}

.navbar.scrolled .nav-link:hover {
  color: #c5a55a !important;
}

.navbar.scrolled .logo-white {
  filter: none !important;
}

.navbar.scrolled span.text-cream\/60 {
  color: rgba(15, 20, 32, 0.6) !important;
}

.navbar.scrolled span.text-cream\/40 {
  color: rgba(15, 20, 32, 0.4) !important;
}

.navbar.scrolled #hamburger .hamburger-line {
  background-color: #0f1420 !important;
}

#hamburger.active .hamburger-line {
  background-color: #0f1420 !important;
}

#mobileMenu {
  background-color: rgba(245, 240, 235, 0.98) !important;
  border-left: 1px solid rgba(197, 165, 90, 0.2);
}

#mobileMenu a {
  color: rgba(15, 20, 32, 0.8) !important;
}

#mobileMenu a:hover {
  color: #c5a55a !important;
}

#mobileMenu .text-cream\/40 {
  color: rgba(15, 20, 32, 0.5) !important;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 20, 32, 0.92) 0%,
    rgba(15, 20, 32, 0.78) 35%,
    rgba(15, 20, 32, 0.45) 60%,
    rgba(15, 20, 32, 0.2) 100%
  );
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Hero portrait photos */
.hero-portraits {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  justify-content: center;
}

.hero-portrait {
  width: 270px;
  height: 380px;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Gold Accent Line --- */
.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #c5a55a, #d4b76a);
  border: none;
  margin: 1.5rem 0;
}

/* --- Service Card Icons --- */
.service-icon {
  width: 56px;
  height: 56px;
  stroke: #c5a55a;
  stroke-width: 1.5;
  fill: none;
  transition: transform 0.3s ease, stroke 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  stroke: #d4b76a;
}

.service-card {
  position: relative;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* Divider between service cards */
.service-card + .service-card {
  border-left: 1px solid rgba(197, 165, 90, 0.2);
}

/* --- Who We Serve Section --- */
.who-we-serve-section {
  position: relative;
  overflow: hidden;
}

.who-we-serve-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.who-we-serve-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 20, 32, 0.93) 0%,
    rgba(15, 20, 32, 0.88) 60%,
    rgba(15, 20, 32, 0.7) 100%
  );
  z-index: 1;
}

.who-we-serve-content {
  position: relative;
  z-index: 2;
}

.client-card {
  transition: transform 0.3s ease;
}

.client-card:hover {
  transform: translateY(-4px);
}

.client-icon {
  width: 44px;
  height: 44px;
  stroke: #c5a55a;
  stroke-width: 1.5;
  fill: none;
  transition: transform 0.3s ease;
}

.client-card:hover .client-icon {
  transform: scale(1.1);
}

/* --- Expertise Section (was "Approach") --- */
.expertise-timeline-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #c5a55a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: #c5a55a;
  flex-shrink: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.expertise-timeline-item:hover .expertise-timeline-number {
  background-color: #c5a55a;
  color: #0f1420;
}

.expertise-bullet {
  position: relative;
  padding-left: 1.25rem;
}

.expertise-bullet::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: #c5a55a;
  border-radius: 50%;
}

.credential-card {
  background: linear-gradient(135deg, rgba(197, 165, 90, 0.08), rgba(197, 165, 90, 0.02));
  border: 1px solid rgba(197, 165, 90, 0.2);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.credential-card:hover {
  transform: translateY(-3px);
  border-color: rgba(197, 165, 90, 0.5);
  box-shadow: 0 8px 25px rgba(197, 165, 90, 0.1);
}

/* --- Situations Section Icons --- */
.situation-icon {
  width: 40px;
  height: 40px;
  stroke: #c5a55a;
  stroke-width: 1.5;
  fill: none;
  transition: transform 0.3s ease;
}

.situation-card {
  transition: transform 0.3s ease;
}

.situation-card:hover {
  transform: translateY(-3px);
}

.situation-card:hover .situation-icon {
  transform: scale(1.1);
}

/* Crisis banner */
.crisis-banner {
  border: 1px solid rgba(197, 165, 90, 0.4);
  border-radius: 8px;
  background: rgba(197, 165, 90, 0.06);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.crisis-banner:hover {
  border-color: rgba(197, 165, 90, 0.7);
  background: rgba(197, 165, 90, 0.1);
}

/* --- Promise Section --- */
.promise-icon {
  width: 48px;
  height: 48px;
  stroke: #c5a55a;
  stroke-width: 1.5;
  fill: none;
  transition: transform 0.3s ease;
}

.promise-card {
  transition: transform 0.3s ease;
}

.promise-card:hover {
  transform: translateY(-4px);
}

.promise-card:hover .promise-icon {
  transform: scale(1.1);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #1a1f2e 0%, #0f1420 50%, #1a1f2e 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c5a55a, transparent);
}

/* --- CTA Button --- */
.btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, #c5a55a, #d4b76a);
  color: #0f1420;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  font-size: 0.8rem;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 165, 90, 0.35);
}

.btn-gold:hover::after {
  left: 100%;
}

.btn-gold-outline {
  display: inline-block;
  background: transparent;
  color: #c5a55a;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  border-radius: 4px;
  border: 2px solid #c5a55a;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.8rem;
}

.btn-gold-outline:hover {
  background: #c5a55a;
  color: #0f1420;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 165, 90, 0.35);
}

/* --- Contact Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 101;
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(145deg, #1a1f2e, #0f1420);
  border: 1px solid rgba(197, 165, 90, 0.3);
  border-radius: 12px;
  padding: 2.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-input {
  width: 100%;
  background: rgba(245, 240, 235, 0.06);
  border: 1px solid rgba(197, 165, 90, 0.2);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: #f5f0eb;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.modal-input:focus {
  border-color: #c5a55a;
  box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.15);
}

.modal-input::placeholder {
  color: rgba(245, 240, 235, 0.35);
}

.modal-textarea {
  resize: vertical;
  min-height: 100px;
}

/* --- Footer --- */
.footer {
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 165, 90, 0.4), transparent);
}

.footer-link {
  color: rgba(15, 20, 32, 0.7);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #c5a55a;
}

/* --- Mobile Menu --- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Hamburger animation */
.hamburger-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* --- Utilities --- */
.text-gold {
  color: #c5a55a;
}

.text-gold-hover:hover {
  color: #d4b76a;
}

.bg-cream {
  background-color: #f5f0eb;
}

.bg-navy {
  background-color: #0f1420;
}

.bg-navy-light {
  background-color: #1a1f2e;
}

.tracking-widest-custom {
  letter-spacing: 0.2em;
}

/* --- Logo White Filter (for dark backgrounds) --- */
.logo-white {
  filter: brightness(0) invert(1);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .hero-portrait {
    width: 220px;
    height: 300px;
  }

  .service-card + .service-card {
    border-left: none;
    border-top: 1px solid rgba(197, 165, 90, 0.2);
  }
}

@media (max-width: 768px) {
  .hero-portraits {
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .hero-portrait {

    height: 240px;
  }

  .hero-portrait:first-child {
    transform: translateY(0);
  }

  .gold-line {
    margin: 1rem 0;
  }

  .modal-content {
    padding: 1.75rem;
    width: 95%;
  }

  .btn-gold,
  .btn-gold-outline {
    padding: 0.85rem 1.75rem;
    font-size: 0.75rem;
  }
}

/* --- Keyframe Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes pulse-gold {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(197, 165, 90, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(197, 165, 90, 0);
  }
}

.animate-pulse-gold {
  animation: pulse-gold 2.5s ease-in-out infinite;
}

/* Gold text shimmer for the "Let's talk" heading */
.shimmer-text {
  background: linear-gradient(
    110deg,
    #c5a55a 0%,
    #d4b76a 25%,
    #f0e0b0 50%,
    #d4b76a 75%,
    #c5a55a 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* --- Form Success State --- */
.form-success {
  text-align: center;
  padding: 2rem;
}

.form-success .checkmark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(197, 165, 90, 0.15);
  border: 2px solid #c5a55a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: fadeInUp 0.5s ease forwards;
}
