/* =========================================================
   Affordable Contracting, Inc.
   Shared Public Website Styles
   File: assets/css/site.css
   ========================================================= */

:root {
  --black: #111827;
  --black-soft: #1f2937;
  --yellow: #f5c518;
  --yellow-soft: #fff8d6;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --green: #166534;
  --red: #991b1b;
  --shadow: 0 14px 38px rgba(17, 24, 39, 0.12);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  top: -999px;
  left: 16px;
  z-index: 9999;
  background: var(--yellow);
  color: var(--black);
  border: 2px solid var(--black);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.top-notice {
  background: var(--yellow);
  color: var(--black);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 24, 39, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 197, 24, 0.25);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 250px;
}

.brand-mark {
  width: 96px;
  height: 96px;
  border-radius: 0;
  background: transparent;
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  box-shadow: none;
  flex: 0 0 auto;
  overflow: visible;
  padding: 0;
}

.brand-mark img {
  width: 300%;
  height: 300%;
  object-fit: contain;
  display: block;
}

.brand-mark-fallback {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--black);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  padding: 6px;
}

.site-footer .brand-mark {
  width: 86px;
  height: 86px;
}

.brand-text strong {
  display: block;
  color: var(--yellow);
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.brand-text span {
  display: block;
  color: #d1d5db;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 10px;
  border-radius: 999px;
  transition: 0.15s ease;
}

.site-nav a:hover,
.site-nav a.active,
.site-nav a[aria-current="page"] {
  background: rgba(245, 197, 24, 0.13);
  color: var(--yellow);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.phone-link {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
}

.phone-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  transition: 0.16s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 10px 24px rgba(245, 197, 24, 0.22);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(245, 197, 24, 0.32);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  transform: translateY(-1px);
  background: #000;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.btn-header-login {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(245, 197, 24, 0.42);
  padding: 11px 15px;
}

.btn-header-login:hover {
  background: rgba(245, 197, 24, 0.14);
  color: var(--yellow);
  transform: translateY(-1px);
}

.btn-light-outline {
  background: transparent;
  color: var(--black);
  border: 1px solid rgba(17, 24, 39, 0.22);
}

.btn-light-outline:hover {
  border-color: var(--yellow);
  background: var(--yellow-soft);
}

.hero,
.page-hero {
  background:
    radial-gradient(circle at top left, rgba(245, 197, 24, 0.26), transparent 32%),
    linear-gradient(135deg, #111827 0%, #161f2e 48%, #000000 100%);
  color: var(--white);
  padding: 74px 20px 54px;
  position: relative;
  overflow: hidden;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -180px auto;
  width: 420px;
  height: 420px;
  background: rgba(245, 197, 24, 0.12);
  border-radius: 999px;
  filter: blur(10px);
}

.hero-inner,
.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 197, 24, 0.12);
  color: var(--yellow);
  border: 1px solid rgba(245, 197, 24, 0.28);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  color: var(--white);
}

.hero h1 span,
.page-hero h1 span {
  color: var(--yellow);
}

.hero p,
.page-hero p,
.hero-lead {
  margin: 0 0 26px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.65;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-proof {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.proof-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e5e7eb;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hero-stats {
  display: grid;
  gap: 14px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.25);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(12px);
}

.stat-card strong {
  display: block;
  color: var(--yellow);
  font-size: 30px;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card span {
  color: #d1d5db;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.25);
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.photo-slot {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(17, 24, 39, 0.22), rgba(17, 24, 39, 0.54)),
    var(--photo-url),
    linear-gradient(135deg, #f9fafb, #fff8d6);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(245, 197, 24, 0.22);
}

.photo-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(245, 197, 24, 0.08),
      rgba(245, 197, 24, 0.08) 10px,
      rgba(255, 255, 255, 0.06) 10px,
      rgba(255, 255, 255, 0.06) 20px
    );
  pointer-events: none;
}

.hero-image {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  border-radius: 24px;
  --photo-url: url("../images/placeholders/home-hero-remodel.jpg");
  background:
    linear-gradient(rgba(17, 24, 39, 0.22), rgba(17, 24, 39, 0.54)),
    var(--photo-url),
    linear-gradient(135deg, #f9fafb, #fff8d6);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(245, 197, 24, 0.22);
}

.hero-image-badge {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: rgba(17, 24, 39, 0.88);
  border: 1px solid rgba(245, 197, 24, 0.35);
  border-radius: 18px;
  padding: 16px;
  z-index: 3;
}

.hero-image-badge strong {
  display: block;
  color: var(--yellow);
  font-size: 20px;
  margin-bottom: 4px;
}

.hero-image-badge span {
  display: block;
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.45;
}

.section {
  padding: 64px 20px;
}

.section.alt {
  background: var(--gray-50);
}

.section.dark {
  background: var(--black);
  color: var(--white);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.section-heading.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-kicker {
  display: inline-block;
  color: var(--yellow);
  background: var(--black);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.section.dark .section-kicker {
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.28);
}

.section-heading h2 {
  margin: 0 0 12px;
  color: var(--black);
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.section.dark .section-heading h2 {
  color: var(--white);
}

.section-heading p {
  margin: 0;
  color: var(--gray-500);
  font-size: 16px;
  line-height: 1.65;
}

.section.dark .section-heading p {
  color: #d1d5db;
}

.content-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.content-card h2,
.content-card h3 {
  margin: 0 0 12px;
  color: var(--black);
  font-size: 24px;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.content-card p {
  margin: 0 0 14px;
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.7;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.18s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 197, 24, 0.8);
}

.service-img {
  height: 170px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.service-body {
  padding: 18px;
}

.service-body h3 {
  margin: 0 0 8px;
  color: var(--black);
  font-size: 19px;
  letter-spacing: -0.03em;
}

.service-body p {
  margin: 0 0 14px;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.55;
}

.service-body a {
  font-size: 13px;
  font-weight: 900;
  color: var(--black);
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
}

.feature-image {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: 28px;
  --photo-url: url("../images/placeholders/home-design-center.jpg");
  background:
    linear-gradient(rgba(17, 24, 39, 0.22), rgba(17, 24, 39, 0.54)),
    var(--photo-url),
    linear-gradient(135deg, #f9fafb, #fff8d6);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.feature-image-note {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: rgba(17, 24, 39, 0.9);
  color: var(--white);
  border: 1px solid rgba(245, 197, 24, 0.35);
  border-radius: 18px;
  padding: 16px;
  z-index: 3;
}

.feature-image-note strong {
  display: block;
  color: var(--yellow);
  margin-bottom: 4px;
  font-size: 18px;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.feature-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex: 0 0 auto;
}

.feature-row strong {
  display: block;
  color: var(--black);
  margin-bottom: 3px;
  font-size: 15px;
}

.feature-row span {
  display: block;
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.45;
}

.confidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.confidence-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.confidence-card h3 {
  margin: 0 0 10px;
  color: var(--black);
  font-size: 19px;
  letter-spacing: -0.03em;
}

.confidence-card p {
  margin: 0;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.6;
}

.team-business-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.business-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.business-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -110px;
  bottom: -120px;
  background: rgba(245, 197, 24, 0.18);
  border-radius: 999px;
  pointer-events: none;
}

.business-card h2 {
  margin: 0 0 12px;
  color: var(--black);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.05em;
  position: relative;
  z-index: 1;
}

.business-card p {
  margin: 0 0 16px;
  color: var(--gray-500);
  font-size: 15px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.standards-list {
  display: grid;
  gap: 11px;
  margin: 20px 0 22px;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 1;
}

.standards-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
}

.standards-list span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex: 0 0 auto;
}

.standards-list strong {
  display: block;
  color: var(--black);
  font-size: 14px;
  margin-bottom: 2px;
}

.standards-list small {
  display: block;
  color: var(--gray-500);
  font-size: 12px;
  line-height: 1.45;
}

.business-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 22px;
  position: relative;
  z-index: 1;
}

.business-route {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 13px;
}

.business-route strong {
  display: block;
  color: var(--black);
  font-size: 14px;
  margin-bottom: 4px;
}

.business-route span {
  display: block;
  color: var(--gray-500);
  font-size: 12px;
  line-height: 1.45;
}

.business-card .btn {
  position: relative;
  z-index: 1;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 20px;
}

.process-card .process-number {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin-bottom: 16px;
}

.process-card h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 18px;
}

.process-card p {
  margin: 0;
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.55;
}

.info-band {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-item {
  padding: 22px;
  border-right: 1px solid var(--gray-200);
}

.info-item:last-child {
  border-right: 0;
}

.info-item small {
  display: block;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 7px;
}

.info-item strong {
  display: block;
  color: var(--black);
  font-size: 16px;
  line-height: 1.35;
}

.info-item span,
.info-item a {
  display: block;
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.info-item a:hover {
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.showroom-card,
.showroom-box,
.service-area-box {
  background:
    radial-gradient(circle at top right, rgba(245, 197, 24, 0.18), transparent 34%),
    linear-gradient(135deg, #111827 0%, #000 100%);
  color: var(--white);
  border-radius: 30px;
  padding: 34px;
  border: 1px solid rgba(245, 197, 24, 0.28);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 28px;
  align-items: center;
}

.showroom-card h2,
.showroom-box h2,
.service-area-box h2 {
  margin: 0 0 12px;
  color: var(--white) !important;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.showroom-card h2 .highlight,
.showroom-box h2 .highlight,
.service-area-box h2 .highlight {
  color: var(--yellow) !important;
}

.showroom-card p,
.showroom-box p,
.service-area-box p {
  margin: 0 0 18px;
  color: #d1d5db;
  line-height: 1.65;
  font-size: 16px;
}

.showroom-list,
.area-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
}

.showroom-list div,
.area-list div,
.showroom-pill,
.area-pill {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
}

.showroom-list strong,
.showroom-pill strong {
  color: var(--yellow);
}

.showroom-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.25);
  border-radius: 24px;
  padding: 22px;
}

.showroom-panel h3 {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 21px;
}

.showroom-panel p {
  margin: 0 0 14px;
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.55;
}

.showroom-panel a {
  color: var(--yellow);
  font-weight: 900;
  text-decoration: none;
}

.showroom-panel a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.portal-access-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.portal-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.portal-card h3 {
  margin: 0 0 9px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.portal-card p {
  margin: 0 0 15px;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.55;
}

.portal-card .status {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: var(--black);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.visitor-preview {
  background: var(--yellow-soft);
  border: 1px solid rgba(245, 197, 24, 0.6);
  border-radius: 24px;
  padding: 26px;
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.visitor-preview h3 {
  margin: 0 0 8px;
  color: var(--black);
  font-size: 23px;
  letter-spacing: -0.04em;
}

.visitor-preview p {
  margin: 0;
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.6;
  max-width: 760px;
}

.legal-preview {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.legal-preview h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--black);
}

.legal-preview p {
  margin: 0 0 16px;
  color: var(--gray-500);
  font-size: 15px;
  line-height: 1.65;
}

.legal-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-list li {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 800;
}

.gallery-note {
  background: var(--yellow-soft);
  border: 1px solid rgba(245, 197, 24, 0.72);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--black);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 22px;
}

.gallery-preview {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 18px;
}

.gallery-tile {
  min-height: 270px;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.gallery-tile:hover {
  transform: translateY(-2px);
  transition: 0.18s ease;
  border-color: rgba(245, 197, 24, 0.8);
}

.gallery-tile.tall {
  min-height: 360px;
}

.gallery-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(17, 24, 39, 0.88);
  color: var(--yellow);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  z-index: 3;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.stars {
  color: var(--yellow);
  font-size: 18px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.review-card p {
  margin: 0 0 14px;
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.65;
}

.review-card strong {
  display: block;
  color: var(--black);
  font-size: 14px;
}

.empty-review {
  grid-column: 1 / -1;
  text-align: center;
  padding: 34px 22px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.empty-review h3 {
  margin: 0 0 8px;
  color: var(--black);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.empty-review p {
  margin: 0 auto;
  max-width: 720px;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.6;
}

.service-area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.area-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.area-card h3 {
  margin: 0 0 10px;
  color: var(--black);
  font-size: 19px;
  letter-spacing: -0.03em;
}

.area-card p {
  margin: 0;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.6;
}

.cta {
  background:
    radial-gradient(circle at top right, rgba(245, 197, 24, 0.22), transparent 34%),
    linear-gradient(135deg, #111827 0%, #000 100%);
  color: var(--white);
  border-radius: 30px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(245, 197, 24, 0.28);
  box-shadow: var(--shadow);
}

.cta h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.cta p {
  margin: 0;
  color: #d1d5db;
  font-size: 16px;
  line-height: 1.6;
  max-width: 700px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer {
  background: #0b0f17;
  color: var(--white);
  padding: 42px 20px 22px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr 0.9fr;
  gap: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 26px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand h3 {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 20px;
}

.footer-brand p,
.footer-col p {
  margin: 0;
  color: #d1d5db;
  font-size: 13px;
  line-height: 1.55;
}

.footer-col h4 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 15px;
}

.footer-col a {
  display: block;
  color: #d1d5db;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--yellow);
}

.footer-col .inline-footer-link {
  display: inline;
  color: var(--yellow);
  margin-bottom: 0;
}

.footer-bottom {
  max-width: var(--max);
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: #9ca3af;
  font-size: 12px;
}

.footer-bottom a {
  color: var(--yellow);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mobile-menu-button {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--yellow);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .header-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    justify-content: flex-start;
    padding-top: 12px;
  }

  .site-nav.show {
    display: flex;
  }

  .header-cta {
    margin-left: auto;
  }

  .hero-inner,
  .page-hero-inner,
  .split,
  .cta,
  .showroom-card,
  .showroom-box,
  .service-area-box,
  .visitor-preview,
  .legal-preview,
  .team-business-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .process-grid,
  .portal-access-grid,
  .info-band,
  .confidence-grid,
  .service-area-grid,
  .company-info-grid,
  .value-grid,
  .team-grid,
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-item:nth-child(2) {
    border-right: 0;
  }

  .info-item:nth-child(1),
  .info-item:nth-child(2) {
    border-bottom: 1px solid var(--gray-200);
  }

  .gallery-preview,
  .review-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .header-cta {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .phone-link {
    font-size: 13px;
  }

  .hero,
  .page-hero {
    padding-top: 46px;
  }

  .hero-image {
    min-height: 320px;
  }

  .feature-image {
    min-height: 320px;
  }

  .service-grid,
  .process-grid,
  .portal-access-grid,
  .info-band,
  .confidence-grid,
  .service-area-grid,
  .business-route-grid,
  .company-info-grid,
  .value-grid,
  .team-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .info-item,
  .info-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--gray-200);
  }

  .info-item:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 48px 18px;
  }

  .cta {
    padding: 28px 22px;
  }

  .showroom-card,
  .showroom-box,
  .service-area-box,
  .legal-preview,
  .business-card {
    padding: 28px 22px;
  }

  .visitor-preview {
    padding: 22px;
  }

  .brand {
    min-width: auto;
  }

  .brand-mark {
    width: 68px;
    height: 68px;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .brand-text span {
    font-size: 11px;
  }

  .site-footer .brand-mark {
    width: 74px;
    height: 74px;
  }

  .btn {
    width: 100%;
  }

  .header-cta .btn,
  .header-cta .phone-link {
    width: auto;
  }

  .cta-actions {
    width: 100%;
  }
}

/* =========================================================
   AC Project Hub — Restored Private Portal + Portal Login Styles
   Added back after public-site stylesheet cleanup.
   These rules are intentionally scoped to .portal-body and .login-page
   so they restore the backend without disturbing public website pages.
   ========================================================= */

:root {
  --aci-black: #050505;
  --aci-black-soft: #111111;
  --aci-charcoal: #1b1b1b;
  --aci-dark-gray: #2a2a2a;
  --aci-gray-900: #111111;
  --aci-gray-800: #222222;
  --aci-gray-700: #3a3a3a;
  --aci-gray-600: #555555;
  --aci-gray-500: #777777;
  --aci-gray-400: #999999;
  --aci-gray-300: #cccccc;
  --aci-gray-200: #e3e3e3;
  --aci-gray-100: #f2f2f2;
  --aci-gray-50: #fafafa;

  --aci-yellow: #f4c400;
  --aci-yellow-dark: #d6a900;
  --aci-yellow-soft: #fff6cf;

  --aci-white: #ffffff;
  --aci-red: #c62828;
  --aci-green: #2e7d32;
  --aci-orange: #ef6c00;
  --aci-blue: #1f5f9f;

  --aci-radius-sm: 6px;
  --aci-radius-md: 10px;
  --aci-radius-lg: 16px;
  --aci-radius-xl: 24px;

  --aci-shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
  --aci-shadow-medium: 0 12px 34px rgba(0, 0, 0, 0.14);
  --aci-shadow-strong: 0 22px 60px rgba(0, 0, 0, 0.28);

  --portal-header-height: 76px;
  --portal-sidebar-width: 286px;
  --portal-transition-fast: 160ms ease;
  --portal-transition-normal: 240ms ease;
}

.hidden {
  display: none !important;
}

/* -----------------------------
   Portal Utility Classes
----------------------------- */

.portal-body .text-center,
.login-page .text-center {
  text-align: center;
}

.portal-body .text-muted,
.login-page .text-muted {
  color: var(--aci-gray-600);
}

.portal-body .text-danger,
.login-page .text-danger {
  color: var(--aci-red);
}

.portal-body .text-success,
.login-page .text-success {
  color: var(--aci-green);
}

.portal-body .text-warning,
.login-page .text-warning {
  color: var(--aci-orange);
}

.portal-body .text-small,
.login-page .text-small {
  font-size: 0.875rem;
}

.portal-body .text-large,
.login-page .text-large {
  font-size: 1.15rem;
}

.portal-body .mt-0,
.login-page .mt-0 {
  margin-top: 0;
}

.portal-body .mb-0,
.login-page .mb-0 {
  margin-bottom: 0;
}

.portal-body .grid,
.login-page .grid {
  display: grid;
  gap: 18px;
}

.portal-body .grid-2,
.login-page .grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-body .grid-3,
.login-page .grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-body .grid-4,
.login-page .grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* -----------------------------
   Portal / Login Cards
----------------------------- */

.portal-body .card,
.login-page .card {
  background: var(--aci-white);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: var(--aci-radius-lg);
  box-shadow: var(--aci-shadow-soft);
  padding: 24px;
}

.portal-body .card-header,
.login-page .card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.portal-body .card-title,
.login-page .card-title {
  margin: 0;
  color: var(--aci-black);
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.portal-body .card-subtitle,
.login-page .card-subtitle {
  margin: 4px 0 0;
  color: var(--aci-gray-600);
  font-size: 0.95rem;
}

/* -----------------------------
   Portal / Login Buttons
----------------------------- */

.portal-body .btn,
.login-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: var(--aci-radius-md);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition:
    background var(--portal-transition-fast),
    border-color var(--portal-transition-fast),
    color var(--portal-transition-fast),
    transform var(--portal-transition-fast),
    box-shadow var(--portal-transition-fast);
  white-space: nowrap;
}

.portal-body .btn:hover,
.login-page .btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.portal-body .btn:disabled,
.login-page .btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.portal-body .btn-primary,
.login-page .btn-primary {
  background: var(--aci-black);
  color: var(--aci-yellow);
  border-color: var(--aci-black);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.portal-body .btn-primary:hover,
.login-page .btn-primary:hover {
  background: var(--aci-charcoal);
  color: var(--aci-yellow);
}

.portal-body .btn-secondary,
.login-page .btn-secondary {
  background: var(--aci-yellow);
  color: var(--aci-black);
  border-color: var(--aci-black);
}

.portal-body .btn-secondary:hover,
.login-page .btn-secondary:hover {
  background: var(--aci-yellow-dark);
  color: var(--aci-black);
}

.portal-body .btn-gold,
.login-page .btn-gold {
  background: var(--aci-yellow);
  color: var(--aci-black);
  border-color: var(--aci-yellow);
}

.portal-body .btn-gold:hover,
.login-page .btn-gold:hover {
  background: var(--aci-yellow-dark);
  color: var(--aci-black);
}

.portal-body .btn-outline,
.login-page .btn-outline {
  background: var(--aci-white);
  border-color: var(--aci-black);
  color: var(--aci-black);
}

.portal-body .btn-outline:hover,
.login-page .btn-outline:hover {
  background: var(--aci-yellow);
  border-color: var(--aci-black);
  color: var(--aci-black);
}

.portal-body .btn-danger,
.login-page .btn-danger {
  background: var(--aci-red);
  color: var(--aci-white);
  border-color: var(--aci-red);
}

.portal-body .btn-danger:hover,
.login-page .btn-danger:hover {
  background: #a91f1f;
  color: var(--aci-white);
}

.portal-body .btn-sm,
.login-page .btn-sm {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.88rem;
}

.portal-body .btn-block,
.login-page .btn-block {
  width: 100%;
}

/* -----------------------------
   Portal / Login Forms
----------------------------- */

.portal-body .form-grid,
.login-page .form-grid {
  display: grid;
  gap: 16px;
}

.portal-body .form-grid-2,
.login-page .form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-body .form-grid-3,
.login-page .form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-body .form-group,
.login-page .form-group {
  display: grid;
  gap: 7px;
}

.portal-body .form-label,
.login-page .form-label {
  color: var(--aci-black);
  font-weight: 900;
  font-size: 0.92rem;
}

.portal-body .form-input,
.portal-body .form-select,
.portal-body .form-textarea,
.login-page .form-input,
.login-page .form-select,
.login-page .form-textarea {
  width: 100%;
  border: 1px solid var(--aci-gray-300);
  border-radius: var(--aci-radius-md);
  background: var(--aci-white);
  color: var(--aci-black);
  padding: 12px 13px;
  outline: none;
  transition:
    border-color var(--portal-transition-fast),
    box-shadow var(--portal-transition-fast);
}

.portal-body .form-input:focus,
.portal-body .form-select:focus,
.portal-body .form-textarea:focus,
.login-page .form-input:focus,
.login-page .form-select:focus,
.login-page .form-textarea:focus {
  border-color: var(--aci-black);
  box-shadow: 0 0 0 4px rgba(244, 196, 0, 0.35);
}

.portal-body .form-textarea,
.login-page .form-textarea {
  min-height: 110px;
  resize: vertical;
}

.portal-body .form-help,
.login-page .form-help {
  color: var(--aci-gray-600);
  font-size: 0.84rem;
}

.portal-body .form-error,
.login-page .form-error {
  color: var(--aci-red);
  font-size: 0.88rem;
  font-weight: 800;
}

.portal-body .form-success,
.login-page .form-success {
  color: var(--aci-green);
  font-size: 0.88rem;
  font-weight: 800;
}

/* -----------------------------
   Portal Login Page
----------------------------- */

body.login-page,
.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(244, 196, 0, 0.55), transparent 35%),
    linear-gradient(135deg, #050505 0%, #151515 48%, #000000 100%);
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--aci-black);
}

.login-page .login-card {
  width: min(500px, 100%);
  background: var(--aci-yellow);
  border: 3px solid var(--aci-black);
  border-radius: var(--aci-radius-xl);
  box-shadow: var(--aci-shadow-strong);
  padding: 34px;
}

.login-page .login-brand {
  display: grid;
  place-items: center;
  gap: 12px;
  margin-bottom: 24px;
  text-align: center;
}

.login-page .login-logo {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background: var(--aci-black);
  color: var(--aci-yellow);
  display: grid;
  place-items: center;
  font-weight: 950;
  font-size: 1.35rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.login-page .login-title {
  margin: 0;
  color: var(--aci-black);
  font-size: 1.75rem;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.login-page .login-subtitle {
  margin: 5px 0 0;
  color: var(--aci-black);
  font-weight: 700;
}

.login-page .login-notice {
  margin-top: 20px;
  padding: 14px;
  border-radius: var(--aci-radius-md);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(0, 0, 0, 0.22);
  color: var(--aci-black);
  font-size: 0.84rem;
}

/* -----------------------------
   Portal Layout
----------------------------- */

body.portal-body,
.portal-body {
  background:
    linear-gradient(180deg, var(--aci-yellow) 0%, #ffd91f 240px, var(--aci-gray-100) 240px, var(--aci-gray-100) 100%);
  color: var(--aci-black);
  min-height: 100vh;
}

.portal-body a {
  text-decoration: none;
}

.portal-body .portal-layout {
  display: grid;
  grid-template-columns: var(--portal-sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.portal-body .portal-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--aci-black);
  color: var(--aci-white);
  overflow-y: auto;
  border-right: 6px solid var(--aci-yellow);
  box-shadow: var(--aci-shadow-strong);
}

.portal-body .portal-sidebar-header {
  padding: 22px 18px;
  border-bottom: 1px solid rgba(244, 196, 0, 0.28);
}

.portal-body .portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--aci-white);
}

.portal-body .portal-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: var(--aci-radius-md);
  background: var(--aci-yellow);
  color: var(--aci-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
}

.portal-body .portal-brand-name {
  color: var(--aci-yellow);
  font-weight: 950;
  line-height: 1.1;
  font-size: 1.05rem;
}

.portal-body .portal-brand-subtitle {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  margin-top: 2px;
}

.portal-body .portal-user-box {
  margin-top: 18px;
  padding: 13px;
  border-radius: var(--aci-radius-md);
  background: rgba(244, 196, 0, 0.12);
  border: 1px solid rgba(244, 196, 0, 0.24);
}

.portal-body .portal-user-name {
  font-weight: 950;
  color: var(--aci-white);
}

.portal-body .portal-user-role {
  color: var(--aci-yellow);
  font-size: 0.84rem;
  margin-top: 2px;
  font-weight: 800;
}

.portal-body .portal-nav {
  display: grid;
  gap: 2px;
  padding: 14px 10px 24px;
}

.portal-body .portal-nav-section {
  margin: 16px 10px 8px;
  color: var(--aci-yellow);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portal-body .portal-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.82);
  border-radius: var(--aci-radius-md);
  font-weight: 850;
  font-size: 0.92rem;
  text-decoration: none;
  transition:
    background var(--portal-transition-fast),
    color var(--portal-transition-fast);
}

.portal-body .portal-nav a:hover,
.portal-body .portal-nav a.active {
  background: var(--aci-yellow);
  color: var(--aci-black);
  text-decoration: none;
}

.portal-body .portal-main {
  min-width: 0;
}

.portal-body .portal-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--portal-header-height);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 24px;
  box-shadow: var(--aci-shadow-soft);
}

.portal-body .portal-page-title {
  margin: 0;
  color: var(--aci-black);
  font-size: 1.5rem;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.portal-body .portal-page-subtitle {
  margin: 2px 0 0;
  color: var(--aci-gray-600);
  font-size: 0.92rem;
}

.portal-body .portal-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-body .portal-content {
  padding: 26px;
}

/* -----------------------------
   Portal Dashboard Cards
----------------------------- */

.portal-body .metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.portal-body .metric-card {
  background: var(--aci-black);
  border: 2px solid var(--aci-black);
  border-radius: var(--aci-radius-lg);
  box-shadow: var(--aci-shadow-medium);
  padding: 20px;
  color: var(--aci-white);
  position: relative;
  overflow: hidden;
}

.portal-body .metric-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: var(--aci-yellow);
}

.portal-body .metric-label {
  color: var(--aci-yellow);
  font-weight: 950;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portal-body .metric-value {
  margin-top: 9px;
  color: var(--aci-white);
  font-size: 2rem;
  line-height: 1;
  font-weight: 950;
}

.portal-body .metric-note {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.portal-body .dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 20px;
}

.portal-body .dashboard-stack {
  display: grid;
  gap: 20px;
}

/* -----------------------------
   Portal Tables
----------------------------- */

.portal-body .table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: var(--aci-radius-lg);
  background: var(--aci-white);
}

.portal-body .table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.portal-body .table th,
.portal-body .table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--aci-gray-200);
  vertical-align: middle;
}

.portal-body .table th {
  background: var(--aci-black);
  color: var(--aci-yellow);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 950;
}

.portal-body .table tr:last-child td {
  border-bottom: none;
}

.portal-body .table td {
  color: var(--aci-black);
}

.portal-body .table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* -----------------------------
   Portal Status Badges
----------------------------- */

.portal-body .badge,
.login-page .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.portal-body .badge-green,
.login-page .badge-green {
  background: #e5f5e8;
  color: var(--aci-green);
}

.portal-body .badge-yellow,
.login-page .badge-yellow {
  background: var(--aci-yellow-soft);
  color: var(--aci-black);
}

.portal-body .badge-red,
.login-page .badge-red {
  background: #fde8e8;
  color: var(--aci-red);
}

.portal-body .badge-blue,
.login-page .badge-blue {
  background: #e8f2fb;
  color: var(--aci-blue);
}

.portal-body .badge-gray,
.login-page .badge-gray {
  background: var(--aci-gray-100);
  color: var(--aci-gray-700);
}

.portal-body .badge-orange,
.login-page .badge-orange {
  background: #fff0e2;
  color: var(--aci-orange);
}

/* -----------------------------
   Portal Job Cards
----------------------------- */

.portal-body .job-list {
  display: grid;
  gap: 14px;
}

.portal-body .job-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  background: var(--aci-white);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-left: 7px solid var(--aci-yellow);
  border-radius: var(--aci-radius-lg);
  box-shadow: var(--aci-shadow-soft);
  padding: 18px;
}

.portal-body .job-card-title {
  margin: 0;
  color: var(--aci-black);
  font-size: 1.08rem;
  font-weight: 950;
}

.portal-body .job-card-meta {
  margin-top: 5px;
  color: var(--aci-gray-600);
  font-size: 0.9rem;
}

.portal-body .job-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.portal-body .job-card-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* -----------------------------
   Portal Messages
----------------------------- */

.portal-body .message-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - var(--portal-header-height) - 52px);
}

.portal-body .thread-list {
  background: var(--aci-white);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: var(--aci-radius-lg);
  box-shadow: var(--aci-shadow-soft);
  overflow: hidden;
}

.portal-body .thread-item {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-bottom: 1px solid var(--aci-gray-200);
  cursor: pointer;
  transition: background var(--portal-transition-fast);
}

.portal-body .thread-item:last-child {
  border-bottom: none;
}

.portal-body .thread-item:hover,
.portal-body .thread-item.active {
  background: var(--aci-yellow-soft);
}

.portal-body .thread-title {
  color: var(--aci-black);
  font-weight: 950;
}

.portal-body .thread-preview {
  color: var(--aci-gray-600);
  font-size: 0.88rem;
}

.portal-body .thread-meta {
  color: var(--aci-gray-500);
  font-size: 0.78rem;
}

.portal-body .message-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--aci-white);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: var(--aci-radius-lg);
  box-shadow: var(--aci-shadow-soft);
  overflow: hidden;
}

.portal-body .message-panel-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--aci-gray-200);
  background: var(--aci-black);
}

.portal-body .message-panel-title {
  margin: 0;
  color: var(--aci-yellow);
  font-size: 1.1rem;
  font-weight: 950;
}

.portal-body .message-feed {
  padding: 18px;
  overflow-y: auto;
  background: var(--aci-gray-50);
}

.portal-body .message-bubble {
  max-width: 760px;
  background: var(--aci-white);
  border: 1px solid var(--aci-gray-200);
  border-radius: var(--aci-radius-lg);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.portal-body .message-bubble.mine {
  margin-left: auto;
  background: var(--aci-yellow-soft);
  border-color: rgba(0, 0, 0, 0.18);
}

.portal-body .message-author {
  color: var(--aci-black);
  font-weight: 950;
  font-size: 0.86rem;
}

.portal-body .message-time {
  color: var(--aci-gray-500);
  font-size: 0.76rem;
  margin-left: 6px;
}

.portal-body .message-text {
  margin-top: 5px;
  color: var(--aci-black);
}

.portal-body .message-compose {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--aci-gray-200);
  background: var(--aci-white);
}

.portal-body .message-compose textarea {
  min-height: 44px;
  max-height: 140px;
  resize: vertical;
}

/* -----------------------------
   Portal Alerts / Empty States
----------------------------- */

.portal-body .alert,
.login-page .alert {
  padding: 13px 14px;
  border-radius: var(--aci-radius-md);
  border: 1px solid transparent;
  font-weight: 700;
}

.portal-body .alert-info,
.login-page .alert-info {
  background: var(--aci-yellow-soft);
  border-color: rgba(0, 0, 0, 0.18);
  color: var(--aci-black);
}

.portal-body .alert-warning,
.login-page .alert-warning {
  background: var(--aci-yellow-soft);
  border-color: rgba(244, 196, 0, 0.38);
  color: var(--aci-black);
}

.portal-body .alert-danger,
.login-page .alert-danger {
  background: #fde8e8;
  border-color: rgba(198, 40, 40, 0.18);
  color: var(--aci-red);
}

.portal-body .alert-success,
.login-page .alert-success {
  background: #e5f5e8;
  border-color: rgba(46, 125, 50, 0.18);
  color: var(--aci-green);
}

.portal-body .empty-state,
.login-page .empty-state {
  text-align: center;
  padding: 34px 20px;
  color: var(--aci-gray-600);
}

.portal-body .empty-state-title,
.login-page .empty-state-title {
  margin: 0;
  color: var(--aci-black);
  font-weight: 950;
}

.portal-body .empty-state-text,
.login-page .empty-state-text {
  margin: 8px auto 0;
  max-width: 560px;
}

/* -----------------------------
   Portal Quick Links
----------------------------- */

.portal-body .quick-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.portal-body .quick-link-card {
  background: var(--aci-white);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-left: 7px solid var(--aci-yellow);
  border-radius: var(--aci-radius-lg);
  box-shadow: var(--aci-shadow-soft);
  padding: 20px;
}

.portal-body .quick-link-card h3 {
  margin: 0 0 10px;
  color: var(--aci-black);
}

.portal-body .quick-link-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-body .quick-link-list a {
  font-weight: 900;
}

/* -----------------------------
   Portal Mobile Toggle
----------------------------- */

.portal-body .portal-mobile-toggle {
  display: none;
}

/* -----------------------------
   Portal / Login Responsive Design
----------------------------- */

@media (max-width: 1080px) {
  .portal-body .grid-4,
  .portal-body .metric-grid,
  .login-page .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-body .dashboard-grid,
  .portal-body .message-layout {
    grid-template-columns: 1fr;
  }

  .portal-body .quick-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --portal-sidebar-width: 260px;
  }

  .portal-body .portal-layout {
    grid-template-columns: 1fr;
  }

  .portal-body .portal-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--portal-sidebar-width);
    transform: translateX(-105%);
    transition: transform var(--portal-transition-normal);
    z-index: 80;
  }

  .portal-body .portal-sidebar.open {
    transform: translateX(0);
  }

  .portal-body .portal-mobile-toggle {
    display: inline-flex;
  }

  .portal-body .portal-topbar {
    padding: 12px 16px;
  }

  .portal-body .portal-content {
    padding: 16px;
  }

  .portal-body .form-grid-2,
  .portal-body .form-grid-3,
  .portal-body .grid-2,
  .portal-body .grid-3,
  .login-page .form-grid-2,
  .login-page .form-grid-3,
  .login-page .grid-2,
  .login-page .grid-3 {
    grid-template-columns: 1fr;
  }

  .portal-body .job-card {
    grid-template-columns: 1fr;
  }

  .portal-body .job-card-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .portal-body .btn,
  .login-page .btn {
    width: 100%;
  }

  .portal-body .metric-grid,
  .portal-body .quick-link-grid {
    grid-template-columns: 1fr;
  }

  .portal-body .card,
  .login-page .card {
    padding: 18px;
  }

  .login-page .login-card {
    padding: 24px;
  }

  .portal-body .portal-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-body .portal-topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .portal-body .message-compose {
    flex-direction: column;
  }
}

/* -----------------------------
   Portal Print Styles
----------------------------- */

@media print {
  .portal-body .portal-sidebar,
  .portal-body .portal-topbar,
  .portal-body .btn,
  .portal-body .no-print {
    display: none !important;
  }

  body.portal-body {
    background: var(--aci-white);
  }

  .portal-body .portal-layout {
    display: block;
  }

  .portal-body .portal-content {
    padding: 0;
  }

  .portal-body .card,
  .portal-body .table-wrap {
    box-shadow: none;
    border-color: var(--aci-gray-300);
  }
}