/*
Theme Name: D-PACK Theme
Theme URI: https://www.d-pack.sk
Author: D-PACK
Description: Moderná B2B téma pre D-PACK s.r.o.
Version: 1.2
*/

:root {
  --brand-green: #00a651;
  --brand-green-hover: #008d44;
  --brand-dark: #3c3c3b;
  --brand-light: #a7a9ac;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --gray-border: #e2e8f0;
  --text-muted: #64748b;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--brand-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

/* Header */
header {
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-svg {
  height: 48px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--brand-dark);
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--brand-green);
}

.btn-primary {
  background-color: var(--brand-green);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--brand-green-hover);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  background-color: var(--white);
  padding: 5rem 1.5rem;
  border-bottom: 1px solid var(--gray-border);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(0, 166, 81, 0.1);
  color: var(--brand-green);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

.hero-card {
  background-color: var(--brand-dark);
  color: var(--white);
  padding: 3rem;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--brand-green);
}

/* Section styling */
.section {
  padding: 5rem 1.5rem;
}

.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-title h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-muted);
}

/* Services Section - 2 cards */
.services-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--gray-border);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
  border-color: var(--brand-green);
}

.service-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-green);
  background-color: rgba(0, 166, 81, 0.1);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.975rem;
}

/* Products preview */
.products-bg {
  background-color: var(--white);
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
}

.products-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-box {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--gray-border);
}

.product-box h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--brand-dark);
}

.product-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Contact Section */
.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--white);
  padding: 3.5rem;
  border-radius: 16px;
  border: 1px solid var(--gray-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.contact-info h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.info-item {
  margin-bottom: 1.25rem;
}

.info-item strong {
  display: block;
  font-size: 0.875rem;
  color: var(--brand-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item span, .info-item a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-dark);
  text-decoration: none;
}

.info-item a:hover {
  color: var(--brand-green);
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-green);
}

.alert-success {
  background-color: rgba(0, 166, 81, 0.15);
  color: var(--brand-green);
  border: 1px solid var(--brand-green);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.alert-error {
  background-color: rgba(220, 38, 38, 0.15);
  color: #dc2626;
  border: 1px solid #dc2626;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* Footer */
footer {
  background-color: var(--brand-dark);
  color: var(--white);
  padding: 3.5rem 1.5rem 1.5rem 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 2.5rem;
  margin-bottom: 2rem;
}

.footer-info-text {
  color: var(--brand-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: var(--brand-light);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-container,
  .services-grid,
  .contact-container,
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }

  nav ul {
    display: none;
  }
}
