/*
Theme Name: A&K Airsoft
Theme URI: https://akairsoftgun.com/
Author: A&K Airsoft
Description: A premium product showcase and dealer inquiry theme for complete A&K airsoft guns.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ak-airsoft
*/

:root {
  --ak-red: #e51a24;
  --ak-black: #08090c;
  --ak-dark: #111318;
  --ak-soft: #f5f6f8;
  --ak-text: #15171c;
  --ak-muted: #6f747e;
  --ak-white: #fff;
  --ak-radius: 24px;
  --ak-shadow: 0 18px 50px rgba(8, 9, 12, .10);
  --ak-container: 1240px;
  --ak-max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ak-text); background: #fff; font-family: Inter, Arial, Helvetica, sans-serif; line-height: 1.65; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.ak-container { width: min(calc(100% - 40px), var(--ak-container)); margin-inline: auto; }
.ak-section { padding: 96px 0; }
.ak-section--soft { background: var(--ak-soft); }
.ak-section--dark { color: #fff; background: var(--ak-dark); }
.ak-eyebrow { margin: 0 0 12px; color: var(--ak-red); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.ak-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 42px; }
.ak-section-head h2, .ak-page-hero h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.7rem); line-height: 1; letter-spacing: -.045em; text-transform: uppercase; }
.ak-section-head p { max-width: 580px; margin: 0; color: var(--ak-muted); }
.ak-section--dark .ak-section-head p { color: #b7bbc3; }
.ak-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px; color: #fff; background: var(--ak-red); font-size: .86rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; transition: transform .2s ease, background .2s ease; }
.ak-btn:hover { transform: translateY(-2px); background: #c8111a; }
.ak-btn--ghost { border: 1px solid rgba(255,255,255,.32); background: transparent; }
.ak-btn--ghost:hover { background: #fff; color: var(--ak-black); }

.site-header, .ak-topbar { position: sticky; z-index: 999; top: 0; height: 88px; color: #15171c !important; background: #fff !important; border-bottom: 1px solid rgba(0,0,0,.06); backdrop-filter: blur(16px); }
.header-inner, .ak-header { display: flex; height: 88px; align-items: center; justify-content: space-between; gap: 24px; }
.ak-brand { display: flex; min-width: 120px; height: 88px; overflow: hidden; flex: 0 0 auto; align-items: center; justify-content: flex-start; }
.ak-brand img { width: auto; height: 54px; max-width: 150px; max-height: 54px; object-fit: contain; }
.primary-nav ul, .ak-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.primary-nav a, .ak-nav a { position: relative; padding: 8px 0; color: #15171c !important; text-decoration: none; }
.primary-nav a::after, .ak-nav a::after { position: absolute; bottom: 0; left: 0; width: 0; height: 3px; content: ""; background: var(--ak-red); transition: width .22s ease; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a,
.ak-nav a:hover, .ak-nav .current-menu-item > a, .ak-nav .current_page_item > a { color: var(--ak-red) !important; }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after, .primary-nav .current_page_item > a::after,
.ak-nav a:hover::after, .ak-nav .current-menu-item > a::after, .ak-nav .current_page_item > a::after { width: 100%; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.menu-toggle span { display: block; height: 2px; margin: 6px 0; background: var(--ak-text); }

.ak-hero { position: relative; min-height: 680px; overflow: hidden; color: #fff; background: var(--ak-black); }
.ak-hero-slide { position: absolute; inset: 0; visibility: hidden; opacity: 0; transition: opacity .7s ease, visibility .7s; }
.ak-hero-slide.is-active { visibility: visible; opacity: 1; }
.ak-hero-slide::before { position: absolute; inset: 0; content: ""; background: radial-gradient(circle at 78% 48%, rgba(229,26,36,.20), transparent 33%), linear-gradient(115deg, #08090c 0%, #111318 64%, #07080a 100%); }
.ak-hero-inner { position: relative; z-index: 2; display: grid; width: min(var(--ak-max), calc(100% - 44px)); height: 100%; margin: 0 auto; padding: 80px 0 88px; grid-template-columns: .94fr 1.06fr; gap: 42px; align-items: center; }
.ak-hero-copy { max-width: 620px; }
.ak-hero-copy, .ak-hero-media { position: relative; z-index: 1; }
.ak-hero-copy h1 { max-width: 720px; margin: 0 0 24px; font-size: clamp(3.2rem, 7vw, 7.4rem); line-height: .86; letter-spacing: -.06em; text-transform: uppercase; }
.ak-hero-copy h1 span { color: var(--ak-red); }
.ak-hero-copy p { max-width: 570px; margin: 0 0 32px; color: #c6c9cf; font-size: 1.05rem; }
.ak-hero-product { width: 100%; max-width: 620px; justify-self: end; }
.ak-hero-product img { width: 100%; max-height: 360px; padding: 16px; border-radius: 22px; background: #fff; object-fit: contain; filter: drop-shadow(0 25px 35px rgba(0,0,0,.5)); }
.ak-hero-placeholder { display: grid; height: 420px; place-items: center; color: #353943; border: 1px solid #292c33; border-radius: 32px; font-size: 6rem; font-weight: 900; }
.ak-hero-controls { position: absolute; z-index: 5; right: max(20px, calc((100vw - var(--ak-container))/2)); bottom: 34px; display: flex; gap: 10px; }
.ak-hero-dot { width: 38px; height: 4px; padding: 0; border: 0; background: rgba(255,255,255,.25); cursor: pointer; }
.ak-hero-dot.is-active { background: var(--ak-red); }

.ak-products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ak-product-card { overflow: hidden; border-radius: var(--ak-radius); background: #fff; box-shadow: var(--ak-shadow); transition: transform .25s ease, box-shadow .25s ease; }
.ak-product-card:hover { transform: translateY(-7px); box-shadow: 0 24px 65px rgba(8,9,12,.16); }
.ak-card-image { display: grid; position: relative; min-height: 290px; padding: 24px; place-items: center; background: var(--ak-soft); }
.ak-card-image img { width: 100%; height: 250px; object-fit: contain; transition: transform .35s ease; }
.ak-product-card:hover .ak-card-image img { transform: scale(1.035); }
.ak-card-badge { position: absolute; top: 18px; left: 18px; padding: 7px 12px; border-radius: 999px; color: #fff; background: var(--ak-red); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ak-card-body { padding: 26px; }
.ak-card-category { color: var(--ak-red); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ak-card-model { margin: 9px 0 4px; color: var(--ak-muted); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ak-card-title { margin: 0 0 12px; font-size: 1.35rem; line-height: 1.2; }
.ak-card-copy { min-height: 52px; margin: 0 0 22px; color: var(--ak-muted); font-size: .91rem; }
.ak-card-link { color: var(--ak-red); font-size: .78rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.ak-pagination { margin-top: 48px; }
.ak-pagination .page-numbers { display: inline-grid; min-width: 42px; height: 42px; margin: 3px; padding: 0 10px; place-items: center; border-radius: 999px; background: var(--ak-soft); font-weight: 700; }
.ak-pagination .current { color: #fff; background: var(--ak-red); }

.ak-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ak-value { padding: 34px 28px; border: 1px solid #e2e4e8; border-radius: 22px; }
.ak-section--dark .ak-value { border-color: #292c33; background: #15171d; }
.ak-value-number { color: var(--ak-red); font-size: 2.5rem; font-weight: 900; line-height: 1; }
.ak-value h3 { margin: 20px 0 10px; text-transform: uppercase; }
.ak-value p { margin: 0; color: var(--ak-muted); font-size: .9rem; }
.ak-section--dark .ak-value p { color: #9ea3ad; }

.ak-media-band { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 510px; overflow: hidden; border-radius: 32px; color: #fff; background: var(--ak-dark); }
.ak-media-visual { display: grid; position: relative; min-height: 430px; place-items: center; background: linear-gradient(135deg, #23262d, #090a0d); }
.ak-play { display: grid; width: 92px; height: 92px; padding-left: 7px; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: #fff; background: var(--ak-red); font-size: 1.8rem; }
.ak-media-copy { display: flex; padding: 64px; flex-direction: column; align-items: flex-start; justify-content: center; }
.ak-media-copy h2 { margin: 0 0 20px; font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1; text-transform: uppercase; }
.ak-media-copy p { color: #b7bbc3; }
.ak-cta { padding: 68px; border-radius: 32px; color: #fff; background: var(--ak-red); }
.ak-cta h2 { max-width: 800px; margin: 0 0 18px; font-size: clamp(2.4rem, 5vw, 5rem); line-height: .95; letter-spacing: -.045em; text-transform: uppercase; }
.ak-cta p { max-width: 660px; margin: 0 0 28px; color: #fff; }
.ak-cta .ak-btn { color: var(--ak-black); background: #fff; }

.ak-page-hero { padding: 110px 0 75px; color: #fff; background: linear-gradient(120deg, #08090c 0%, #181b22 100%); }
.ak-page-hero p { max-width: 700px; margin: 22px 0 0; color: #bfc3ca; font-size: 1.05rem; }
.ak-content { max-width: 850px; margin: 0 auto; }
.ak-content > *:first-child { margin-top: 0; }
.ak-content h2, .ak-content h3 { line-height: 1.15; text-transform: uppercase; }
.ak-empty { padding: 48px; border-radius: 24px; text-align: center; background: var(--ak-soft); }

.ak-single { padding: 76px 0 100px; }
.ak-product-intro { display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; }
.ak-product-main-image { display: grid; min-height: 520px; padding: 42px; place-items: center; border-radius: 30px; background: var(--ak-soft); }
.ak-product-main-image img { width: 100%; height: 440px; object-fit: contain; }
.ak-product-info h1 { margin: 8px 0 18px; font-size: clamp(2.8rem, 5vw, 5.4rem); line-height: .9; letter-spacing: -.05em; text-transform: uppercase; }
.ak-product-model { color: var(--ak-red); font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.ak-product-summary { color: var(--ak-muted); font-size: 1.05rem; }
.ak-product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ak-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 70px; }
.ak-detail-panel { padding: 36px; border: 1px solid #e4e6e9; border-radius: 24px; }
.ak-detail-panel h2 { margin: 0 0 20px; font-size: 1.35rem; text-transform: uppercase; }
.ak-detail-panel ul { padding-left: 20px; }
.ak-detail-panel li { margin: 8px 0; }
.ak-detail-panel--full { grid-column: 1 / -1; }
.ak-spec-table { width: 100%; border-collapse: collapse; }
.ak-spec-table td { padding: 12px 0; border-bottom: 1px solid #e5e6e9; vertical-align: top; }
.ak-spec-table td:first-child { width: 36%; padding-right: 20px; font-weight: 800; }

.ak-video-grid, .ak-support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.ak-video-card, .ak-support-card { padding: 34px; border-radius: 24px; background: var(--ak-soft); }
.ak-video-frame { overflow: hidden; position: relative; padding-top: 56.25%; border-radius: 18px; background: #0d0f13; }
.ak-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ak-support-card h2, .ak-video-card h2 { margin-top: 0; text-transform: uppercase; }
.ak-faq details { padding: 18px 0; border-bottom: 1px solid #ddd; }
.ak-faq summary { font-weight: 800; cursor: pointer; }

.site-footer { padding: 72px 0 26px; color: #fff; background: var(--ak-black); }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 60px; }
.ak-footer-logo { display: flex; align-items: center; margin-bottom: 20px; }
.ak-footer-logo img { width: auto; height: 42px; max-width: 130px; object-fit: contain; }
.footer-copy { max-width: 400px; color: #9da2ad; }
.site-footer h3 { margin-top: 0; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 9px 0; color: #b7bbc3; }
.footer-bottom { margin-top: 58px; padding-top: 24px; border-top: 1px solid #22252c; color: #777c86; font-size: .78rem; }

@media (max-width: 1050px) {
  .menu-toggle { display: block; }
  .primary-nav, .ak-nav { position: absolute; top: 88px; right: 0; left: 0; display: none; padding: 20px; border-bottom: 1px solid #e1e5eb; background: #fff !important; }
  .primary-nav.is-open, .primary-nav.open, .ak-nav.is-open, .ak-nav.open { display: block; }
  .primary-nav ul, .ak-nav ul { align-items: flex-start; flex-direction: column; gap: 0; }
  .primary-nav li, .ak-nav li { width: 100%; border-bottom: 1px solid #e8eaee; }
  .primary-nav a, .ak-nav a { display: block; padding: 14px 0; }
  .ak-hero { min-height: 740px; }
  .ak-hero-inner { padding-top: 60px; grid-template-columns: 1fr; gap: 26px; }
  .ak-hero-product { max-width: none; justify-self: stretch; }
  .ak-hero-copy h1 { font-size: clamp(3.2rem, 10vw, 6rem); }
  .ak-hero-product img { max-height: 300px; }
  .ak-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ak-values { grid-template-columns: repeat(2, 1fr); }
  .ak-product-intro, .ak-media-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .ak-container { width: min(calc(100% - 28px), var(--ak-container)); }
  .ak-section { padding: 68px 0; }
  .ak-section-head { align-items: flex-start; flex-direction: column; }
  .site-header, .ak-topbar, .header-inner, .ak-header { height: 76px; }
  .ak-brand { min-width: 90px; height: 76px; }
  .ak-brand img { height: 44px; max-width: 120px; max-height: 44px; }
  .primary-nav, .ak-nav { top: 76px; }
  .ak-hero { min-height: 690px; }
  .ak-hero-inner { width: min(calc(100% - 28px), var(--ak-max)); padding: 48px 0 78px; gap: 26px; }
  .ak-hero-copy h1 { font-size: 3.25rem; }
  .ak-hero-product img { max-height: 240px; }
  .ak-hero-controls { right: 18px; }
  .ak-products-grid, .ak-values, .ak-video-grid, .ak-support-grid, .ak-detail-grid { grid-template-columns: 1fr; }
  .ak-card-image { min-height: 250px; }
  .ak-card-image img { height: 215px; }
  .ak-media-copy, .ak-cta { padding: 38px 28px; }
  .ak-product-main-image { min-height: 340px; padding: 20px; }
  .ak-product-main-image img { height: 290px; }
  .ak-detail-panel--full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}
