/*
Theme Name: First Rep Athletics
Author: First Rep Athletics
Description: A WooCommerce-ready athletic teamwear theme built for school stores and the First Rep Studio.
Version: 2.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: first-rep-athletics
License: GPL-2.0-or-later
*/

.sf-elementor-content { min-height: 50vh; overflow: hidden; }
.elementor-page .sf-content { padding-top: 0; }
.elementor-page .elementor-widget-shortcode .sfs-studio { margin: 0; }
.elementor-page .elementor-widget-shortcode .sf-school-row { max-width: none; }

:root {
  --sf-ink: #171a1d;
  --sf-paper: #f5f3ed;
  --sf-red: #c5332d;
  --sf-gold: #f4c44e;
  --sf-white: #fff;
  --sf-muted: #666b70;
  --sf-line: #deddd8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sf-paper); color: var(--sf-ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sf-wrap { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.sf-announcement { min-height: 34px; padding: 7px 20px; display: flex; justify-content: center; align-items: center; gap: 18px; background: var(--sf-ink); color: #f7f2e8; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; text-align: center; }
.sf-announcement i { width: 3px; height: 3px; border-radius: 50%; background: var(--sf-gold); }
.sf-header { position: sticky; top: 0; z-index: 100; min-height: 82px; border-bottom: 1px solid rgba(23,26,29,.12); background: rgba(245,243,237,.96); backdrop-filter: blur(12px); }
.admin-bar .sf-header { top: 32px; }
.sf-header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sf-brand { display: inline-flex; align-items: center; gap: 11px; }
.sf-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--sf-red); color: white; font-style: normal; font-weight: 900; font-size: 14px; transform: skew(-5deg); clip-path: polygon(50% 0,95% 19%,87% 77%,50% 100%,13% 77%,5% 19%); }
.sf-brand-copy { display: flex; flex-direction: column; line-height: 1; }
.sf-brand-copy strong { font-size: 16px; letter-spacing: .055em; }
.sf-brand-copy small { margin-top: 5px; color: var(--sf-red); font-size: 9px; font-weight: 800; letter-spacing: .32em; }
.sf-nav ul { display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; list-style: none; }
.sf-nav a { font-size: 13px; font-weight: 700; }
.sf-nav a:hover { color: var(--sf-red); }
.sf-header-actions { display: flex; align-items: center; gap: 12px; }
.sf-cart { position: relative; font-size: 12px; font-weight: 800; }
.sf-cart-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; border-radius: 50%; background: var(--sf-red); color: white; font-size: 9px; }
.sf-button, .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 0 22px; border: 1px solid transparent !important; border-radius: 2px !important; background: var(--sf-ink) !important; color: white !important; font-size: 12px !important; font-weight: 850 !important; line-height: 1 !important; transition: transform .18s ease, background .18s ease; }
.sf-button:hover, .button:hover { transform: translateY(-2px); background: #2b2e31 !important; }
.sf-button-red { background: var(--sf-red) !important; }
.sf-button-light { background: white !important; color: var(--sf-ink) !important; }
.sf-button-outline { border-color: rgba(23,26,29,.3) !important; background: transparent !important; color: var(--sf-ink) !important; }
.sf-menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: var(--sf-ink); color: white; }

.sf-hero { min-height: 700px; display: grid; grid-template-columns: 1.03fr .97fr; overflow: hidden; }
.sf-hero-copy { padding: clamp(75px,8vw,120px) clamp(28px,7vw,105px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.sf-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--sf-red); font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.sf-kicker::before { content: ""; width: 30px; height: 2px; background: currentColor; }
.sf-hero h1 { margin: 0; font-size: clamp(58px,6.2vw,94px); line-height: .86; letter-spacing: -.058em; font-weight: 950; text-transform: uppercase; }
.sf-hero h1 em { color: var(--sf-red); font-style: normal; }
.sf-hero-copy > p:not(.sf-kicker) { max-width: 610px; margin: 30px 0; color: #53585c; font-size: 18px; line-height: 1.7; }
.sf-hero-actions { display: flex; gap: 11px; }
.sf-trust { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 35px; color: #4e5357; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.sf-trust span::before { content: "✓"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 5px; border-radius: 50%; background: #dae8df; color: #15543a; }
.sf-hero-visual { position: relative; min-height: 620px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 75% 12%,rgba(244,196,78,.55),transparent 27%),linear-gradient(135deg,#d6d0c7,#aaa79f); }
.sf-hero-grid { position: absolute; inset: 0; opacity: .19; background-image: linear-gradient(rgba(23,26,29,.25) 1px,transparent 1px),linear-gradient(90deg,rgba(23,26,29,.25) 1px,transparent 1px); background-size: 48px 48px; transform: perspective(500px) rotateX(65deg) scale(1.6) translateY(19%); }
.sf-hero-shirt { width: min(66%,440px); aspect-ratio: .78; position: relative; display: grid; place-items: center; background: #202328; color: white; clip-path: polygon(27% 6%,40% 0,60% 0,73% 6%,98% 17%,88% 38%,76% 33%,78% 100%,22% 100%,24% 33%,12% 38%,2% 17%); transform: rotate(4deg); filter: drop-shadow(0 30px 25px rgba(0,0,0,.28)); }
.sf-hero-shirt::before { content: ""; position: absolute; top: 0; left: 38.5%; width: 23%; height: 10%; border-radius: 0 0 50% 50%; background: #d0cbc3; }
.sf-shirt-print { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sf-shirt-print i { color: var(--sf-gold); font-size: 44px; font-style: normal; line-height: 1; }
.sf-shirt-print strong { font-family: Impact, sans-serif; font-size: clamp(35px,4vw,58px); letter-spacing: -.04em; transform: scaleX(.82); }
.sf-shirt-print small { color: var(--sf-gold); font-weight: 900; letter-spacing: .32em; }
.sf-floating-card { position: absolute; padding: 14px 18px; border-radius: 5px; background: rgba(255,255,255,.96); box-shadow: 0 17px 45px rgba(24,25,26,.18); font-size: 12px; font-weight: 800; }
.sf-card-ai { top: 14%; left: 8%; }
.sf-card-store { right: 8%; bottom: 14%; display: flex; flex-direction: column; gap: 4px; }
.sf-card-store small { color: var(--sf-muted); font-weight: 400; }
.sf-program-strip { padding: 25px clamp(24px,6vw,86px); display: flex; justify-content: space-between; gap: 25px; overflow: hidden; background: var(--sf-red); color: white; font-size: 12px; font-weight: 950; letter-spacing: .06em; }

.sf-section { padding: 100px 0; }
.sf-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 55px; margin-bottom: 48px; }
.sf-section-head h2, .sf-store-copy h2, .sf-cta h2 { margin: 0; font-size: clamp(44px,5vw,72px); line-height: .94; letter-spacing: -.055em; text-transform: uppercase; }
.sf-section-head > p { max-width: 500px; margin: 0; color: var(--sf-muted); font-size: 15px; line-height: 1.7; }
.sf-designer-host { padding: 2px; border: 1px solid #cdccc7; background: white; box-shadow: 0 22px 70px rgba(36,34,31,.09); }
.sf-product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; }
.sf-product-card { min-height: 420px; position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 24px; background: #ddd8cf; color: white; }
.sf-product-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 30%,rgba(20,22,23,.93)); }
.sf-product-shape { position: absolute; left: 50%; top: 15%; width: 66%; height: 52%; display: grid; place-items: center; transform: translateX(-50%); background: #303438; filter: drop-shadow(0 18px 18px rgba(0,0,0,.16)); }
.sf-product-card:nth-child(1) .sf-product-shape { clip-path: polygon(28% 6%,40% 0,60% 0,72% 6%,100% 18%,87% 40%,77% 34%,79% 100%,21% 100%,23% 34%,13% 40%,0 18%); }
.sf-product-card:nth-child(2) .sf-product-shape { width: 34%; border-radius: 28px; background: var(--sf-red); }
.sf-product-card:nth-child(3) .sf-product-shape { width: 76%; height: 40%; top: 24%; border-radius: 42px; background: #173a66; }
.sf-product-card:nth-child(4) .sf-product-shape { width: 58%; height: 46%; border-radius: 50% 50% 8px 8px; background: #e4c64a; }
.sf-product-shape i { font-size: 28px; font-weight: 950; font-style: normal; }
.sf-product-card > div:last-child { position: relative; z-index: 2; }
.sf-product-card h3 { margin: 0 0 8px; font-size: 19px; text-transform: uppercase; }
.sf-product-card p { min-height: 35px; margin: 0 0 16px; color: #d4d4d1; font-size: 11px; line-height: 1.5; }
.sf-product-card a { color: var(--sf-gold); font-size: 11px; font-weight: 900; }

.sf-stores { padding: 105px 0; background: var(--sf-ink); color: white; }
.sf-stores-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px,8vw,120px); align-items: center; }
.sf-store-copy > p:not(.sf-kicker) { color: #b8bbbd; line-height: 1.75; }
.sf-store-list { padding: 0; margin: 30px 0; list-style: none; border-top: 1px solid #393c3e; }
.sf-store-list li { padding: 15px 0; border-bottom: 1px solid #393c3e; font-size: 13px; }
.sf-store-list b { display: inline-block; width: 48px; color: var(--sf-gold); font-size: 9px; }
.sf-school-browser { padding: 26px; border-radius: 7px; background: #f4f3ef; color: var(--sf-ink); box-shadow: 0 35px 85px rgba(0,0,0,.35); }
.sf-school-browser h3 { margin: 0 0 18px; font-size: 27px; text-transform: uppercase; }
.sf-school-row { display: grid; grid-template-columns: 54px 1fr 34px; gap: 13px; align-items: center; padding: 13px 0; border-top: 1px solid #d8d7d3; }
.sf-school-badge { width: 50px; height: 50px; display: grid; place-items: center; background: #15543a; color: white; font-size: 14px; font-weight: 950; clip-path: polygon(50% 0,94% 19%,86% 79%,50% 100%,14% 79%,6% 19%); }
.sf-school-row > div:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.sf-school-row small { color: #777b7e; }
.sf-school-row a { width: 31px; height: 31px; display: grid; place-items: center; background: var(--sf-ink); color: white; }
.sf-steps { display: grid; grid-template-columns: repeat(4,1fr); border-block: 1px solid #c9c8c3; }
.sf-step { min-height: 220px; padding: 31px; border-right: 1px solid #c9c8c3; }
.sf-step:last-child { border-right: 0; }
.sf-step span { display: grid; place-items: center; width: 35px; height: 35px; background: var(--sf-red); color: white; font-size: 9px; font-weight: 900; clip-path: polygon(50% 0,93% 22%,86% 78%,50% 100%,14% 78%,7% 22%); }
.sf-step h3 { margin: 30px 0 9px; font-size: 17px; text-transform: uppercase; }
.sf-step p { color: var(--sf-muted); font-size: 12px; line-height: 1.6; }
.sf-cta { padding: 95px 24px; display: flex; flex-direction: column; align-items: center; background: var(--sf-red); color: white; text-align: center; }
.sf-cta .sf-kicker { color: var(--sf-gold); }
.sf-cta > p:not(.sf-kicker) { max-width: 610px; margin: 22px 0 28px; color: #ffd9d0; line-height: 1.6; }
.sf-footer { padding: 62px 0 26px; background: #111315; color: white; }
.sf-footer-grid { display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: 45px; }
.sf-footer-col { display: flex; flex-direction: column; gap: 12px; }
.sf-footer-col strong { margin-bottom: 7px; color: var(--sf-gold); font-size: 9px; letter-spacing: .15em; }
.sf-footer-col a, .sf-footer-copy { color: #a9adaf; font-size: 11px; }
.sf-footer-legal { margin: 30px 0 0; padding-top: 22px; border-top: 1px solid #2c2f31; color: #65696c; font-size: 9px; }
.sf-content { min-height: 55vh; padding: 70px 0; }
.sf-content article { max-width: 900px; margin: 0 auto; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { padding: 15px; background: white; }
.woocommerce div.product { padding: 25px; background: white; }

@media (max-width: 1050px) {
  .sf-nav { display: none; }
  .sf-menu-toggle { display: inline-grid; place-items: center; }
  .sf-header.sf-open .sf-nav { position: absolute; top: 82px; left: 0; right: 0; display: block; padding: 22px 24px; background: var(--sf-paper); border-top: 1px solid var(--sf-line); }
  .sf-header.sf-open .sf-nav ul { align-items: flex-start; flex-direction: column; }
  .sf-product-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .admin-bar .sf-header { top: 46px; }
  .sf-wrap { width: min(100% - 34px,1320px); }
  .sf-announcement span:nth-of-type(n+2), .sf-announcement i { display: none; }
  .sf-brand-copy strong { font-size: 13px; }
  .sf-header-actions .sf-cart { display: none; }
  .sf-hero { grid-template-columns: 1fr; }
  .sf-hero-copy { padding: 72px 24px 60px; }
  .sf-hero h1 { font-size: clamp(53px,17vw,80px); }
  .sf-hero-actions { width: 100%; flex-direction: column; }
  .sf-hero-actions .sf-button { width: 100%; }
  .sf-section { padding: 76px 0; }
  .sf-section-head { align-items: flex-start; flex-direction: column; gap: 20px; }
  .sf-product-grid { grid-template-columns: 1fr; }
  .sf-product-card { min-height: 380px; }
  .sf-stores-grid { grid-template-columns: 1fr; }
  .sf-steps { grid-template-columns: 1fr 1fr; }
  .sf-step:nth-child(2) { border-right: 0; }
  .sf-step:nth-child(-n+2) { border-bottom: 1px solid #c9c8c3; }
  .sf-footer-grid { grid-template-columns: 1fr 1fr; }
  .sf-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 470px) {
  .sf-header-actions > .sf-button { display: none; }
  .sf-program-strip { gap: 30px; justify-content: flex-start; }
  .sf-steps { grid-template-columns: 1fr; }
  .sf-step { min-height: 180px; border-right: 0; border-bottom: 1px solid #c9c8c3; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition-duration: .01ms !important; } }
