/* =========================================================
   Spitfire Polishing - Styles
   Edit colors + fonts here first
========================================================= */
:root{
  --bg: #0b0d10;
  --panel: rgba(14, 16, 20, 0.78);
  --panel2: rgba(18, 20, 26, 0.88);
  --text: #e9eef5;
  --muted: rgba(233,238,245,0.75);
  --line: rgba(255,255,255,0.10);

  --red: #d61f1f;
  --red2: #ff2d2d;
  --amber: #ffb000;

  --shadow: 0 10px 40px rgba(0,0,0,0.45);
  --radius: 18px;

  --max: 1120px;
  --pad: 18px;
  --pad2: 24px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% 0%, rgba(255,60,0,0.10), transparent 55%),
              radial-gradient(900px 500px at 80% 10%, rgba(255,160,0,0.08), transparent 55%),
              linear-gradient(180deg, #07080a, #0b0d10 30%, #07080a);
  overflow-x:hidden;
}

/* Fire canvas sits behind everything */
#fire-canvas{
  mix-blend-mode: screen;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  opacity: 0.86;
  pointer-events: none;
}

/* Subtle grain overlay */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.22;
}

/* Layout helpers */
.container{
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

a{ color: inherit; text-decoration:none; }
a:hover{ opacity:0.95; }

.btn{
  display:inline-flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.22); }
.btn.primary{
  background: linear-gradient(135deg, var(--red), var(--red2));
  border-color: rgba(255,255,255,0.18);
}
.btn.primary:hover{
  background: linear-gradient(135deg, #ff2a2a, #ff4a2a);
}

.pill{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding: 8px 12px;
  border-radius:999px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--muted);
  font-weight: 600;
}

/* Header */
.header{
  position: sticky;
  top:0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(7, 8, 10, 0.58);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 0;
}
.brand{
  display:flex;
  gap:12px;
  align-items:center;
  min-width: 220px;
}
.brand-mark{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, rgba(255,210,0,0.9), rgba(255,60,0,0.55) 40%, rgba(0,0,0,0.0) 65%),
              linear-gradient(135deg, rgba(255,50,50,0.9), rgba(255,120,0,0.75));
  box-shadow: 0 10px 28px rgba(255,40,0,0.18);
  border: 1px solid rgba(255,255,255,0.15);
  position:relative;
  overflow:hidden;
}
.brand-mark::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: conic-gradient(from 180deg, rgba(255,255,255,0.0), rgba(255,255,255,0.25), rgba(255,255,255,0.0));
  animation: shine 3.4s linear infinite;
  opacity:.45;
}
@keyframes shine { to { transform: rotate(360deg); } }
.brand-title{
  line-height: 1.05;
}
.brand-title strong{
  display:block;
  font-size: 15px;
  letter-spacing: .8px;
}
.brand-title span{
  display:block;
  font-size: 12px;
  color: var(--muted);
}

.nav{
  display:flex;
  gap: 8px;
  align-items:center;
}
.nav a{
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 13px;
  letter-spacing:.2px;
}
.nav a:hover{
  color: var(--text);
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
}
.nav a.active{
  color: var(--text);
  background: rgba(214,31,31,0.18);
  border-color: rgba(214,31,31,0.34);
}

.header-cta{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:flex-end;
  min-width: 250px;
}
.small{
  font-size: 12px;
  color: var(--muted);
}

/* Hero */
.hero{
  padding: 34px 0 24px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}
.card{
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card-pad{ padding: 24px; }

.hero h1{
  margin: 8px 0 10px;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.5px;
  line-height: 1.05;
}
.hero p{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  align-items:center;
}
.hero-list{
  margin-top: 16px;
  display:grid;
  gap: 10px;
}
.hero-list .item{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}
.dot{
  width: 10px;
  height: 10px;
  border-radius: 99px;
  margin-top: 4px;
  background: radial-gradient(circle at 30% 30%, rgba(255,210,0,1), rgba(255,60,0,0.9));
  box-shadow: 0 10px 18px rgba(255,60,0,0.18);
}

.hero-media{
  position:relative;
  height: 100%;
  min-height: 340px;
}
.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(1.05);
  transform: scale(1.01);
}
.hero-media .overlay{
  position:absolute;
  inset:0;
  background: radial-gradient(800px 420px at 20% 20%, rgba(255,80,0,0.18), transparent 55%),
              linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.55));
}
.hero-media .badge{
  position:absolute;
  left: 16px;
  bottom: 16px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* Sections */
.section{
  padding: 18px 0 36px;
}
.section h2{
  font-size: 20px;
  margin: 0 0 12px;
  letter-spacing: .2px;
}
.section p.lead{
  margin: 0 0 16px;
  color: var(--muted);
  line-height:1.6;
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.service{
  display:flex;
  flex-direction:column;
  gap: 12px;
  min-height: 240px;
}
.service img{
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.service .content{ padding: 14px; }
.service h3{ margin: 0 0 6px; font-size: 16px; }
.service p{ margin: 0 0 12px; color: var(--muted); line-height:1.55; font-size: 14px; }
.service .meta{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.split{
  display:grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 14px;
  align-items: stretch;
}
.split img{
  width:100%;
  height:100%;
  object-fit:cover;
  min-height: 260px;
}

.kpi{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.kpi .box{
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
}
.kpi strong{
  display:block;
  font-size: 18px;
}
.kpi span{
  display:block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height:1.45;
}

/* Gallery */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-grid button{
  border:0;
  padding:0;
  border-radius: 16px;
  overflow:hidden;
  cursor:pointer;
  position:relative;
  background: transparent;
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.10);
}
.gallery-grid img{
  width:100%;
  height: 170px;
  object-fit: cover;
  display:block;
  transform: scale(1.01);
  transition: transform .18s ease;
}
.gallery-grid button:hover img{ transform: scale(1.05); }
.gallery-grid .tag{
  position:absolute;
  left: 10px;
  bottom: 10px;
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 80;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
}
.lightbox.open{ display:flex; }
.lightbox-inner{
  width: min(1000px, calc(100% - 26px));
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(12,14,18,0.95);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.lightbox-top .controls{
  display:flex;
  gap: 8px;
}
.iconbtn{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  cursor:pointer;
}
.iconbtn:hover{ border-color: rgba(255,255,255,0.20); }
.lightbox img{
  width:100%;
  height: auto;
  display:block;
}

/* Shop */
.products{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.product{
  overflow:hidden;
}
.product img{
  width:100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.product .content{ padding: 14px; }
.product h3{ margin: 0 0 6px; font-size: 15px; }
.product p{ margin: 0 0 12px; color: var(--muted); font-size: 13.5px; line-height:1.55; }

/* Contact */
.form{
  display:grid;
  gap: 12px;
}
.field{
  display:grid;
  gap: 6px;
}
label{
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}
input, textarea, select{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  outline:none;
}
textarea{ min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus{
  border-color: rgba(255,45,45,0.55);
  box-shadow: 0 0 0 4px rgba(255,45,45,0.10);
}

/* Footer */
.footer{
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.25);
}
.footer-inner{
  display:flex;
  gap: 14px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}
.footer small{
  color: var(--muted);
}
.footer .links{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}
.footer .links a{
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
}
.footer .links a:hover{ color: var(--text); }

/* Page header */
.pagehead{
  padding: 22px 0 12px;
}
.pagehead h1{
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.4px;
}
.pagehead p{
  margin: 0;
  color: var(--muted);
  line-height:1.6;
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .header-cta{ min-width: auto; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
  .products{ grid-template-columns: repeat(2, 1fr); }
  .kpi{ grid-template-columns: 1fr; }
}
@media (max-width: 480px){
  .nav{ display:none; }
  .gallery-grid{ grid-template-columns: 1fr; }
  .products{ grid-template-columns: 1fr; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .brand-mark::after{ animation: none !important; }
}

/* Use provided logo image as the brand mark */
.brand-mark{
  background-image: url("../img/logo.png");
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

/* Header logo image (uses your uploaded logo.png) */
.brand-logo{
  height: 44px;
  width: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  display:block;
}

.brand-mark{ display:none !important; }

/* Mobile menu */
.menu-btn{
  display:none;
  width:44px; height:44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor:pointer;
}
.menu-btn:hover{ border-color: rgba(255,255,255,0.22); }

.mobile-nav{
  display:none;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: rgba(7, 8, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.mobile-nav a{
  display:block;
  padding: 14px 18px;
  color: var(--muted);
  font-weight: 800;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav a:hover{
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.header-inner{ position: relative; }

@media (max-width: 480px){
  .nav{ display:none !important; }
  .menu-btn{ display:inline-flex; align-items:center; justify-content:center; }
  .header-cta{ display:none; }
}
