/* =================================================================
   Elways Header & Page Styles
   Airbnb CSS Guide: kebab-case, one declaration per line,
   classes over IDs, no !important unless overriding inline styles
   ================================================================= */

/* --- Reset --- */
body {
  margin: 0;
}

/* --- Footer overrides --- */
.footer-logo {
  display: none;
}

.foot-links { order: 2; }
.foot-hours { order: 1; }
.foot-contact { order: 0; }
.foot-subscribe { order: 3; }

/* --- Featured / CTA section --- */
.featured-title {
  font-size: 24px;
  color: #fff;
  font-weight: 700;
}

/* --- Old CTA section (Service/Parts/New Riders) — hidden, replaced by quick-actions --- */
.cta-wrap {
  display: none;
}

/* --- Quick-link cards (restyled GraphicLinkGroup ed88e7c6) --- */
/* ID selector beats all class selectors in graphic-links.css — no !important needed */
#ed88e7c61a798abf792504f605af276c {
  all: unset;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px 16px;
  max-width: 1250px;
  margin: 0 auto;
  box-sizing: border-box;
}

#ed88e7c61a798abf792504f605af276c > div {
  all: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

#ed88e7c61a798abf792504f605af276c > div:hover {
  border-color: var(--accent, #0167c2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

#ed88e7c61a798abf792504f605af276c .box-text-holder {
  all: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#ed88e7c61a798abf792504f605af276c .box-headline {
  all: unset;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

#ed88e7c61a798abf792504f605af276c .box-text {
  all: unset;
  font-size: 12px;
  color: #666;
}

#ed88e7c61a798abf792504f605af276c .box-link {
  display: none;
}

/* Icons via ::before on the card div (not headline, to avoid layout issues) */
/* Final icons: motorcycle, gears, wrench */
#ed88e7c61a798abf792504f605af276c > div:nth-child(1)::before {
  content: "\f21c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 32px;
  color: #999;
  margin-bottom: 12px;
  transition: transform 0.2s;
}
#ed88e7c61a798abf792504f605af276c > div:nth-child(2)::before {
  content: "\f085";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 32px;
  color: #999;
  margin-bottom: 12px;
  transition: transform 0.2s;
}
#ed88e7c61a798abf792504f605af276c > div:nth-child(3)::before {
  content: "\f0ad";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 32px;
  color: #999;
  margin-bottom: 12px;
  transition: transform 0.2s;
}
#ed88e7c61a798abf792504f605af276c > div:hover::before {
  transform: scale(1.15);
}

/* --- Graphic link / box styles --- */
/* .box-link-box.full styling moved to ElwayTheme.css */

.box-link-holder {
  position: relative;
  background-color: rgba(255, 255, 255, 0.6);
  background-blend-mode: lighten;
  background-size: cover;
}

.box-link-box.bclass-1007d6742e9ac497eaa92796e129156d {
  transition: background-position-y 0.8s ease-in-out;
  background-position: center 90%;
  background-size: 80%;
}

.box-link-box.bclass-1007d6742e9ac497eaa92796e129156d:hover {
  background-color: #006883;
  transition: background-position-y 0.8s ease-in-out;
  background-position: center 50%;
  background-size: 90%;
}

.box-link-box {
  border: none;
}

.box-text-holder.center {
  margin-top: 10px;
  margin-bottom: 300px;
  border-bottom: 2px solid #006883;
}

.box-headline {
  margin-top: 10px;
}

/* =================================================================
   DESKTOP HEADER — hidden on mobile, shown at 1025px+
   ================================================================= */
.header-desktop {
  display: none;
}

/* --- Top bar: compact single-line (logo + info + search) --- */
.header-top-bar-wrapper {
  background-color: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.header-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  gap: 16px;
}

/* --- Logo (text) --- */
.header-logo-text {
  font-size: 22px;
  font-weight: 900;
  color: #222;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
}

.header-logo-text:hover {
  color: var(--accent, #006883);
}

/* --- Info items (address, phone, hours) --- */
.header-info {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: center;
}

.header-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #555;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

.header-info-item i {
  color: #999;
  font-size: 13px;
}

.header-info-item:hover {
  color: #333;
}

.header-info-text {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* --- Two-store phone badges (NOCO + secondary, e.g. Interstate Honda) --- */
.header-phone-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  color: #fff;
  line-height: 1;
  margin-right: 2px;
}

.header-phone-badge--noco {
  background: var(--accent, #006883);
}

.header-phone-noco,
.header-phone-noco i,
.header-phone-noco .header-info-text {
  color: var(--accent, #006883);
}

.header-phone-secondary {
  --secondary-phone-color: #cc0000;
  /* Visually separate the two store phones with a subtle divider */
  position: relative;
  padding-left: 16px;
}

.header-phone-secondary::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: rgb(var(--border, 229 229 229));
}

.header-phone-secondary,
.header-phone-secondary i,
.header-phone-secondary .header-info-text {
  color: var(--secondary-phone-color);
}

.header-phone-badge--secondary {
  background: var(--secondary-phone-color);
}

.header-phone-noco:hover,
.header-phone-secondary:hover {
  opacity: 0.85;
}

/* Phone numbers (already-formatted brand identity) shouldn't be uppercased */
.header-phone-noco .header-info-text,
.header-phone-secondary .header-info-text {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

/* --- Responsive: drop the address text once the row gets crowded --- */
@media (max-width: 1400px) {
  .header-info {
    gap: 14px;
  }
  /* Address is the lowest-priority utility item — hide before phones/hours */
  .header-info > a:first-child {
    display: none;
  }
}

@media (max-width: 1100px) {
  .header-info {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
  }
  .header-phone-secondary {
    padding-left: 0;
  }
  .header-phone-secondary::before {
    display: none;
  }
}

/* --- Search box --- */
.header-search {
  flex-shrink: 0;
  width: 200px;
  position: relative;
}

.header-search-form {
  display: flex;
  width: 100%;
}

.header-search-input-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f8f8f8;
}

.header-search-input {
  flex: 1;
  padding: 6px 10px;
  border: none;
  outline: none;
  font-size: 13px;
  background: transparent;
  color: #333;
}

.header-search-input::placeholder {
  color: #999;
}

.header-search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  border: none;
  background: none;
  color: #999;
  cursor: pointer;
  font-size: 14px;
}

.header-search-button:hover {
  color: #333;
}

/* =================================================================
   DESKTOP NAV
   ================================================================= */
.header-nav {
  display: flex;
  color: #101828;
  background-color: #fff;
  height: 48px;
  justify-content: center;
  gap: 32px;
  align-items: center;
  margin-top: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.header-nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  background-color: #fff;
  width: 256px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 8px 0;
}

.header-nav-item:hover .header-nav-dropdown {
  display: block;
}

.header-nav-item:last-child .header-nav-dropdown {
  left: auto;
  right: 0;
}

.header-nav-link {
  transition: color 0.2s;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 14px;
  color: #101828;
  text-decoration: none;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.header-nav-link:hover {
  color: var(--accent, #006883);
}

.header-nav-chevron {
  font-size: 10px;
  color: #101828;
  transition: transform 0.2s;
}

.header-nav-item:hover .header-nav-chevron {
  transform: rotate(180deg);
  color: var(--accent, #006883);
}

.header-nav-dropdown-list {
  display: block;
}

.header-nav-dropdown-link {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  padding: 10px 16px;
  color: #364153;
  text-decoration: none;
}

.header-nav-dropdown-link:hover {
  background-color: #f9fafb;
}

/* --- Nav link underline animation --- */
.hover-underline {
  position: relative;
}

.hover-underline::after,
.hover-underline::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--accent, #006883);
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

.hover-underline::before {
  top: -5px;
  transform-origin: left;
}

.hover-underline:hover::after,
.hover-underline:hover::before {
  transform: scaleX(1);
}

/* =================================================================
   GLOBAL TYPOGRAPHY
   ================================================================= */
a {
  color: var(--accent);
  text-decoration: underline;
}

/* Footer links: white, no underline (dark background) */
.footer-wrapper a {
  color: #fff;
  text-decoration: none;
}

.brand-carousel-text {
  display: none;
}

#overlap {
  margin-top: -125px;
}

/* --- Graphic link sizing --- */
.bsizer-6 {
  flex-basis: 13%;
  min-height: 250px;
}

.bsizer-3 {
  flex-basis: 29%;
}

.bsizer-3 .box-headline {
  font-size: 32px;
}

.bsizer-3 .box-text {
  font-size: 24px;
  color: #000;
}

/* --- NOCO-specific graphic link --- */
.box-link-box.bclass-60fba9704c1ea502e369973771600b64 {
  transition: all 0.4s ease-in-out;
  border: none;
  background-position: bottom center;
  background-size: 100%;
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
}

.box-link-box.bclass-60fba9704c1ea502e369973771600b64:hover {
  background-position-y: bottom 30px;
  background-color: #2b9bfe;
}

/* =================================================================
   ANNOUNCEMENT / CATEGORY STRIP
   ================================================================= */
.header-strip {
  display: none;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.header-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-strip-promo {
  color: var(--accent, #006883);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.header-strip-promo i {
  margin-right: 6px;
}

.header-strip-promo:hover {
  text-decoration: underline;
}

/* =================================================================
   TABLET (769px+)
   ================================================================= */
@media (min-width: 769px) {

  .cta-text-top {
    font-size: 40px;
  }

  .cta-text-bottom {
    font-size: 24px;
  }
}

/* =================================================================
   DESKTOP (1025px+) — show desktop header
   ================================================================= */
@media (min-width: 1025px) {
  .header-desktop {
    display: block;
    min-height: 80px;
  }

  .header-strip {
    display: block;
  }
}
