/*
Theme Name: Pieprzyk
Theme URI: https://pieprzyk.pl
Author: Jakub Pieprzyk
Author URI: https://pieprzyk.pl
Description: Minimalist portfolio theme for WordPress developers. Clean, fast, brutalist aesthetic.
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: pieprzyk
Tags: portfolio, minimal, clean, one-column, custom-menu, featured-images
*/

/* ====================================
   CSS RESET & BASE
   ==================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors - Dark Mode */
  --color-primary: #FF6B35;
  --color-primary-hover: #FF8555;
  --color-dark: #FFFFFF;           /* Text now white */
  --color-gray: #B4B4B4;           /* Lighter gray for readability */
  --color-border: #2A2A2A;         /* Dark border */
  --color-bg-light: #1A1A1A;       /* Dark section background */
  --color-white: #0F0F0F;          /* Main background - very dark */
  --color-bg-card: #161616;        /* Card background */
  --color-text-muted: #808080;     /* Muted text */
  
  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Font Sizes */
  --fs-hero: clamp(2.5rem, 5vw, 3rem);        /* 40-48px */
  --fs-hero-sub: clamp(1.5rem, 3vw, 2rem);    /* 24-32px */
  --fs-h2: clamp(1.75rem, 3vw, 2.25rem);      /* 28-36px */
  --fs-h3: clamp(1.25rem, 2vw, 1.5rem);       /* 20-24px */
  --fs-body: clamp(1rem, 1.5vw, 1.125rem);    /* 16-18px */
  --fs-small: 0.875rem;                        /* 14px */
  
  /* Spacing */
  --section-padding: 5rem 1.25rem;             /* 80px top/bottom, 20px sides */
  --section-padding-mobile: 2.5rem 1.25rem;    /* 40px top/bottom */
  --card-padding: 2.5rem;                      /* 40px */
  --gap: 1.5rem;                               /* 24px */
  
  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  
  /* Shadows */
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-nav: 0 2px 4px rgba(0, 0, 0, 0.06);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Transitions */
  --transition-base: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-dark);
  background: var(--color-white);
}

/* ====================================
   TYPOGRAPHY
   ==================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all var(--transition-base);
}

a:hover {
  color: var(--color-primary-hover);
}

/* ====================================
   LAYOUT UTILITIES
   ==================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: var(--section-padding);
}

.section-alt {
  background: var(--color-bg-light);
}

@media (max-width: 768px) {
  .section {
    padding: var(--section-padding-mobile);
  }
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--gap);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Flex utilities */
.flex {
  display: flex;
  gap: var(--gap);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Text alignment */
.text-center { text-align: center; }
.text-gray { color: var(--color-gray); }

/* ====================================
   COMPONENTS - BUTTONS
   ==================================== */

.btn {
  display: inline-block;
  padding: 0.9375rem 1.875rem; /* 15px 30px */
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  font-family: var(--font-body);
}

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

.btn-primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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

.btn-large {
  padding: 1.125rem 2.5rem; /* 18px 40px */
  font-size: 1.125rem;
}

/* ====================================
   COMPONENTS - CARDS
   ==================================== */

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--card-padding);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.2);
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.card-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  text-align: center;
}

.card-title {
  font-size: var(--fs-h3);
  margin-bottom: 0.9375rem;
  text-align: center;
}

.card-text {
  color: var(--color-gray);
  font-size: 1rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.card-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 0.625rem;
}

.card-meta {
  color: var(--color-gray);
  font-size: var(--fs-small);
  text-align: center;
}

/* ====================================
   COMPONENTS - ICON LIST
   ==================================== */

.icon-list {
  list-style: none;
  padding: 0;
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9375rem;
  font-size: var(--fs-body);
}

.icon-list li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

/* ====================================
   HEADER & NAVIGATION
   ==================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  border-bottom-color: var(--color-primary);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--color-primary);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-dark);
  font-weight: 500;
  font-size: 1rem;
  transition: color var(--transition-base);
}

.main-nav a:hover {
  color: var(--color-primary);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-dark);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
  }
  
  .main-nav.active {
    max-height: 500px;
  }
  
  .main-nav ul {
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }
  
  .main-nav li {
    border-bottom: 1px solid var(--color-border);
  }
  
  .main-nav li:last-child {
    border-bottom: none;
  }
  
  .main-nav a {
    display: block;
    padding: 1rem 0;
  }
}

/* ====================================
   HERO SECTION
   ==================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--section-padding);
}

.hero-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 3rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-content h1 {
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: var(--fs-hero-sub);
  font-weight: 400;
  color: var(--color-gray);
  margin-bottom: 2rem;
}

.hero-features {
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
}

/* ====================================
   PORTFOLIO SECTION
   ==================================== */

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-base);
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-info {
  margin-top: 1.25rem;
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
}

.portfolio-category {
  color: var(--color-gray);
  font-size: var(--fs-small);
  margin-bottom: 0.9375rem;
}

.portfolio-link {
  color: var(--color-primary);
  font-size: var(--fs-small);
  font-weight: 500;
}

.portfolio-link:hover {
  text-decoration: underline;
}

/* ====================================
   PROCESS SECTION
   ==================================== */

.process-step {
  text-align: center;
}

.process-icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.9375rem;
}

.process-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
}

.process-desc {
  color: var(--color-gray);
  font-size: var(--fs-small);
}

/* ====================================
   CONTACT SECTION
   ==================================== */

.contact-heading {
  text-align: center;
  margin-bottom: 1.25rem;
}

.contact-subheading {
  text-align: center;
  color: var(--color-gray);
  margin-bottom: 2.5rem;
}

.contact-divider {
  width: 30%;
  height: 1px;
  background: var(--color-border);
  margin: 2.5rem auto;
  position: relative;
}

.contact-divider::after {
  content: "lub";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-white);
  padding: 0 1rem;
  color: var(--color-gray);
  font-size: var(--fs-small);
}

.contact-info {
  text-align: center;
}

.contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.625rem 0;
  font-size: var(--fs-body);
  color: var(--color-dark);
}

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

.contact-info .icon {
  color: var(--color-primary);
  font-size: 1.25rem;
}

/* ====================================
   FOOTER
   ==================================== */

.site-footer {
  background: #000000;
  color: var(--color-white);
  padding: 2.5rem 1.25rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-text {
  margin-bottom: 1.25rem;
  color: var(--color-gray);
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-social a {
  color: var(--color-gray);
  font-size: 1.5rem;
  transition: color var(--transition-base);
}

.footer-social a:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* ====================================
   UTILITIES
   ==================================== */

/* Dark mode specific enhancements */
.hero {
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -20%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.btn-primary {
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

.card-icon {
  filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.3));
}

.section-alt {
  position: relative;
}

.section-alt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0.5;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* Screen reader only */
.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;
}
