/* Volkico B2B portal demo styles */

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

html, body { height: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
.section { scroll-margin-top: 70px; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* Container */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 44px;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.header.scrolled {
  background: rgba(20, 8, 8, 0.92);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

/* Logo */
.logo {
  display: inline-block;
  text-decoration: none;
  height: 36px;
  opacity: 0;
  transform: translateY(-6px);
  animation: logoFadeIn 0.7s ease-out 0.15s forwards;
}
.logo img { height: 100%; width: auto; display: block; }
@keyframes logoFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-user {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}
.header-auth a,
.header-auth button {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.header-auth a:hover,
.header-auth button:hover { color: #f5d6c0; }

/* Header right (nav + auth + toggle) */
.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Nav (desktop) */
.nav { display: block; }
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s ease;
  display: inline-block;
}
.nav-list a:hover { color: #f5d6c0; }
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #e63946;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
.nav-list a:hover::after { transform: scaleX(1); }

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 2;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  text-align: left;
  padding: 120px 44px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.15) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.hero h1 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.hero h1 .accent { color: #e63946; }
.hero-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  max-width: 560px;
  margin-bottom: 44px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 620px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;
  text-transform: none;
  color: #ffffff;
  letter-spacing: 0;
}
.feature svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: #ffffff;
  opacity: 0.95;
}

/* Sections (shared) */
.section { padding: 96px 0; }
.section h2 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}
.section h2.center { text-align: center; }
.section p { color: #3a3a3a; font-size: 16px; margin-bottom: 16px; }
.section p.center { text-align: center; }
.section .lead {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-style: italic;
  color: #5a2020;
  font-size: 20px;
  margin-bottom: 18px;
}

/* Welcome */
.section-welcome {
  background: #faf6f1;
  text-align: center;
}
.section-welcome h2 { margin-bottom: 12px; }
.section-welcome p { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Products */
.section-products { background: #ffffff; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.product-card {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(40, 15, 15, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(40, 15, 15, 0.16);
}
.product-image {
  width: 100%;
  overflow: hidden;
  background: #f0e8e0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image img { transform: scale(1.02); }
.product-body { padding: 28px 28px 32px; }
.product-body h3 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.product-body p { color: #555; font-size: 15px; margin: 0; }

/* Why us */
.section-why { background: #faf6f1; }
.check-list {
  list-style: none;
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.check-list li {
  position: relative;
  padding-left: 36px;
  color: #2a2a2a;
  font-size: 16px;
  line-height: 1.45;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #5a2020;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Supplying */
.section-supplying {
  background: #ffffff;
  text-align: center;
}
.section-supplying h2 { margin-bottom: 24px; }
.section-supplying p { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Contact */
.section-contact { background: #faf6f1; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.contact-card {
  background: #ffffff;
  border-radius: 6px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(40, 15, 15, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(40, 15, 15, 0.12);
}
.contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #5a2020;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg {
  width: 26px;
  height: 26px;
}
.contact-card h3 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.contact-card p {
  color: #3a3a3a;
  font-size: 15px;
  margin: 0 0 6px;
  line-height: 1.55;
}
.contact-card p a {
  color: #5a2020;
  text-decoration: none;
  font-weight: 600;
}
.contact-card p a:hover { text-decoration: underline; }
.contact-card .muted {
  color: #888;
  font-size: 13px;
  margin-top: 4px;
}

/* CTA */
.section-cta {
  background: linear-gradient(180deg, #faf6f1 0%, #f1e6d8 100%);
  text-align: center;
  padding-bottom: 110px;
}
.section-cta h2 { margin-bottom: 18px; }
.section-cta p.center { max-width: 640px; margin: 0 auto 40px; }

/* Card (login) */
.card {
  background: rgba(255, 255, 255, 0.98);
  color: #2b2b2b;
  border-radius: 6px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  text-align: left;
}
.card-head {
  padding: 26px 36px 22px;
  text-align: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  border-bottom: 1px solid #eee;
  color: #1a1a1a;
}
.card-body { padding: 26px 36px 8px; }
.intro {
  text-align: center;
  color: #555;
  font-size: 14px;
  margin-bottom: 22px;
  line-height: 1.5;
}
.field { margin-bottom: 16px; }
.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
  font-family: inherit;
  color: #222;
  background: #fff;
}
.field input:focus {
  outline: none;
  border-color: #5a2020;
  box-shadow: 0 0 0 2px rgba(90, 32, 32, 0.12);
}
.forgot {
  text-align: right;
  font-size: 13px;
  margin: -8px 0 18px;
}
.forgot a { color: #5a2020; text-decoration: none; }
.forgot a:hover { text-decoration: underline; }

button.primary {
  width: 100%;
  padding: 14px;
  background: #1a1a1a;
  color: #fff;
  border: 0;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease-in-out;
}
button.primary:hover { background: #5a2020; }

.back-link {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  margin-top: 6px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: #1a1a1a;
  border-radius: 3px;
  transition: background 0.15s ease-in-out;
}
.back-link:hover { background: #5a2020; }

.error {
  background: #fde8e8;
  color: #991b1b;
  border: 1px solid #f5b5b5;
  padding: 10px 14px;
  border-radius: 3px;
  margin-bottom: 18px;
  font-size: 13px;
  text-align: center;
}

.card-foot {
  border-top: 1px solid #eee;
  padding: 22px 36px;
  text-align: center;
  background: #fafafa;
}
.card-foot h3 { font-size: 15px; margin-bottom: 10px; color: #222; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.card-foot p { font-size: 13px; color: #555; margin-bottom: 14px; line-height: 1.5; }
.card-foot a { color: #5a2020; font-weight: 600; text-decoration: underline; }

.welcome { padding: 12px 0 8px; text-align: center; }
.welcome h2 { font-size: 20px; margin-bottom: 10px; color: #222; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.welcome p { color: #555; margin-bottom: 22px; font-size: 14px; }

/* Footer */
.footer {
  background: #1a0808;
  color: rgba(255, 255, 255, 0.78);
  padding: 24px 44px;
  font-size: 12px;
  text-align: center;
}
.footer-contact a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.footer-contact a:hover { color: #f5d6c0; }

/* Responsive */
@media (max-width: 860px) {
  .header { padding: 16px 20px; }
  .hero { padding: 110px 24px 70px; }
  .features { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .section { padding: 64px 0; }
  .products-grid { grid-template-columns: 1fr; gap: 22px; }
  .check-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-head,
  .card-body,
  .card-foot { padding-left: 24px; padding-right: 24px; }
  .footer { padding: 20px; }
  .container { padding: 0 20px; }

  .header-right { gap: 0; }
  .header-auth { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a0808;
    padding: 12px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    display: none;
  }
  .nav.open { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-list li:last-child { border-bottom: 0; }
  .nav-list a {
    display: block;
    padding: 14px 24px;
    font-size: 13px;
  }
  .nav-list a::after { display: none; }
  .nav-list a:hover { background: rgba(255, 255, 255, 0.04); }
  .nav-only-mobile { display: block; }

.nav-only-mobile { display: none; }
.nav-user-label {
  display: block;
  padding: 14px 24px 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.nav-logout-form { padding: 0 24px 14px; margin: 0; }
.nav-auth-mobile-link {
  display: block;
  text-align: center;
  padding: 12px;
  background: #1a1a1a;
  color: #fff !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 3px;
}
