/* Elite Sports Floor Care — site stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #FFFFFF;
  color: #000102;
  font-family: "Barlow", system-ui, sans-serif;
}

a { color: #143781; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

img { display: block; max-width: 100%; }

::selection { background: rgba(67, 138, 212, 0.3); }
:focus-visible { outline: 2px solid #E8A33D; outline-offset: 2px; }

/* — blueprint frame decoration (hairline border + corner registration marks) — */
.blueprint {
  position: relative;
  border: 1px solid rgba(150, 172, 198, 0.35);
}
.blueprint > .corner {
  position: absolute; width: 11px; height: 11px;
  color: rgba(150, 172, 198, 0.7);
}
.blueprint > .corner::before, .blueprint > .corner::after {
  content: ""; position: absolute; background: currentColor;
}
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after  { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }

/* — 3D court viewer: live on desktop, static image on small screens — */
.efc-3d-live { display: block; }
.efc-3d-static { display: none; }
@media (max-width: 760px) {
  .efc-3d-live { display: none; }
  .efc-3d-static { display: block; }
}

/* — header navigation — */
.efc-header-inner {
  max-width: 1240px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 16px;
}
.efc-nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid rgba(150, 172, 198, 0.4);
  padding: 9px; line-height: 0; cursor: pointer;
}
.efc-nav {
  margin-left: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.efc-navlink {
  color: #D7E1EB; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
  white-space: nowrap; transition: color 0.15s ease;
  background: none; border: none; padding: 0; font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
}
.efc-navlink:hover { color: #438AD4; }

.efc-navlink2 { color: #D7E1EB; transition: color 0.15s ease; }
.efc-navlink2:hover { color: #E8A33D; }

.efc-nav-phone { color: #FFFFFF; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }

.efc-nav-cta { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; padding: 9px 14px; white-space: nowrap; display: inline-block; }

/* — services dropdown — */
.efc-dropdown { position: relative; }
.efc-dropdown-chevron { transition: transform 0.15s ease; }
.efc-dropdown-toggle[aria-expanded="true"] .efc-dropdown-chevron { transform: rotate(180deg); }
.efc-dropdown-menu {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%);
  background: #0D2961; border: 1px solid rgba(215, 225, 235, 0.18); min-width: 230px;
  display: grid; padding: 6px; gap: 1px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.15s ease;
}
.efc-dropdown-menu a {
  color: #D7E1EB; font-size: 13px; letter-spacing: 0.02em; padding: 10px 12px; white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.efc-dropdown-menu a:hover { background: rgba(255, 255, 255, 0.06); color: #E8A33D; }
.efc-dropdown.is-open .efc-dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; }

/* — mobile / tablet nav: hamburger + slide-down panel — */
@media (max-width: 1024px) {
  .efc-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .efc-nav {
    position: absolute; top: 100%; left: 0; right: 0; margin-left: 0;
    background: #061A3D; border-top: 1px solid rgba(215, 225, 235, 0.14);
    flex-direction: column; align-items: stretch; gap: 0; padding: 6px 20px 20px;
    max-height: calc(100dvh - 64px); overflow-y: auto;
    display: none;
  }
  .efc-header { position: sticky; }
  .efc-nav.is-open { display: flex; }
  .efc-nav > .efc-navlink, .efc-nav > .efc-nav-phone {
    padding: 14px 0; border-bottom: 1px solid rgba(215, 225, 235, 0.08); width: 100%; justify-content: space-between;
  }
  .efc-nav-cta { margin: 16px 0 0; text-align: center; }
  .efc-dropdown { width: 100%; border-bottom: 1px solid rgba(215, 225, 235, 0.08); }
  .efc-dropdown-toggle { width: 100%; justify-content: space-between; padding: 14px 0; border-bottom: none; }
  .efc-dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    display: none; background: rgba(255, 255, 255, 0.03); border: none; min-width: 0; padding: 0 0 10px 12px;
  }
  .efc-dropdown.is-open .efc-dropdown-menu { display: grid; }
  .efc-dropdown-menu a { padding: 10px 4px; }
}

/* — amber primary CTA (used across hero, header, gold plan, contact form) — */
.efc-cta {
  background: #E8A33D; color: #061A3D; border: none; cursor: pointer;
  transition: background-color 0.15s ease;
}
.efc-cta:hover { background: #D8912A; }

/* — outline buttons: light on navy, resolve to amber or electric blue on hover — */
.efc-outline-light { border: 1px solid #96ACC6; color: #FFFFFF; transition: border-color 0.15s ease, color 0.15s ease; }
.efc-outline-light:hover { border-color: #438AD4; color: #438AD4; }

.efc-outline-amber { border: 1px solid #96ACC6; color: #FFFFFF; transition: border-color 0.15s ease, color 0.15s ease; }
.efc-outline-amber:hover { border-color: #E8A33D; color: #E8A33D; }

.efc-outline-dark { border: 1px solid #061A3D; color: #061A3D; background: transparent; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; }
.efc-outline-dark:hover { background: #061A3D; color: #FFFFFF; }

/* — service card link — */
.efc-card-link { color: #438AD4; transition: color 0.15s ease; }
.efc-card-link:hover { color: #E8A33D; }

/* — service card frame hover — */
.efc-blueprint-card { transition: border-color 0.15s ease; }
.efc-blueprint-card:hover { border-color: #438AD4; }

/* — cross-sell service tiles on service detail pages — */
.efc-crosssell-card { transition: background-color 0.15s ease; }
.efc-crosssell-card:hover { background: #EEF4FA; }

/* — footer links — */
.efc-footer-link { color: #96ACC6; transition: color 0.15s ease; }
.efc-footer-link:hover { color: #438AD4; }

.efc-success-layout:not([hidden]) { display: grid; gap: 14px; place-items: start; }

/* — contact form fields — */
.efc-field {
  min-height: 46px; padding: 10px 12px; font: inherit; font-size: 15px;
  border: 1px solid rgba(6, 26, 61, 0.25); background: #FFFFFF; color: #000102;
}
textarea.efc-field { min-height: auto; resize: vertical; }
.efc-field:focus-visible { border-color: #438AD4; }
