/*
Theme Name: Orderplus
Theme URI: https://orderplus.pl
Author: ARTplus
Author URI: https://www.artplus.pl/
Description: One-page motyw dla orderplus.pl — aplikacja internetowa dla firm spedycyjnych. Sekcje: hero, funkcje (moduły), zamów demo, cennik pakietów, zamówienie aplikacji, kontakt. Trzy działające formularze z zapisem w bazie i wysyłką e-mail.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orderplus
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ==========================================================================
   1. ZMIENNE I RESET
   ========================================================================== */
:root {
    --op-orange: #FF6210;
    --op-orange-hover: #F15808;
    --op-dark: #1C0D0A;
    --op-text: #353535;
    --op-muted: #5a5a5a;
    --op-peach: #FEF1E4;
    --op-blue: #00629a;
    --op-white: #ffffff;
    --op-light: #fafafa;
    --op-border: #eaeaea;
    --op-radius: 8px;
    --op-shadow: 0 8px 24px rgba(28, 13, 10, 0.08);
    --op-shadow-lg: 0 16px 40px rgba(28, 13, 10, 0.14);
    --op-font: Arial, Helvetica, Verdana, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section[id],
div[id] {
    scroll-margin-top: 90px;
}

body {
    margin: 0;
    font-family: var(--op-font);
    color: var(--op-text);
    background: var(--op-white);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--op-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--op-orange);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--op-font);
    color: var(--op-dark);
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.5em;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p {
    margin: 0 0 1em;
}

ul {
    margin: 0 0 1em;
    padding-left: 1.2em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--op-muted);
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px;
}

.section-kicker {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    color: var(--op-orange);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

/* ==========================================================================
   2. PRZYCISKI
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    font-family: var(--op-font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--op-orange);
    color: #fff;
}

.btn-primary:hover {
    background: var(--op-orange-hover);
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 98, 16, 0.35);
}

.btn-secondary {
    background: var(--op-white);
    color: var(--op-orange);
    border: 2px solid var(--op-orange);
}

.btn-secondary:hover {
    background: var(--op-peach);
    color: var(--op-orange-hover);
}

.btn-dark {
    background: var(--op-dark);
    color: #fff;
}

.btn-dark:hover {
    background: #000;
    color: #fff;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================================================
   3. NAGŁÓWEK
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--op-border);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(28, 13, 10, 0.1);
}

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

.site-brand img {
    max-height: 42px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    margin: 0;
}

.main-nav ul a {
    color: var(--op-text);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.main-nav ul a:hover {
    color: var(--op-orange);
    border-bottom-color: var(--op-orange);
}

.nav-cta {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 6px;
    background: var(--op-orange);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-cta:hover {
    background: var(--op-orange-hover);
    color: #fff;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--op-dark);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.2s ease;
}

/* ==========================================================================
   4. HERO
   ========================================================================== */
.hero {
    padding: 0;
}

.hero-banner {
    background-image: url('assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    padding: 150px 0 130px;
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(28, 13, 10, 0.55);
}

.hero-banner-inner {
    position: relative;
    z-index: 1;
}

.hero-banner .hero-kicker {
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #fff;
    opacity: 0.85;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 14px;
}

.hero-banner h1 {
    font-size: 64px;
    margin-bottom: 0;
    color: #fff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
}

.hero-body {
    background: linear-gradient(180deg, var(--op-peach) 0%, #fff 100%);
    padding: 80px 0 90px;
    text-align: center;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: var(--op-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 28px;
}

.hero-text {
    max-width: 860px;
    margin: 0 auto 40px;
    color: var(--op-muted);
    font-size: 17px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 70px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
}

.feature-card {
    background: var(--op-white);
    border-radius: var(--op-radius);
    box-shadow: var(--op-shadow);
    padding: 34px 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--op-shadow-lg);
}

.feature-card .icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: var(--op-peach);
    color: var(--op-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--op-muted);
    font-size: 15px;
    margin: 0;
}

/* ==========================================================================
   5. MODUŁY (ZAKŁADKI)
   ========================================================================== */
.modules {
    background: var(--op-white);
}

.module-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 44px;
}

.module-tab {
    padding: 12px 26px;
    border-radius: 999px;
    border: 1px solid var(--op-border);
    background: var(--op-white);
    color: var(--op-text);
    font-family: var(--op-font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.module-tab:hover {
    border-color: var(--op-orange);
    color: var(--op-orange);
}

.module-tab.active {
    background: var(--op-orange);
    border-color: var(--op-orange);
    color: #fff;
}

.module-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.module-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.module-panel-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.module-copy h3 {
    font-size: 28px;
    margin-bottom: 14px;
}

.module-copy p {
    color: var(--op-muted);
    margin-bottom: 10px;
}

.module-copy ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.module-copy ul li {
    padding-left: 26px;
    position: relative;
    margin-bottom: 8px;
}

.module-copy ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--op-orange);
    font-weight: 700;
}

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

.module-gallery img {
    border-radius: var(--op-radius);
    border: 1px solid var(--op-border);
    box-shadow: var(--op-shadow);
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-gallery img:hover {
    transform: scale(1.02);
    box-shadow: var(--op-shadow-lg);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    cursor: zoom-out;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--op-radius);
}

/* ==========================================================================
   6. SEKCJA DEMO
   ========================================================================== */
.demo {
    background: linear-gradient(135deg, var(--op-peach), #fff4e8);
}

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

.demo-copy h2 {
    font-size: 32px;
    margin-bottom: 14px;
}

.demo-copy p {
    color: var(--op-muted);
    margin-bottom: 20px;
}

.demo-copy img {
    max-width: 260px;
    margin: 20px 0 0;
}

.demo-video-wrap {
    margin-top: 70px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.demo-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    box-shadow: var(--op-shadow-lg);
    background: #000;
}

/* ==========================================================================
   7. CENNIK
   ========================================================================== */
.pricing {
    background: var(--op-white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    background: var(--op-white);
    border: 1px solid var(--op-border);
    border-radius: 12px;
    padding: 40px 34px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--op-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--op-shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--op-orange);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--op-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 22px;
    margin-bottom: 4px;
}

.pricing-card .price {
    font-size: 46px;
    font-weight: 700;
    color: var(--op-dark);
    line-height: 1.1;
}

.pricing-card .price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--op-muted);
}

.pricing-card .price-note {
    color: var(--op-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.pricing-highlight {
    background: var(--op-peach);
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 14px;
    color: var(--op-dark);
    margin-bottom: 16px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    flex-grow: 1;
}

.pricing-card ul li {
    padding-left: 26px;
    position: relative;
    margin-bottom: 10px;
    font-size: 15px;
}

.pricing-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--op-orange);
    font-weight: 700;
}

.pricing-note {
    max-width: 820px;
    margin: 44px auto 0;
    text-align: center;
    color: var(--op-muted);
    font-size: 15px;
}

.pricing-note p {
    margin-bottom: 6px;
}

.pricing-note strong {
    color: var(--op-text);
}

/* ==========================================================================
   8. FORMULARZE
   ========================================================================== */
.form-section {
    background: var(--op-light);
}

.form-section.alt {
    background: var(--op-white);
}

.form-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--op-white);
    border-radius: 12px;
    box-shadow: var(--op-shadow-lg);
    padding: 44px 48px;
}

.form-card h3 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 8px;
}

.form-card > p {
    text-align: center;
    color: var(--op-muted);
    margin-bottom: 26px;
}

.op-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.op-form .form-row.one {
    grid-template-columns: 1fr;
}

.op-form label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--op-dark);
}

.op-form label .req {
    color: var(--op-orange);
}

.op-form input[type="text"],
.op-form input[type="email"],
.op-form input[type="tel"],
.op-form select,
.op-form textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--op-border);
    border-radius: 6px;
    font-family: var(--op-font);
    font-size: 15px;
    color: var(--op-text);
    background: var(--op-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.op-form input:focus,
.op-form select:focus,
.op-form textarea:focus {
    outline: none;
    border-color: var(--op-orange);
    box-shadow: 0 0 0 3px rgba(255, 98, 16, 0.15);
}

.op-form textarea {
    min-height: 130px;
    resize: vertical;
}

.op-form .hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.op-form .form-submit {
    margin-top: 24px;
}

.op-form .form-status {
    display: none;
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
}

.op-form .form-status.success {
    display: block;
    background: #e9f7ef;
    color: #1e7e4e;
    border: 1px solid #b7e3cb;
}

.op-form .form-status.error {
    display: block;
    background: #fdecec;
    color: #c0392b;
    border: 1px solid #f3b5b5;
}

.op-form .form-status.loading {
    display: block;
    background: var(--op-light);
    color: var(--op-muted);
    border: 1px solid var(--op-border);
}

/* ==========================================================================
   8b. BANER COOKIE
   ========================================================================== */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    background: var(--op-dark);
    color: #e8e8e8;
    padding: 18px 20px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(0);
    transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 1;
}

.cookie-banner.hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--op-orange);
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #fff;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-banner-actions .btn {
    padding: 10px 22px;
    font-size: 13px;
}

.cookie-banner-actions .btn-secondary {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.cookie-banner-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .cookie-banner-actions {
        width: 100%;
    }
    .cookie-banner-actions .btn {
        flex: 1;
    }
}

.form-section-note {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: var(--op-muted);
}

/* ==========================================================================
   9. KONTAKT
   ========================================================================== */.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 26px;
    margin-bottom: 18px;
}

.contact-block {
    margin-bottom: 26px;
}

.contact-block h4 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--op-orange);
    margin-bottom: 8px;
}

.contact-block p {
    color: var(--op-text);
    margin-bottom: 4px;
    line-height: 1.7;
}

.contact-block a {
    color: var(--op-blue);
    font-weight: 700;
}

.contact-block a:hover {
    color: var(--op-orange);
}

.contact-block .mono {
    font-weight: 700;
}

/* ==========================================================================
   9b. STRONY PRAWNE (POLITYKA PRYWATNOŚCI)
   ========================================================================== */
.legal-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 0 90px;
}

.legal-page-title {
    font-size: 34px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--op-orange);
}

.legal-page .entry-content p {
    margin: 18px 0 8px;
}

.legal-page .entry-content strong {
    color: var(--op-dark);
}

.legal-page .entry-content ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.legal-page .entry-content li {
    margin-bottom: 10px;
}

.legal-page .entry-content ol ol {
    margin-top: 8px;
}

/* ==========================================================================
   10. STOPKA
   ========================================================================== */
.site-footer {
    background: var(--op-dark);
    color: #c9c9c9;
    padding: 60px 0 0;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 40px;
}

.footer-brand img {
    max-height: 46px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    margin: 0;
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    color: #c9c9c9;
}

.footer-col ul a:hover {
    color: var(--op-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom a {
    color: #fff;
    font-weight: 700;
}

.footer-bottom a:hover {
    color: var(--op-orange);
}

/* ==========================================================================
   11. RESPONSYWNOŚĆ
   ========================================================================== */
@media (max-width: 992px) {
    .hero-banner h1 { font-size: 42px; }
    .module-panel-inner { grid-template-columns: 1fr; gap: 30px; }
    .demo-inner { grid-template-columns: 1fr; gap: 30px; }
    .contact-inner { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 34px; }
    h2 { font-size: 28px; }
    .hero-banner { padding: 90px 0 80px; }
    .hero-banner h1 { font-size: 34px; }
    .hero-features { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .module-gallery { grid-template-columns: 1fr; }

    .menu-toggle { display: block; }
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: 0 12px 30px rgba(28, 13, 10, 0.15);
        transform: translateY(-130%);
        transition: transform 0.3s ease;
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; }
    .nav-cta { display: block; text-align: center; width: 100%; }

    .form-card { padding: 30px 22px; }
    .op-form .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
