/* ---------- Design tokens (Task 2 design system) ---------- */
:root {
  --primary-blue: #185fa5;
  --primary-blue-hover: #124a82;
  --trust-green: #2f9e6e;
  --navy: #202a40;
  --tint-navy: #e0e5ee;
  --tint-green: #eaf7f0;
  --white: #ffffff;
  --gray: #6b7280;

  --font-heading: "Gabarito", sans-serif;
  --font-body: "Hanken Grotesk", sans-serif;
  --font-auth-heading: "Fraunces", serif;

  /* Setuh's own identity (auth/message pages) — separate from a tenant's brand color.
     Black + white is the minimal base; deep blue and gold are the two brand accents;
     sage is tertiary only — small labels and quiet fills, never a button's main color. */
  --setuh-ink: #111111;
  --setuh-deep-blue: #1b2a4a;
  --setuh-deep-blue-hover: #121c33;
  --setuh-gold: #b98d2e;
  --setuh-sage: #a9be6e;
  --setuh-sage-text: #74893a;
  --setuh-sage-tint: rgba(169, 190, 110, 0.14);
  --setuh-gold-text: #8a6a1f;
  --setuh-gold-tint: rgba(185, 141, 46, 0.14);

  --transition: 0.2s cubic-bezier(0.27, 0, 0.51, 1);
  --max-width: 1080px;
}

/* ---------- Reset & base ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body), "Hanken Grotesk", sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-family: var(--font-heading), "Gabarito", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 36px;
  font-weight: 900;
}
h2 {
  font-size: 26px;
  margin-bottom: 1.5rem;
}
h3 {
  font-size: 18px;
  margin-bottom: 0.75rem;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Layout helpers ---------- */
.section {
  padding: 2.5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-white {
  background: var(--white);
}
.section-tint {
  background: var(--tint-navy);
}
/* full-bleed tint sections: color spans edge to edge, content stays centered */
.section-tint {
  max-width: none;
}
.section-tint > .section {
  max-width: var(--max-width);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border-radius: 8px;
  padding: 12px 22px;
  font-weight: 700;
  font-family: var(--font-body), "Hanken Grotesk", sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 15px;
  transition: transform var(--transition), background var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
}
.btn-primary:hover {
  background: var(--primary-blue-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-blue);
  border: 1.5px solid var(--primary-blue);
}
.btn-secondary:hover {
  background: var(--tint-navy);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
  border: none;
}
.btn-light:hover {
  background: var(--tint-navy);
}

/* ---------- Links ---------- */
a {
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: none;
}

.link-external {
  white-space: nowrap;
}
.link-external::after {
  content: " \2197"; /* diagonal arrow ↗ */
  display: inline-block;
  transition: transform var(--transition);
}
.link-external:hover::after {
  transform: translate(2px, -2px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(32, 42, 64, 0.08);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand-name {
  font-family: var(--font-heading), "Gabarito", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
}
.brand-role {
  font-size: 12px;
  color: var(--gray);
}

.site-header .btn {
  padding: 10px 18px;
  font-size: 14px;
  flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  text-align: left;
}

.hero-sub {
  color: var(--gray);
  font-size: 15px;
  margin: 0.75rem 0 1.25rem;
}

/* ---------- Platform billing: publish status ---------- */
.publish-status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1.5rem 1.75rem;
  border-radius: 12px;
  margin-top: 0.75rem;
}
.publish-status-live {
  background: var(--tint-green);
  border: 1px solid var(--trust-green);
}
.publish-status-pending {
  background: var(--setuh-gold-tint);
  border: 1px solid var(--setuh-gold);
}
.publish-status-icon {
  font-size: 2rem;
  display: inline-block;
  animation: publish-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.publish-status-urgent .publish-status-icon {
  animation: publish-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    publish-pulse 1.6s ease-in-out 0.6s infinite;
}
.publish-status-text {
  font-family: var(--font-heading), "Gabarito", sans-serif;
  margin: 0;
}
.publish-status-live .publish-status-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--trust-green);
}
.publish-status-pending .publish-status-text {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--setuh-gold-text);
}
@keyframes publish-pop {
  0% { transform: scale(0) rotate(-15deg); opacity: 0; }
  60% { transform: scale(1.25) rotate(8deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes publish-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
.publish-actions {
  display: flex;
  gap: 12px;
  margin-top: 1rem;
}
.preview-banner {
  background: var(--setuh-gold);
  color: var(--white);
  text-align: center;
  font-family: var(--font-body), "Hanken Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.hero-blurb {
  font-size: 15px;
  max-width: 620px;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---------- Trust section (video background) ---------- */
.trust-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy); /* fallback while video loads / if it fails */
}

.trust-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  z-index: 0;
}

.trust-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 24, 38, 0.82) 0%,
    rgba(18, 24, 38, 0.72) 100%
  );
  z-index: 1;
}

.trust-hero > .section {
  position: relative;
  z-index: 2;
}

.trust-hero h2 {
  color: var(--white);
}

.trust-hero .testimonial-gist {
  color: var(--tint-navy);
}

.trust-hero .testimonial-gist a.link-external {
  color: var(--white);
}

.trust-hero .card {
  box-shadow: 0 10px 30px rgba(8, 12, 22, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .trust-video {
    display: none;
  }
}

/* ---------- Trust cards ---------- */
.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid rgba(32, 42, 64, 0.1);
  border-radius: 12px;
  padding: 1.2rem;
  transition: transform var(--transition);
}
.card:hover {
  transform: scale(1.02);
}

.trust-icon {
  width: 22px;
  height: 22px;
  color: var(--trust-green);
  margin-bottom: 0.75rem;
  transition: transform var(--transition);
}
.card:hover .trust-icon {
  transform: rotate(-8deg);
}

.card-stat {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-heading), "Gabarito", sans-serif;
}
.card-label {
  font-size: 13px;
  color: var(--gray);
  margin-top: 0.25rem;
}

.testimonial-gist {
  font-size: 15px;
  max-width: 640px;
}
.testimonial-gist a {
  display: inline-block;
  margin-top: 0.5rem;
}

/* ---------- Specializations ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.spec-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(32, 42, 64, 0.08);
  font-size: 14px;
}
.spec-list li:last-child {
  border-bottom: none;
}

.spec-note {
  margin-top: 1.75rem;
  font-size: 14px;
  color: var(--gray);
}
.spec-note strong {
  color: var(--navy);
}

/* ---------- Experience ---------- */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.experience-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.experience-logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--tint-navy);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading), "Gabarito", sans-serif;
  font-weight: 700;
  font-size: 15px;
}

.experience-place {
  font-weight: 700;
  font-size: 16px;
}
.experience-detail {
  color: var(--gray);
  font-size: 14px;
  margin-top: 0.2rem;
}

/* ---------- Location / map section (storytelling: full-bleed) ---------- */
.map-section {
  width: 100%;
}

.map-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: stretch;
}

.map-embed {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.reviews-panel {
  padding: 1.75rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(32, 42, 64, 0.08);
}

.reviews-score {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.reviews-rating {
  font-family: var(--font-heading), "Gabarito", sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--navy);
}

.reviews-stars {
  color: var(--trust-green);
  font-size: 18px;
  letter-spacing: 1px;
}

.reviews-count {
  color: var(--gray);
  font-size: 13px;
  margin-top: 0.25rem;
  margin-bottom: 1.1rem;
}

.reviews-blurb {
  font-size: 14px;
  margin-bottom: 1.1rem;
}

@media (max-width: 640px) {
  .map-split {
    grid-template-columns: 1fr;
  }
  .map-embed {
    height: 300px;
  }
  .reviews-panel {
    border-left: none;
    border-top: 1px solid rgba(32, 42, 64, 0.08);
    padding: 1.5rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem;
}

.footer-heading {
  color: var(--white);
  font-size: 36px;
  margin-bottom: 1rem;
}

.footer-address {
  color: var(--tint-navy);
  font-size: 14px;
  margin-bottom: 1.75rem;
}

.footer-fine-print {
  margin-top: 2.5rem;
  color: var(--gray);
  font-size: 12px;
}

/* ---------- Auth/form pages (login, onboarding) ---------- */
.auth-page {
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: 2rem 1.5rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    url("../images/auth-background.webp") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-page .btn-primary,
.message-page .btn-primary {
  background: var(--setuh-ink);
}
.auth-page .btn-primary:hover,
.message-page .btn-primary:hover {
  background: #000000;
}

.auth-page .btn-secondary,
.message-page .btn-secondary {
  color: var(--setuh-deep-blue);
  border-color: var(--setuh-deep-blue);
  background: var(--setuh-sage-tint);
}
.auth-page .btn-secondary:hover,
.message-page .btn-secondary:hover {
  background: rgba(169, 190, 110, 0.26);
}

.auth-page .btn-outline-dark,
.message-page .btn-outline-dark {
  background: transparent;
  color: var(--setuh-ink);
  border: 1.5px solid var(--setuh-ink);
}
.auth-page .btn-outline-dark:hover,
.message-page .btn-outline-dark:hover {
  background: rgba(17, 17, 17, 0.05);
}

/* ---------- Toggle switches ---------- */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}
.toggle-row .form-label {
  margin-bottom: 0;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background-color: rgba(17, 17, 17, 0.15);
  border-radius: 24px;
  transition: background-color 0.2s;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider {
  background-color: var(--setuh-deep-blue);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.auth-page a:not(.btn),
.message-page a:not(.btn) {
  color: var(--setuh-deep-blue);
}

.auth-page .form-input:focus {
  border-color: var(--setuh-deep-blue);
}

.auth-card {
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 4px 4px 16px 16px;
  padding: 3rem 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(17, 17, 17, 0.16), 0 4px 12px rgba(17, 17, 17, 0.08);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--setuh-gold);
}

.auth-card--wide {
  max-width: 560px;
}

.auth-page-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-page-heading h1 {
  font-family: var(--font-auth-heading);
  font-weight: 500;
  color: var(--setuh-ink);
  font-size: 32px;
  margin-bottom: 0.5rem;
  position: relative;
  padding-bottom: 0.85rem;
}

.auth-page-heading h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--setuh-gold);
}

.auth-page-heading .hero-sub {
  margin: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-family: var(--font-body), "Hanken Grotesk", sans-serif;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid rgba(32, 42, 64, 0.15);
  border-radius: 28px;
  transition: border-color var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 22px;
  font-size: 16px;
  border-radius: 28px;
}

.form-hint {
  font-size: 13px;
  color: var(--gray);
  margin-top: 0.4rem;
}

.form-note {
  font-size: 14px;
  color: var(--gray);
  margin-top: 1.5rem;
}

/* ---------- Message pages (404s, errors) ---------- */
.message-page {
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: 2rem 1.5rem;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-card {
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 4px 4px 16px 16px;
  padding: 3rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 48px rgba(17, 17, 17, 0.16), 0 4px 12px rgba(17, 17, 17, 0.08);
  position: relative;
  overflow: hidden;
}

.message-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--setuh-gold);
}

.message-card h1 {
  color: var(--setuh-ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .trust-cards {
    grid-template-columns: 1fr;
  }
  .spec-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .brand-role {
    display: none;
  }
  h1 {
    font-size: 30px;
  }
  .footer-heading {
    font-size: 28px;
  }
}

/* ---------- Dashboard (two-column, tenant-only) ---------- */
.dashboard-page {
  min-height: 100vh;
  max-width: none;
  display: flex;
  background: var(--white);
}

.dashboard-sidebar {
  width: 240px;
  flex-shrink: 0;
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(17, 17, 17, 0.1);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  position: sticky;
  top: 0;
}

.dashboard-nav-bottom {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.dashboard-sidebar-heading {
  font-family: var(--font-auth-heading);
  font-weight: 500;
  font-size: 19px;
  margin-bottom: 1.25rem;
  word-break: break-word;
}

.dashboard-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  color: var(--setuh-ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background var(--transition);
}

.dashboard-nav a:hover {
  background: rgba(17, 17, 17, 0.06);
}

.dashboard-nav a.active {
  background: var(--setuh-ink);
  color: var(--white);
}

.dashboard-nav a.logout-link {
  margin-top: 1.5rem;
  color: var(--gray);
}

.dashboard-content {
  flex: 1;
  padding: 2.5rem;
  max-width: 720px;
}

.dashboard-content h1 {
  font-family: var(--font-auth-heading);
  font-weight: 500;
  font-size: 28px;
  margin-bottom: 0.5rem;
}

@media (max-width: 720px) {
  .dashboard-page {
    flex-direction: column;
  }
  .dashboard-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
    padding: 1.5rem;
  }
  .dashboard-content {
    padding: 1.5rem;
    max-width: none;
  }
}
