/*
 * Theme Name:   PORTIX
 * Theme URI:    https://portix.example.com
 * Description:  One-page logistics & fulfilment site. Minimal, European, B2B/B2C. No e-commerce, no animations.
 * Author:       PORTIX
 * Version:      1.0.0
 * License:      GNU General Public License v2 or later
 * Text Domain:  portix
 *
 * Single-page layout: Hero, What we do, Services (B2B / B2C), Why choose us, Contact.
 * Responsive grid, clean code, easy to maintain.
 */

/* ==========================================================================
   CSS variables – brand and layout
   ========================================================================== */
:root {
  --color-bg:         #f8f8f8;
  --color-surface:   #ffffff;
  --color-text:      #2e2e2e;
  --color-text-muted:#6b6b6b;
  --color-accent:    #ff9c00;
  --color-accent-alt:#ffc400;
  --color-border:    #e0e0e0;
  --font-sans:       "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-size-base:  1.25rem;
  --line-height:     1.6;
  --space-unit:      1rem;
  --container-max:   1200px;
  --section-padding: clamp(2rem, 5vw, 4rem);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ==========================================================================
   Layout – container and sections
   ========================================================================== */
.portix-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-unit);
  padding-right: var(--space-unit);
}

.portix-section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.portix-section:nth-child(even) { background: var(--color-surface); }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.portix-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.portix-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.portix-logo-header {
  height: 2.5rem;
  width: auto;
}
.portix-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.portix-nav a {
  color: var(--color-text);
  font-size: 1.125rem;
}
.portix-nav a:hover { text-decoration: none; color: var(--color-accent); }
.portix-nav li { margin: 0; }
@media (max-width: 768px) {
  .portix-header-inner { flex-wrap: wrap; }
  .portix-nav-wrap { width: 100%; }
  .portix-nav { justify-content: center; gap: 1rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.portix-hero {
  text-align: center;
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
  background: var(--color-surface);
}
.portix-hero-logo {
  max-width: 280px;
  height: auto;
  margin: 0 auto 1rem;
}
.portix-hero-slogan {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--color-text-muted);
  font-weight: 400;
  margin: 0 0 1.5rem;
}
.portix-hero .portix-hero-slogan { font-size: clamp(2rem, 5vw, 3rem); }
.portix-hero-lead {
  max-width: 36em;
  margin: 0 auto 2rem;
  color: var(--color-text);
  font-size: 1.375rem;
}
.portix-cta {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
}
.portix-cta:hover { background: var(--color-accent-alt); color: #fff; text-decoration: none; }

/* ==========================================================================
   Section titles
   ========================================================================== */
.portix-section-title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  margin: 0 0 0.5rem;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.portix-section-subtitle {
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
  max-width: 40em;
  font-size: 1.25rem;
}
.portix-section-body {
  max-width: 48em;
  color: var(--color-text);
  font-size: 1.25rem;
}
.portix-section-body p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: 1.25rem;
}
.portix-section-body p:last-child { margin-bottom: 0; }
.portix-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
  font-size: 1.25rem;
}
.portix-list li { margin-bottom: 0.35rem; }
.portix-list-why { margin-bottom: 1.5rem; }
.portix-tagline {
  font-weight: 600;
  color: var(--color-text);
  margin-top: 1rem;
  font-size: 1.25rem;
}

/* ==========================================================================
   Grid – What we do / Services / Why choose us
   ========================================================================== */
.portix-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.portix-card {
  background: var(--color-bg);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
}
.portix-section:nth-child(even) .portix-card { background: var(--color-surface); border-color: var(--color-border); }
.portix-card h3 { margin: 0 0 0.5rem; font-size: 1.375rem; }
.portix-card p { margin: 0; color: var(--color-text-muted); font-size: 1.1875rem; }

/* Two-column section layout (B2B / B2C)
   ========================================================================== */
.portix-split-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) {
  .portix-split-grid { grid-template-columns: 1fr; }
}
.portix-split-block h3 { margin: 0 0 1rem; font-size: 1.5rem; }
.portix-split-block ul { margin: 0 0 1rem; padding-left: 1.25rem; color: var(--color-text-muted); font-size: 1.25rem; }
.portix-split-block p { margin: 0; color: var(--color-text-muted); font-size: 1.25rem; }

/* ==========================================================================
   Contact block
   ========================================================================== */
.portix-contact,
.portix-section.portix-contact {
  background: var(--color-text) !important;
  color: #fff;
  font-weight: inherit;
  padding: var(--section-padding);
}
.portix-contact .portix-section-title,
.portix-contact .portix-section-subtitle,
.portix-contact .portix-section-intro,
.portix-contact .portix-contact-item,
.portix-contact .portix-contact-item strong {
  color: #fff;
}
.portix-contact .portix-section-subtitle { opacity: 0.95; font-size: 1.25rem; }
.portix-section-intro {
  margin: 0 0 1.5rem;
  max-width: 40em;
  font-size: 1.25rem;
}
.portix-contact .portix-section-intro { color: #fff; opacity: 0.95; }
.portix-contact a { color: var(--color-accent-alt); }
.portix-contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 1.5rem;
  font-size: 1.25rem;
}
.portix-contact-item { margin: 0; color: #fff; font-size: 1.25rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.portix-footer {
  padding: 1rem var(--space-unit);
  text-align: center;
  font-size: 1.125rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
