/* ===== Reset / Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html:focus-within {
  scroll-behavior: smooth;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ===== Theme Tokens ===== */
:root {
  --bg: #fffdfa;
  --surface: #ffffff;
  --surface-alt: #fffbf5;
  --ink: #2f2f2f;
  --muted: #7a6b61; /* darkened for contrast */
  --clay: #c77b5c;
  --teal: #0b6b6f;
  --glass: rgba(255, 255, 255, 0.6);
  --ring: rgba(11, 107, 111, 0.35);

  --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-2: 0 10px 20px rgba(0, 0, 0, 0.07), 0 3px 6px rgba(0, 0, 0, 0.06);
  --radius: 16px;

  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;

  --container: 1120px;
  --header-h: 64px;
}

/* ===== Typography ===== */
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans";
  background: linear-gradient(180deg, #fbf6f1, #fff);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: 0.2px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 var(--space-3);
}
h1 {
  font-size: clamp(2rem, 4.2vw, 2.6rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 1.9rem);
  font-weight: 750;
}
h3 {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 700;
}
.lead {
  font-weight: 700;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}

/* ===== Utilities ===== */
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}
.section {
  padding: var(--space-7) 0;
}
.section.alt {
  background: var(--surface-alt);
}
.section-head {
  max-width: 760px;
  margin: 0 auto var(--space-5);
  text-align: center;
}
[id] {
  scroll-margin-top: var(--header-h);
}

/* Focus */
:where(a, button, [role="button"], input, select, textarea):focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--ring);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: var(--shadow-2);
  z-index: 999;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 241, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(46, 46, 46, 0.06);
}
@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  .site-header {
    background: #fff;
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.site-title {
  font-weight: 800;
}
.tagline {
  font-size: 12px;
  color: var(--muted);
}

.nav ul {
  display: flex;
  gap: 18px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  padding: 8px 10px;
  border-radius: 10px;
}
.nav a:hover {
  background: rgba(0, 0, 0, 0.04);
}
.nav-cta a {
  padding-inline: 14px;
}

.nav-toggle {
  display: none;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
}
.nav-toggle-box {
  width: 22px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 0 currentColor, 0 0 0 0 currentColor,
    0 6px 0 0 currentColor;
}
.nav-toggle-label {
  font-weight: 600;
}

/* ===== Hero ===== */
.hero {
  padding-top: clamp(32px, 6vw, 72px);
  background: radial-gradient(
    1200px 600px at 10% -10%,
    #fff6ee 10%,
    transparent 70%
  );
}
.hero-grid {
  display: grid;
  gap: clamp(20px, 4vw, 44px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  align-items: center;
}
.hero-copy .actions {
  display: flex;
  gap: 12px;
  margin: var(--space-4) 0 var(--space-3);
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
}
.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-1);
}
.tel {
  color: var(--teal);
  font-weight: 700;
}
.contact-inline {
  margin-top: var(--space-2);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease;
  box-shadow: var(--shadow-1);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: var(--clay);
  color: #fff;
}
.btn-primary:hover {
  background: #b76d52;
}
.btn-ghost {
  background: transparent;
  border: 2px solid rgba(0, 0, 0, 0.12);
}
.btn-ghost:hover {
  background: rgba(199, 123, 92, 0.08);
}

/* ===== Cards & Grids ===== */
.card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: clamp(16px, 3vw, 24px);
}

.card-grid {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
}
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: var(--surface-alt);
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 10px;
}

/* About */
.about-grid {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: start;
}
.values {
  margin: 10px 0 0 18px;
  color: var(--muted);
}

/* Reviews */
.floating-area {
  min-height: 260px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.review-card {
  width: 240px;
  min-height: 110px;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.98));
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 12px 30px rgba(12, 12, 12, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stars {
  color: var(--clay);
  font-weight: 800;
}
.author {
  font-weight: 700;
}
.float {
  animation-name: floaty;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
@keyframes floaty {
  from {
    transform: translateY(0) rotate(-1deg);
  }
  to {
    transform: translateY(-10px) rotate(1deg);
  }
}

.review-form-grid {
  max-width: 920px;
  margin: 18px auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
label {
  font-weight: 700;
}
input,
select,
textarea {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(46, 46, 46, 0.08);
  font-size: 0.95rem;
  background: #fff;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
.error {
  color: #a61b1b;
  font-size: 0.85rem;
  min-height: 1em;
}
.success {
  color: #054;
  font-weight: 700;
}
.form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: start;
}
.contact-card p {
  margin: 0.4rem 0;
}

/* Footer */
.site-footer {
  padding: 20px 0;
  text-align: left;
  color: #6b6360;
}
.footer-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}
.footer-nav {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ===== Mobile / Responsive ===== */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form .row {
    grid-template-columns: 1fr;
  }
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-2);
    display: none;
  }
  .nav.open {
    display: block;
  }
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }
  .nav li {
    text-align: center;
  }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .float {
    animation: none !important;
  }
  html:focus-within {
    scroll-behavior: auto;
  }
}

/* Prevent tiny overflow on narrow screens */
html,
body {
  overflow-x: hidden;
}

/* Footer */
.site-footer {
  padding: 20px 0;
  text-align: left;
  color: #6b6360;
}

.footer-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto auto; /* stays on desktop */
  align-items: center;
}

.footer-nav {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap; /* desktop */
}

/* --- Mobile footer fixes --- */
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr; /* stack */
    text-align: center;
    gap: 10px;
  }
  .footer-grid > * {
    min-width: 0;
  } /* allow shrinking; prevents overflow */
  .footer-brand {
    justify-self: center;
  }
  .footer-nav {
    justify-content: center;
    flex-wrap: wrap; /* allow wrapping on small screens */
    row-gap: 8px;
  }
  .footer-nav a {
    padding: 6px 8px;
  } /* slightly tighter padding */
  .site-footer {
    padding: 24px 0;
  }
}

/* ======= Client Portal Layout ======= */
body.portal .site-header {
  backdrop-filter: blur(6px);
}
.portal-main {
  padding-top: 12px;
}
.portal-nav ul {
  gap: 12px;
}
.portal-nav a.active {
  background: rgba(0, 0, 0, 0.05);
}
.portal-grid {
  display: grid;
  gap: clamp(12px, 2.2vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: var(--space-5);
}
.kpi {
  text-align: center;
}
.kpi .kpi-value {
  font-size: clamp(1.6rem, 4.2vw, 2rem);
  font-weight: 800;
  margin: 6px 0;
}

.portal-panels {
  display: grid;
  gap: clamp(12px, 2.2vw, 20px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
}
.portal-panel .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.activity-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #fff;
}

/* Tables */
.table-wrap {
  overflow: auto;
  border-radius: var(--radius);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.table th,
.table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.table thead th {
  background: var(--surface-alt);
  position: sticky;
  top: 0;
  z-index: 1;
}
.table td:last-child,
.table th:last-child {
  text-align: right;
}
.table .pill {
  font-size: 0.8rem;
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.toolbar .filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar input[type="search"],
.toolbar select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Dialog */
.dialog {
  border: none;
  padding: 0;
  border-radius: 16px;
  width: min(92vw, 560px);
}
.dialog::backdrop {
  background: rgba(0, 0, 0, 0.35);
}
.dialog .form {
  padding: 18px;
}
.field.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Admin art placeholder */
.card.art {
  display: flex;
  flex-direction: column;
}
.art-placeholder {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 2px dashed rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #fff;
  padding: 18px;
  text-align: center;
}

/* Reviews Admin */
.table .switch {
  position: relative;
  width: 42px;
  height: 24px;
  display: inline-block;
}
.table .switch input {
  display: none;
}
.table .slider {
  position: absolute;
  inset: 0;
  background: #ddd;
  border-radius: 999px;
  transition: 0.2s ease;
}
.table .slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s ease;
  box-shadow: var(--shadow-1);
}
.table .switch input:checked + .slider {
  background: var(--teal);
}
.table .switch input:checked + .slider::before {
  transform: translateX(18px);
}

/* Clients table */
.table .tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.8rem;
  margin-right: 6px;
}

/* Responsive tweaks */
@media (max-width: 980px) {
  .portal-panels {
    grid-template-columns: 1fr;
  }
  .field.two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .activity-list li {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   AURORA PORTAL REDESIGN
   ========================= */

/* Layout + banner */
body.portal {
  background: radial-gradient(
      1200px 600px at 10% -10%,
      #fff5ec 6%,
      transparent 60%
    ),
    linear-gradient(180deg, #fffdfa, #fff);
}
.aurora .portal-hero {
  --pad: clamp(20px, 5vw, 48px);
  background: radial-gradient(
      1200px 400px at 20% -50%,
      rgba(199, 123, 92, 0.12),
      transparent 60%
    ),
    radial-gradient(
      1200px 480px at 90% -50%,
      rgba(11, 107, 111, 0.12),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.2));
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(6px);
  padding: var(--pad) 0;
}
.aurora .portal-hero.slim {
  padding: clamp(18px, 4vw, 32px) 0;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Cards / glass / lift */
.card.glass {
  background: rgba(255, 255, 255, 0.7);
}
.lift {
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

/* KPI grid */
.kpi-grid {
  display: grid;
  gap: clamp(12px, 2.2vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-bottom: var(--space-5);
}
.kpi header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
}
.tone-clay {
  background: var(--clay);
}
.tone-teal {
  background: var(--teal);
}
.tone-ink {
  background: #3c3c3c;
}
.tone-gold {
  background: #b68b2b;
}
.kpi .spark {
  height: 48px;
  background: linear-gradient(180deg, #fff, #fff8f2);
  border-radius: 10px;
  padding: 4px;
  margin: 6px 0 8px;
}
.kpi .spark svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  color: rgba(11, 107, 111, 0.6);
}

/* Panels */
.portal-panels {
  display: grid;
  gap: clamp(12px, 2.2vw, 20px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}
.panel .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

/* Timeline */
.activity-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.activity-timeline li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #fff;
}

/* Toolbars, chips, inputs */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.toolbar .filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip-select,
.chip-input {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}
.chip-input {
  min-width: 220px;
}

/* Tables */
.table-card {
  overflow: auto;
  border-radius: 16px;
}
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.96rem;
}
.table thead th {
  position: sticky;
  top: 0;
  background: var(--surface-alt);
  z-index: 1;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.table th,
.table td {
  padding: 14px 12px;
  text-align: left;
}
.table td:last-child,
.table th:last-child {
  text-align: right;
}
.table.zebra tbody tr:nth-child(odd) {
  background: #fff;
}
.table.zebra tbody tr:nth-child(even) {
  background: #fffaf6;
}
.table .pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Dialogs and forms */
.dialog {
  border: none;
  padding: 0;
  border-radius: 18px;
  width: min(92vw, 560px);
}
.dialog::backdrop {
  background: rgba(0, 0, 0, 0.35);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
}
.form-grid h3 {
  grid-column: 1/-1;
  margin-top: 0;
}
.form-grid .form-actions {
  grid-column: 1/-1;
  display: flex;
  gap: 8px;
  align-items: center;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-grid .span-2 {
  grid-column: 1/-1;
}

/* Review admin cards */
.review-card-grid {
  display: grid;
  gap: clamp(12px, 2vw, 18px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: var(--space-5);
}
.review-card {
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
  display: grid;
  gap: 8px;
}
.review-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.review-card .stars {
  color: var(--clay);
  font-weight: 800;
}
.switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}
.switch input {
  display: none;
}
.slider {
  position: absolute;
  inset: 0;
  background: #d5d5d5;
  border-radius: 999px;
  transition: 0.2s ease;
}
.slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s ease;
  box-shadow: var(--shadow-1);
}
.switch input:checked + .slider {
  background: var(--teal);
}
.switch input:checked + .slider::before {
  transform: translateX(20px);
}

/* Clients — CARD GRID */
.client-card-grid {
  display: grid;
  gap: clamp(12px, 2vw, 18px);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-bottom: var(--space-5);
}
.client-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(180deg, #fff, #fffaf6);
  box-shadow: var(--shadow-1);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  grid-column-gap: 12px;
  row-gap: 6px;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.client-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.avatar {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--teal), var(--clay));
}
.client-meta {
  display: flex;
  flex-direction: column;
}
.client-meta .name {
  font-weight: 800;
  font-size: 1.05rem;
}
.client-meta .email a {
  color: var(--teal);
}
.client-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.8rem;
}
.card-actions {
  grid-column: 1/-1;
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.btn-xs {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
}

/* Art placeholders */
.card.art {
  display: flex;
  flex-direction: column;
}
.art-placeholder {
  display: grid;
  place-items: center;
  min-height: 140px;
  border: 2px dashed rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  background: #fff;
  padding: 18px;
  text-align: center;
}
.art-placeholder.big {
  min-height: 200px;
}

/* Responsive tweaks */
@media (max-width: 980px) {
  .portal-panels {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .activity-timeline li {
    grid-template-columns: 1fr;
  }
}

/* ===== Owner section ===== */
.owner-grid {
  display: grid;
  gap: clamp(16px, 3vw, 28px);
  grid-template-columns: minmax(220px, 380px) minmax(0, 1fr);
  align-items: center;
}

.owner-avatar {
  width: min(320px, 36vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-2);
  border: 6px solid #fff;
  background: radial-gradient(
      120% 120% at 10% 0%,
      rgba(199, 123, 92, 0.12),
      transparent 60%
    ),
    radial-gradient(
      120% 120% at 100% 10%,
      rgba(11, 107, 111, 0.12),
      transparent 60%
    ),
    #fff;
}
.owner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.owner-head {
  margin-bottom: var(--space-3);
}
.owner-name {
  margin: 4px 0 0;
  font-weight: 800;
}
.owner-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.owner-copy .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

.owner-highlights {
  margin: var(--space-3) 0 0 18px;
  color: var(--muted);
}
.owner-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.owner-quote {
  margin: var(--space-3) 0 0;
  padding: 12px 14px;
  border-left: 4px solid var(--teal);
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  font-style: italic;
}

/* Responsive: stack image above text on smaller screens */
@media (max-width: 980px) {
  .owner-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: left;
  }
  .owner-avatar {
    width: min(280px, 60vw);
  }
}

/* Extra-small tweaks */
@media (max-width: 420px) {
  .owner-quote {
    padding: 10px 12px;
  }
}
