/* ============================================================
   ADFC WordPress Theme - Components & Navigation
   Refined, non-bulky engineering visual components
   ============================================================ */

/* ── SITE HEADER ─────────────────────────────────────────── */
/* ── SITE HEADER ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--adfc-border-subtle);
  transition: all var(--transition-normal);
}

/* WP Admin Bar Offset when logged in */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--adfc-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  max-width: 1400px;
  margin-inline: auto;
}

.header-logo img {
  height: 58px;
  width: auto;
  transition: transform var(--transition-fast);
}

.header-logo:hover img {
  transform: scale(1.02);
}

/* ── WP DYNAMIC MENU & PRIMARY NAV ───────────────────────── */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-menu,
.primary-nav .menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-menu > li,
.primary-nav .menu > li {
  position: relative;
  list-style: none;
}

.nav-menu a,
.primary-nav .menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--adfc-text-main);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-ancestor > a,
.primary-nav .menu > li > a:hover {
  color: var(--adfc-blue);
  background: var(--adfc-blue-light);
}

/* Dropdown Arrow Indicator */
.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--transition-fast);
  margin-left: 0.2rem;
}

.menu-item-has-children:hover > a::after {
  transform: rotate(225deg) translateY(-2px);
}

/* Dropdown Sub-menu */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  padding: 0.5rem;
  background: #FFFFFF;
  border: 1px solid var(--adfc-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 1050;
  list-style: none;
}

.menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.sub-menu li {
  margin: 0;
}

.sub-menu a {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--adfc-text-body);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.sub-menu a:hover {
  color: var(--adfc-blue);
  background: var(--adfc-blue-light);
}

/* Header Quote CTA Button */
.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--adfc-text-white);
  background: var(--adfc-blue);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(25, 113, 185, 0.25);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.header-cta-btn:hover {
  background: var(--adfc-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(25, 113, 185, 0.35);
  color: #FFFFFF;
}

/* ── MOBILE MENU TOGGLE ──────────────────────────────────── */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 6px;
  background: transparent;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--adfc-text-main);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Drawer */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 32, 36, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 85vw);
  height: 100vh;
  background: #FFFFFF;
  z-index: 1200;
  padding: 5rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  overflow-y: auto;
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

.mobile-nav-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-drawer a {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--adfc-text-main);
  border-radius: var(--radius-md);
}

.mobile-nav-drawer a:hover {
  background: var(--adfc-blue-light);
  color: var(--adfc-blue);
}

.mobile-nav-drawer .sub-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  padding-left: 1rem;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-align: center;
}

.btn--primary {
  color: #FFFFFF;
  background: var(--adfc-blue);
  border: 1.5px solid var(--adfc-blue);
}

.btn--primary:hover {
  background: var(--adfc-blue-hover);
  border-color: var(--adfc-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 113, 185, 0.3);
}

.btn--secondary {
  color: var(--adfc-text-main);
  background: var(--adfc-gold);
  border: 1.5px solid var(--adfc-gold);
}

.btn--secondary:hover {
  background: var(--adfc-gold-hover);
  border-color: var(--adfc-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(253, 192, 16, 0.35);
}

.btn--outline {
  color: var(--adfc-blue);
  background: transparent;
  border: 1.5px solid var(--adfc-blue);
}

.btn--outline:hover {
  background: var(--adfc-blue);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn--outline-white {
  color: #FFFFFF;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
}

/* ── REFINED PRODUCT & VALUE CARDS ───────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: #FFFFFF;
  border: 1px solid var(--adfc-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--adfc-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(25, 113, 185, 0.2);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--adfc-blue-light);
  border-radius: var(--radius-md);
  color: var(--adfc-blue);
  margin-bottom: 1.25rem;
  transition: all var(--transition-fast);
}

.product-card:hover .product-card__icon {
  background: var(--adfc-blue);
  color: #FFFFFF;
}

.product-card__icon svg {
  width: 26px;
  height: 26px;
}

.product-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--adfc-text-main);
}

.product-card__desc {
  font-size: 0.9375rem;
  color: var(--adfc-text-body);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--adfc-blue);
  transition: gap var(--transition-fast);
}

.product-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.product-card:hover .product-card__link {
  gap: 0.6rem;
}

.product-card:hover .product-card__link svg {
  transform: translateX(3px);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--adfc-charcoal-dark);
  color: var(--adfc-text-white-sub);
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--adfc-border-dark);
}

.footer-brand p {
  color: var(--adfc-text-white-sub);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 1.25rem;
  max-width: 320px;
}

.footer-title {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--adfc-text-white-sub);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--adfc-gold);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--adfc-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.8125rem;
  color: var(--adfc-gray-muted);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .primary-nav {
    display: none;
  }

  .mobile-toggle,
  .mobile-nav-overlay {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 64px;
  }

  .header-logo img {
    height: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
