/* ==========================================================================
   Northwind Petroleums — Components
   ========================================================================== */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 2px;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all var(--nw-dur-fast) var(--nw-ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--nw-dur-fast) var(--nw-ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--nw-gold-500);
  color: var(--nw-navy-950);
}
.btn-primary:hover { background: var(--nw-gold-400); box-shadow: var(--nw-shadow-gold); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--nw-fog-100);
}
.btn-ghost:hover { border-color: var(--nw-gold-500); color: var(--nw-gold-400); }

.btn-dark {
  background: var(--nw-navy-900);
  color: var(--nw-fog-100);
}
.btn-dark:hover { background: var(--nw-navy-800); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--nw-navy-900);
  color: var(--nw-navy-900);
}
.btn-outline-dark:hover { background: var(--nw-navy-900); color: var(--nw-fog-100); }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 0.7rem 1.3rem; font-size: 0.78rem; }

/* ---- Cards ---- */
.card {
  background: var(--nw-bg-alt);
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-radius-md);
  padding: var(--nw-space-md);
  transition: transform var(--nw-dur-med) var(--nw-ease), box-shadow var(--nw-dur-med) var(--nw-ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--nw-shadow-md); }

.service-card {
  background: var(--nw-bg-alt);
  border-radius: var(--nw-radius-md);
  padding: var(--nw-space-lg) var(--nw-space-md) var(--nw-space-md);
  border: 1px solid var(--nw-border);
  position: relative;
  transition: transform var(--nw-dur-med) var(--nw-ease), box-shadow var(--nw-dur-med) var(--nw-ease), border-color var(--nw-dur-med);
  height: 100%;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--nw-shadow-md);
  border-color: var(--nw-gold-500);
}
.service-card .icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--nw-navy-900);
  border-radius: var(--nw-radius-sm);
  color: var(--nw-gold-400);
  margin-bottom: var(--nw-space-md);
}
.service-card .icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: var(--nw-fs-h4); font-family: var(--nw-font-sans); font-weight: 600; margin-bottom: 0.6rem; }
.service-card .num {
  position: absolute;
  top: var(--nw-space-md);
  right: var(--nw-space-md);
  font-family: var(--nw-font-display);
  font-size: 2.6rem;
  color: var(--nw-steel-200);
  line-height: 1;
}

.commodity-card {
  background: var(--nw-bg-alt);
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-radius-md);
  overflow: hidden;
  transition: box-shadow var(--nw-dur-med), transform var(--nw-dur-med);
}
.commodity-card:hover { transform: translateY(-3px); box-shadow: var(--nw-shadow-sm); }
.commodity-card .cc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--nw-space-sm) var(--nw-space-md);
  background: var(--nw-navy-900);
  color: var(--nw-fog-100);
}
.commodity-card .cc-head h4 { color: var(--nw-fog-100); margin: 0; font-size: 1rem; }
.commodity-card .cc-head .tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(200,155,60,0.18);
  color: var(--nw-gold-400);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}
.commodity-card .cc-body { padding: var(--nw-space-md); }
.commodity-card ul { display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.88rem; color: var(--nw-text-muted); }
.commodity-card ul li { display: flex; justify-content: space-between; gap: 1rem; }
.commodity-card ul li strong { color: var(--nw-text); font-weight: 600; }

/* ---- Process / Steps ---- */
.process-list { counter-reset: step; }
.process-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: var(--nw-space-md);
  padding-block: var(--nw-space-md);
  border-bottom: 1px solid var(--nw-border-dark);
  position: relative;
}
.process-item:last-child { border-bottom: none; }
.process-item .step-num {
  font-family: var(--nw-font-display);
  font-size: 2.2rem;
  color: var(--nw-gold-500);
  line-height: 1;
}
.process-item h4 { color: var(--nw-fog-100); margin-bottom: 0.4rem; }

/* ---- Stat strip ---- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--nw-space-md);
  text-align: center;
}
.stat-strip .stat .num {
  font-family: var(--nw-font-display);
  font-size: clamp(2rem, 1.6rem + 1.2vw, 3rem);
  color: var(--nw-gold-500);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}
.stat-strip .stat .label {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--nw-text-muted);
}
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, 1fr); gap: var(--nw-space-lg) var(--nw-space-md); } }

/* ---- Logos / Network strip ---- */
.network-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nw-space-lg);
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}
.network-strip .port-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--nw-text-on-dark-muted);
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--nw-border-dark);
  border-radius: 30px;
}
.network-strip .port-chip svg { width: 15px; height: 15px; color: var(--nw-gold-500); }

/* ---- Timeline (About page) ---- */
.timeline { position: relative; padding-left: 2.4rem; }
.timeline::before {
  content: "";
  position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--nw-border);
}
.timeline-item { position: relative; padding-bottom: var(--nw-space-lg); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.4rem;
  top: 4px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--nw-bg-alt);
  border: 2px solid var(--nw-gold-500);
}
.timeline-item .year {
  font-family: var(--nw-font-display);
  color: var(--nw-gold-500);
  font-size: 1.3rem;
  display: block;
  margin-bottom: 0.3rem;
}

/* ---- Value / principle cards ---- */
.value-card { display: flex; gap: var(--nw-space-sm); align-items: flex-start; }
.value-card .icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(200,155,60,0.12);
  color: var(--nw-gold-500);
  display: flex; align-items: center; justify-content: center;
}
.value-card .icon svg { width: 22px; height: 22px; }

/* ---- Compliance / document badges ---- */
.doc-badge {
  display: flex;
  align-items: center;
  gap: var(--nw-space-sm);
  background: var(--nw-bg-alt);
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-radius-md);
  padding: var(--nw-space-sm) var(--nw-space-md);
}
.doc-badge .icon { color: var(--nw-gold-500); flex-shrink: 0; }
.doc-badge .icon svg { width: 28px; height: 28px; }
.doc-badge h4 { margin-bottom: 0.15rem; font-size: 0.98rem; }
.doc-badge p { font-size: 0.85rem; margin: 0; }

/* ---- Alert / notice box ---- */
.notice-box {
  border-left: 3px solid var(--nw-gold-500);
  background: rgba(200,155,60,0.06);
  padding: var(--nw-space-sm) var(--nw-space-md);
  border-radius: 0 var(--nw-radius-sm) var(--nw-radius-sm) 0;
  font-size: 0.92rem;
}
.notice-box strong { color: var(--nw-navy-900); }
.notice-box.on-dark {
  background: rgba(200,155,60,0.08);
  border-left-color: var(--nw-gold-500);
}
.notice-box.on-dark strong { color: var(--nw-fog-100); }

/* ---- Media frame (images with gold border accent) ---- */
.media-frame {
  position: relative;
  border-radius: var(--nw-radius-md);
  overflow: hidden;
  box-shadow: var(--nw-shadow-md);
}
.media-frame img, .media-frame video { width: 100%; height: 100%; object-fit: cover; }
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(200,155,60,0.4);
  border-radius: var(--nw-radius-md);
  pointer-events: none;
  z-index: 2;
}
.media-frame .frame-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--nw-space-sm) var(--nw-space-md);
  background: linear-gradient(0deg, rgba(6,13,22,0.85), transparent);
  color: var(--nw-fog-100);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

/* ---- Forms ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--nw-space-sm) var(--nw-space-md); }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nw-text-muted);
  font-weight: 600;
}
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-radius-sm);
  padding: 0.85rem 1rem;
  background: var(--nw-bg-alt);
  font-size: 0.95rem;
  transition: border-color var(--nw-dur-fast);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--nw-gold-500);
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--nw-text-muted); }
.form-status { font-size: 0.9rem; padding: 0.8rem 1rem; border-radius: var(--nw-radius-sm); display: none; }
.form-status.show { display: block; }
.form-status.success { background: rgba(63,143,106,0.12); color: var(--nw-success); }
.form-status.error { background: rgba(180,69,58,0.12); color: var(--nw-danger); }

@media (max-width: 680px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---- FAQ Accordion ---- */
.faq-item {
  border-bottom: 1px solid var(--nw-border);
}
.faq-item:first-child { border-top: 1px solid var(--nw-border); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--nw-space-sm);
  padding: var(--nw-space-md) 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--nw-font-sans);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--nw-navy-900);
}
.faq-q .plus {
  flex-shrink: 0;
  width: 24px; height: 24px;
  position: relative;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--nw-gold-500);
  transition: transform var(--nw-dur-fast) var(--nw-ease);
}
.faq-q .plus::before { left: 0; top: 50%; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-q .plus::after { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); }
.faq-item.open .faq-q .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--nw-dur-med) var(--nw-ease);
}
.faq-a-inner { padding-bottom: var(--nw-space-md); max-width: 680px; }

/* ---- Breadcrumb/legal content typography ---- */
.legal-content h2 { margin-top: var(--nw-space-lg); font-size: 1.5rem; }
.legal-content h3 { font-size: 1.15rem; margin-top: var(--nw-space-md); }
.legal-content p, .legal-content li { color: var(--nw-text-muted); }
.legal-content ul { list-style: disc; padding-left: 1.4rem; margin-bottom: var(--nw-space-sm); }
.legal-content ul li { margin-bottom: 0.4rem; }

/* ---- Reveal animation ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--nw-ease), transform 0.8s var(--nw-ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="fade"] { transform: none; }

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--nw-gold-500);
  color: var(--nw-navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--nw-dur-med) var(--nw-ease);
  z-index: 300;
  box-shadow: var(--nw-shadow-md);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---- Misc utility ---- */
.text-center { text-align: center; }
.text-gold { color: var(--nw-gold-500); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.cta-banner {
  background: linear-gradient(120deg, var(--nw-navy-900), var(--nw-navy-700));
  border-radius: var(--nw-radius-lg);
  padding: var(--nw-space-xl) var(--nw-space-lg);
  text-align: center;
  color: var(--nw-fog-100);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(200,155,60,0.18), transparent 50%);
}
.cta-banner .container, .cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--nw-fog-100); }
.cta-banner p { max-width: 560px; margin-inline: auto; margin-bottom: var(--nw-space-md); }
.cta-actions { display: flex; gap: var(--nw-space-sm); justify-content: center; flex-wrap: wrap; }
