/* ==========================================================
   ORFID PLATFORM — PUBLIC INTERFACE STYLESHEET
   ========================================================== */

/* ===========================
   RESET & BASE
=========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f4f7fb;
  color: #1f2933;
  line-height: 1.6;
}

/* ===========================
   GLOBAL CONTAINERS
=========================== */
header,
main,
footer {
  max-width: 960px;
  margin: 0 auto;
}

/* ===========================
   HEADER — NAV OVERLAY
=========================== */
.orfid-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: linear-gradient(
    rgba(20, 20, 30, 0.55),
    rgba(20, 20, 30, 0.35)
  );
}

.orfid-header-inner {
  width: 92%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.orfid-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.orfid-logo {
  height: 34px;
  display: block;
}

.orfid-nav {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.orfid-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.9;
}

.orfid-nav a:hover,
.orfid-nav a.active {
  opacity: 1;
  text-decoration: underline;
}

/* ===========================
   HERO — BACKGROUND IMAGE
=========================== */
.hero {
  width: 100%;
  height: 90vh;
  min-height: 640px;

  background-image: url('/img/hero/orfidhero.png');
  background-size: cover;            /* FIXED */
  background-position: center top;
  background-repeat: no-repeat;

  position: relative;
}

/* Soft readability overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(20, 20, 30, 0.45),
    rgba(20, 20, 30, 0.15)
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
}
/* ===========================
   INTRO SPLIT SECTION
=========================== */

.intro-split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
  align-items: start;
}

.subscribe-form {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0 0.75rem;
}

.subscribe-form input {
  flex: 1;
}

.subscribe-note {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.45;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 900px) {
  .intro-split {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   HERO TEXT OVERLAY
=========================== */
.hero-content {
  position: absolute;
  top: 10%;              /* was 50% */
  left: 3rem;
  transform: none;       /* REMOVE vertical centring */
  max-width: 520px;
  color: #ffffff;
}

.hero-content h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.hero-subtext {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
  font-size: 1rem;
  padding: 0.7rem 1.6rem;
}
/* ===========================
   FEATURE STRIP (HORIZONTAL CARDS)
=========================== */

.feature-strip {
  position: relative;
  margin-top: -30rem;/* pulls cards up over hero */
  z-index: 10;
  margin-bottom: 6rem;
}

.feature-strip-inner {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  height: 100%;
}
/* === Wider layout for Pro Access role sections === */
.feature-strip-inner.wide {
  max-width: 1400px;      /* adjust to taste */
}
/* Fix off-centre feel for Pro Access role cards */
.pro-access .feature-strip-inner.wide {
  justify-items: stretch;   /* cards fill their grid columns */
}

.pro-access .feature-strip-inner.wide > .card.feature-card {
  width: 100%;              /* no intrinsic shrink */
  text-align: left;         /* kill optical centring */
}

/* ===========================
   PRIMARY ACTION
=========================== */
.orfid-btn-primary,
.btn-primary,
button[type="submit"],
input[type="submit"] {
  background: #c83b8c;
  color: #ffffff;
  padding: 0.55rem 1.2rem;
  border-radius: 4px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  white-space: nowrap;
}

.orfid-btn-primary:hover,
.btn-primary:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: #b1327d;
}

/* ===========================
   SECONDARY ACTION
=========================== */
.btn-secondary {
  background: #ffffff;
  color: #334e68;
  border: 1px solid #cbd2e1;
  border-radius: 4px;
  padding: 0.55rem 1.2rem;
  font-weight: 500;
  min-height: 44px;
  cursor: pointer;
}

/* ===========================
   PAGE WRAPPER
=========================== */
.page {
  padding: 1.75rem 0 2.5rem;
  max-width: 960px;
  margin: 0 auto;
}
/* ===========================
   PAGE — MAPPED ACTIVITY OVERRIDE
=========================== */
.page.mapped-activity {
  max-width: 1400px;
  margin: 0 auto;
}

/* ===========================
   TYPOGRAPHY
=========================== */
h1 {
  font-size: 2rem;
  margin: 0 0 1rem;
  color: #102a43;
}

h2 {
  font-size: 1.3rem;
  margin: 1rem 0 0.6rem;
  color: #102a43;
}

p {
  margin-bottom: 1rem;
}

p.muted {
  color: #62748a;
  font-size: 0.9rem;
}

/* ===========================
   CARDS
=========================== */
.card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #dde3ed;
  padding: 1.4rem 1.6rem;
  margin-bottom: 2rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

/* ===========================
   FORMS
=========================== */
form label {
  display: block;
  font-size: 0.88rem;
  color: #243b53;
  margin-top: 1.1rem;
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.7rem;
  border-radius: 6px;
  border: 1px solid #cbd2e1;
  font-size: 0.95rem;
}

textarea {
  min-height: 130px;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  border-top: 1px solid #dde3ed;
  padding: 2rem 1rem;
  background: #ffffff;
  text-align: center;
  color: #6b7280;
  font-size: 0.85rem;
  position: relative;
  z-index: 20;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: #374151;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}

.footer-links a:hover {
  background: #e5e7eb;
}
.footer-social img {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  display: block;
}
/* ===========================
   MAPPED ACTIVITY — DASHBOARD LAYOUT
=========================== */

/* FILTER BAR */
.filters-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

/* METRICS STRIP */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.metric-card {
  background: #ffffff;
  border: 1px solid #dde3ed;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* WORKSPACE GRID */
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
}

.workspace-main,
.workspace-side {
  background: #ffffff;
  border: 1px solid #dde3ed;
  border-radius: 10px;
  padding: 1.5rem;
}

/* DATA TABLE */
.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #6b7280;
}

/* NOTIFICATIONS */
.notification-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notification-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

/* ===========================
   MAP SUPPORT
=========================== */
#map {
  width: 100%;
  height: 420px;
  border-radius: 10px;
  border: 1px solid #dde3ed;
}

.map-layout {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 1.5rem;
}

/* ===========================
   RESPONSIVE — TABLET
=========================== */
@media (max-width: 1023px) {
  .orfid-logo { height: 30px; }
  .orfid-nav { gap: 1rem; }
}
/* ===========================
   RESPONSIVE — FEATURE STRIP
=========================== */
@media (max-width: 900px) {

  .feature-strip {
    margin-top: -3rem;
  }

  .feature-strip-inner {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   RESPONSIVE — MOBILE
=========================== */
@media (max-width: 640px) {

  .hero {
    height: 60vh;
    min-height: 420px;
  }

  .hero-content {
    left: 1.5rem;
    right: 1.5rem;
    max-width: none;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .orfid-header-inner { padding: 0.5rem 0; }
  .orfid-logo { height: 28px; }

  .orfid-nav {
    gap: 0.75rem;
    overflow-x: auto;
    white-space: nowrap;
  }

  .orfid-nav a { font-size: 0.85rem; }

  .orfid-btn-primary {
    padding: 0.45rem 0.8rem;
    font-size: 0.85rem;
    min-height: 38px;
  }

  .btn-primary,
  .btn-secondary,
  button,
  input[type="submit"] {
    width: 100%;
  }

  .map-layout { grid-template-columns: 1fr; }
  #map { height: 320px; }
}