/* GenCore Sports Flooring — site styles */
:root {
  --blue: #10469c;
  --blue-dark: #0b3373;
  --wood: #5a3a1e;
  --ink: #16202e;
  --muted: #566173;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-soft: #f3f5f9;
  --radius: 14px;
  --max: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--blue { background: var(--blue); color: #fff; }
.section--blue a:not(.btn) { color: #fff; }
.eyebrow { color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .5em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid var(--blue);
  cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--white { background: #fff; color: var(--blue); border-color: #fff; }
.btn--white:hover { background: transparent; color: #fff; }
.btn--wa { background: #1f9d55; border-color: #1f9d55; }
.btn--wa:hover { background: #17803f; border-color: #17803f; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { color: #fff; padding: .6em 1.2em; }
.nav .btn:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero {
  position: relative; color: #fff; text-align: center;
  background: #2b1d10 center / cover no-repeat;
  padding: 120px 0 110px;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,20,45,.55), rgba(8,20,45,.72)); }
.hero .wrap { position: relative; }
.hero h1 { max-width: 820px; margin: 0 auto .4em; }
.hero p { font-size: 1.2rem; max-width: 640px; margin: 0 auto 1.6em; opacity: .92; }
.hero .btn-row { justify-content: center; }
.page-hero { padding: 90px 0 80px; }
.page-hero h1 { margin-bottom: .2em; }

/* Layout helpers */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; max-height: 520px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Cards */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 12px 30px rgba(16,70,156,.12); transform: translateY(-2px); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-soft); }
.card--contain img { object-fit: contain; padding: 16px; background: #fff; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .97rem; }
.card-body .btn { margin-top: auto; align-self: flex-start; }

/* Sport tiles */
.tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; display: block; color: #fff; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover img { transform: scale(1.05); }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px; font-weight: 600; font-size: 1.25rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); }

/* Feature list */
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.section--blue .ticks li::before { border-color: #fff; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 2rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Products */
.product { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; padding: 56px 0; border-top: 1px solid var(--line); }
.product:first-of-type { border-top: 0; }
.product > img { border-radius: var(--radius); background: var(--bg-soft); position: sticky; top: 100px; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 24px; } .product > img { position: static; } }
details { border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 1.4rem; color: var(--blue); font-weight: 400; }
details[open] summary::after { content: "–"; }
details .content { padding: 0 0 18px; color: var(--muted); }
details .content ul { margin: 0 0 1em; padding-left: 1.2em; }
.spec { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: 1em; }
.spec th, .spec td { text-align: left; padding: 7px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.spec th { font-weight: 500; color: var(--ink); width: 48%; padding-right: 12px; }
.spec caption { text-align: left; font-weight: 600; color: var(--ink); padding: 10px 0 4px; }

/* Gallery */
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery button { all: unset; display: block; margin: 0 0 16px; cursor: zoom-in; border-radius: 10px; overflow: hidden; break-inside: avoid; }
.gallery button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.gallery img { width: 100%; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.03); }
.strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.strip img { height: 240px; width: auto; border-radius: 10px; scroll-snap-align: start; flex: none; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(5,10,20,.9); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 8px; margin: auto; }
.lightbox .lb-btn { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lightbox .lb-prev { left: 16px; } .lightbox .lb-next { right: 16px; }
.lightbox .lb-close { position: fixed; top: 16px; right: 16px; transform: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 6px; }
.form label small { color: var(--muted); font-weight: 400; }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px;
  border: 1px solid #cdd4df; border-radius: 10px; background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(16,70,156,.15); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 10px; display: none; }
.form-status.ok { display: block; background: #e7f6ec; color: #155d2f; }
.form-status.err { display: block; background: #fdecec; color: #8a1f1f; }
.info-card { background: var(--bg-soft); border-radius: var(--radius); padding: 28px; }
.info-card h3 { margin-top: 0; }
.info-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.info-list li { margin-bottom: 10px; }
.info-list a { text-decoration: none; font-weight: 500; }

/* Footer */
.site-footer { background: #0d1626; color: #c5ccd8; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-logo { width: 84px; border-radius: 10px; background: #fff; padding: 6px; margin-bottom: 14px; }
.copyright { border-top: 1px solid #22304a; margin-top: 40px; padding-top: 20px; font-size: .85rem; color: #8994a7; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Home hero extras */
.hero--home { padding: 150px 0 140px; }
.hero--home::before { background: linear-gradient(180deg, rgba(6,22,56,.55) 0%, rgba(6,22,56,.8) 100%); }
.hero-badge { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(4px); padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 500; margin-bottom: 18px; }
.hl { color: #8fc1ff; }

/* Trust bar */
.trust { background: var(--blue); color: #fff; }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 26px; padding-bottom: 26px; text-align: center; }
.trust strong { display: block; font-size: 1.25rem; }
.trust span { font-size: .88rem; opacity: .85; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: .95rem; }

/* Sticky contact bar on phones */
.mobile-bar { display: none; }

@media (max-width: 860px) {
  .trust .wrap { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.25fr 1.2fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-bar a { white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 6px; border-radius: 10px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--blue); background: var(--bg-soft); }
  .mobile-bar a.primary { background: var(--blue); color: #fff; }
  body { padding-bottom: 76px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .hero { padding: 80px 0 72px; }
  .hero--home { padding: 96px 0 84px; }
  .hero p { font-size: 1.05rem; }
  .hero .btn-row { flex-direction: column; align-items: stretch; max-width: 320px; margin: 0 auto; }
  .lead { font-size: 1.05rem; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .steps li { display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; padding: 18px; }
  .steps li::before { margin: 0; grid-row: span 2; }
  .strip img { height: 180px; }
  .product { padding: 40px 0; }
  .card-body .btn { align-self: stretch; }
  .logo img { height: 40px; width: auto; }
  .site-header .wrap { height: 64px; }
  .nav { top: 64px; }
}
