/* ============================================================
   ACE Sport Surfaces — Premium layer (loads after style.css)
   Bigwood-inspired: photography-first, warm minimal, serif display
   ============================================================ */

:root {
  --ink: #14181f;
  --ink-2: #1d232c;
  --paper: #ffffff;
  --stone: #f3f5f7;
  --oat: #9aa3ad;
  --blue: #245e94;
  --clay: #d3202c;
  --clay-2: #b0141f;
  --yellow: #f2e410;
  --linec: #e4e7ea;
  --font-display: 'Marcellus', 'Georgia', serif;
}

/* ---- Global reskin ---- */
body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: .01em;
}
::selection { background: var(--yellow); color: var(--ink); }

.btn, .btn-primary, .btn-secondary, .navbar-cta {
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary, a.btn.btn-primary {
  background: var(--clay);
  border: 1px solid var(--clay);
  color: #fff;
}
.btn-primary:hover, a.btn.btn-primary:hover { background: var(--clay-2); border-color: var(--clay-2); }

/* ---- Header ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linec);
  box-shadow: none;
  transition: box-shadow .25s ease;
}
.navbar.scrolled { box-shadow: 0 10px 30px rgba(15, 29, 43, .07); }
.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 44px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.navbar-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.navbar-logo-img { display: block; height: 44px; width: auto; }
.navbar-menu a::after { display: none !important; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark .wm-ace {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--ink);
  letter-spacing: .06em;
}
.wordmark .wm-sub {
  white-space: nowrap;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--clay);
  margin-top: 5px;
}
.wm-mark { flex: none; }
.navbar-menu { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.navbar-link {
  white-space: nowrap;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  transition: color .2s ease;
}
.navbar-link:hover { color: var(--clay); }
.nav-right { display: flex; align-items: center; gap: 26px; }
.nav-phone {
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  opacity: .75;
  white-space: nowrap;
}
.nav-phone:hover { opacity: 1; }
.navbar-cta {
  background: var(--clay);
  color: var(--paper);
  border: 1px solid var(--clay);
  padding: 13px 26px !important;
  text-decoration: none;
  white-space: nowrap;
}
.navbar-cta:hover { background: var(--clay-2); border-color: var(--clay-2); color: #fff; }
body { padding-top: 84px; }

@media (max-width: 1380px) { .nav-phone { display: none; } }

/* Mobile nav */
.hamburger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1080px) {
  .navbar-container { padding: 0 22px; height: 72px; }
  body { padding-top: 72px; }
  .navbar-menu {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--linec);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 22px 24px;
    display: none;
  }
  .navbar-menu.active { display: flex; }
  .navbar-menu .navbar-link { display: block; padding: 14px 0; font-size: .82rem; }
  .nav-phone { display: none; }
  .navbar-cta { padding: 10px 14px !important; font-size: .68rem; }
  .hamburger { display: block; }
  .nav-right { gap: 12px; }
  .wordmark .wm-ace { font-size: 1.4rem; }
  .wordmark .wm-sub { letter-spacing: .3em; }
}

/* ---- Premium homepage sections ---- */
.px-hero {
  position: relative;
  min-height: clamp(560px, 84vh, 900px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.px-hero .bgimg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.px-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,20,26,.78) 0%, rgba(16,20,26,.45) 46%, rgba(16,20,26,.12) 100%);
}
.px-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 84px 44px;
}
.px-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 22px;
}
.px-eyebrow::before { content: ""; width: 44px; height: 2px; background: var(--yellow); }
.px-hero h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1.04;
  color: #fff;
  max-width: 14ch;
  margin: 0 0 24px;
}
.px-hero .sub {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,.86);
  max-width: 54ch;
  margin: 0 0 38px;
}
.px-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.px-btn {
  display: inline-block;
  padding: 17px 34px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all .2s ease;
}
.px-btn.solid { background: var(--clay); color: #fff; border: 1px solid var(--clay); }
.px-btn.solid:hover { background: var(--clay-2); border-color: var(--clay-2); }
.px-btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.px-btn.ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.px-btn.dark { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.px-btn.dark:hover { background: var(--clay); border-color: var(--clay); color: #fff; }

/* generic section scaffolding */
.px { padding: 110px 0; }
.px-tight { padding: 84px 0; }
.px-wrap { max-width: 1280px; margin: 0 auto; padding: 0 44px; }
.px-head { max-width: 640px; margin-bottom: 64px; }
.px-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.px-head.center .px-eyebrow { justify-content: center; }
.px-head .px-eyebrow { color: var(--clay); }
.px-head .px-eyebrow::before { background: var(--clay); height: 2px; }
.px-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.15; margin: 0 0 18px; }
.px-head p { font-size: 1.02rem; font-weight: 300; line-height: 1.75; color: rgba(15,29,43,.72); margin: 0; }

/* stats band — dark, flush under hero */
.px-stats { background: var(--ink); }
.px-stats .row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 44px;
}
.px-stats .cell {
  padding: 48px 10px;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,.1);
}
.px-stats .cell:first-child { border-left: none; }
.px-stats .num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  color: #fff;
  display: block;
  line-height: 1;
}
.px-stats .lbl {
  display: block;
  margin-top: 12px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

/* featured work — editorial rows */
.px-work-row {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: center;
  padding: 44px 0;
}
.px-work-row + .px-work-row { border-top: 1px solid var(--linec); }
.px-work-row:nth-child(even) .ph { order: 2; }
.px-work-row .ph img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.px-work-row .cap .k {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--clay);
  display: block;
  margin-bottom: 14px;
}
.px-work-row .cap h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin: 0 0 14px; }
.px-work-row .cap p { font-size: .98rem; font-weight: 300; line-height: 1.75; color: rgba(15,29,43,.72); margin: 0 0 22px; }
.px-link {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--clay);
  padding-bottom: 4px;
}
.px-link:hover { color: var(--clay); }

/* trust names strip */
.px-trust { background: var(--stone); padding: 40px 0; }
.px-trust .inner { max-width: 1280px; margin: 0 auto; padding: 0 44px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px 44px; justify-content: center; }
.px-trust .lbl { font-size: .66rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: rgba(15,29,43,.5); width: 100%; text-align: center; margin-bottom: 4px; }
.px-trust b { font-family: var(--font-display); font-weight: 400; font-size: 1.06rem; color: rgba(15,29,43,.78); white-space: nowrap; }

/* what we build — full-bleed hover accordion */
.px-build { background: var(--ink); padding: 100px 0 0; }
.px-build .px-wrap { margin-bottom: 60px; }
.px-build .px-head h2 { color: #fff; }
.px-build .px-eyebrow { color: rgba(255,255,255,.85); }
.px-build .px-head .px-eyebrow::before { background: var(--yellow); }
.px-acc { display: flex; width: 100%; height: 580px; }
.px-acc a {
  position: relative;
  flex: 1;
  overflow: hidden;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,.08);
  transition: flex .7s cubic-bezier(.4, 0, .2, 1);
}
.px-acc a:last-child { border-right: none; }
.px-acc a:hover, .px-acc a:focus-visible { flex: 2.6; }
.px-acc img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 68%;
  filter: grayscale(1);
  transition: filter .7s ease, transform .7s ease;
}
.px-acc a:hover img, .px-acc a:focus-visible img { filter: grayscale(0); transform: scale(1.05); }
.px-acc .tint { position: absolute; inset: 0; opacity: .68; transition: opacity .7s ease; }
.px-acc a:hover .tint, .px-acc a:focus-visible .tint { opacity: .3; }
.px-acc .body {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 40px 36px;
  background: linear-gradient(180deg, transparent 55%, rgba(10,13,17,.72) 100%);
}
.px-acc .n {
  font-size: .68rem; font-weight: 600; letter-spacing: .34em;
  color: var(--yellow);
  margin-bottom: 12px;
}
.px-acc h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  color: #fff;
  margin: 0;
  white-space: nowrap;
}
.px-acc .more { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s ease, opacity .5s ease .1s, margin .5s ease; }
.px-acc a:hover .more, .px-acc a:focus-visible .more { max-height: 220px; opacity: 1; margin-top: 18px; }
.px-acc .more p {
  color: rgba(255,255,255,.88);
  font-size: .95rem; font-weight: 300; line-height: 1.7;
  max-width: 42ch;
  margin: 0 0 16px;
}
.px-acc .more .go {
  font-size: .68rem; font-weight: 600; letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--yellow);
}
@media (max-width: 900px) {
  .px-acc { flex-direction: column; height: auto; }
  .px-acc a { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .px-acc a:last-child { border-bottom: none; }
  .px-acc img { filter: grayscale(0); }
  .px-acc .tint { opacity: .38; }
  .px-acc .body { position: relative; inset: auto; min-height: 300px; padding: 26px 22px; }
  .px-acc .more { max-height: none; opacity: 1; margin-top: 12px; }
}

/* process */
.px-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.px-step .n {
  font-family: var(--font-display);
  font-size: 3rem;
  color: #d6dbe0;
  line-height: 1;
  display: block;
  margin-bottom: 18px;
}
.px-step h3 { font-size: 1.3rem; margin: 0 0 12px; }
.px-step p { font-size: .95rem; font-weight: 300; line-height: 1.75; color: rgba(15,29,43,.72); margin: 0; }

/* dark PPA band */
.px-band {
  position: relative;
  padding: 130px 0;
  color: #fff;
  overflow: hidden;
}
.px-band .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.px-band::after { content: ""; position: absolute; inset: 0; background: rgba(15,29,43,.7); }
.px-band .px-wrap { position: relative; z-index: 2; text-align: center; }
.px-band .px-eyebrow { color: rgba(255,255,255,.85); justify-content: center; }
.px-band .px-eyebrow::before { background: var(--yellow); }
.px-band h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.9rem); max-width: 22ch; margin: 0 auto 18px; }
.px-band p { color: rgba(255,255,255,.82); font-weight: 300; line-height: 1.75; max-width: 58ch; margin: 0 auto 36px; }

/* designer teaser */
.px-designer { background: var(--stone); }
.px-designer .split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

/* ---- Footer ---- */
.footer, footer.footer { background: #101318; color: rgba(255,255,255,.72); padding: 0; }
.ft-inner { max-width: 1280px; margin: 0 auto; padding: 90px 44px 0; }
.ft-top { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; padding-bottom: 72px; }
.ft-brand .wm {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #fff;
  line-height: 1.15;
  display: block;
  margin-bottom: 8px;
}
.ft-brand .wm-sub { font-size: .62rem; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; color: #8b939d; display: block; margin-bottom: 26px; }
.ft-brand p { color: rgba(246,242,233,.72); font-size: .92rem; font-weight: 300; line-height: 1.8; max-width: 40ch; margin: 0 0 26px; }
.ft-contact a { display: block; color: var(--paper); text-decoration: none; font-size: 1.02rem; margin-bottom: 8px; }
.ft-contact a:hover { color: #ff5b66; }
.ft-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.ft-col h4 { font-size: .66rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: #8b939d; margin: 0 0 20px; font-family: 'Inter', sans-serif; }
.ft-col ul { list-style: none; margin: 0; padding: 0; }
.ft-col li { margin-bottom: 12px; color: rgba(246,242,233,.75); font-size: .92rem; font-weight: 300; }
.ft-col a { color: rgba(246,242,233,.75); text-decoration: none; font-size: .92rem; font-weight: 300; }
.ft-col a:hover { color: #fff; }
.ft-bottom {
  border-top: 1px solid rgba(246,242,233,.14);
  padding: 26px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  font-weight: 300;
  color: rgba(246,242,233,.5);
}
.ft-bottom a { color: rgba(246,242,233,.7); text-decoration: none; }
.ft-bottom a:hover { color: #ff5b66; }

/* ---- Interior page polish ---- */
.hero-section { position: relative; overflow: hidden; min-height: 62vh !important; height: auto !important; padding: 140px 0 110px; }
.hero-overlay { position: absolute !important; inset: 0 !important; width: auto !important; height: auto !important; background: linear-gradient(180deg, rgba(16,19,24,.55) 0%, rgba(16,19,24,.32) 100%) !important; }
.hero-title { font-family: var(--font-display) !important; font-weight: 400 !important; letter-spacing: .01em; }
.hero-subtitle { font-weight: 300; }
section[style*="f8f8f8"] { background-color: var(--paper) !important; }
.stats-bar { background: #101318 !important; }
.stat-number, .stat-number .count-up { font-family: var(--font-display); font-weight: 400 !important; color: var(--clay) !important; }
.stat-label { letter-spacing: .2em; text-transform: uppercase; font-size: .7rem; }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .px { padding: 80px 0; }
  .px-wrap, .px-hero-inner, .ft-inner { padding-left: 22px; padding-right: 22px; }
  .px-hero-inner { padding-bottom: 64px; }
  .px-work-row { grid-template-columns: 1fr; gap: 26px; padding: 34px 0; }
  .px-work-row:nth-child(even) .ph { order: 0; }
  .px-sports { grid-template-columns: repeat(2, 1fr); }
  .px-process { grid-template-columns: 1fr; gap: 34px; }
  .px-designer .split { grid-template-columns: 1fr; gap: 34px; }
  .px-stats .row { grid-template-columns: repeat(2, 1fr); padding: 0 22px; }
  .px-stats .cell:nth-child(3) { border-left: none; }
  .px-stats .cell { padding: 30px 8px; }
  .ft-top { grid-template-columns: 1fr; gap: 44px; padding-bottom: 44px; }
  .ft-cols { grid-template-columns: 1fr 1fr; }
  .ft-inner { padding-top: 64px; }
}

/* ---- Interior structures the scrape left unstyled ---- */
.section-padding { padding: 96px 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 44px; }
.section-header { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-header h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.15; margin-bottom: 14px; }
.section-header p { font-weight: 300; color: rgba(15,29,43,.7); line-height: 1.7; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.stat-card { text-align: center; padding: 34px 16px; border: 1px solid var(--linec); background: #fff; }
.stat-card .stat-description { font-size: .86rem; font-weight: 300; color: rgba(15,29,43,.6); margin: 6px 0 0; }

.project-card { background: #fff; border: 1px solid var(--linec); overflow: hidden; display: flex; flex-direction: column; }
.project-card .project-image { aspect-ratio: 16/10; overflow: hidden; }
.project-card .project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-image img { transform: scale(1.04); }
.project-card .project-info { padding: 24px 26px 28px; }
.project-card .project-info h3 { font-size: 1.3rem; margin: 0 0 8px; }
.project-card .project-info p { font-size: .93rem; font-weight: 300; color: rgba(15,29,43,.7); line-height: 1.65; margin: 0 0 14px; }
.project-card .project-location { font-size: .68rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--clay); }

/* Contact page hero + button */
.contact-hero h1, .contact-hero p { color: var(--paper); }
.contact-hero h1 { font-family: var(--font-display); font-weight: 400; }
.contact-hero { background: var(--ink) !important; }
button[type="submit"], .submit-btn, .form-submit { background: var(--clay) !important; border-color: var(--clay) !important; font-family: 'Inter', sans-serif; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; font-weight: 600; border-radius: 2px; }
