/* ==========================================================================
   LAYOUT — Header, Footer, Modal (from App.vue scoped styles)
   ========================================================================== */

/* Top Bar */
.top-bar {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.5rem 0;
  font-size: 0.75rem;
  position: relative;
  z-index: 10;
}

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

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-bar-social a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.top-bar-social a:hover {
  color: #FF6B35;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-right a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.top-bar-right a:hover {
  color: #FF6B35;
}

.top-bar-hours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 767px) {
  .top-bar {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .top-bar-right {
    display: none;
  }
}

/* Site Header - Dark */
.site-header {
  background: #0f172a;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}

.logo span {
  color: #FF6B35;
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: #FF6B35;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-dropdown-trigger:hover {
  color: #FF6B35;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: #1e293b;
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Mobile Menu Button */
.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: white;
  cursor: pointer;
  position: relative;
  z-index: 301;
}

@media (min-width: 1024px) {
  .menu-btn {
    display: none;
  }
}

/* Mobile Menu — Fullscreen Overlay */
.nav-mobile {
  display: none;
  flex-direction: column;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #0f172a;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a,
.nav-mobile-label {
  padding: 0.875rem 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 1.125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-mobile a:hover,
.nav-mobile a:active {
  color: #FF6B35;
}

.nav-mobile-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
  border-bottom: none;
}

.nav-mobile-sub {
  padding-left: 1rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 1rem;
}

.nav-mobile .btn {
  margin-top: 1.5rem;
  text-align: center;
}

/* Contact info at bottom of mobile menu */
.nav-mobile-contact {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.nav-mobile-contact a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.nav-mobile-contact a:hover {
  color: #FF6B35;
}

.nav-mobile-contact i {
  width: 1.25rem;
  text-align: center;
  margin-right: 0.5rem;
}

.nav-mobile-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.nav-mobile-social a {
  width: 2rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
}

.nav-mobile-social a:hover {
  background: #FF6B35;
  color: white;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #0f172a;
  color: #9CA3AF;
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  color: white;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #ffffff;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #FF6B35;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  width: 2rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.social-links a:hover {
  background: #FF6B35;
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.75rem;
}

.footer-bottom a {
  color: #9CA3AF;
}

.footer-bottom a:hover {
  color: #FF6B35;
}

/* ==========================================================================
   MODAL (overrides/additions to styles.css modal)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}

.modal-box {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 28rem;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #6B7280;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #1A1A2E;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: #374151;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: #FF6B35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Hidden class for modal */
.hidden {
  display: none !important;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Phone-only: visible only on mobile */
/* CTA button + badge unified size */
.cta-btn {
  min-height: 52px !important;
  padding: 0.75rem 1.5rem !important;
  font-size: 0.9375rem !important;
}

.phone-only { display: none; }
@media (max-width: 767px) {
  .phone-only { display: inline-flex; }

  /* CTA section: full-width buttons stacked */
  .section-primary .flex.justify-center > .btn,
  .section-primary .flex.justify-center > .email-badge {
    width: 100%;
    justify-content: center;
  }
}

/* Email copy badge */
.email-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 600;
  position: relative;
}
.email-badge i { font-size: 0.9em; }
.email-badge:hover { opacity: 0.85; }
.email-badge-light {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.email-badge-default {
  background: var(--gray-50);
  color: var(--primary);
  border: 1px solid var(--gray-200);
}
.email-badge .copied-msg {
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.email-badge .copied-msg.show { opacity: 1; }
