/*
 * BIT Brand Theme
 * Bond IT Consulting
 * Copied from BIT-theme-CSS-handoff-preview.css
 * Do not edit this file directly in this project.
 * Source: C:\xampp\ht-local\BondHoldingsPtyLtd\Marketing\Brand-Style\BIT BondIT\BIT-theme-CSS-handoff-preview.css
 */

/* ============================================================
   CSS CUSTOM PROPERTIES (Variables)
   ============================================================ */
:root {
  /* --- Orange brand palette --- */
  --orange-dark:      #C45E00;
  --orange-btn:       #ff9900;
  --orange-mid:       #ffcc80;
  --orange-light:     #ffebcc;

  /* --- Neutral backgrounds --- */
  --bg-page:          #F5F5F5;
  --bg-white:         #FFFFFF;
  --bg-light:         #F0F0F0;
  --bg-subtle:        #F7F7F7;
  --bg-hover:         #FFF5E6;
  --bg-input:         #FFFFFF;

  /* --- Text hierarchy --- */
  --text-primary:     #1A1A1A;
  --text-secondary:   #3D3D3D;
  --text-muted:       #717171;
  --text-heading:     #111111;
  --text-light:       #999999;

  /* --- Borders --- */
  --border-light:     #E0E0E0;
  --border-medium:    #C8C8C8;
  --border-input:     #CCCCCC;
  --border-focus:     #C45E00;

  /* --- Semantic colours --- */
  --danger:           #b83232;
  --danger-light:     #fdf0f0;
  --success:          #2a6e3a;
  --success-light:    #edf7f0;
  --info:             #1a3a80;
  --info-light:       #e8f0ff;

  /* --- Button tokens --- */
  --btn-primary-bg:   #ff9900;
  --btn-primary-hover:#e68a00;

  /* --- Typography --- */
  --font-body:        'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading:     'Segoe UI Semibold', 'Segoe UI', Tahoma, sans-serif;
  --font-size-base:   14px;
  --line-height:      1.55;

  /* --- Shape & shadow --- */
  --radius-sm:        4px;
  --radius-md:        6px;
  --radius-lg:        10px;
  --shadow-sm:        0 1px 3px rgba(0,0,0,.07);
  --shadow-md:        0 2px 8px rgba(0,0,0,.10);
  --shadow-lg:        0 4px 20px rgba(0,0,0,.13);
}

/* ============================================================
   GLOBAL RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--font-size-base); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: var(--line-height);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-heading);
}
h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 0.95rem; }

p { color: var(--text-secondary); line-height: var(--line-height); }

a { color: var(--orange-dark); text-decoration: none; }
a:hover { color: var(--orange-dark); text-decoration: underline; }
a:visited { color: #9E4E00; }

/* Buttons are often <a> tags - prevent browser default blue visited colour */
a.btn:visited            { color: #ffffff; }
a.btn-primary:visited    { background: var(--btn-primary-bg); color: #ffffff; }
a.btn-secondary:visited  { background: var(--text-heading);  color: #ffffff; }
a.btn-danger:visited     { background: var(--danger);        color: #ffffff; }
a.btn-outline:visited    { color: var(--orange-dark); }
a.btn-ghost:visited      { color: var(--text-secondary); }

small { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   LAYOUT
   ============================================================ */
.page-wrap { max-width: 900px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.page-wrap.wide { max-width: 1100px; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: var(--text-heading);
  color: #fff;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-header .brand { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: 0.02em; }
.site-header .brand span { color: var(--orange-mid); }
.site-header nav a { color: rgba(255,255,255,0.8); font-size: 0.875rem; margin-left: 1.25rem; font-weight: 500; }
.site-header nav a:hover { color: #fff; text-decoration: none; }
.site-header .role-pill { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; background: var(--orange-btn); color: #fff; padding: 0.2em 0.65em; border-radius: 20px; font-weight: 600; }

/* ============================================================
   CARDS
   ============================================================ */
.card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 1.75rem; box-shadow: var(--shadow-md); }
.card + .card { margin-top: 1.25rem; }
.card-sm { padding: 1.1rem 1.25rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-heading); margin-bottom: 0.35rem; letter-spacing: 0.01em; }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; padding: 0.6rem 0.85rem; border: 1.5px solid var(--border-input); border-radius: var(--radius-md); font-family: var(--font-body); font-size: 0.95rem; color: var(--text-primary); background: var(--bg-input); transition: border-color 0.15s, box-shadow 0.15s; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(196,94,0,0.12); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1.25rem; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; cursor: pointer; border: none; transition: background 0.15s, transform 0.1s; line-height: 1.4; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary, a.btn-primary, a.btn-primary:link, a.btn-primary:visited, a.btn-primary:hover, a.btn-primary:active { color: #fff; }
.btn-primary, a.btn-primary, a.btn-primary:visited { background: var(--btn-primary-bg); }
a.btn-primary:hover { background: var(--btn-primary-hover); text-decoration: none; }
.btn-secondary { background: var(--text-heading); color: #fff; }
.btn-secondary:hover { background: #333333; color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--orange-dark); border: 1.5px solid var(--orange-dark); }
.btn-outline:hover,
a.btn-outline:visited:hover { background: var(--orange-dark); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1.5px solid var(--border-light); }
.btn-ghost:hover { border-color: var(--orange-dark); color: var(--orange-dark); text-decoration: none; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #952828; color: #fff; text-decoration: none; }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   BADGES
   ============================================================ */
.badge { display: inline-block; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; padding: 0.2em 0.6em; border-radius: 20px; line-height: 1; }
.badge-primary    { background: var(--orange-btn);  color: #fff; }
.badge-owner      { background: #e8eef5;             color: #2a4a70; }
.badge-manager    { background: #eef4ee;             color: #2a6040; }
.badge-contractor { background: #fdf4e8;             color: #7a4a10; }
.badge-admin      { background: var(--text-heading); color: #fff; }
.badge-question   { background: #e8f0ff;             color: #2040a0; }
.badge-answer     { background: #eef6ee;             color: #206030; }
.badge-resolved   { background: #eef6ee;             color: #206030; }
.badge-open       { background: #fff4e0;             color: #7a4a10; }
.badge-pending    { background: #fff4e0;             color: #7a4a10; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert { padding: 0.85rem 1.1rem; border-radius: var(--radius-md); font-size: 0.9rem; margin-bottom: 1.25rem; border-left: 4px solid transparent; }
.alert-success { background: var(--success-light); color: var(--success); border-color: var(--success); }
.alert-error   { background: var(--danger-light);  color: var(--danger);  border-color: var(--danger); }
.alert-info    { background: var(--info-light);    color: var(--info);    border-color: var(--info); }
.alert-warning { background: var(--orange-light);  color: var(--orange-dark); border-color: var(--orange-dark); }

/* ============================================================
   AUTH LAYOUT
   ============================================================ */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; background: var(--text-heading); }
.auth-card { background: var(--bg-white); border-radius: var(--radius-lg); padding: 2.25rem 2rem; width: 100%; max-width: 420px; box-shadow: 0 8px 40px rgba(0,0,0,.35); }
.auth-logo { text-align: center; margin-bottom: 1.75rem; }
.auth-logo .wordmark { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--text-heading); }
.auth-logo .wordmark span { color: var(--orange-dark); }
.auth-logo .sub { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.2rem; }

/* ============================================================
   PAGE LABEL
   ============================================================ */
.page-label { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--text-heading); color: #fff; padding: 0.4rem 1rem; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 1.25rem; }
.page-label span { background: var(--orange-btn); color: #fff; border-radius: 3px; padding: 0 0.4em; font-size: 1.05em; }

/* ============================================================
   TABLES
   ============================================================ */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tbl th { background: var(--text-heading); color: #fff; text-align: left; padding: 0.6rem 0.85rem; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em; }
.tbl td { padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--border-light); vertical-align: top; color: var(--text-primary); }
.tbl tr:nth-child(even) td { background: var(--bg-subtle); }
.tbl-wrap { overflow-x: auto; }

/* ============================================================
   UTILITIES
   ============================================================ */
.divider      { border: none; border-top: 1px solid var(--border-light); margin: 1.5rem 0; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--text-muted); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex   { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { text-align: center; padding: 2rem 1rem 1rem; font-size: 0.78rem; color: var(--text-muted); border-top: 1px solid var(--border-light); background: var(--bg-white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .card      { padding: 1.25rem; }
  .tbl th,
  .tbl td    { padding: 0.5rem 0.6rem; font-size: 0.8rem; }
  .btn       { font-size: 0.85rem; padding: 0.5rem 1rem; }
  .auth-card { padding: 1.75rem 1.25rem; }
}
