/* -----------------------------------------
   ENTERPRISE DESIGN SYSTEM — YES MA’AMS
------------------------------------------*/
:root {
  --color-beige: var(--brand-bg, #090d16);
  --color-beige-dark: var(--brand-surface, #111827);
  --color-black: var(--text-primary, #f8fafc);
  --color-red: var(--brand-primary, #0ea5e9);
  --color-white: #ffffff;

  --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius-md: 6px;

  --shadow-sm: 0 2px 6px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.2);

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
}

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

body {
  background: var(--brand-bg, #090d16);
  font-family: var(--font-body);
  color: var(--text-primary, #f8fafc);
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

/* Paper texture overlay (optional asset) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

/* Keyboard-only escape from the header. Off-screen until it is focused, then
   it lands on the ink bar as a black label with white type. */
.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--brand-surface, #111827);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* The skip link moves focus to <main>, which carries tabindex="-1" so the focus
   actually lands. That is a programmatic target, not a tab stop, so it should
   not paint a focus ring around the whole page. */
main:focus {
  outline: none;
}

/* ---------- HEADER ---------- */
.site-header {
  background: var(--brand-surface, #111827);
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  padding: var(--space-sm) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-img {
  width: 56px;
  height: 56px;
}

.logo-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary, #f8fafc);
}

.logo-sub {
  display: block;
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-contact {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

/* The phone number, in the header, on every page. On a phone this is the
   shortest path from "I need a cleaner" to a human, and the number used to
   live only in the footer. 44px min-height is the tap-target floor; the pill
   is red because the header is ink (see paper-page.css) and red on cream
   would fail contrast, while white on red clears AA at 5.6:1. */
.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--color-red);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease;
}

.header-call:hover {
  background: #8b1528;
  color: #fff;
}

.header-call:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* The glyph is for phones only: at 390px the logo and a worded pill do not fit
   on one row without pushing the header taller than the one this audit set out
   to shorten. The number stays in the accessible name. */
.header-call-icon {
  display: none;
  width: 20px;
  height: 20px;
}

/* ============================
   NAVIGATION BAR
   ============================ */

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.main-nav a {
  color: var(--color-red) !important;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 0;
  position: relative;
  transition: color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.main-nav a:hover {
  color: #8b1528 !important;
  transform: scale(1.05);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.main-nav a.active {
  color: var(--color-red);
}

.main-nav a.active::after {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .main-nav {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
  .main-nav a {
    padding: 4px 0;
  }
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  background: linear-gradient(180deg, var(--brand-primary, #0ea5e9) 0%, var(--brand-accent, #0284c7) 100%);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-sm, 6px);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #38bdf8 0%, var(--brand-primary, #0ea5e9) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ---------- FORM CONTROLS ----------
   A control with no size of its own takes the browser's 13.33px default, and
   iOS zooms the whole page when a field is focused below 16px. That same bug
   arrived four separate times - the quote form, the login, the signup and the
   portal's profile modal - and each was fixed by hand. This is the floor, in
   one place, for every page that loads this sheet.

   Phone widths only: desktop forms keep the density they were designed at.
   !important because several controls carry their size in a style attribute,
   which a plain rule would lose to - the technician view hit that first and
   does the same for its own controls in tech/tech-portal.css. */
@media (max-width: 767.98px) {
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* OAuth Badge Style */
.oauth-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50px; /* Pill shape */
  background: rgba(15, 23, 42, 0.85);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #f8fafc);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.oauth-badge:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.oauth-badge img {
  width: 18px;
  height: 18px;
}

/* ---------- HERO ---------- */
.hero {
  padding: var(--space-xl) 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-left h1 {
  font-family: var(--font-heading);
  font-size: 40px;
  margin-bottom: var(--space-sm);
}

.hero-tagline {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.hero-subline {
  font-size: 15px;
  color: var(--color-red);
  margin-bottom: var(--space-md);
}

.hero-contact {
  font-size: 14px;
  margin-bottom: var(--space-md);
}

.hero-cta {
  margin-bottom: var(--space-sm);
}

.hero-badge {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #94a3b8);
}

.hero-right {
  display: flex;
  justify-content: center;
}

.hero-mug {
  max-width: 280px;
  width: 100%;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35));
}

/* ---------- SECTIONS ---------- */
.section {
  padding: var(--space-xl) 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: var(--space-md);
}

/* ---------- SERVICE CARDS ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.card {
  background: var(--brand-surface, #111827);
  color: var(--text-primary, #f8fafc);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
}

.card h3 {
  font-size: 18px;
  margin-bottom: var(--space-sm);
  color: #ffffff;
}

.card p {
  font-size: 14px;
  color: var(--text-muted, #94a3b8);
}

.card::after {
  content: "";
  position: absolute;
  bottom: var(--space-sm);
  left: var(--space-md);
  width: 60%;
  height: 3px;
  background: var(--color-red);
}

/* ---------- REGION GRID ---------- */
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.region-card {
  background: var(--brand-surface, #111827);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-left: 4px solid var(--brand-primary, #0ea5e9);
  color: var(--text-primary, #f8fafc);
}

.login-container {
  max-width: 450px;
}

.login-container .region-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.region-card h3 {
  font-size: 19px;
  color: #ffffff;
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

.region-card p {
  font-size: 14px;
  color: var(--text-muted, #94a3b8);
}

.login-container .region-card input {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

/* ---------- TRUST STRIP ---------- */
.trust-strip {
  background: var(--brand-surface, #111827);
  color: var(--text-primary, #f8fafc);
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  padding: var(--space-xl) 0;
  margin-top: var(--space-xl);
  position: relative;
}

.trust-strip::before {
  content: "";
  opacity: 0.08;
  position: absolute;
  inset: 0;
}

.trust-inner {
  text-align: center;
}

.trust-main {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: var(--space-xs);
}

.trust-sub {
  font-size: 15px;
  color: var(--color-red);
  margin-bottom: var(--space-sm);
}

.trust-contact {
  font-size: 14px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--brand-surface, #111827);
  color: var(--text-primary, #f8fafc);
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-xl);
  border-top: 2px solid var(--color-red);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.footer-left,
.footer-center,
.footer-right {
  font-size: 13px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 600;
}

.footer-bottom {
  font-size: 12px;
  text-align: center;
  color: var(--text-muted, #94a3b8);
}

/* -----------------------------------------
   RESPONSIVE — ENTERPRISE MOBILE LAYOUT
------------------------------------------*/
@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
    /* the call pill and the nav both want room at 320-390px; let the pill
       drop to its own line instead of overflowing the sheet */
    flex-wrap: wrap;
    gap: 12px;
  }

  /* Tighter pill at tablet width so it still shares the nav's row at 700px;
     wrapping it there costs a whole extra line of header. */
  .header-call {
    font-size: 13px;
    padding: 0 12px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero-right {
    order: -1;
    margin-bottom: var(--space-md);
  }

  .hero-left h1 {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: var(--space-xs) 0;
  }

  /* Logo and call button share the first row, nav takes the second. Without
     this the header was 185px on a 390px screen - a quarter of the viewport
     before any content - because the tagline wrapped to four lines and the
     nav to two. The tagline is the only casualty, and the promise it carries
     is the first thing on the poster. `display: contents` lifts the nav and
     the pill out of .header-right so `order` can place them on separate rows. */
  .header-inner {
    gap: var(--space-sm);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  /* No grow: the logo takes only what it needs so the call pill fits beside
     it. With flex-grow the logo ate the whole row and the pill wrapped to a
     line of its own, making the header taller than it was before. */
  .header-left {
    flex: 0 1 auto;
    min-width: 0;
  }

  .header-right {
    display: contents;
  }

  .main-nav {
    order: 2;
    flex: 1 1 100%;
  }

  .header-call {
    order: 1;
    width: 44px;
    padding: 0;
  }

  .header-call-icon {
    display: block;
  }

  .header-call-text {
    display: none;
  }

  .logo-sub {
    display: none;
  }

  .logo-img {
    width: 40px;
    height: 40px;
  }

  .logo-title {
    font-size: 18px;
  }

  .logo-lockup {
    flex-direction: row;
    gap: 10px;
  }

  .hero {
    padding: var(--space-lg) 0;
  }

  .hero-inner {
    gap: var(--space-md);
  }

  .hero-mug {
    max-width: 220px;
  }

  .section {
    padding: var(--space-lg) 0;
  }

  .card,
  .region-card {
    padding: var(--space-md);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .footer-right {
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Public Forms & Auth Style Audit Cleanups (G5 Step 1D)
   -------------------------------------------------------------------------- */
.form-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-mt12 {
  margin-top: 12px;
}

.btn-full {
  width: 100%;
}

.btn-full-mt12 {
  margin-top: 12px;
  width: 100%;
}

.form-footer-text {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
}

.form-footer-text-sm {
  text-align: center;
  margin-top: 8px;
  font-size: 0.9rem;
}

.text-center-mt8 {
  text-align: center;
  margin-top: 8px;
}

.link-accent {
  color: var(--color-red);
  font-weight: bold;
}

.link-red {
  color: var(--color-red);
  text-decoration: none;
}

.forgot-password-panel {
  display: none;
  margin-top: 12px;
}

.reset-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  background: rgba(9, 13, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 8px;
}

.reset-status-text {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 8px;
  min-height: 18px;
}

.card-mt32 {
  margin-top: 32px;
}

.footer-sep {
  margin: 0 6px;
}

.footer-legal-link {
  color: inherit;
  text-decoration: underline;
}

/* Signup elements */
.signup-error-box {
  display: none;
  color: #f87171;
  font-size: 0.75rem;
  margin-top: 5px;
  font-weight: bold;
  text-align: center;
}

.terms-checkbox-wrap {
  justify-content: center;
}

.oauth-divider {
  text-align: center;
  margin: 20px 0;
  color: var(--text-muted, #94a3b8);
  position: relative;
}

.oauth-divider span {
  background: var(--brand-surface, #111827);
  color: var(--text-muted, #94a3b8);
  padding: 0 10px;
  position: relative;
  z-index: 1;
}

.oauth-divider hr {
  position: absolute;
  top: 50%;
  width: 100%;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: -1;
}

.oauth-buttons-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Reset Password */
.reset-container {
  max-width: 420px;
}

.reset-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reset-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #cbd5e1;
}

.reset-input-lg {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  background: rgba(9, 13, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  border-radius: 6px;
  font-size: 1rem;
}

.btn-reset-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

.reset-feedback {
  text-align: center;
  font-size: 0.9rem;
  min-height: 20px;
}

.reset-footer-text {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
}

/* Request Quote elements */
.quote-lead {
  margin-bottom: var(--space-lg);
  color: var(--text-muted, #94a3b8);
}

.mb-space-sm {
  margin-bottom: var(--space-sm);
}

.quote-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.label-bold {
  font-weight: 600;
  color: #cbd5e1;
}

.quote-summary-box {
  padding: 12px 16px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-sm, 8px);
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-quote-submit {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
}

/* 404 Page elements */
.notfound-container {
  max-width: 560px;
  text-align: center;
}

.notfound-lead {
  color: var(--text-muted, #94a3b8);
  font-size: 1.05rem;
  line-height: 1.6;
}

.notfound-cta-wrap {
  margin: var(--space-lg) 0 var(--space-md);
}

.btn-notfound-cta {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
}

.notfound-nav {
  font-size: 0.95rem;
}

.notfound-sep {
  margin: 0 8px;
  color: var(--text-muted, #94a3b8);
}

.notfound-talk {
  font-size: 0.95rem;
  color: var(--text-muted, #94a3b8);
  margin-top: var(--space-lg);
}

.phone-link-plain {
  color: inherit;
  text-decoration: none;
}

/* Team elements */
.team-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.team-bio-card {
  overflow: hidden;
  border-radius: 12px;
  padding: 24px;
  background: var(--brand-surface, #111827);
  color: var(--text-primary, #f8fafc);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.team-photo-wrap {
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  display: none;
}

.team-member-name {
  margin-top: 0;
  color: var(--brand-primary, #0ea5e9);
  font-size: 1.3rem;
}

.team-member-bio {
  color: var(--text-muted, #94a3b8);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Invoice View elements */
.m-0 {
  margin: 0;
}

.mt-0 {
  margin-top: 0;
}

.card-heading-sm {
  margin-top: 0;
  font-size: 1.15rem;
}

.lookup-status-text {
  min-height: 20px;
  margin: 10px 0 0;
}

.invoice-refund-alert {
  margin: 0 0 4px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Portfolio elements */
.portfolio-filter-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter-pill {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  font-family: inherit;
}

.filter-pill-active {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--brand-primary, #0ea5e9);
  background: var(--brand-primary, #0ea5e9);
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
}

/* Quote success elements */
.btn-inline-mt10 {
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}

.mt-space-xl {
  margin-top: var(--space-xl);
}

/* General layout helpers */
.d-contents {
  display: contents;
}

/* Logout screen elements */
.logout-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90vh;
  text-align: center;
}

.logout-card {
  max-width: 400px;
  padding: 40px;
}

.logout-spinner {
  margin: 20px auto;
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-top: 4px solid var(--brand-primary, #0ea5e9);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Legal document styles (privacy, data deletion) */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { margin-top: 32px; margin-bottom: 10px; font-size: 1.25rem; color: #f8fafc; }
.legal h3 { margin-top: 22px; margin-bottom: 8px; font-size: 1.05rem; color: #e2e8f0; }
.legal p, .legal li { line-height: 1.7; color: #cbd5e1; }
.legal ul, .legal ol { padding-left: 24px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--brand-primary, #0ea5e9); }
.legal .updated { color: #94a3b8; font-size: 0.9rem; margin-bottom: 24px; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 0.95rem; }
.legal th, .legal td { border: 1px solid rgba(255, 255, 255, 0.12); padding: 10px 12px; text-align: left; vertical-align: top; color: #cbd5e1; }
.legal th { background: rgba(17, 24, 39, 0.85); color: #f8fafc; }
.legal .note { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.35); color: #fde68a; border-radius: 8px; padding: 14px 16px; }

/* Quote success card styles */
.success-container { text-align: center; max-width: 500px; margin: 0 auto; }
.success-icon { font-size: 4rem; color: var(--brand-primary, #0ea5e9); margin-bottom: var(--space-md); }
.nudge-card {
  background: rgba(17, 24, 39, 0.75);
  color: #f8fafc;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-top: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Team member dynamic photo */
.team-member-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

/* Shared table empty / error cell */
.table-empty-cell {
  text-align: center;
  padding: 20px;
  color: var(--text-muted, #94a3b8);
}

/* Payment service modal */
.payment-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  z-index: 9999;
}
.payment-modal-dialog {
  display: flex;
  flex-direction: column;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 24px);
  max-height: calc(100svh - 24px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
}
.payment-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 20px 0;
  flex: 0 0 auto;
}
.payment-modal-title { margin: 0; font-size: 1.3rem; color: #f8fafc; }
.payment-modal-subtitle { margin: 4px 0 0; font-size: 0.9rem; color: #94a3b8; }
.payment-modal-price-box { text-align: right; }
.payment-modal-amount { font-size: 1.8rem; font-weight: 800; color: #38bdf8; }
.payment-modal-brand { font-size: 0.75rem; color: #94a3b8; margin-top: 2px; }
.payment-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
}
.payment-error-msg { color: #f87171; font-size: 0.85rem; margin-top: 12px; display: none; }
.payment-modal-foot { flex: 0 0 auto; padding: 0 20px calc(20px + env(safe-area-inset-bottom)); }
.btn-submit-payment {
  width: 100%;
  padding: 14px;
  background: linear-gradient(180deg, var(--brand-primary, #0ea5e9) 0%, var(--brand-accent, #0284c7) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-submit-payment:hover {
  background: linear-gradient(180deg, #38bdf8 0%, var(--brand-primary, #0ea5e9) 100%);
}
.btn-cancel-payment {
  width: 100%;
  padding: 10px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 8px;
}
.btn-cancel-payment:hover {
  color: #f8fafc;
}
.payment-modal-trust { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; }
.payment-trust-label { font-size: 0.75rem; color: #94a3b8; }

/* Portfolio page components */
.portfolio-empty-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: rgba(17, 24, 39, 0.7);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}
.portfolio-empty-title { margin-top: 0; font-size: 1.17em; color: #f8fafc; }
.portfolio-empty-desc { max-width: 48ch; margin: 0 auto 20px; color: #94a3b8; line-height: 1.6; }
.portfolio-quote-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; text-decoration: none; }
.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}
.filter-btn.active {
  border-color: var(--brand-primary, #0ea5e9);
  background: var(--brand-primary, #0ea5e9);
  color: #ffffff;
}
.portfolio-empty-category { grid-column: 1 / -1; text-align: center; color: #94a3b8; padding: 40px; }
.portfolio-media { width: 100%; height: 220px; object-fit: cover; border-radius: 8px 8px 0 0; }
.portfolio-content { padding: 15px; }
.portfolio-content-lg { padding: 20px; }
.portfolio-title { margin-top: 0; font-size: 1.17em; color: #f8fafc; }
.portfolio-desc { color: #94a3b8; font-size: 0.9rem; }
.portfolio-desc-lg { color: #94a3b8; font-size: 0.95rem; }






