/* -------------------------------------------
   BASIC RESET & BODY
------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #111827;
    background-color: #f9fafb;
}

/* -------------------------------------------
   GLOBAL CURSOR CONTROL
------------------------------------------- */

html, body {
    cursor: default;
}

p, span, div, li, h1, h2, h3, h4, h5, h6 {
    cursor: default;
}

input,
textarea,
[contenteditable="true"] {
    cursor: text;
}

.page-main {
    user-select: text;
}

.hero-unit,
.site-header,
.site-footer {
    user-select: none;
}

/* ----------------------------
   ADMIN ASIDE MODAL (hidden by default)
---------------------------- */

.aside-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;                 /* <-- key: hidden by default */
}

.aside-modal.is-open{
  display: block;
}

.aside-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.aside-panel{
  position: absolute;
  top: 14vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 24px));  /* tooltip-like max width */
  max-height: 72vh;
  overflow: auto;                         /* scrollable modal */
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.aside-close{
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.aside-kicker{
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-family: 'Barlow Condensed';
  font-weight: 700;
  font-size: .85rem;
  opacity: .7;
}

.aside-body h3{
  margin-top: 0;
}

/* -------------------------------------------
   TEXT SELECTION STYLE
------------------------------------------- */

::selection {
    background: rgba(187, 187, 187, 0.08); /* very soft gray */
    color: inherit;                 /* keep original text color */
}

::-moz-selection {
    background: rgba(187, 187, 187, 0.08);
    color: inherit;
}



/* -------------------------------------------
   CONTAINER & GRID SYSTEM
------------------------------------------- */

.container {
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}



/* Row */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

/* Gutter utility (vertical spacing between rows) */
.g-3 > [class*="col-"] {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Columns – mobile first (stacked) */

[class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    flex: 0 0 100%;
    max-width: 100%;
}

/* 12-column system at wider breakpoints */

@media (min-width: 768px) {
    .col-md-1  { flex: 0 0 8.3333%;  max-width: 8.3333%; }
    .col-md-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
    .col-md-3  { flex: 0 0 25%;      max-width: 25%; }
    .col-md-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
    .col-md-5  { flex: 0 0 41.6667%; max-width: 41.6667%; }
    .col-md-6  { flex: 0 0 50%;      max-width: 50%; }
    .col-md-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
    .col-md-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
    .col-md-9  { flex: 0 0 75%;      max-width: 75%; }
    .col-md-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
    .col-md-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
    .col-md-12 { flex: 0 0 100%;     max-width: 100%; }
}

@media (min-width: 1024px) {
    .col-lg-1  { flex: 0 0 8.3333%;  max-width: 8.3333%; }
    .col-lg-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
    .col-lg-3  { flex: 0 0 25%;      max-width: 25%; }
    .col-lg-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
    .col-lg-5  { flex: 0 0 41.6667%; max-width: 41.6667%; }
    .col-lg-6  { flex: 0 0 50%;      max-width: 50%; }
    .col-lg-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
    .col-lg-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
    .col-lg-9  { flex: 0 0 75%;      max-width: 75%; }
    .col-lg-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
    .col-lg-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
    .col-lg-12 { flex: 0 0 100%;     max-width: 100%; }
}



/* -------------------------------------------
   SPACING UTILITIES (expand later)
------------------------------------------- */

.section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.section-muted {
    background-color: #f3f4f6;
}


.btn-primary {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.9rem;
    font-weight: 600;
    background: #000;
    color: #fff;
    
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background 0.1s ease-out;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-1px);
    
}

.btn-primary:active {
    transform: translateY(0);
    
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: #111827; /* text color */
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset; /* background color */
    box-shadow: 0 0 0px 1000px #f6f6f6 inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* -------------------------------------------
   HEADER / NAV
------------------------------------------- */

.site-header {
    background: #181818;
    color: #ffffff;
    position: relative;
    top: 0;
    width: 100%;
    z-index: 9;
}

/* main bar under topbar */
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    padding-bottom: 6px;
}


.logo a {
    color: #f1f1f1;
    text-decoration: none;
    font-weight: 300;
    letter-spacing: 0px;
    font-family: 'Barlow Condensed';
    text-transform: lowercase;
    font-size: 16px;
}

.logo span {
    color:#f1f1f1;
    font-weight: 700;
    font-size: 31px;
    text-transform:uppercase;
}

.primary-nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 1rem;
    font-size: 1.1rem;
    font-family:'Barlow Condensed';
    text-transform:uppercase;
}

.primary-nav a:hover {
    color: #ffffff;
}

/* -------------------------------------------
   MAIN & FOOTER
------------------------------------------- */

.page-main {
    padding-bottom: 3rem;
}

.site-footer {
    padding: 1rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    background: #f3f4f6;
}

/* -------------------------------------------
   TOPBAR
------------------------------------------- */

.topbar {
    background: #000; /* deep, almost-black */
    color: #e5e5e5;
    font-size: 0.78rem;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.topbar-search {
    flex: 1 1 auto;
    max-width: 260px;
}

.topbar-search-input {
    width: 100%;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    border: 1px solid #1f2933;
    background: #ffffff;
    color: #000;
    font-size: 0.8rem;
}

.topbar-search-input::placeholder {
    color: #b7b7b7;
}

.topbar-actions {
    margin-left: 1rem;
    flex: 0 0 auto;
}

.topbar-link {
    color: #e5e5e5;
    text-decoration: none;
    font-family: 'Barlow Condensed', system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.topbar-link:hover {
    text-decoration: underline;
}

/* -------------------------------------------
   NAV TOGGLE (MOBILE)
------------------------------------------- */

.nav-toggle {
    display: none; /* hidden on desktop by default */
    background: none;
    border: none;
    padding: 0.25rem;
    margin-left: 0.75rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #f9fafb;
    margin: 4px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Primary nav: desktop baseline */
.primary-nav {
    display: flex;
    align-items: center;
}

/* Responsive behavior */
@media (max-width: 767px) {
    .site-header-inner {
        align-items: center;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #020617f5;
        padding: 0.75rem 1rem 1rem;
        display: none;
        flex-direction: column;
        align-items: flex-start;
    }

    .primary-nav a {
        margin: 0.4rem 0;
        font-size: 18px;
        padding: 15px 0px;
    }

    .nav-toggle {
        display: inline-block;
    }

    /* When nav is open (we toggle body.nav-open in JS) */
    body.nav-open .primary-nav {
        display: flex;
    }

    body.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    body.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    body.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}



/* -------------------------------------------
   HERO
------------------------------------------- */

.hero-unit {
    position: relative;
    width: 100%;
    min-height: 68svh;
    background-image: url('/assets/img/scroll_table.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: relative;
    min-height: 68svh;
    background: rgb(0 0 0 / 43%);
    display: flex;
    align-items: center;
    
    
}

.hero-content {
    color: #fff;
    text-align: left;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin: 0 0 1rem;
    font-weight: 600;
}

.hero-content p {
    font-size: 1.05rem;
    max-width: 650px;
    line-height: 1.7;
    color: #e5e5e5;
}

/* -------------------------------------------
   TYPOGRAPHY & ELEMENTS
------------------------------------------- */

h1, h2, h3 {
    color: #111827;
    margin-top: 0;
    font-family:'Barlow Condensed';
    font-weight: 700 !important;
    text-transform: uppercase;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #000;
    font-weight:300;
}

.accent {
    color: #2563eb;
}

.why-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 1rem 0 1.5rem;
}

.why-list li {
    margin-bottom: 0.5rem;
}

/* Tiles */
.tile {
    background: #ffffff;
    border-radius: 0.5rem;
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(15,23,42,0.08);
}

.tile h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.tile p {
    margin: 0;
}

.app-nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  width:100%;
}

.app-nav-user{
  display:flex;
  align-items:center;
  gap:10px;
}

.app-nav-user .hello {
    color: #ffffff;
    font-family: 'Barlow Condensed';
    text-transform: uppercase;
    letter-spacing: 0px;
}

a.nav-ghost {
    color: #fff;
    text-decoration: none;
    font-size: 71%;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    padding: 10px;
    height: 20px;
    border-radius: 999px;
    border: none;
    color: #ffffff;
    background: #000000;
    text-decoration: none;
    transition: background 0.12s ease, transform 0.08s ease, border-color 0.12s ease;
}

.nav-icon i {
    font-size: 11px;
}

.nav-icon:hover {
    background: #fff;
    border-color: #fff;
    color:#000;
    transform: translateY(-1px);
}

.nav-icon:active {
    transform: translateY(0);
}
@media (max-width:768px){
    .app-nav-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    width: 100%;
}
}
