/*
Theme Name: CP Industries Theme
Theme URI: https://www.cp-industries.ch/
Author: CP Industries
Description: Custom corporate and shop theme for CP Industries.
Version: 1.0.0
Text Domain: cp-industries
*/

:root {
  --cp-bg: #0e0f13;
  --cp-bg-soft: #1a1c22;
  --cp-text: #f4f4f4;
  --cp-muted: #b7b7b7;
  --cp-accent: #ef5132;
  --cp-border: #34363c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #090a0e;
  color: var(--cp-text);
  font-family: "Segoe UI", Arial, sans-serif;
}

body.cp-theme-bg {
  background-image: linear-gradient(rgba(11, 12, 16, 0.88), rgba(11, 12, 16, 0.9)), url("assets/images/Background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

a {
  color: var(--cp-text);
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.82);
  border-bottom: 1px solid #17191f;
}

.cp-wrap {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  max-height: 36px;
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--cp-accent);
}

.header-tools {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
}

.content-area {
  min-height: calc(100vh - 220px);
  padding: 32px 0 64px;
}

.cp-hero {
  text-align: center;
  padding: 50px 0 10px;
}

.cp-hero h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.06;
  font-weight: 500;
  margin: 0 0 30px;
}

.cp-hero .lead-danger {
  color: var(--cp-accent);
  font-size: clamp(22px, 2.6vw, 40px);
  margin-bottom: 18px;
  font-weight: 700;
}

.cp-hero p {
  font-size: clamp(20px, 2.2vw, 34px);
  margin: 0 auto;
  max-width: 1000px;
}

.cp-home-machines {
  margin-top: 34px;
}

.cp-home-machines img {
  width: min(1050px, 96%);
  height: auto;
  display: block;
  margin: 0 auto;
}

.cp-section {
  padding: 50px 0;
}

.cp-section-title {
  color: var(--cp-accent);
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 26px;
  letter-spacing: 0.03em;
}

.site-footer {
  background: rgba(8, 9, 12, 0.94);
  border-top: 1px solid #14161a;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 42px 0;
}

.footer-col a {
  display: block;
  margin: 9px 0;
  color: #e2e2e2;
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--cp-accent);
}

.cp-card {
  background: rgba(20, 22, 28, 0.92);
  border: 1px solid var(--cp-border);
  border-radius: 2px;
}

.cp-form-row input,
.cp-form-row select,
.cp-form-row textarea,
.cp-select,
.cp-input {
  width: 100%;
  background: transparent;
  color: var(--cp-text);
  border: 1px solid #4a4d55;
  border-radius: 999px;
  height: 42px;
  padding: 0 14px;
}

.cp-form-row textarea {
  border-radius: 22px;
  min-height: 120px;
  padding: 12px 14px;
}

.cp-btn {
  background: var(--cp-accent);
  border: 0;
  color: #fff;
  height: 40px;
  min-width: 200px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.cp-btn:hover {
  opacity: 0.92;
}

.cp-auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.cp-auth-modal.is-open {
  display: flex;
}

.cp-auth-dialog {
  width: min(520px, 92vw);
  background: #f4f4f4;
  color: #171a20;
  border-radius: 4px;
  padding: 22px;
  position: relative;
}

.cp-auth-close {
  position: absolute;
  top: 6px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.cp-auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.cp-auth-tab {
  border: 1px solid #c4c7cc;
  background: #fff;
  color: #1a1f28;
  padding: 8px 12px;
  cursor: pointer;
}

.cp-auth-tab.is-active {
  background: #444950;
  color: #fff;
}

.cp-auth-form {
  display: none;
}

.cp-auth-form.is-active {
  display: block;
}

.cp-auth-form h3 {
  margin: 8px 0 14px;
}

.cp-auth-input {
  width: 100%;
  height: 44px;
  border: 1px solid #d0d2d7;
  margin-bottom: 10px;
  padding: 0 12px;
  border-radius: 2px;
}

.cp-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cp-auth-message {
  min-height: 20px;
  font-size: 14px;
  color: #198754;
}

.cp-auth-message.is-error {
  color: #b42318;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cp-auth-grid {
    grid-template-columns: 1fr;
  }
}
