/*
Template Name: <?php echo APP_NAME; ?> - Secure Vault & Asset Protection HTML Template
Author: kumadevlab
Description: Shared components — navigation, footer, page-hero, split panels, form fields, and the auth-card system.
Version: 1.0.0
*/

/* ---------- SITE NAV ---------- */
header.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 10, 16, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.4s var(--ease);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", serif;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--gold);
}
.logo b {
  color: var(--gold-bright);
  font-weight: 500;
}
nav.links {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav.links a {
  font-size: 13.5px;
  text-decoration: none;
  color: var(--muted);
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease);
  position: relative;
}
nav.links a:hover,
nav.links a.active {
  color: var(--gold-bright);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.menu-btn svg {
  width: 24px;
  height: 24px;
}

/* off-canvas mobile drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 9, 0.6);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(84vw, 360px);
  background: var(--ink);
  z-index: 200;
  border-left: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  padding: 26px 28px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  box-shadow: -30px 0 60px rgba(0, 0, 0, 0.4);
}
.drawer.open {
  transform: translateX(0);
}
.drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.drawer nav {
  display: flex;
  flex-direction: column;
}
.drawer a {
  font-family: "Fraunces", serif;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.drawer .btn {
  margin-top: 26px;
  justify-content: center;
}

@media (max-width: 760px) {
  nav.links {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .menu-btn {
    display: block;
  }
}

/* ---------- PAGE HERO (interior pages) ---------- */
.page-hero {
  padding: 160px 0 90px;
  text-align: center;
  background:
    radial-gradient(
      1100px 500px at 82% -10%,
      rgba(201, 168, 119, 0.1),
      transparent 60%
    ),
    var(--navy);
}
.page-hero h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.06;
  max-width: 780px;
  margin: 0 auto 22px;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--gold-bright);
}
.page-hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}
.breadcrumb {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.breadcrumb a {
  color: var(--muted-2);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--gold-bright);
}
.breadcrumb.center {
  justify-content: center;
  display: flex;
}

@media (max-width: 760px) {
  .page-hero {
    padding: 120px 0 50px;
  }
}

/* ---------- SECTION SPACING + HEADERS ---------- */
section.pad {
  padding: 100px 0;
}
section.pad.tight {
  padding: 80px 0;
}
.sec-head {
  max-width: 640px;
  margin-bottom: 50px;
}
.sec-head h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  margin: 16px 0 0;
  line-height: 1.14;
}
.sec-head p {
  color: var(--muted);
  font-size: 15.5px;
  margin-top: 16px;
  max-width: 520px;
}

@media (max-width: 760px) {
  section.pad {
    padding: 60px 0;
  }
}

/* ---------- SPLIT PANELS (image + copy, alternating) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.split-panel {
  padding: 100px 60px;
}
.split-panel.dark {
  background: var(--surface);
}
.split-panel .eyebrow {
  margin-bottom: 18px;
}
.split-panel h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  margin: 0 0 18px;
  line-height: 1.18;
}
.split-panel p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 14px;
  max-width: 440px;
}
.split-media {
  min-height: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #1c2740, #0a0e17);
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0.82;
}
.detail-list,
.standards-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}
.detail-list li,
.standards-list li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text);
  align-items: flex-start;
}
.detail-list li svg,
.standards-list li svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split-media {
    min-height: 320px;
    order: -1;
  }
  .split-panel {
    padding: 70px 40px;
  }
}
@media (max-width: 760px) {
  .split-panel {
    padding: 50px 26px;
  }
}

/* ---------- "WHY / VALUE PROP" CARD GRID ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}
.why-card {
  border-top: 1px solid var(--gold-dim);
  padding-top: 22px;
}
.why-icon {
  width: 34px;
  height: 34px;
  color: var(--gold);
  margin-bottom: 16px;
}
.why-icon svg {
  width: 100%;
  height: 100%;
}
.why-card h3 {
  font-size: 17px;
  margin: 0 0 10px;
  font-weight: 500;
}
.why-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}
@media (max-width: 760px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* ---------- FINAL CTA BAND ---------- */
.cta-final {
  padding: 110px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--ink), #0d1219);
  border-top: 1px solid var(--line-soft);
}
.cta-final h2 {
  font-size: clamp(28px, 4vw, 46px);
  margin: 20px 0 20px;
}
.cta-final p {
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 32px;
  font-size: 15px;
}
.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .cta-btns .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink);
  border-top: 1px solid var(--line-soft);
  padding: 80px 0 30px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 60px;
}
.foot-brand .logo {
  margin-bottom: 16px;
}
.foot-brand p {
  color: var(--muted-2);
  font-size: 13.5px;
  max-width: 260px;
}
.foot-col h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 0 0 18px;
  font-weight: 400;
}
.foot-col a {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.25s;
}
.foot-col a:hover {
  color: var(--gold-bright);
}
.foot-social {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}
.foot-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  margin: 0;
  color: var(--muted);
}
.foot-social a:hover {
  border-color: var(--gold-dim);
  color: var(--gold-bright);
}
.foot-social svg {
  width: 15px;
  height: 15px;
}
.foot-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.foot-bottom a {
  color: var(--muted-2);
  text-decoration: none;
}

@media (max-width: 1024px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 20px;
  }
  .foot-brand {
    grid-column: 1/-1;
  }
}

/* ---------- FORM FIELDS (contact + dashboard forms) ---------- */
.field {
  margin-bottom: 20px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 9px;
}
.field label .opt {
  color: var(--muted-2);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--text);
  padding: 13px 14px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  border-radius: var(--radius);
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}
.field select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%238d95a8" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: "Inter", sans-serif;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-dim);
  background: #1b2536;
}
.field.error input,
.field.error select,
.field.error textarea {
  border-color: var(--error);
}
.field-error {
  display: none;
  color: var(--error);
  font-size: 12px;
  margin-top: 7px;
  align-items: center;
  gap: 6px;
}
.field-error svg {
  width: 13px;
  height: 13px;
}
.field.error .field-error {
  display: flex;
}
.field-hint {
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: 7px;
}

.input-wrap {
  position: relative;
}
.pass-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
}
.pass-toggle:hover {
  color: var(--gold-bright);
}
.pass-toggle svg {
  width: 16px;
  height: 16px;
}

/* ---------- AUTH CARD SYSTEM (admin login/register/forgot/reset) ---------- */
header.top {
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.back-link {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.25s var(--ease);
}
.back-link:hover {
  color: var(--gold-bright);
}
.back-link svg {
  width: 13px;
  height: 13px;
}

main.auth-main,
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px 60px;
  position: relative;
  overflow: hidden;
}
main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      900px 500px at 15% 10%,
      rgba(201, 168, 119, 0.08),
      transparent 60%
    ),
    radial-gradient(
      700px 500px at 90% 90%,
      rgba(60, 90, 140, 0.1),
      transparent 60%
    );
}
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--ink);
  border: 1px solid var(--line-soft);
  padding: 44px 40px 38px;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.auth-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.auth-icon svg {
  width: 22px;
  height: 22px;
}
.auth-card h1 {
  font-size: 23px;
  margin: 0 0 10px;
  line-height: 1.25;
}
.auth-card p.sub {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 28px;
  line-height: 1.6;
}
.field-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.field-row-head label {
  margin-bottom: 0;
}
.field-row-head a {
  font-size: 12px;
  color: var(--gold-bright);
  text-decoration: none;
}
.field-row-head a:hover {
  text-decoration: underline;
}
.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted-2);
}
.auth-footer a {
  color: var(--gold-bright);
  text-decoration: none;
}
.auth-footer a:hover {
  text-decoration: underline;
}
.security-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.6;
}
.security-note svg {
  width: 14px;
  height: 14px;
  color: var(--gold-dim);
  flex-shrink: 0;
  margin-top: 2px;
}
.step {
  display: none;
}
.step.active {
  display: block;
}
.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--success);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}
.success-icon svg {
  width: 24px;
  height: 24px;
}
.step-success {
  text-align: center;
}
.resend-row {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted-2);
  margin-top: 18px;
}
.resend-row button {
  background: none;
  border: none;
  color: var(--gold-bright);
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: inherit;
}
.resend-row button[disabled] {
  color: var(--muted-2);
  text-decoration: none;
  cursor: default;
}

.strength-meter {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}
.strength-bar {
  height: 4px;
  flex: 1;
  background: var(--surface-2);
  border-radius: 100px;
  transition: background 0.3s var(--ease);
}
.strength-label {
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 8px;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.03em;
}
.req-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 6px;
}
.req-list li {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted-2);
}
.req-list li svg {
  width: 13px;
  height: 13px;
  color: var(--muted-2);
  flex-shrink: 0;
}
.req-list li.met {
  color: var(--success);
}
.req-list li.met svg {
  color: var(--success);
}

.info-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  padding: 16px 18px;
  margin-bottom: 24px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}
.info-box svg {
  width: 15px;
  height: 15px;
  color: var(--gold-dim);
  flex-shrink: 0;
  margin-top: 2px;
}

footer.bottom {
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--muted-2);
}

@media (max-width: 480px) {
  .auth-card {
    padding: 34px 24px 30px;
  }
  header.top {
    padding: 20px;
  }
}
