/*
Theme Name: Sarajevo Range X
Theme URI: https://example.com/
Author: Yahia + ChatGPT
Author URI: https://example.com/
Description: Premium one-page + multi-page theme for a Sarajevo shooting range experience. Includes Packages CPT, Gallery CPT, and Reviews (comments with star rating).
Version: 1.3.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sarajevo-range-x
Tags: custom-background, custom-logo, custom-menu, featured-images, one-column, portfolio, blog
*/

:root{
  --bg:#07090c;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.08);
  --text:#eaf2ff;
  --muted:rgba(234,242,255,.70);
  --line:rgba(234,242,255,.14);
  --orange:#ff7a18;
  --blue:#3aa0ff;
  --blue2:#2f5bff;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --radius: 20px;
  --radius2: 28px;
  --max: 1180px;
  --focus: 0 0 0 3px rgba(58,160,255,.25), 0 0 0 1px rgba(255,122,24,.25);
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  background:
     radial-gradient(1000px 600px at 20% -10%, rgba(58,160,255,.18), transparent 55%),
     radial-gradient(900px 600px at 90% 10%, rgba(255,122,24,.14), transparent 55%),
     radial-gradient(900px 700px at 50% 120%, rgba(47,91,255,.14), transparent 60%),
     var(--bg);
  color:var(--text);
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
a:hover{opacity:.95}
img{max-width:100%;height:auto}
.container{max-width:var(--max);margin:0 auto;padding:0 20px}
.section{padding:80px 0}
.section.tight{padding:60px 0}
.section h2{
  font-size: clamp(26px, 3vw, 44px);
  line-height:1.05;
  margin:0 0 14px 0;
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  font-size:12px; text-transform:uppercase; letter-spacing:.18em;
  color:var(--muted);
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.03);
  backdrop-filter: blur(10px);
}
.kicker .dot{width:8px;height:8px;border-radius:99px;background:linear-gradient(90deg,var(--orange),var(--blue))}
.p{
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
  margin:0 0 18px 0;
}

.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(7,9,12,.55);
  backdrop-filter: blur(18px);
  border-bottom:1px solid rgba(234,242,255,.08);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:12px;
}
.brand{
  display:flex; align-items:center; gap:10px;
}
.brand-mark{
  width:36px;height:36px;border-radius:12px;
  background: radial-gradient(14px 14px at 30% 30%, rgba(255,255,255,.35), transparent 50%),
              linear-gradient(135deg, rgba(255,122,24,.9), rgba(58,160,255,.9));
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}
.brand-title{
  display:flex; flex-direction:column;
  line-height:1.1;
}
.brand-title strong{font-size:14px;letter-spacing:.02em}
.brand-title span{font-size:12px;color:var(--muted)}
.nav{
  display:flex; align-items:center; gap:16px;
}
.nav a{
  color:rgba(234,242,255,.82);
  font-size:13px;
  padding:10px 10px;
  border-radius:12px;
}
.nav a:hover{background:rgba(255,255,255,.05)}
.nav .cta{
  background:linear-gradient(135deg, rgba(255,122,24,.95), rgba(58,160,255,.95));
  color:#07121f;
  font-weight:700;
  padding:10px 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.nav-toggle{
  display:none;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  color:var(--text);
  border-radius:14px;
  padding:10px 12px;
}

.hero{
  position:relative;
  padding:70px 0 40px 0;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:24px;
  align-items:stretch;
}
.hero-card{
  border:1px solid rgba(234,242,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius:var(--radius2);
  padding:28px;
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.hero-card:before{
  content:"";
  position:absolute; inset:-200px -200px auto auto;
  width:400px; height:400px;
  background:radial-gradient(circle at 30% 30%, rgba(255,122,24,.35), transparent 55%),
             radial-gradient(circle at 70% 70%, rgba(58,160,255,.28), transparent 55%);
  transform: rotate(18deg);
  filter: blur(0px);
  pointer-events:none;
}
.hero h1{
  font-size: clamp(34px, 4vw, 58px);
  line-height:1.02;
  margin:14px 0 12px 0;
}
.hero .sub{
  color:rgba(234,242,255,.72);
  font-size:16px;
  line-height:1.7;
  margin:0 0 22px 0;
}
.badges{
  display:flex; flex-wrap:wrap; gap:10px;
  margin:16px 0 0 0;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(234,242,255,.12);
  background:rgba(255,255,255,.03);
  font-size:12px;
  color:rgba(234,242,255,.78);
}
.badge svg{opacity:.9}
.actions{
  display:flex; gap:12px; flex-wrap:wrap;
  margin-top:18px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  font-weight:800;
  font-size:14px;
  border:1px solid rgba(234,242,255,.14);
  background:rgba(255,255,255,.04);
  color:var(--text);
}
.btn.primary{
  border:none;
  background:linear-gradient(135deg, rgba(255,122,24,.96), rgba(58,160,255,.96));
  color:#06111f;
}
.btn:focus{outline:none; box-shadow:var(--focus)}
.hero-media{
  border:1px solid rgba(234,242,255,.10);
  background:linear-gradient(180deg, rgba(58,160,255,.10), rgba(255,122,24,.06));
  border-radius:var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
  min-height: 340px;
  position:relative;
}
.hero-media .media-inner{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  filter: saturate(1.05) contrast(1.05);
}
.hero-media .overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(7,9,12,.2), rgba(7,9,12,.85));
}
.hero-media .media-caption{
  position:absolute; left:18px; right:18px; bottom:18px;
  padding:14px 14px;
  border-radius:18px;
  border:1px solid rgba(234,242,255,.12);
  background:rgba(7,9,12,.55);
  backdrop-filter: blur(12px);
}
.hero-media .media-caption strong{display:block}
.hero-media .media-caption span{color:rgba(234,242,255,.72); font-size:12px}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.card{
  border:1px solid rgba(234,242,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card .pad{padding:18px}
.card h3{margin:0 0 8px 0;font-size:18px}
.card .meta{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.pill{
  display:inline-flex; align-items:center;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(234,242,255,.12);
  background:rgba(255,255,255,.03);
  color:rgba(234,242,255,.78);
  font-size:12px;
}
.price{
  font-size:28px; font-weight:900;
  letter-spacing:-.02em;
  background:linear-gradient(90deg, var(--orange), var(--blue));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.card .thumb{
  aspect-ratio: 16/10;
  background:rgba(255,255,255,.04);
}
.card .thumb img{width:100%;height:100%;object-fit:cover;display:block}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:stretch;
}
.panel{
  border:1px solid rgba(234,242,255,.10);
  background:rgba(255,255,255,.03);
  border-radius:var(--radius);
  padding:18px;
}
.panel h3{margin:0 0 8px 0}
.panel ul{margin:10px 0 0 18px; color:rgba(234,242,255,.72); line-height:1.7}

.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
}
.g-item{
  grid-column: span 4;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(234,242,255,.10);
  background:rgba(255,255,255,.03);
  position:relative;
  cursor:pointer;
}
.g-item img{width:100%;height:100%;object-fit:cover;display:block; aspect-ratio: 4/3}
.g-item:after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(7,9,12,0), rgba(7,9,12,.55));
  opacity:.0;
  transition:opacity .2s ease;
}
.g-item:hover:after{opacity:1}

.reviews{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
.review{
  border:1px solid rgba(234,242,255,.10);
  background:rgba(255,255,255,.03);
  border-radius:var(--radius);
  padding:16px;
}
.review .top{display:flex; align-items:center; justify-content:space-between; gap:10px}
.review strong{font-size:14px}
.stars{display:inline-flex; gap:2px}
.star{width:16px;height:16px; opacity:.9}
.review p{margin:10px 0 0 0; color:rgba(234,242,255,.74); line-height:1.7}

.form{
  display:grid; gap:12px;
}
.form .row{
  display:grid; grid-template-columns: 1fr 1fr;
  gap:12px;
}
.input, textarea, select{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(234,242,255,.16);
  background:rgba(7,9,12,.35);
  color:var(--text);
  padding:12px 12px;
  font-size:14px;
}
textarea{min-height:120px; resize:vertical}
.input:focus, textarea:focus, select:focus{outline:none; box-shadow:var(--focus)}
.notice{
  border:1px solid rgba(58,160,255,.22);
  background:rgba(58,160,255,.08);
  color:rgba(234,242,255,.85);
  border-radius:16px;
  padding:12px 14px;
}

.site-footer{
  border-top:1px solid rgba(234,242,255,.08);
  padding:28px 0;
  color:rgba(234,242,255,.62);
  font-size:13px;
}

.fab{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:60;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.fab a{
  display:inline-flex; align-items:center; justify-content:center;
  width:54px; height:54px;
  border-radius:18px;
  background:linear-gradient(135deg, rgba(255,122,24,.95), rgba(58,160,255,.95));
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
  color:#07121f;
  font-weight:900;
}
.fab a.secondary{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(234,242,255,.14);
  color:var(--text);
}
.small{font-size:12px;color:var(--muted)}
.hr{height:1px;background:rgba(234,242,255,.10);margin:16px 0}

@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr; }
  .grid3{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .reviews{grid-template-columns:1fr}
  .g-item{grid-column: span 6;}
  .nav{display:none}
  .nav-toggle{display:inline-flex}
  .nav.is-open{
    display:flex;
    position:absolute;
    left:20px; right:20px; top:64px;
    flex-direction:column;
    background:rgba(7,9,12,.88);
    border:1px solid rgba(234,242,255,.10);
    padding:12px;
    border-radius:18px;
    backdrop-filter: blur(16px);
  }
}

@media (max-width: 520px){
  .g-item{grid-column: span 12;}
  .form .row{grid-template-columns:1fr}
}

/* Header brand layout */
.brand{display:flex;align-items:center;gap:10px;}
.brand-logo{width:36px;height:36px;flex:0 0 36px;display:flex;align-items:center;justify-content:center;}
.brand-logo .custom-logo-link{display:flex;width:36px;height:36px;border-radius:12px;overflow:hidden;box-shadow:0 10px 25px rgba(0,0,0,.35);}
.brand-logo img.custom-logo{width:100%;height:100%;object-fit:cover;display:block;}
.brand-title{display:flex;flex-direction:column;line-height:1.1;color:inherit;text-decoration:none;}
.brand-title strong{font-size:14px;letter-spacing:.02em}
.brand-title span{font-size:12px;color:var(--muted)}

.btn.ghost{
  background:transparent;
  border:1px solid rgba(255,255,255,.12);
}
.btn.ghost:hover{ border-color: rgba(255,255,255,.22); }
