/* Sonoran Beauty Academy — desert aesthetic */
:root {
  --sand-50: #faf6f1;
  --sand-100: #f3ebe1;
  --sand-200: #e8d5c0;
  --sand-300: #d4b896;
  --terracotta: #c4653a;
  --terracotta-dark: #a34e2a;
  --terracotta-soft: #e8a07a;
  --teal: #2a6f6f;
  --teal-dark: #1e5252;
  --teal-soft: #4a9a9a;
  --clay: #8b5e3c;
  --ink: #2c241c;
  --ink-muted: #5c534a;
  --white: #ffffff;
  --shadow: 0 8px 30px rgba(44, 36, 28, 0.08);
  --radius: 12px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand-50);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

img { max-width: 100%; height: auto; }

/* ── Marketing nav ── */
.site-nav {
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 0;
}

.site-nav .navbar-brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta), var(--teal));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.site-nav .nav-link {
  color: var(--ink-muted) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--terracotta) !important;
  background: var(--sand-100);
}

.btn-portal {
  background: var(--teal) !important;
  color: white !important;
  border-radius: 999px !important;
  padding: 0.4rem 1.1rem !important;
  font-weight: 500 !important;
}
.btn-portal:hover { background: var(--teal-dark) !important; color: white !important; }

/* ── Buttons ── */
.btn-terracotta {
  background: var(--terracotta);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font-weight: 500;
  transition: background 0.15s, transform 0.1s;
}
.btn-terracotta:hover { background: var(--terracotta-dark); color: white; transform: translateY(-1px); }

.btn-teal {
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font-weight: 500;
}
.btn-teal:hover { background: var(--teal-dark); color: white; }

.btn-outline-sand {
  border: 2px solid var(--sand-300);
  color: var(--ink);
  background: transparent;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-weight: 500;
}
.btn-outline-sand:hover { border-color: var(--terracotta); color: var(--terracotta); background: white; }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 5rem 0 4.5rem;
  background:
    linear-gradient(160deg, rgba(250,246,241,0.95) 0%, rgba(232,213,192,0.55) 45%, rgba(42,111,111,0.12) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(196,101,58,0.18), transparent 50%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23faf6f1' d='M0,40 C360,80 720,0 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: 100% 100%;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 32rem;
}

.hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, var(--sand-200), var(--terracotta-soft) 40%, var(--teal-soft));
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.hero-visual-card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 1.25rem;
  width: 100%;
}

/* ── Sections ── */
.section { padding: 4.5rem 0; }
.section-sand { background: var(--sand-100); }
.section-teal {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: white;
}
.section-teal h2, .section-teal h3 { color: white; }

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
}
.section-sub {
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

/* ── Cards ── */
.card-sonoran {
  background: white;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card-sonoran:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(44, 36, 28, 0.12);
}

.card-sonoran .card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sand-100), var(--sand-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--terracotta);
}

.card-sonoran .card-body { padding: 1.75rem; }

.badge-hours {
  background: var(--sand-100);
  color: var(--clay);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* ── Feature strip ── */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature-item { text-align: center; padding: 1rem; }
.feature-item .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--terracotta);
  display: block;
  line-height: 1;
}
.feature-item .label { font-size: 0.9rem; color: var(--ink-muted); margin-top: 0.35rem; }

/* ── Forms ── */
.form-sonoran .form-control,
.form-sonoran .form-select {
  border: 1.5px solid var(--sand-200);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  background: white;
  color: var(--ink);
}
.form-sonoran .form-control:focus,
.form-sonoran .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 111, 111, 0.15);
}
.form-sonoran .form-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}

.form-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--sand-200);
  box-shadow: var(--shadow);
  padding: 2rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}
.site-footer h5 {
  color: white;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--terracotta-soft); }
.site-footer .footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: white;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

/* ── Legal / content pages ── */
.content-page { padding: 3rem 0 4rem; max-width: 760px; }
.content-page h1 { margin-bottom: 1.5rem; }
.content-page h2 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: 0.75rem; }

/* ── Auth ── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(160deg, var(--sand-50), var(--sand-200) 60%, rgba(42,111,111,0.2));
  padding: 2rem;
}
.auth-card {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--sand-200);
}

/* ── Portal ── */
.portal-body { background: #f0ebe4; min-height: 100vh; }

.portal-sidebar {
  width: 260px;
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  padding: 1.5rem 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.portal-sidebar .brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: white;
  padding: 0 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.portal-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  font-size: 0.92rem;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.portal-nav a:hover,
.portal-nav a.active {
  color: white;
  background: rgba(255,255,255,0.06);
  border-left-color: var(--terracotta);
}

.portal-main {
  margin-left: 260px;
  padding: 1.75rem 2rem 3rem;
  min-height: 100vh;
}

.portal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--sand-200);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--terracotta);
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 0.35rem;
}

.portal-panel {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--sand-200);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.table-sonoran {
  width: 100%;
  font-size: 0.92rem;
}
.table-sonoran thead th {
  border-bottom: 2px solid var(--sand-200);
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.75rem;
}
.table-sonoran td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--sand-100);
  vertical-align: middle;
}

.badge-status {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}
.badge-new, .badge-open { background: #fff3e0; color: #c4653a; }
.badge-contacted, .badge-in_progress { background: #e0f2f1; color: #1e5252; }
.badge-enrolled, .badge-resolved { background: #e8f5e9; color: #2e7d32; }
.badge-closed, .badge-graduated { background: #eceff1; color: #546e7a; }
.badge-withdrawn, .badge-high { background: #fce4ec; color: #c62828; }
.badge-medium { background: #fff8e1; color: #f57f17; }
.badge-low { background: #e8eaf6; color: #3949ab; }
.badge-leave { background: #f3e5f5; color: #7b1fa2; }

.alert { border-radius: 10px; border: none; }

/* Mobile portal */
@media (max-width: 991px) {
  .portal-sidebar {
    width: 100%;
    min-height: auto;
    position: relative;
    padding: 1rem 0;
  }
  .portal-main { margin-left: 0; padding: 1.25rem; }
  .portal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0 0.75rem;
  }
  .portal-nav a {
    border-left: none;
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
  }
}

/* Decorative cactus / desert motif */
.desert-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--sand-300), var(--teal));
  border: none;
  margin: 0;
  opacity: 0.7;
}

.salon-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.salon-tile {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  color: white;
  font-weight: 500;
  background-size: cover;
}
.salon-tile:nth-child(1) { background: linear-gradient(135deg, #c4653a, #e8a07a); }
.salon-tile:nth-child(2) { background: linear-gradient(135deg, #2a6f6f, #4a9a9a); }
.salon-tile:nth-child(3) { background: linear-gradient(135deg, #8b5e3c, #d4b896); }
.salon-tile:nth-child(4) { background: linear-gradient(135deg, #a34e2a, #2a6f6f); }
