/* ═══════════════════════════════════════════════
   base.css
   Shared across all layouts: landing, auth,
   dashboard, staff, admin.
   Nothing page-specific lives here.
   ═══════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────────── */
*,*::before,*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── CSS Variables ───────────────────────────── */
:root {
  --g:      #0F6E56;
  --gd:     #085041;
  --gm:     #1D9E75;
  --gl:     #E1F5EE;
  --gll:    #F2FAF7;
  --nav:    #1a3c34;
  --dark:   #111;
  --white:  #fff;
  --bg2:    #f6f6f4;
  --bg3:    #eef7f3;
  --text:   #1a1a18;
  --muted:  #5f5e5a;
  --border: rgba(0,0,0,.09);
  --sans:   'DM Sans', sans-serif;
  --serif:  'DM Serif Display', serif;
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
}

/* ── Base elements ───────────────────────────── */
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font-family: var(--sans);
  cursor: pointer;
  border: none;
  background: none;
}
img, svg {
  display: block;
  max-width: 100%;
}

/* ── Layout utilities ────────────────────────── */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 36px;
}
@media(max-width:700px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ── Typography utilities ────────────────────── */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--g);
  margin-bottom: 8px;
}
.section-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 540px;
}
.text-center  { text-align: center; }
.text-muted   { color: var(--muted); }

/* ── Shared button base ──────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.btn:hover   { opacity: .88; }
.btn:active  { transform: scale(.98); }

.btn-primary { background: var(--g);   color: #fff; }
.btn-dark    { background: var(--gd);  color: #fff; }
.btn-outline { background: transparent; color: var(--text);  border: 1px solid rgba(0,0,0,.18); }
.btn-ghost   { background: transparent; color: var(--gd);   border: 1px solid var(--g); }

/* ── Logo shared class ───────────────────────── */
.logo-sl { color: #5DCAA5; }

/* ── Shared form primitives ──────────────────── */
/* Used by auth.css, and later dashboard/staff forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.input-wrap {
  position: relative;
}
.input-wrap > i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: #c0beba;
  pointer-events: none;
}
.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.input-wrap input { height: 44px; }
.input-wrap input.with-icon { padding-left: 40px; }
.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  border-color: var(--g);
  box-shadow: 0 0 0 3px rgba(15,110,86,.1);
}
.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
  color: #c0beba;
}
.input-wrap.error input,
.input-wrap.error select,
.input-wrap.error textarea {
  border-color: #C0392B;
}
.input-wrap.error input:focus {
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}

/* ── Shared alert ────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.5;
}
.alert-error {
  background: #fff4f4;
  color: #9b1c1c;
  border: 1px solid rgba(155,28,28,.16);
}
.alert-success {
  background: var(--gl);
  color: var(--gd);
  border: 1px solid rgba(15,110,86,.2);
}

/* ── Shared nav elements ─────────────────────── */
/* These are used by both landing and auth layouts */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
}
.main-nav {
  background: var(--nav);
  width: 100%;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  min-height: 56px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  color: #fff;
}
.nav-logo i {
  font-size: 24px;
  color: #5DCAA5;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-nav-login {
  background: transparent;
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.2);
  font-size: 13px;
  padding: 7px 16px;
  border-radius: var(--r-md);
}
.btn-nav-signup {
  background: #fff;
  color: var(--gd);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--r-md);
}
.hamburger {
  display: none;
  background: none;
  color: #fff;
  font-size: 22px;
  padding: 4px;
}

@media(max-width:700px) {
  .nav-inner {
    padding-left: 20px;
    padding-right: 20px;
    height: 56px;
  }
  .hamburger { display: block; }
  .btn-nav-login { display: none; }
}
