/*
Theme Name: NASCOM Vape
Theme URI: https://nascomvape.pl
Author: NASCOM
Author URI: https://nascomvape.pl
Description: Dedykowany motyw onepage dla sklepu NASCOM – e-papierosy, liquidy, akcesoria w Legionowie.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nascom
Tags: one-page, dark, vape, custom
*/

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  --bg:            #090c12;
  --bg-card:       #0f1420;
  --bg-secondary:  #131926;
  --border:        #1e2a3a;
  --primary:       #0080ff;
  --primary-dim:   rgba(0,128,255,.15);
  --primary-glow:  rgba(0,128,255,.4);
  --text:          #e8edf5;
  --text-muted:    #5a6a80;
  --text-subtle:   #8a9ab0;
  --radius:        8px;
  --font-heading:  'Rajdhani', sans-serif;
  --font-body:     'Inter', sans-serif;
}

/* ---- RESET / BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- UTILITIES ---- */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.text-primary   { color: var(--primary); } /* Naprawiony kolor główny */
.text-muted     { color: var(--text-muted); }
.text-center    { text-align: center; }
.text-glow { text-shadow: 0 0 20px rgba(0,128,255,.5), 0 0 40px rgba(0,128,255,.2); }
.box-glow { box-shadow: 0 0 20px rgba(0,128,255,.15), 0 0 40px rgba(0,128,255,.05); }

/* ---- AGE GATE ---- */
#nascom-age-gate { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
#nascom-age-gate::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(0,128,255,.08) 0%, transparent 65%); pointer-events: none; }
.age-gate-inner { position: relative; padding: 40px 30px; max-width: 480px; }
.age-gate-number { font-family: var(--font-heading); font-size: 5rem; font-weight: 700; color: var(--primary); text-shadow: 0 0 30px rgba(0,128,255,.6), 0 0 60px rgba(0,128,255,.3); line-height: 1; margin-bottom: 20px; }
.age-gate-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.age-gate-text { color: var(--text-subtle); font-size: .9rem; margin-bottom: 32px; line-height: 1.7; }
.age-gate-error { color: #f87171; font-size: .85rem; font-weight: 500; margin-bottom: 16px; display: none; }
.age-gate-buttons { display: flex; gap: 16px; justify-content: center; }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-heading); font-weight: 600; font-size: .95rem; letter-spacing: .04em; padding: 12px 32px; border-radius: var(--radius); border: none; cursor: pointer; transition: all .2s ease; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 0 20px rgba(0,128,255,.3); }
.btn-primary:hover { background: #1a8fff; box-shadow: 0 0 28px rgba(0,128,255,.5); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text-subtle); border: 1px solid var(--border); }
.btn-outline:hover { color: var(--text); border-color: var(--primary); }

/* ---- NAVIGATION (BIAŁA WERSJA) ---- */
#nascom-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95); /* Zmiana na białe tło */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #eaeaea; /* Subtelna jasna ramka */
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: .875rem; font-weight: 600; color: #333333; transition: color .2s; } /* Ciemny tekst na białym */
.nav-links a:hover { color: var(--primary); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #333333; transition: all .3s; } /* Ciemny przycisk na telefonie */

.nav-mobile { display: none; flex-direction: column; background: #ffffff; border-top: 1px solid #eaeaea; } /* Białe menu na telefonie */
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 14px 20px; font-size: .9rem; color: #333333; border-bottom: 1px solid #eaeaea; transition: color .2s, background .2s; }
.nav-mobile a:hover { color: var(--primary); background: rgba(0,128,255,.05); }

/* ---- SECTION SHARED ---- */
section { padding: 96px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-title { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.section-line { width: 64px; height: 2px; background: var(--primary); margin: 0 auto 24px; }
.section-desc { color: var(--text-subtle); max-width: 680px; margin: 0 auto; line-height: 1.75; }

/* ---- HERO (GLASSMORPHISM + SLIDER) ---- */
#nascom-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 64px; /* Odsuwa całą sekcję o wysokość paska nawigacji */
  padding: 0 20px;
}

.hero-slider-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slider-bg .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slider-bg .slide.active { opacity: 1; }
.hero-slider-bg .slide img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Delikatny gradient, dół musi być czarny, by płynnie przejść do reszty strony */
  background: linear-gradient(to bottom, rgba(9,12,18,.1) 0%, rgba(9,12,18,.2) 60%, rgba(9,12,18,1) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 760px;
  padding: 40px 30px;
  background: rgba(9, 12, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.hero-title { font-family: var(--font-heading); font-size: clamp(3rem, 8vw, 5rem); font-weight: 700; line-height: 1.1; color: var(--text); margin-bottom: 12px; }
.hero-subtitle { display: block; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--primary); text-shadow: 0 0 20px rgba(0,128,255,.5); letter-spacing: .02em; margin-top: 8px; }
.hero-desc { color: var(--text-subtle); font-size: 1.05rem; max-width: 540px; margin: 24px auto 36px; line-height: 1.7; }

.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}
.slider-dots .dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); cursor: pointer; transition: all 0.3s ease; }
.slider-dots .dot.active { background: var(--primary); box-shadow: 0 0 10px var(--primary-glow); }

/* ---- O NAS ---- */
#o-nas { background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 16px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; text-align: center; transition: border-color .3s, box-shadow .3s; }
.feature-card:hover { border-color: rgba(0,128,255,.35); box-shadow: 0 0 24px rgba(0,128,255,.12); }
.feature-icon { width: 40px; height: 40px; margin: 0 auto 16px; color: var(--primary); }
.feature-icon svg { width: 100%; height: 100%; }
.feature-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.feature-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }

/* ---- PRODUKTY ---- */
#produkty { background: var(--bg-secondary); }
.product-row { display: flex; align-items: center; gap: 48px; margin-bottom: 72px; }
.product-row:last-of-type { margin-bottom: 0; }
.product-row.reverse { flex-direction: row-reverse; }
.product-image-wrap { flex: 0 0 45%; }
.product-image-wrap img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 0 20px rgba(0,128,255,.15); }
.product-info { flex: 1; }
.product-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.product-heading svg { width: 28px; height: 28px; color: var(--primary); flex-shrink: 0; }
.product-heading h3 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text); }
.product-desc { color: var(--text-subtle); line-height: 1.75; margin-bottom: 20px; }
.brand-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-tag { padding: 4px 12px; font-size: .75rem; font-weight: 500; border-radius: 20px; background: rgba(0,128,255,.1); color: var(--primary); border: 1px solid rgba(0,128,255,.2); }

.mini-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.mini-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; transition: border-color .3s, box-shadow .3s; }
.mini-card:hover { border-color: rgba(0,128,255,.3); box-shadow: 0 0 20px rgba(0,128,255,.08); }
.mini-card svg { width: 24px; height: 24px; color: var(--primary); margin-bottom: 12px; }
.mini-card h4 { font-family: var(--font-heading); font-size: .95rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.mini-card p { font-size: .8rem; color: var(--text-muted); line-height: 1.6; }

/* ---- SKLEPY ---- */
#sklepy { background: var(--bg); }
.store-card { max-width: 480px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px 40px; text-align: center; box-shadow: 0 0 20px rgba(0,128,255,.1); }
.store-icon { width: 48px; height: 48px; margin: 0 auto 20px; color: var(--primary); }
.store-icon svg { width: 100%; height: 100%; }
.store-name { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.store-address { color: var(--text-subtle); font-size: .9rem; margin-bottom: 20px; }
.store-hours { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 24px; }
.store-hours svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }
.store-hours-list { font-size: .85rem; color: var(--text-subtle); text-align: left; }
.store-hours-list span { color: var(--text); font-weight: 500; }

/* ---- HURT ---- */
#hurt { background: var(--bg-secondary); }
.hurt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hurt-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; text-align: center; transition: border-color .3s, box-shadow .3s; }
.hurt-card:hover { border-color: rgba(0,128,255,.3); box-shadow: 0 0 24px rgba(0,128,255,.1); }
.hurt-card svg { width: 36px; height: 36px; color: var(--primary); margin: 0 auto 16px; }
.hurt-card h3 { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.hurt-card p { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }
.hurt-cta { text-align: center; margin-top: 40px; }

/* ---- ZAMÓWIENIE ---- */
#zamowienie { background: var(--bg); }
.order-form-wrap { max-width: 620px; margin: 0 auto; }
.form-subtitle { text-align: center; color: var(--text-subtle); font-size: .875rem; margin-bottom: 36px; }
.order-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: 0 0 20px rgba(0,128,255,.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .8rem; color: var(--text-subtle); margin-bottom: 6px; }
.form-group input, .form-group textarea { width: 100%; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: var(--font-body); font-size: .875rem; padding: 10px 14px; transition: border-color .2s; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: rgba(0,128,255,.5); box-shadow: 0 0 0 3px rgba(0,128,255,.1); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-note { background: rgba(0,128,255,.05); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; font-size: .75rem; color: var(--text-muted); margin-bottom: 16px; }
.btn-form { width: 100%; font-size: 1rem; padding: 14px; }

/* ---- KONTAKT ---- */
#kontakt { background: var(--bg-secondary); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-items { display: flex; flex-direction: column; gap: 32px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.contact-item h4 { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.contact-item p, .contact-item a { font-size: .875rem; color: var(--text-subtle); line-height: 1.65; }
.contact-item a:hover { color: var(--primary); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea { width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: var(--font-body); font-size: .875rem; padding: 10px 14px; transition: border-color .2s; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(0,128,255,.5); box-shadow: 0 0 0 3px rgba(0,128,255,.1); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form textarea { resize: vertical; min-height: 120px; }

/* ---- FOOTER ---- */
#nascom-footer { border-top: 1px solid var(--border); padding: 60px 0 32px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.footer-brand-name { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--primary); text-shadow: 0 0 16px rgba(0,128,255,.4); letter-spacing: .1em; margin-bottom: 12px; }
.footer-brand-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.7; }
.footer-col h4 { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.footer-col p { font-size: .82rem; color: var(--text-muted); line-height: 1.9; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; font-size: .75rem; color: var(--text-muted); }

/* ---- TOAST / NOTIFICATION ---- */
.nascom-toast { position: fixed; bottom: 24px; right: 24px; z-index: 9998; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 20px; font-size: .875rem; color: var(--text); box-shadow: 0 8px 32px rgba(0,0,0,.5); display: flex; align-items: center; gap: 10px; max-width: 340px; transform: translateY(80px); opacity: 0; transition: all .35s cubic-bezier(.16,1,.3,1); }
.nascom-toast.show { transform: translateY(0); opacity: 1; }
.nascom-toast.success { border-color: rgba(34,197,94,.4); }
.nascom-toast.success::before { content: '✓'; color: #22c55e; font-weight: 700; }
.nascom-toast.error { border-color: rgba(239,68,68,.4); }
.nascom-toast.error::before { content: '✕'; color: #ef4444; font-weight: 700; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .product-row { flex-direction: column; gap: 32px; }
  .product-row.reverse { flex-direction: column; }
  .product-image-wrap { flex: 0 0 auto; width: 100%; }
  .mini-products-grid { grid-template-columns: repeat(2, 1fr); }
  .hurt-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  section { padding: 64px 0; }
  .section-title { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .mini-products-grid { grid-template-columns: 1fr 1fr; }
  .hurt-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .order-form { padding: 24px 20px; }
  .store-card { padding: 36px 24px; }
  .gallery-grid { grid-template-columns: 1fr; } 
  
  /* DODAJ TO: Mniejsza wysokość na tabletach/poziomych telefonach */
  #nascom-hero {
    min-height: 400px; 
  }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .mini-products-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.6rem; }
  .age-gate-number { font-size: 4rem; }
  .age-gate-buttons { flex-direction: column; align-items: center; }
  
  /* DODAJ TO: Znacznie mniejsza wysokość na pionowych ekranach telefonów */
  #nascom-hero {
    min-height: 250px; 
  }
}

/* ---- WP COMPATIBILITY ---- */
.wp-caption, .wp-caption-text { color: var(--text-muted); font-size: .8rem; }
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0 16px 16px 0; }
.alignright { float: right; margin: 0 0 16px 16px; }

/* ---- ADMIN BAR OFFSET ---- */
.admin-bar #nascom-nav { top: 32px; }
@media (max-width: 782px) {
  .admin-bar #nascom-nav { top: 46px; }
}

/* ---- CONTACT FORM 7 override ---- */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea { width: 100%; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: var(--font-body); font-size: .875rem; padding: 10px 14px; outline: none; transition: border-color .2s; }
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: rgba(0,128,255,.5); box-shadow: 0 0 0 3px rgba(0,128,255,.1); }
.wpcf7 input::placeholder, .wpcf7 textarea::placeholder { color: var(--text-muted); }
.wpcf7 textarea { resize: vertical; min-height: 80px; }
.wpcf7 input[type="submit"] { width: 100%; background: var(--primary); color: #fff; border: none; border-radius: var(--radius); font-family: var(--font-heading); font-weight: 600; font-size: 1rem; letter-spacing: .04em; padding: 13px; cursor: pointer; transition: background .2s, box-shadow .2s; box-shadow: 0 0 16px rgba(0,128,255,.3); }
.wpcf7 input[type="submit"]:hover { background: #1a8fff; box-shadow: 0 0 24px rgba(0,128,255,.5); }

/* komunikaty walidacji */
.wpcf7-not-valid-tip { color: #f87171; font-size: .75rem; margin-top: 4px; }
.wpcf7-response-output { margin-top: 12px !important; padding: 10px 14px !important; border-radius: var(--radius) !important; font-size: .8rem !important; border: 1px solid !important; }
.wpcf7-mail-sent-ok { background: rgba(34,197,94,.08) !important; border-color: rgba(34,197,94,.3) !important; color: #86efac !important; }
.wpcf7-mail-sent-ng, .wpcf7-validation-errors { background: rgba(239,68,68,.08) !important; border-color: rgba(239,68,68,.3) !important; color: #fca5a5 !important; }

/* ---- GALERIA ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}
.gallery-item {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}