/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 0.9rem;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-yellow {
  background-color: var(--yellow);
  color: var(--text-dark);
}

.btn-yellow:hover {
  background-color: var(--yellow-hover);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--text-light);
  color: var(--text-light);
}

.btn-outline:hover {
  background-color: var(--text-light);
  color: var(--text-dark);
}

/* ==========================================================================
   Section Titles & Headers
   ========================================================================== */
.section-header {
  margin-bottom: var(--spacing-lg);
}

.section-header .badge {
  display: inline-block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--spacing-xs);
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
}

.bg-dark .section-header .badge {
  color: var(--yellow);
}

.bg-dark .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--primary);
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(209, 34, 48, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

.site-header.sticky {
  position: fixed;
  background-color: rgba(18, 21, 24, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

.top-bar {
  background-color: var(--bg-darker);
  color: var(--text-light);
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info {
  display: flex;
  gap: 20px;
}

.top-bar-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-info i {
  color: var(--yellow);
}

.main-nav {
  padding: 15px 0;
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  height: 70px;
  display: block;
}

.brand-logo img {
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: var(--yellow);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.site-footer {
  background-color: var(--bg-darker);
  color: var(--text-light);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-brand .footer-logo {
  height: 70px;
  margin-bottom: var(--spacing-sm);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 350px;
  margin-bottom: var(--spacing-sm);
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-light);
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--yellow);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
  color: var(--primary);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: var(--spacing-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Components
   ========================================================================== */
@media (max-width: 992px) {
  .top-bar {
    display: none;
  }

  .nav-links {
    display: none;
    /* Mobile menu toggled by JS */
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
  }

  .mobile-menu-btn {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}


/* ==========================================================================
   Footer CTA Column
   ========================================================================== */
.footer-cta-col {
  display: flex;
  flex-direction: column;
}

.footer-cta-btn {
  width: fit-content;
  font-size: 0.88rem;
  padding: 13px 24px;
  transition: var(--transition);
}

.footer-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(254, 222, 63, 0.35);
}

/* ==========================================================================
   Contact Modal Overlay & Container
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 8, 8, 0.78);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-overlay.active {
  display: flex;
  animation: modalBgFadeIn 0.25s ease forwards;
}

@keyframes modalBgFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-container {
  background: var(--bg-light);
  width: 100%;
  max-width: 540px;
  padding: 48px 44px;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  border-top: 4px solid var(--primary);
  animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border-radius: var(--radius-sm);
}

@keyframes modalSlideUp {
  from {
    transform: translateY(32px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 4px 8px;
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--primary);
  background: rgba(209, 34, 48, 0.08);
}

/* Modal Header */
.modal-header {
  margin-bottom: 30px;
}

.modal-header .modal-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 8px;
}

.modal-header h2 {
  font-size: 1.65rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* Modal Form Fields */
.modal-form .form-group {
  margin-bottom: 18px;
}

.modal-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}

.modal-form .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-light);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.modal-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(209, 34, 48, 0.1);
}

.modal-form .form-control::placeholder {
  color: #adb5bd;
}

.modal-form select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23545d66' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}

.modal-form textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* Submit button row */
.modal-submit-row {
  margin-top: 8px;
}

.modal-submit-row .btn {
  width: 100%;
  padding: 14px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Error / success messages in modal */
.modal-msg {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  text-align: center;
}

.modal-msg.error {
  background: rgba(209, 34, 48, 0.08);
  color: var(--primary);
  border: 1px solid rgba(209, 34, 48, 0.2);
}

/* Spinner */
.fa-spin {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive modal */
@media (max-width: 600px) {
  .modal-container {
    padding: 36px 24px;
  }

  .modal-header h2 {
    font-size: 1.4rem;
  }
}