/* Ecofrontiers Website Styles */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: #F8F4ED;
  color: #2A2520;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

section[id],
footer[id] {
  scroll-margin-top: 72px;
}

/* Section Number Label */
.sn {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #A69E8F;
}

/* Rules / Dividers */
.rule {
  height: 1px;
  background: #E3DDD1;
}

.rule-dk {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* Navigation Links */
.nav-link {
  color: #5C5347;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.25s;
}

.nav-link:hover {
  color: #2A2520;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.3s;
  border: 1.5px solid;
}

.btn-dk {
  background: #2A2520;
  border-color: #2A2520;
  color: #F8F4ED;
}

.btn-dk:hover {
  background: #3D362D;
  border-color: #3D362D;
}

.btn-out {
  background: transparent;
  border-color: #C4BCAD;
  color: #5C5347;
}

.btn-out:hover {
  border-color: #807768;
  color: #2A2520;
}

.btn-sage {
  background: transparent;
  border-color: #5E8462;
  color: #4A6E4E;
}

.btn-sage:hover {
  background: rgba(94, 132, 98, 0.06);
  border-color: #3A5A3E;
}

.btn-lt {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
}

.btn-lt:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.arr {
  transition: transform 0.25s;
}

.btn:hover .arr {
  transform: translateX(2px);
}

/* Dark Band */
.band-dk {
  background: #1A1714;
  color: #F0EBE1;
}

.band-dk .sn {
  color: rgba(255, 255, 255, 0.35);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid;
}

/* Timeline Dot */
.tl-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5E8462;
  flex-shrink: 0;
  margin-top: 8px;
}

/* Domain Tags */
.dtag {
  display: inline-flex;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(94, 132, 98, 0.08);
  color: #4A6E4E;
  border-radius: 1px;
}

.dtag-flag {
  background: rgba(94, 132, 98, 0.14);
  color: #3A5A3E;
}

/* Inline Links */
a.il {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #C4BCAD;
  text-underline-offset: 2px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

a.il:hover {
  color: #2A2520;
  text-decoration-color: #807768;
}

/* External Link */
.ext {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ext svg {
  flex-shrink: 0;
}

/* Stack Accordion */
.stack-row {
  display: grid;
  grid-template-columns: 32px 1fr 20px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid #E3DDD1;
  cursor: pointer;
  transition: background 0.2s;
}

.stack-row:last-child {
  border-bottom: none;
}

.stack-row:hover {
  background: rgba(94, 132, 98, 0.03);
}

.stack-num {
  font-size: 11px;
  font-weight: 600;
  color: #C4BCAD;
}

.stack-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5C5347;
}

.stack-chv {
  width: 16px;
  height: 16px;
  transition: transform 0.25s;
  color: #C4BCAD;
}

.stack-row.open .stack-chv {
  transform: rotate(180deg);
}

.stack-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 14px 0 46px;
}

.stack-row.open + .stack-content {
  max-height: 220px;
  padding: 6px 14px 14px 46px;
}

.stack-def {
  font-size: 13px;
  font-weight: 300;
  color: #807768;
  line-height: 1.65;
}

.stack-ex {
  font-size: 12px;
  font-weight: 500;
  color: #A69E8F;
  margin-top: 6px;
}

/* Client Cards */
.cc {
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

.cc:hover {
  background: rgba(255, 255, 255, 0.03);
}

.cc:hover .cn {
  opacity: 0.6;
}

.cn {
  transition: opacity 0.2s, filter 0.2s;
}

/* Client logo standardization */
.client-logo {
  max-height: 28px;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.55;
  filter: brightness(0) invert(1);
  transition: opacity 0.25s, filter 0.25s;
}

.cc:hover .client-logo {
  opacity: 0.85;
}

.cd {
  position: absolute;
  top: 100%;
  left: -1px;
  right: -1px;
  z-index: 10;
  background: #1E1B16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.25s, transform 0.25s;
  min-width: 260px;
}

.cc.active .cd {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.cd p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(240, 235, 225, 0.6);
}

.cd .cdl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 6px;
}

/* Dark Theme Text */
.dk-h {
  color: #F0EBE1;
}

.dk-b {
  color: rgba(240, 235, 225, 0.6);
  font-size: 15px;
  line-height: 1.7;
}

.dk-s {
  color: rgba(240, 235, 225, 0.45);
}

.dk-l {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dk-t {
  color: rgba(240, 235, 225, 0.55);
  font-size: 13px;
}

/* Tech Pill */
.tp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  background: #FDFBF7;
  border: 1px solid #E3DDD1;
  color: #5C5347;
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s;
}

.tp:hover {
  border-color: #C4BCAD;
  background: #F8F4ED;
  color: #3D362D;
}


/* Form Elements */
.f-input {
  width: 100%;
  padding: 10px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 400;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: #F0EBE1;
  transition: border-color 0.25s;
}

.f-input::placeholder {
  color: rgba(240, 235, 225, 0.3);
}

.f-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}

.f-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(240, 235, 225, 0.5);
  margin-bottom: 6px;
  display: block;
}

.f-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 300;
  color: rgba(240, 235, 225, 0.55);
  transition: color 0.2s;
}

.f-radio:hover {
  color: rgba(240, 235, 225, 0.8);
}

.f-radio input[type="radio"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.2s;
  cursor: pointer;
}

.f-radio input[type="radio"]:checked {
  border-color: #7A9A7E;
  background: #5E8462;
}

textarea.f-input {
  resize: vertical;
  min-height: 70px;
}

/* Reveal Animation */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.rv.v {
  opacity: 1;
  transform: none;
}

.d1 {
  transition-delay: 0.06s;
}

.d2 {
  transition-delay: 0.12s;
}

.d3 {
  transition-delay: 0.18s;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid #E3DDD1;
  border-radius: 2px;
  overflow: hidden;
}

.lang-btn {
  padding: 3px 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #9A9285;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
}

.lang-btn:not(:last-child) {
  border-right: 1px solid #E3DDD1;
}

.lang-btn:hover {
  color: #5C5347;
}

.lang-btn.active {
  background: #4A6E4E;
  color: #F8F4ED;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #F8F4ED;
}

::-webkit-scrollbar-thumb {
  background: #C4BCAD;
  border-radius: 3px;
}

/* Mobile Optimizations */
@media (max-width: 767px) {
  section.relative.overflow-hidden > .absolute > img {
    display: none !important;
  }
  section.relative.overflow-hidden .backdrop-blur-sm {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 24px !important;
    padding-right: 16px !important;
  }
  .cd {
    min-width: 0;
  }
  .stack-row {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}
