:root {
  --bg: #f7f3ed;
  --paper: rgba(255, 252, 247, 0.88);
  --paper-strong: #fffdf9;
  --sage: #a9b5a4;
  --sage-deep: #7a8a75;
  --lavender: #c9bfd7;
  --lavender-deep: #8b7fa1;
  --mist: #dfe7e0;
  --ink: #384040;
  --muted: #6b706f;
  --line: rgba(107, 112, 111, 0.22);
  --orange: #ffa33d;
  --orange-glow: rgba(255, 163, 61, 0.48);
  --red: #ff6b6b;
  --red-glow: rgba(255, 107, 107, 0.44);
  --green: #8fd26b;
  --green-glow: rgba(143, 210, 107, 0.5);
  --shadow: 0 22px 60px rgba(95, 100, 95, 0.16);
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1180px;
  --heading: "Cormorant Garamond", Georgia, serif;
  --script: "Allura", "Segoe Script", cursive;
  --body: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.95), rgba(255,255,255,0.55) 28%, transparent 52%),
    radial-gradient(circle at 80% 18%, rgba(207, 218, 207, 0.45), transparent 24%),
    linear-gradient(180deg, #f9f5ef 0%, #f4f0ea 45%, #eef2ed 100%);
  min-height: 100vh;
}

body[data-shell="print"] {
  background: #fff;
}

body[data-shell="dashboard"],
body[data-shell="portal"] {
  background:
    radial-gradient(circle at 14% 18%, rgba(201, 191, 215, 0.26), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(169, 181, 164, 0.30), transparent 32%),
    linear-gradient(180deg, #faf6ef 0%, #eef2ed 100%);
}

body[data-shell="print"]::before,
body[data-shell="print"]::after {
  display: none;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto auto 0 0;
  width: 320px;
  height: 320px;
  background:
    radial-gradient(circle at 50% 50%, rgba(181, 198, 181, 0.26), transparent 60%),
    linear-gradient(135deg, rgba(201, 191, 215, 0.18), transparent 50%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
}

body::after {
  inset: 0 0 auto auto;
  transform: scaleX(-1);
}

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

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

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

.page-shell,
.print-shell {
  position: relative;
  z-index: 1;
}

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

.floating-header,
.dashboard-topbar,
.portal-topbar {
  position: sticky;
  top: 18px;
  z-index: 30;
  width: min(calc(100% - 32px), var(--max));
  margin: 18px auto 0;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  background: rgba(253, 250, 245, 0.62);
  box-shadow: 0 16px 38px rgba(114, 117, 111, 0.12);
}

.header-row,
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.brand-name {
  font-family: var(--heading);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a,
.topbar-link,
.menu-link {
  color: var(--muted);
  font-size: 0.94rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.nav-links a:hover,
.topbar-link:hover,
.menu-link:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-button,
.primary-button,
.panel-button,
.status-button,
.cta-stack a,
.header-button,
.mini-button {
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ghost-button,
.header-button,
.mini-button {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--ink);
  border: 1px solid rgba(122, 138, 117, 0.16);
}

.ghost-button:hover,
.primary-button:hover,
.panel-button:hover,
.status-button:hover,
.cta-stack a:hover,
.header-button:hover,
.mini-button:hover {
  transform: translateY(-1px);
}

.primary-button,
.panel-button {
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sage), var(--sage-deep));
  color: #fff;
  box-shadow: 0 10px 26px rgba(122, 138, 117, 0.32);
}

.page-hero {
  padding: 44px 0 28px;
}

.hero-layout,
.page-grid,
.content-grid,
.contact-grid,
.services-grid,
.metrics-grid,
.portal-grid,
.admin-grid,
.split-grid {
  display: grid;
  gap: 24px;
}

.hero-layout {
  grid-template-columns: 1.08fr 0.92fr;
  align-items: start;
}

.card,
.paper-card,
.dashboard-card,
.soft-panel,
.service-card,
.detail-card,
.white-print {
  background: var(--paper);
  border: 1px solid rgba(255,255,255,0.74);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy,
.paper-card,
.dashboard-card,
.soft-panel,
.detail-card,
.white-print {
  padding: 28px;
}

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 14px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--heading);
  line-height: 0.95;
  font-weight: 500;
}

h1 {
  font-size: clamp(3.6rem, 8vw, 6.4rem);
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
}

h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.script-line {
  display: block;
  font-family: var(--script);
  color: var(--sage-deep);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.8;
  margin: 8px 0;
}

.lede,
.card p,
.soft-panel p,
.dashboard-card p,
.detail-card p,
.white-print p,
label,
li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions,
.button-row,
.stat-row,
.portal-actions,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.paper-stack {
  position: relative;
  min-height: 820px;
}

.hero-media {
  min-height: 820px;
}

.floral-art-panel {
  position: relative;
  min-height: 820px;
  border-radius: 38px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.98), transparent 14%),
    radial-gradient(circle at 42% 30%, rgba(235, 225, 238, 0.9), transparent 18%),
    radial-gradient(circle at 68% 42%, rgba(212, 223, 211, 0.9), transparent 22%),
    linear-gradient(145deg, rgba(255, 252, 247, 0.98), rgba(203, 218, 202, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.floral-art-panel::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 6%;
  height: 34%;
  border-radius: 48% 52% 12% 14%;
  background:
    radial-gradient(ellipse at 24% 44%, rgba(122, 138, 117, 0.34), transparent 34%),
    radial-gradient(ellipse at 52% 28%, rgba(139, 127, 161, 0.22), transparent 36%),
    linear-gradient(160deg, rgba(255,255,255,0.62), rgba(201,191,215,0.24));
  border: 1px solid rgba(122, 138, 117, 0.22);
}

.floral-art-panel::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 8%;
  height: 18px;
  border-radius: 999px;
  background: rgba(96, 107, 91, 0.28);
  filter: blur(10px);
}

.floral-art-panel--supporting {
  min-height: 620px;
}

.stem,
.leaf,
.bloom {
  position: absolute;
  display: block;
}

.stem {
  width: 4px;
  height: 390px;
  background: linear-gradient(180deg, rgba(122, 138, 117, 0.38), rgba(82, 96, 78, 0.88));
  transform-origin: bottom;
  bottom: 12%;
  border-radius: 999px;
  z-index: 2;
}

.stem-a { left: 38%; transform: rotate(-16deg); }
.stem-b { left: 52%; transform: rotate(4deg); height: 455px; }
.stem-c { left: 64%; transform: rotate(18deg); height: 370px; }

.bloom {
  width: 188px;
  height: 188px;
  border-radius: 55% 45% 58% 42%;
  background:
    radial-gradient(circle at 42% 38%, rgba(255,255,255,0.98), transparent 24%),
    radial-gradient(circle at 66% 66%, rgba(178, 193, 172, 0.68), transparent 44%),
    radial-gradient(circle at 48% 56%, rgba(226, 217, 234, 0.98), rgba(154, 169, 148, 0.54) 76%);
  box-shadow: 0 26px 70px rgba(83, 96, 78, 0.24);
  z-index: 4;
}

.bloom-a { left: 19%; top: 26%; transform: rotate(-14deg); }
.bloom-b { left: 42%; top: 10%; transform: scale(1.16) rotate(8deg); }
.bloom-c { left: 58%; top: 36%; transform: scale(0.94) rotate(18deg); }

.leaf {
  width: 124px;
  height: 54px;
  border-radius: 96px 0;
  background: linear-gradient(135deg, rgba(181,195,175,0.95), rgba(89,108,84,0.72));
  box-shadow: 0 12px 28px rgba(83, 96, 78, 0.18);
  z-index: 3;
}

.leaf-a { left: 28%; bottom: 34%; transform: rotate(-34deg); }
.leaf-b { left: 48%; bottom: 42%; transform: rotate(18deg); }
.leaf-c { left: 62%; bottom: 25%; transform: rotate(38deg); }

.image-story-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.quote-note {
  padding: 26px 30px;
  background: rgba(255, 252, 247, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--heading);
  font-size: 1.6rem;
  line-height: 1.35;
}

.icon-list,
.feature-list,
.stats-list,
.action-list,
.dash-list {
  display: grid;
  gap: 18px;
}

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

.icon-item,
.mini-feature {
  display: flex;
  gap: 16px;
  align-items: start;
}

.icon-dot,
.status-pill,
.soft-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.icon-dot {
  background: linear-gradient(135deg, rgba(171, 188, 166, 0.46), rgba(204, 195, 224, 0.54));
  color: var(--sage-deep);
  font-size: 1.25rem;
}

.paper-ribbon {
  padding: 22px 28px;
  background: linear-gradient(135deg, rgba(185, 197, 182, 0.86), rgba(213, 206, 225, 0.84));
  border-radius: 26px;
  color: #fff;
  box-shadow: var(--shadow);
}

.metrics-grid,
.services-grid,
.portal-grid,
.admin-grid,
.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-grid {
  grid-template-columns: 1fr;
  padding-bottom: 54px;
}

.contact-grid {
  grid-template-columns: 0.82fr 1.18fr;
}

.service-card,
.metric-card {
  padding: 24px;
}

.site-footer {
  padding: 30px 0 90px;
}

.footer-band {
  background: linear-gradient(135deg, rgba(204, 216, 207, 0.72), rgba(213, 206, 226, 0.68));
  border-radius: 28px;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cta-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-stack a {
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 800;
  color: #111;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 28px rgba(20, 20, 20, 0.18);
}

.cta-orange {
  background: var(--orange);
  box-shadow: 0 0 0 1px rgba(255, 163, 61, 0.22), 0 0 28px var(--orange-glow);
}

.cta-red {
  background: var(--red);
  box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.2), 0 0 28px var(--red-glow);
}

.cta-green {
  background: var(--green);
  box-shadow: 0 0 0 1px rgba(143, 210, 107, 0.22), 0 0 28px var(--green-glow);
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(201,191,215,0.34), transparent 34%),
    linear-gradient(rgba(248,245,239,0.94), rgba(238,242,237,0.96));
}

.access-card {
  width: min(100%, 560px);
  padding: 34px;
  border-radius: var(--radius);
  background: rgba(255, 252, 247, 0.96);
  border: 1px solid rgba(255,255,255,0.74);
  box-shadow: var(--shadow);
}

.error-banner {
  background: rgba(255, 107, 107, 0.18);
  color: #73302f;
}

.dashboard-shell,
.portal-shell {
  padding-bottom: 84px;
}

.dashboard-layout {
  width: min(calc(100% - 40px), var(--max));
  margin: 24px auto 0;
  display: grid;
  gap: 22px;
}

.dashboard-card,
.soft-panel,
.detail-card {
  background: rgba(253, 250, 246, 0.92);
  backdrop-filter: blur(6px);
}

.dashboard-card h2,
.detail-card h2 {
  margin-bottom: 16px;
}

.dashboard-menu {
  position: fixed;
  top: 108px;
  left: 20px;
  width: min(320px, calc(100% - 40px));
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 252, 247, 0.96);
  box-shadow: 0 24px 70px rgba(61, 68, 62, 0.22);
  border: 1px solid rgba(255,255,255,0.74);
  z-index: 42;
  display: none;
}

.dashboard-menu.is-open {
  display: grid;
  gap: 14px;
}

.menu-title {
  font-family: var(--heading);
  font-size: 2rem;
}

.menu-list {
  display: grid;
  gap: 10px;
}

.menu-link {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(225, 232, 226, 0.38);
}

.form-grid {
  display: grid;
  gap: 18px;
}

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

label {
  display: grid;
  gap: 8px;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(136, 145, 137, 0.2);
  background: rgba(255,255,255,0.82);
  color: var(--ink);
}

.ghost-button:focus-visible,
.primary-button:focus-visible,
.panel-button:focus-visible,
.status-button:focus-visible,
.cta-stack a:focus-visible,
.header-button:focus-visible,
.mini-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255, 163, 61, 0.72);
  outline-offset: 3px;
}

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

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

th,
td {
  padding: 14px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--sage-deep);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(208, 218, 208, 0.4);
  color: var(--ink);
  font-size: 0.9rem;
}

.list-card {
  display: grid;
  gap: 12px;
}

.list-row,
.portal-action-card,
.employee-tile {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(210, 217, 211, 0.75);
}

.assign-card {
  display: grid;
  gap: 18px;
}

.list-row strong,
.portal-action-card strong,
.employee-tile strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.status-board {
  overflow: hidden;
  border-radius: 24px;
}

.status-board table {
  width: 100%;
  table-layout: fixed;
}

.employee-week table {
  width: 100%;
}

.toggle-state {
  display: grid;
  gap: 10px;
}

.status-button {
  display: inline-flex;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  min-width: 94px;
}

.state-off {
  background: #d9534f;
}

.state-on {
  background: #3fa95c;
}

.state-oncall {
  background: #3f7bdb;
}

.note-small {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--muted);
}

.success-banner,
.info-banner {
  padding: 14px 18px;
  border-radius: 18px;
  margin-top: 12px;
}

.success-banner {
  background: rgba(159, 205, 162, 0.24);
  color: #225c28;
}

.info-banner {
  background: rgba(201, 191, 215, 0.2);
  color: #5f5974;
}

.clock-display {
  display: grid;
  gap: 10px;
  margin: 16px 0 20px;
}

.timer-text {
  font-family: var(--heading);
  font-size: clamp(2.3rem, 4vw, 3.8rem);
}

.status-text {
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.map-shell {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 460px;
}

.map-shell iframe {
  width: 100%;
  min-height: 460px;
  border: 0;
  filter: saturate(0.72) hue-rotate(-8deg);
}

.map-pin {
  position: absolute;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 28px rgba(65, 70, 68, 0.18);
  font-size: 0.86rem;
}

.map-pin.pin-a { left: 16%; top: 30%; }
.map-pin.pin-b { left: 54%; top: 44%; }
.map-pin.pin-c { left: 69%; top: 25%; }

.plain-invoice {
  background: #fff;
  color: #111;
  box-shadow: none;
  border: none;
  margin: 24px auto;
  width: min(calc(100% - 32px), 900px);
}

.invoice-head,
.invoice-grid,
.invoice-lines,
.invoice-actions {
  display: grid;
  gap: 20px;
}

.invoice-head {
  grid-template-columns: 1fr auto;
}

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

.invoice-lines .line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.muted-print {
  color: #666;
}

.empty-state {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255,255,255,0.76);
  color: var(--muted);
}

.hide-print {
  display: initial;
}

@media (max-width: 960px) {
  .hero-layout,
  .metrics-grid,
  .services-grid,
  .contact-grid,
  .portal-grid,
  .admin-grid,
  .split-grid,
  .image-story-band,
  .form-grid.two,
  .invoice-grid,
  .icon-list {
    grid-template-columns: 1fr;
  }

  .paper-stack {
    min-height: 660px;
  }

  .hero-media,
  .floral-art-panel {
    height: 520px;
    min-height: 520px;
  }

  .nav-links {
    display: none;
  }

  .floating-header,
  .dashboard-topbar,
  .portal-topbar {
    width: calc(100% - 20px);
    padding: 14px 16px;
  }

  .footer-band,
  .header-row,
  .topbar-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 20px), var(--max));
  }

  .hero-copy,
  .paper-card,
  .dashboard-card,
  .soft-panel,
  .detail-card,
  .white-print,
  .service-card,
  .metric-card {
    padding: 20px;
  }

  .cta-stack a {
    font-size: 0.84rem;
    padding: 12px 14px;
  }

  .dashboard-menu {
    left: 10px;
    top: 88px;
    width: calc(100% - 20px);
  }

  th,
  td {
    padding: 10px 6px;
    font-size: 0.76rem;
  }

  .status-button {
    min-width: 100%;
    padding: 8px 6px;
    font-size: 0.72rem;
  }

  .note-small {
    font-size: 0.7rem;
  }
}

@media print {
  body {
    background: #fff;
  }

  .hide-print,
  .cta-stack,
  .floating-header,
  .dashboard-topbar,
  .portal-topbar,
  .dashboard-menu {
    display: none !important;
  }

  .plain-invoice {
    border: none;
    margin: 0;
    width: 100%;
  }
}
