:root {
  --bg: #070505;
  --bg-soft: #0d0a09;
  --panel: #11100f;
  --panel-2: #161412;
  --panel-3: #1c1917;
  --panel-glass: rgba(10, 8, 8, 0.74);
  --line: rgba(211, 133, 63, 0.2);
  --line-strong: rgba(211, 133, 63, 0.36);
  --amber: #d88442;
  --amber-bright: #f0ab68;
  --amber-soft: #f7d0ab;
  --cream: #f6eadf;
  --cream-soft: #ddcdbf;
  --text: #f7efe8;
  --text-strong: #fff9f5;
  --muted: rgba(247, 239, 232, 0.7);
  --muted-soft: rgba(247, 239, 232, 0.54);
  --green: #46e38d;
  --blue: #60b6ff;
  --red: #ff6d66;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
  --radius: 28px;
  --radius-sm: 18px;
  --radius-xs: 12px;
  --display: "Cormorant Garamond", Georgia, serif;
  --ui: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ui);
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(216, 132, 66, 0.12), transparent 24%),
    linear-gradient(180deg, #090706 0%, #050404 100%);
}

body.invoice-page {
  background: linear-gradient(180deg, #f3eee8 0%, #ece3d8 100%);
  color: #201915;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(240, 171, 104, 0.2);
  border-radius: 14px;
  background: rgba(255, 250, 245, 0.03);
  color: var(--text);
  padding: 0.95rem 1rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(247, 239, 232, 0.42);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(240, 171, 104, 0.6);
  box-shadow: 0 0 0 4px rgba(216, 132, 66, 0.12);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.container {
  width: min(1260px, calc(100% - 40px));
  margin: 0 auto;
}

.btn,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.88rem 1.34rem;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease,
    background 160ms ease, color 160ms ease;
}

.mini-button {
  min-height: 40px;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.btn:hover,
.btn:focus-visible,
.mini-button:hover,
.mini-button:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(180deg, #f3ab6f, var(--amber));
  color: #170f0a;
  box-shadow: 0 18px 34px rgba(216, 132, 66, 0.24);
}

.btn-outline-light {
  border: 1px solid rgba(247, 239, 232, 0.24);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.btn-outline-amber {
  border: 1px solid rgba(216, 132, 66, 0.82);
  background: rgba(216, 132, 66, 0.06);
  color: var(--amber-bright);
}

.btn-outline-dark {
  border: 1px solid rgba(32, 25, 21, 0.14);
  background: #ffffff;
  color: #201915;
}

.btn-success,
.mini-button.is-success {
  background: linear-gradient(180deg, #73f6ac, var(--green));
  color: #04170c;
  box-shadow: 0 14px 28px rgba(70, 227, 141, 0.22);
}

.btn-danger,
.mini-button.is-danger {
  background: linear-gradient(180deg, #ff9a93, var(--red));
  color: #2d0806;
  box-shadow: 0 14px 28px rgba(255, 109, 102, 0.22);
}

.btn-warning {
  background: linear-gradient(180deg, #ffd09a, #f0ab68);
  color: #2a1607;
  box-shadow: 0 14px 28px rgba(240, 171, 104, 0.22);
}

.btn-call,
.mini-button.is-call {
  background: linear-gradient(180deg, #94d1ff, var(--blue));
  color: #061a29;
  box-shadow: 0 14px 28px rgba(96, 182, 255, 0.22);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--amber-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: rgba(240, 171, 104, 0.7);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--amber-bright);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(240, 171, 104, 0.72);
  padding-bottom: 0.6rem;
}

.page-lead,
.status-line.is-muted,
.surface-card p,
.site-footer p {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(8, 6, 6, 0.94), rgba(8, 6, 6, 0.74));
  border-bottom: 1px solid rgba(240, 171, 104, 0.1);
}

.site-nav,
.portal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 94px;
}

.brand-lockup,
.brand-port {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.brand-wordmark,
.footer-brand {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.8vw, 2rem);
  line-height: 0.9;
  letter-spacing: 0.06em;
  color: var(--cream);
}

.brand-submark,
.footer-sub,
.brand-sub,
.brand-region {
  display: block;
  color: var(--amber-soft);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.brand-copy {
  display: grid;
  gap: 0.16rem;
}

.brand-english {
  font-family: var(--display);
  font-size: 1.56rem;
  line-height: 1;
  letter-spacing: 0.05em;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.primary-links,
.portal-nav-links,
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  flex-wrap: wrap;
}

.primary-links a,
.portal-nav-links a {
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-actions .btn {
  min-height: 40px;
  padding: 0.64rem 0.82rem;
  font-size: 0.68rem;
}

.portal-nav-links a.is-active,
.primary-links a:hover,
.portal-nav-links a:hover {
  color: var(--amber-bright);
}

.hero-panel {
  position: relative;
  min-height: 920px;
  padding: 6rem 0 4rem;
  background:
    linear-gradient(90deg, rgba(6, 5, 5, 0.94) 0%, rgba(6, 5, 5, 0.72) 38%, rgba(6, 5, 5, 0.3) 72%, rgba(6, 5, 5, 0.66) 100%),
    url("https://images.unsplash.com/photo-1514362545857-3bc16c4c7d1b?auto=format&fit=crop&w=1800&q=80")
      center/cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 2rem;
  align-items: end;
  min-height: 760px;
}

.hero-copy {
  max-width: 540px;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.2rem, 10vw, 8.4rem);
  line-height: 0.86;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-strong);
}

.hero-copy p,
.approach-copy p,
.interior-copy p,
.offer-copy p,
.closing-copy p {
  max-width: 390px;
  font-size: 1.02rem;
  line-height: 1.8;
}

.hero-divider {
  display: block;
  width: 76px;
  height: 1px;
  margin: 2rem 0 1.5rem;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.hero-seal {
  display: flex;
  align-items: end;
  justify-content: end;
}

.seal-ring {
  width: 210px;
  height: 210px;
  border: 1px solid rgba(216, 132, 66, 0.4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--amber);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(216, 132, 66, 0.16);
}

.seal-ring span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.seal-ring strong {
  font-family: var(--display);
  font-size: 2.8rem;
  font-weight: 600;
}

.approach-panel,
.offers-panel,
.quote-panel,
.site-footer {
  background: #070505;
}

.approach-panel,
.offers-panel {
  padding: 2.5rem 0 0;
}

.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr) minmax(210px, 0.5fr);
  gap: 2rem;
  align-items: center;
}

.approach-copy h2,
.interior-copy h2,
.closing-copy h2,
.surface-card h1,
.surface-card h2,
.surface-card h3,
.offer-copy h3 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 500;
  line-height: 0.95;
  color: var(--cream);
}

.approach-copy h2,
.interior-copy h2,
.closing-copy h2,
.surface-card h1 {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
}

.surface-card h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.surface-card h3,
.offer-copy h3 {
  font-size: 1.45rem;
}

.image-panel {
  overflow: hidden;
  border-radius: 0;
  background: #0d0a09;
}

.image-panel-tall img {
  min-height: 620px;
  object-fit: cover;
}

.approach-list {
  display: grid;
  gap: 1.8rem;
  align-content: center;
  padding-left: 1.2rem;
}

.approach-item {
  display: grid;
  gap: 0.5rem;
  color: var(--text);
}

.approach-item span {
  color: var(--cream-soft);
  font-size: 0.92rem;
}

.approach-item strong {
  max-width: 130px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.interior-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.65fr);
  align-items: stretch;
  min-height: 680px;
}

.interior-image img {
  height: 100%;
  object-fit: cover;
}

.interior-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: clamp(2rem, 5vw, 5rem);
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.96), rgba(9, 8, 8, 0.98));
}

.offers-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(220px, 0.6fr) minmax(280px, 0.9fr) minmax(220px, 0.6fr);
  gap: 0;
  border-top: 1px solid rgba(240, 171, 104, 0.14);
  border-bottom: 1px solid rgba(240, 171, 104, 0.14);
}

.offer-photo,
.offer-photo-card {
  min-height: 460px;
}

.offer-photo img,
.offer-photo-card img {
  height: 100%;
  object-fit: cover;
}

.offer-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 2rem;
  border-left: 1px solid rgba(240, 171, 104, 0.14);
  background: rgba(9, 8, 8, 0.98);
}

.offer-photo-card {
  position: relative;
}

.offer-photo-card .offer-copy {
  position: absolute;
  inset: auto 0 0 0;
  min-height: 50%;
  background: linear-gradient(180deg, rgba(7, 6, 6, 0.12), rgba(7, 6, 6, 0.92));
  border-left: 0;
}

.offer-copy.centered {
  justify-content: end;
}

.quote-panel {
  padding: 2.4rem 0 3.8rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.quote-grid article {
  display: grid;
  gap: 1rem;
}

.quote-grid blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: 1.56rem;
  line-height: 1.45;
  color: var(--cream);
}

.quote-grid span {
  color: var(--amber);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.closing-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.9fr) minmax(0, 0.55fr);
  align-items: stretch;
  background: #070505;
}

.closing-media img {
  height: 100%;
  object-fit: cover;
}

.closing-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: clamp(2.2rem, 6vw, 5rem);
  background: linear-gradient(180deg, #090706 0%, #0d0b0a 100%);
}

.site-footer {
  padding: 2rem 0 2.6rem;
  border-top: 1px solid rgba(240, 171, 104, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-grid a {
  color: var(--amber-bright);
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(240, 171, 104, 0.08);
  color: var(--muted-soft);
  font-size: 0.84rem;
}

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 24;
  background: linear-gradient(180deg, rgba(11, 9, 9, 0.96), rgba(11, 9, 9, 0.8));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(240, 171, 104, 0.1);
}

.portal-main {
  padding: 2.2rem 0 4rem;
}

.portal-grid,
.client-shell {
  display: grid;
  gap: 1.5rem;
}

.page-hero,
.dual-grid,
.three-grid,
.four-grid,
.stats-grid,
.module-grid {
  display: grid;
  gap: 1rem;
}

.page-hero,
.dual-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.module-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.surface-card,
.metric-card,
.module-card,
.list-card,
.shift-card,
.shift-status-card,
.day-group,
.invoice-card,
.history-card {
  background:
    linear-gradient(180deg, rgba(25, 22, 20, 0.96), rgba(12, 11, 10, 0.98));
  border: 1px solid rgba(240, 171, 104, 0.12);
  box-shadow: var(--shadow);
}

.surface-card,
.metric-card,
.module-card,
.list-card,
.shift-card,
.shift-status-card,
.invoice-card,
.history-card,
.day-group {
  border-radius: var(--radius-sm);
}

.padded {
  padding: 1.6rem;
}

.section-head,
.card-meta,
.form-actions,
.meta-row,
.portal-footer-actions,
.action-row,
.split-fields {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.section-head {
  align-items: start;
  justify-content: space-between;
}

.field-label {
  display: grid;
  gap: 0.55rem;
  flex: 1 1 240px;
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 700;
}

.tool-chip,
.session-chip,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.44rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 171, 104, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--cream);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-badge {
  min-height: 30px;
}

.status-badge.ready,
.status-badge.on {
  background: rgba(70, 227, 141, 0.12);
  color: #91f0bc;
  border-color: rgba(70, 227, 141, 0.22);
}

.status-badge.call,
.status-badge.queued {
  background: rgba(96, 182, 255, 0.12);
  color: #9dd0ff;
  border-color: rgba(96, 182, 255, 0.22);
}

.status-badge.off,
.status-badge.completed,
.status-badge.paid {
  background: rgba(255, 109, 102, 0.12);
  color: #ffb1ad;
  border-color: rgba(255, 109, 102, 0.22);
}

.metric-card,
.module-card,
.list-card,
.invoice-card,
.history-card {
  padding: 1.2rem;
}

.metric-card h3,
.module-card h3,
.list-card h3,
.invoice-card h3,
.history-card h3,
.shift-card h3,
.shift-status-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
}

.metric-card .value {
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--amber-bright);
}

.metric-card p,
.module-card p,
.list-card p,
.invoice-card p,
.history-card p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.meta-item,
.field-help {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.gateway-hero {
  padding: 2rem 0;
}

.gateway-card {
  padding: 2.4rem;
  text-align: center;
}

.gateway-grid {
  margin-top: 1.5rem;
}

.center {
  justify-content: center;
}

.client-action-row {
  position: sticky;
  top: 106px;
  z-index: 8;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(9, 8, 8, 0.82);
  border: 1px solid rgba(240, 171, 104, 0.12);
  backdrop-filter: blur(14px);
}

.client-action-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 171, 104, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--cream);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.time-display {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.timer-value {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--amber-bright);
}

.list-grid,
.schedule-board,
.table-shell,
.invoice-grid,
.history-grid {
  display: grid;
  gap: 1rem;
}

.invoice-grid,
.history-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.day-group {
  overflow: hidden;
}

.day-group-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(240, 171, 104, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: var(--amber-bright);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-group-body {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.shift-card,
.shift-status-card {
  padding: 1.1rem;
}

.shift-status-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.shift-status-card.on {
  background: linear-gradient(180deg, rgba(70, 227, 141, 0.14), rgba(12, 11, 10, 0.98));
}

.shift-status-card.call {
  background: linear-gradient(180deg, rgba(96, 182, 255, 0.14), rgba(12, 11, 10, 0.98));
}

.map-shell {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(240, 171, 104, 0.12);
}

.map-shell iframe,
.map-image {
  width: 100%;
  height: 520px;
  border: 0;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

.tracking-overlay {
  position: absolute;
  inset: 0;
}

.tracking-pin {
  position: absolute;
  min-width: 132px;
  padding: 0.72rem 0.86rem;
  border-radius: 14px;
  background: rgba(10, 8, 8, 0.92);
  border: 1px solid rgba(240, 171, 104, 0.24);
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.28);
}

.tracking-pin strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--cream);
  font-size: 0.88rem;
}

.tracking-pin div {
  color: var(--muted);
  font-size: 0.74rem;
}

.month-row {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(240, 171, 104, 0.1);
}

.month-row:last-child {
  border-bottom: 0;
}

.month-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--cream);
  font-weight: 800;
}

.bar-stack {
  display: grid;
  gap: 0.5rem;
}

.bar-track {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
}

.bar-fill.main {
  background: linear-gradient(90deg, #f4b77d, var(--amber));
}

.bar-fill.events {
  background: linear-gradient(90deg, #9dd2ff, var(--blue));
}

.bar-fill.payroll {
  background: linear-gradient(90deg, #8cf3b7, var(--green));
}

.table-shell {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(240, 171, 104, 0.1);
}

.table-shell table {
  width: 100%;
  border-collapse: collapse;
}

.table-shell th,
.table-shell td {
  padding: 0.92rem 0.82rem;
  border-bottom: 1px solid rgba(240, 171, 104, 0.08);
  text-align: left;
  vertical-align: top;
  color: var(--text);
  font-size: 0.9rem;
}

.table-shell th {
  color: var(--amber-soft);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.table-shell tr:last-child td {
  border-bottom: 0;
}

.print-shell {
  width: min(980px, calc(100% - 32px));
  margin: 2rem auto 3rem;
  display: grid;
  gap: 1rem;
}

.print-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.print-invoice-card {
  padding: 2rem;
  border-radius: 28px;
  background: #fffdfb;
  color: #201915;
  box-shadow: 0 22px 60px rgba(61, 42, 29, 0.12);
}

.print-invoice-head,
.print-dual {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.print-invoice-head {
  align-items: start;
  padding-bottom: 1.4rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid rgba(32, 25, 21, 0.1);
}

.print-brand {
  font-family: var(--display);
  font-size: 2.8rem;
  line-height: 0.9;
}

.print-meta {
  color: rgba(32, 25, 21, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

.print-badge {
  min-width: 116px;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(216, 132, 66, 0.12);
  color: #8f421a;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.print-dual h2 {
  color: #201915;
}

.print-table {
  width: 100%;
  margin-top: 1.5rem;
  border-collapse: collapse;
}

.print-table th,
.print-table td {
  padding: 0.92rem 0.82rem;
  border-bottom: 1px solid rgba(32, 25, 21, 0.1);
  text-align: left;
}

.print-table th {
  color: #7a583f;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.print-note {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #f8f1e8;
  color: #3b2b1d;
  line-height: 1.7;
}

.aibiz-return-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #42f58d, #65e4ff);
  color: #03170f;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 22px 44px rgba(14, 77, 59, 0.3);
}

@media (max-width: 1200px) {
  .primary-links,
  .portal-nav-links {
    gap: 0.8rem;
  }

  .hero-grid,
  .approach-grid,
  .interior-panel,
  .offers-grid,
  .closing-panel,
  .page-hero,
  .dual-grid,
  .stats-grid,
  .module-grid,
  .three-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-photo-card {
    min-height: 420px;
  }
}

@media (max-width: 860px) {
  .site-nav,
  .portal-nav {
    min-height: auto;
    padding: 1rem 0;
    align-items: start;
    flex-direction: column;
  }

  .hero-panel {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-grid,
  .approach-grid,
  .interior-panel,
  .offers-grid,
  .closing-panel,
  .page-hero,
  .dual-grid,
  .stats-grid,
  .module-grid,
  .three-grid,
  .four-grid,
  .footer-grid,
  .invoice-grid,
  .history-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-seal {
    justify-content: start;
  }

  .image-panel-tall img {
    min-height: 420px;
  }

  .offer-copy {
    border-left: 0;
    border-top: 1px solid rgba(240, 171, 104, 0.12);
  }

  .offer-photo-card .offer-copy {
    position: static;
    min-height: auto;
  }

  .client-action-row {
    top: 88px;
  }

  .aibiz-return-cta {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

@media print {
  .print-toolbar,
  .aibiz-return-cta {
    display: none !important;
  }

  body.invoice-page {
    background: #fff;
  }

  .print-shell {
    width: 100%;
    margin: 0;
  }

  .print-invoice-card {
    box-shadow: none;
    padding: 0;
  }
}
