/* DanubLex — Manufacturing & Supply Chain Legal */
:root {
  --dl-stone: #57534e;
  --dl-stone-dark: #44403c;
  --dl-stone-light: #78716c;
  --dl-red: #dc2626;
  --dl-red-dark: #b91c1c;
  --dl-red-light: #ef4444;
  --dl-off-white: #fafaf9;
  --dl-white: #ffffff;
  --dl-border: #d6d3d1;
  --dl-text: #292524;
  --dl-text-muted: #78716c;
  --dl-shadow: 0 4px 24px rgba(41, 37, 36, 0.08);
  --dl-shadow-lg: 0 8px 40px rgba(41, 37, 36, 0.12);
  --dl-radius: 4px;
  --dl-nav-height: 64px;
  --dl-subnav-height: 48px;
  --dl-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--dl-nav-height) + var(--dl-subnav-height) + 16px);
}

body {
  font-family: var(--dl-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dl-text);
  background: var(--dl-off-white);
}

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

a {
  color: var(--dl-red);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--dl-red-dark);
}

ul {
  list-style: none;
}

/* Layout */
.dl-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.dl-section {
  padding: 80px 0;
}

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

.dl-section--dark {
  background: var(--dl-stone);
  color: var(--dl-off-white);
}

.dl-section--dark a {
  color: var(--dl-red-light);
}

/* Typography */
.dl-heading {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dl-stone-dark);
  margin-bottom: 16px;
}

.dl-section--dark .dl-heading {
  color: var(--dl-off-white);
}

.dl-heading--sm {
  font-size: 1.75rem;
}

.dl-subheading {
  font-size: 1.125rem;
  color: var(--dl-text-muted);
  max-width: 640px;
  margin-bottom: 48px;
}

.dl-section--dark .dl-subheading {
  color: var(--dl-border);
}

.dl-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dl-red);
  margin-bottom: 12px;
}

.dl-section--dark .dl-label {
  color: var(--dl-red-light);
}

/* Top Navigation */
.dl-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dl-stone-dark);
  height: var(--dl-nav-height);
  border-bottom: 3px solid var(--dl-red);
}

.dl-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.dl-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dl-off-white);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dl-logo:hover {
  color: var(--dl-off-white);
}

.dl-logo__icon {
  width: 36px;
  height: 36px;
  background: var(--dl-red);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--dl-radius);
  font-size: 1rem;
}

.dl-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.dl-nav__link {
  color: var(--dl-border);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.dl-nav__link:hover,
.dl-nav__link--active {
  color: var(--dl-off-white);
}

.dl-nav__link--active {
  border-bottom: 2px solid var(--dl-red);
  padding-bottom: 2px;
}

.dl-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--dl-off-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Secondary Sub-Navigation */
.dl-subnav {
  position: sticky;
  top: var(--dl-nav-height);
  z-index: 999;
  background: var(--dl-stone);
  height: var(--dl-subnav-height);
  border-bottom: 1px solid var(--dl-stone-light);
}

.dl-subnav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0;
}

.dl-subnav__link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 28px;
  color: var(--dl-border);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.dl-subnav__link:hover,
.dl-subnav__link--active {
  color: var(--dl-off-white);
  border-bottom-color: var(--dl-red);
  background: rgba(0, 0, 0, 0.1);
}

.dl-subnav__divider {
  width: 1px;
  height: 24px;
  background: var(--dl-stone-light);
}

/* Hero */
.dl-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--dl-stone-dark);
  overflow: hidden;
}

.dl-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.dl-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(41, 37, 36, 0.85) 0%, rgba(87, 83, 78, 0.6) 100%);
}

.dl-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 80px 24px;
  margin: 0 auto;
  text-align: center;
}

.dl-hero__title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dl-off-white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.dl-hero__text {
  font-size: 1.25rem;
  color: var(--dl-border);
  margin-bottom: 36px;
  line-height: 1.7;
}

.dl-hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--dl-radius);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.dl-btn--primary {
  background: var(--dl-red);
  color: var(--dl-white);
}

.dl-btn--primary:hover {
  background: var(--dl-red-dark);
  color: var(--dl-white);
}

.dl-btn--outline {
  background: transparent;
  color: var(--dl-off-white);
  border: 2px solid var(--dl-off-white);
}

.dl-btn--outline:hover {
  background: var(--dl-off-white);
  color: var(--dl-stone-dark);
}

.dl-btn--secondary {
  background: var(--dl-stone);
  color: var(--dl-off-white);
}

.dl-btn--secondary:hover {
  background: var(--dl-stone-dark);
  color: var(--dl-off-white);
}

/* Cards Grid */
.dl-grid {
  display: grid;
  gap: 32px;
}

.dl-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.dl-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.dl-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.dl-card {
  background: var(--dl-white);
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.dl-card:hover {
  box-shadow: var(--dl-shadow-lg);
  transform: translateY(-4px);
}

.dl-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.dl-card__body {
  padding: 28px;
}

.dl-card__icon {
  width: 48px;
  height: 48px;
  background: var(--dl-stone);
  color: var(--dl-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--dl-radius);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.dl-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dl-stone-dark);
  margin-bottom: 12px;
}

.dl-card__text {
  font-size: 0.9375rem;
  color: var(--dl-text-muted);
  line-height: 1.7;
}

.dl-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Stats */
.dl-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--dl-border);
  border-bottom: 1px solid var(--dl-border);
}

.dl-stat__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dl-red);
  line-height: 1;
  margin-bottom: 8px;
}

.dl-stat__label {
  font-size: 0.875rem;
  color: var(--dl-text-muted);
  font-weight: 500;
}

/* Contract Builder */
.dl-builder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.dl-builder__form {
  background: var(--dl-white);
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius);
  padding: 36px;
}

.dl-builder__output {
  background: var(--dl-stone-dark);
  color: var(--dl-off-white);
  border-radius: var(--dl-radius);
  padding: 36px;
  min-height: 400px;
}

.dl-builder__output-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dl-red-light);
  margin-bottom: 20px;
}

.dl-builder__output-content {
  font-size: 0.9375rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

.dl-builder__output-placeholder {
  color: var(--dl-stone-light);
  font-style: italic;
}

/* Forms */
.dl-form-group {
  margin-bottom: 24px;
}

.dl-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dl-stone-dark);
  margin-bottom: 8px;
}

.dl-form-input,
.dl-form-select,
.dl-form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-family: var(--dl-font);
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius);
  background: var(--dl-off-white);
  color: var(--dl-text);
  transition: border-color 0.2s;
}

.dl-form-input:focus,
.dl-form-select:focus,
.dl-form-textarea:focus {
  outline: none;
  border-color: var(--dl-red);
}

.dl-form-textarea {
  min-height: 120px;
  resize: vertical;
}

.dl-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Cases */
.dl-case {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--dl-border);
}

.dl-case:last-child {
  border-bottom: none;
}

.dl-case__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--dl-radius);
}

.dl-case__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  background: var(--dl-stone);
  color: var(--dl-off-white);
  border-radius: var(--dl-radius);
  margin-bottom: 12px;
}

.dl-case__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dl-stone-dark);
  margin-bottom: 8px;
}

.dl-case__text {
  font-size: 0.9375rem;
  color: var(--dl-text-muted);
}

/* About / Team */
.dl-team-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--dl-white);
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius);
}

.dl-team-card__avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  background: var(--dl-stone);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--dl-off-white);
}

.dl-team-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dl-stone-dark);
  margin-bottom: 4px;
}

.dl-team-card__role {
  font-size: 0.875rem;
  color: var(--dl-red);
  font-weight: 600;
  margin-bottom: 12px;
}

.dl-team-card__bio {
  font-size: 0.9375rem;
  color: var(--dl-text-muted);
}

/* Contact */
.dl-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.dl-contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.dl-contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.dl-contact-item__icon {
  width: 44px;
  height: 44px;
  background: var(--dl-stone);
  color: var(--dl-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--dl-radius);
  flex-shrink: 0;
}

.dl-contact-item__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dl-text-muted);
  margin-bottom: 4px;
}

.dl-contact-item__value {
  font-size: 1rem;
  color: var(--dl-stone-dark);
  font-weight: 500;
}

.dl-contact-item__value a {
  color: var(--dl-stone-dark);
}

.dl-contact-item__value a:hover {
  color: var(--dl-red);
}

/* Privacy */
.dl-privacy-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dl-stone-dark);
  margin: 40px 0 16px;
}

.dl-privacy-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dl-stone);
  margin: 28px 0 12px;
}

.dl-privacy-content p,
.dl-privacy-content li {
  font-size: 0.9375rem;
  color: var(--dl-text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.dl-privacy-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

/* Page Header */
.dl-page-header {
  background: var(--dl-stone);
  padding: 60px 0;
  text-align: center;
}

.dl-page-header__title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dl-off-white);
  margin-bottom: 12px;
}

.dl-page-header__text {
  font-size: 1.125rem;
  color: var(--dl-border);
  max-width: 560px;
  margin: 0 auto;
}

/* Footer */
.dl-footer {
  background: var(--dl-stone-dark);
  color: var(--dl-border);
  padding: 64px 0 32px;
}

.dl-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.dl-footer__brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dl-off-white);
  margin-bottom: 16px;
}

.dl-footer__desc {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.dl-footer__heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dl-off-white);
  margin-bottom: 20px;
}

.dl-footer__link {
  display: block;
  font-size: 0.875rem;
  color: var(--dl-border);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.dl-footer__link:hover {
  color: var(--dl-off-white);
}

.dl-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--dl-stone);
  font-size: 0.8125rem;
}

/* Cookie Banner */
.dl-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--dl-stone-dark);
  color: var(--dl-off-white);
  padding: 20px 24px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.dl-cookie--visible {
  transform: translateY(0);
}

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

.dl-cookie__text {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  min-width: 280px;
}

.dl-cookie__text a {
  color: var(--dl-red-light);
  text-decoration: underline;
}

.dl-cookie__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.dl-cookie__btn {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--dl-radius);
  cursor: pointer;
  transition: all 0.2s;
}

.dl-cookie__btn--accept {
  background: var(--dl-red);
  color: var(--dl-white);
}

.dl-cookie__btn--accept:hover {
  background: var(--dl-red-dark);
}

.dl-cookie__btn--decline {
  background: transparent;
  color: var(--dl-border);
  border: 1px solid var(--dl-stone-light);
}

.dl-cookie__btn--decline:hover {
  border-color: var(--dl-off-white);
  color: var(--dl-off-white);
}

/* Form Success */
.dl-form-success {
  display: none;
  padding: 20px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: var(--dl-radius);
  color: #065f46;
  font-size: 0.9375rem;
  margin-top: 20px;
}

.dl-form-success--visible {
  display: block;
}

/* Breadcrumb */
.dl-breadcrumb {
  padding: 16px 0;
  font-size: 0.875rem;
  color: var(--dl-text-muted);
}

.dl-breadcrumb a {
  color: var(--dl-text-muted);
}

.dl-breadcrumb a:hover {
  color: var(--dl-red);
}

/* Responsive */
@media (max-width: 1024px) {
  .dl-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .dl-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dl-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dl-nav {
    display: none;
    position: absolute;
    top: var(--dl-nav-height);
    left: 0;
    right: 0;
    background: var(--dl-stone-dark);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 3px solid var(--dl-red);
  }

  .dl-nav--open {
    display: flex;
  }

  .dl-nav-toggle {
    display: block;
  }

  .dl-subnav__inner {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 16px;
  }

  .dl-subnav__link {
    padding: 0 20px;
    white-space: nowrap;
  }

  .dl-hero__title {
    font-size: 2rem;
  }

  .dl-heading {
    font-size: 1.75rem;
  }

  .dl-grid--2,
  .dl-grid--3,
  .dl-grid--4 {
    grid-template-columns: 1fr;
  }

  .dl-builder {
    grid-template-columns: 1fr;
  }

  .dl-contact-grid {
    grid-template-columns: 1fr;
  }

  .dl-case {
    grid-template-columns: 1fr;
  }

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

  .dl-footer__grid {
    grid-template-columns: 1fr;
  }

  .dl-footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .dl-stats {
    grid-template-columns: 1fr 1fr;
  }
}
