/*
Theme Name: MG IT Theme
Theme URI: https://mariuszgajdak.pl/
Author: MG IT
Author URI: https://mariuszgajdak.pl/
Description: Motyw dla firmy MG IT - usługi informatyczne, naprawa komputerów i elektroniki użytkowej.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mg-it-theme
Tags: one-page, business, technology, dark
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:    #0a84ff;
  --primary-dk: #005ec4;
  --bg:         #0d1117;
  --bg2:        #161b22;
  --bg3:        #21262d;
  --text:       #e6edf3;
  --muted:      #8b949e;
  --border:     #30363d;
  --white:      #ffffff;
  --radius:     8px;
  --font:       'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--white); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   HEADER / NAV
   ============================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,17,23,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.site-logo span {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.site-logo span em {
  color: var(--primary);
  font-style: normal;
}

#primary-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

#primary-nav ul li a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .3px;
  text-transform: uppercase;
  transition: color .2s;
}

#primary-nav ul li a:hover,
#primary-nav ul li a.active { color: var(--white); }

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: .85rem !important;
  transition: background .2s, transform .2s !important;
}

.nav-cta:hover { background: var(--primary-dk) !important; transform: translateY(-1px); }

/* hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(10,132,255,.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(10,132,255,.08) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(48,54,61,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48,54,61,.35) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10,132,255,.12);
  border: 1px solid rgba(10,132,255,.3);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title span { color: var(--primary); }

.hero-desc {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: all .25s;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dk);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,132,255,.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(10,132,255,.2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
}

.hero-image {
  border-radius: 20px;
  object-fit: cover;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 0 1px var(--border);
  position: relative;
  z-index: 1;
}

/* =============================================
   STATS BAR
   ============================================= */
#stats {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-item p {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 4px;
}

/* =============================================
   SERVICES
   ============================================= */
#services {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.section-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 14px auto 0;
}

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

.service-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.service-card:hover {
  border-color: rgba(10,132,255,.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  background: rgba(10,132,255,.1);
  border: 1px solid rgba(10,132,255,.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap .2s;
}

.service-link:hover { gap: 10px; color: var(--primary); }

/* =============================================
   GALLERY / PORTFOLIO
   ============================================= */
#gallery {
  padding: 100px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
}

.gallery-item:first-child {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,132,255,.0);
  transition: background .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-overlay span {
  color: white;
  font-size: 2rem;
  opacity: 0;
  transition: opacity .3s;
}

.gallery-item:hover .gallery-overlay { background: rgba(10,132,255,.35); }
.gallery-item:hover .gallery-overlay span { opacity: 1; }

/* =============================================
   ABOUT
   ============================================= */
#about {
  padding: 100px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 20px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary);
  color: white;
  padding: 20px 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(10,132,255,.4);
}

.about-badge strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.about-badge span {
  font-size: .8rem;
  opacity: .85;
}

.about-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.about-content p {
  color: var(--muted);
  margin-bottom: 14px;
}

.about-features {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.about-feature-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: rgba(10,132,255,.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}

.about-feature-text strong {
  display: block;
  color: var(--white);
  font-size: .95rem;
}

.about-feature-text span {
  font-size: .85rem;
  color: var(--muted);
}

/* =============================================
   CONTACT
   ============================================= */
#contact {
  padding: 100px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: rgba(10,132,255,.1);
  border: 1px solid rgba(10,132,255,.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-item-content strong {
  display: block;
  color: var(--white);
  font-size: .9rem;
  margin-bottom: 2px;
}

.contact-item-content a,
.contact-item-content span {
  color: var(--muted);
  font-size: .88rem;
}

.contact-item-content a:hover { color: var(--primary); }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.social-link {
  width: 44px; height: 44px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all .2s;
}

.social-link:hover {
  border-color: var(--primary);
  background: rgba(10,132,255,.1);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}

.contact-form h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: .92rem;
  padding: 12px 16px;
  transition: border-color .2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,132,255,.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.btn-submit:hover {
  background: var(--primary-dk);
  transform: translateY(-1px);
}

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--muted);
  font-size: .9rem;
  margin: 14px 0 20px;
  max-width: 300px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
}

.footer-logo em {
  color: var(--primary);
  font-style: normal;
}

.footer-col h4 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: var(--muted);
  font-size: .9rem;
  transition: color .2s;
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--muted);
  font-size: .85rem;
}

.footer-bottom a { color: var(--primary); }

/* =============================================
   COOKIE BANNER
   ============================================= */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 28px;
  max-width: 560px;
  width: calc(100% - 48px);
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
  z-index: 9999;
  transition: opacity .4s, transform .4s;
}

#cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}

#cookie-banner p {
  font-size: .85rem;
  color: var(--muted);
  flex: 1;
}

#cookie-accept {
  white-space: nowrap;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

#cookie-accept:hover { background: var(--primary-dk); }

/* =============================================
   UTILITIES
   ============================================= */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  #primary-nav { display: none; }
  #primary-nav.open {
    display: flex;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 24px;
  }
  #primary-nav.open ul { flex-direction: column; gap: 18px; }
  .menu-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-image-wrap { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: span 2; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-badge { bottom: 12px; right: 12px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================
   MAP
   ============================================= */
.contact-map-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}

.contact-map {
  display: block;
  width: 100%;
  height: 460px;
  border: none;
  filter: invert(90%) hue-rotate(180deg) saturate(0.9) brightness(0.85);
}

.map-directions-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--bg3);
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
  transition: background .2s, color .2s;
  text-decoration: none;
}

.map-directions-btn:hover {
  background: var(--primary);
  color: var(--white);
}

@media (max-width: 768px) {
  .contact-map { height: 300px; }
}
